docs: update cygwin progress
[gnulib.git] / ChangeLog
1 2012-02-29  Eric Blake  <eblake@redhat.com>
2
3         docs: update cygwin progress
4         * doc/posix-functions/llround.texi (llround): Added in cygwin
5         1.7.8.
6         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7         * doc/glibc-functions/program_invocation_name.texi
8         (program_invocation_name): Likewise.
9         * doc/glibc-functions/program_invocation_short_name.texi
10         (program_invocation_short_name): Likewise.
11         * doc/glibc-functions/madvise.texi (madvise): Likewise.
12         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
13         Likewise.
14         * doc/posix-functions/pthread_spin_destroy.texi
15         (pthread_spin_destroy): Added in cygwin 1.7.10.
16         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
17         Likewise.
18         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
19         Likewise.
20         * doc/posix-functions/pthread_spin_trylock.texi
21         (pthread_spin_trylock): Likewise.
22         * doc/posix-functions/pthread_spin_unlock.texi
23         (pthread_spin_unlock): Likewise.
24         * doc/posix-functions/pthread_setschedprio.texi
25         (pthread_setschedprio): Likewise.
26         * doc/posix-functions/pthread_attr_getstack.texi
27         (pthread_attr_getstack): Likewise.
28         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
29         (pthread_attr_getstackaddr): Likewise.
30         * doc/glibc-functions/pthread_getattr_np.texi
31         (pthread_getattr_np): Likewise.
32         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
33         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
34         * doc/posix-functions/clock_settime.texi (clock_settime):
35         Likewise.
36         * doc/posix-functions/pthread_attr_getguardsize.texi
37         (pthread_attr_getguardsize): Likewise.
38         * doc/posix-functions/pthread_attr_setguardsize.texi
39         (pthread_attr_setguardsize): Likewise.
40         * doc/posix-functions/pthread_attr_setstack.texi
41         (pthread_attr_setstack): Likewise.
42         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
43         (pthread_attr_setstackaddr): Likewise.
44         * doc/posix-functions/clock_getcpuclockid.texi
45         (clock_getcpuclockid): Likewise.
46         * doc/posix-functions/pthread_getcpuclockid.texi
47         (pthread_getcpuclockid): Likewise.
48         * doc/glibc-functions/error.texi (error): Likewise.
49         * doc/glibc-functions/error_at_line.texi (error_at_line):
50         Likewise.
51         * doc/glibc-functions/error_message_count.texi
52         (error_message_count): Likewise.
53         * doc/glibc-functions/error_one_per_line.texi
54         (error_one_per_line): Likewise.
55         * doc/glibc-functions/error_print_progname.texi
56         (error_print_progname): Likewise.
57         * doc/posix-functions/pthread_condattr_getclock.texi
58         (pthread_condattr_getclock): Likewise.
59         * doc/posix-functions/pthread_condattr_setclock.texi
60         (pthread_condattr_setclock): Likewise.
61         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
62         Likewise.
63         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
64         * doc/glibc-functions/getpt.texi (getpt): Likewise.
65         * doc/glibc-functions/get_current_dir_name.texi
66         (get_current_dir_name): Likewise.
67         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
68         Likewise.
69         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
70         wrong return type.
71         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
72         1.7.11.
73
74 2012-02-29  Bruno Haible  <bruno@clisp.org>
75
76         Tests for module 'hypotf'.
77         * modules/hypotf-tests: New file.
78         * tests/test-hypotf.c: New file.
79
80         New module 'hypotf'.
81         * lib/math.in.h (hypotf): New declaration.
82         * lib/hypotf.c: New file.
83         * m4/hypotf.m4: New file.
84         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
85         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
86         REPLACE_HYPOTF.
87         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
88         REPLACE_HYPOTF.
89         * modules/hypotf: New file.
90         * tests/test-math-c++.cc: Check the hypotf declaration.
91         * doc/posix-functions/hypotf.texi: Mention the new module.
92
93         hypot: Prepare for hypotf module.
94         * m4/hypot.m4: New file.
95         * modules/hypot (Files): Add m4/hypot.m4.
96         (configure.ac): Invoke gl_FUNC_HYPOT.
97
98 2012-02-29  Bruno Haible  <bruno@clisp.org>
99
100         hypot tests: More tests.
101         * tests/test-hypot.c: Include <float.h>.
102         (main): Add tests about overflow and underflow.
103
104 2012-02-29  Bruno Haible  <bruno@clisp.org>
105
106         math code: Add comments.
107         * lib/acosl.c: Add comment about related glibc source files.
108         * lib/asinl.c: Likewise.
109         * lib/atanl.c: Likewise.
110         * lib/expl.c: Likewise.
111         * lib/logl.c: Likewise.
112         * lib/sincosl.c: Likewise.
113         * lib/sinl.c: Likewise.
114         * lib/tanl.c: Likewise.
115         * lib/trigl.c: Likewise.
116         * lib/cosl.c: Likewise. Fix comments.
117
118 2012-02-28  Bruno Haible  <bruno@clisp.org>
119
120         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
121         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
122         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
123         HUGE_VALL are defined.
124         (numeric_equald): Renamed from numeric_equal.
125         (numeric_equalf, numeric_equall): New functions.
126         (main): Check also HUGE_VALF, HUGE_VALL.
127         * modules/math-tests (Files): Add tests/macros.h.
128         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
129         HUGE_VALL.
130
131 2012-02-28  Bruno Haible  <bruno@clisp.org>
132
133         doc: Move ISO C11 feature notes into POSIX chapters.
134         * doc/posix-functions/aligned_alloc.texi: Renamed from
135         doc/glibc-functions/aligned_alloc.texi.
136         * doc/posix-functions/quick_exit.texi: Renamed from
137         doc/glibc-functions/quick_exit.texi.
138         * doc/posix-headers/uchar.texi: Renamed from
139         doc/glibc-headers/uchar.texi.
140         * doc/posix-functions/c16rtomb.texi: Renamed from
141         doc/glibc-functions/c16rtomb.texi.
142         * doc/posix-functions/c32rtomb.texi: Renamed from
143         doc/glibc-functions/c32rtomb.texi.
144         * doc/posix-functions/mbrtoc16.texi: Renamed from
145         doc/glibc-functions/mbrtoc16.texi.
146         * doc/posix-functions/mbrtoc32.texi: Renamed from
147         doc/glibc-functions/mbrtoc32.texi.
148         * doc/gnulib.texi: Update.
149         (Glibc uchar.h): Remove section.
150         Suggested by Eric Blake.
151
152 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
153
154         stdnoreturn: port to MSVC better
155         MSVC standard headers use __declspec(noreturn), so #define noreturn
156         to empty on that platform.  Reported by Bruno Haible in
157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
158         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
159         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
160
161 2012-02-28  Bruno Haible  <bruno@clisp.org>
162
163         doc: Mention new glibc headers and functions.
164         * doc/glibc-headers/uchar.texi: New file.
165         * doc/glibc-functions/aligned_alloc.texi: New file.
166         * doc/glibc-functions/c16rtomb.texi: New file.
167         * doc/glibc-functions/c32rtomb.texi: New file.
168         * doc/glibc-functions/clock_adjtime.texi: New file.
169         * doc/glibc-functions/fanotify_init.texi: New file.
170         * doc/glibc-functions/fanotify_mark.texi: New file.
171         * doc/glibc-functions/inet6_opt_append.texi: New file.
172         * doc/glibc-functions/inet6_opt_find.texi: New file.
173         * doc/glibc-functions/inet6_opt_finish.texi: New file.
174         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
175         * doc/glibc-functions/inet6_opt_init.texi: New file.
176         * doc/glibc-functions/inet6_opt_next.texi: New file.
177         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
178         * doc/glibc-functions/inet6_rth_add.texi: New file.
179         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
180         * doc/glibc-functions/inet6_rth_init.texi: New file.
181         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
182         * doc/glibc-functions/inet6_rth_segments.texi: New file.
183         * doc/glibc-functions/inet6_rth_space.texi: New file.
184         * doc/glibc-functions/login.texi: New file.
185         * doc/glibc-functions/mbrtoc16.texi: New file.
186         * doc/glibc-functions/mbrtoc32.texi: New file.
187         * doc/glibc-functions/name_to_handle_at.texi: New file.
188         * doc/glibc-functions/ntp_gettimex.texi: New file.
189         * doc/glibc-functions/open_by_handle_at.texi: New file.
190         * doc/glibc-functions/prlimit.texi: New file.
191         * doc/glibc-functions/process_vm_readv.texi: New file.
192         * doc/glibc-functions/process_vm_writev.texi: New file.
193         * doc/glibc-functions/recvmmsg.texi: New file.
194         * doc/glibc-functions/scandirat.texi: New file.
195         * doc/glibc-functions/sendmmsg.texi: New file.
196         * doc/glibc-functions/setns.texi: New file.
197         * doc/glibc-functions/timespec_get.texi: New file.
198         * doc/gnulib.texi: Include them.
199         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
200         sections.
201         Reported by Eric Blake.
202
203 2012-02-28  Bruno Haible  <bruno@clisp.org>
204
205         Avoid compilation errors with MSVC option -fp:strict.
206         * lib/floor.c: Use MSVC specific pragma fenv_access.
207         * lib/ceil.c: Likewise.
208         * lib/trunc.c: Likewise.
209         * lib/round.c: Likewise.
210         * lib/rint.c: Likewise.
211         * lib/fma.c: Likewise.
212         * lib/integer_length.c: Likewise.
213         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
214         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
215         * tests/test-floor2.c: Likewise.
216         * tests/test-floorf2.c: Likewise.
217         * tests/test-ceil2.c: Likewise.
218         * tests/test-ceilf2.c: Likewise.
219         * tests/test-trunc2.c: Likewise.
220         * tests/test-truncf2.c: Likewise.
221         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
222
223 2012-02-27  Bruno Haible  <bruno@clisp.org>
224
225         Tests for module 'sqrtl-ieee'.
226         * modules/sqrtl-ieee-tests: New file.
227         * tests/test-sqrtl-ieee.c: New file.
228
229         New module 'sqrtl-ieee'.
230         * modules/sqrtl-ieee: New file.
231
232         Tests for module 'sqrt-ieee'.
233         * modules/sqrt-ieee-tests: New file.
234         * tests/test-sqrt-ieee.c: New file.
235
236         New module 'sqrt-ieee'.
237         * modules/sqrt-ieee: New file.
238
239         Tests for module 'sqrtf-ieee'.
240         * modules/sqrtf-ieee-tests: New file.
241         * tests/test-sqrtf-ieee.c: New file.
242         * tests/test-sqrt-ieee.h: New file.
243
244         New module 'sqrtf-ieee'.
245         * modules/sqrtf-ieee: New file.
246
247 2012-02-27  Bruno Haible  <bruno@clisp.org>
248
249         remainderl-ieee: Work around test failure on OSF/1.
250         * m4/remainderl-ieee.m4: New file.
251         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
252         present, test whether remainderl works with a zero second argument.
253         Replace it if not.
254         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
256         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
257         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
258         (Depends-on): Update conditions.
259         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
260         (Depends-on): Add remainder-ieee.
261         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
262         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
263         module.
264
265         remainderf-ieee: Work around test failure on OSF/1.
266         * m4/remainderf-ieee.m4: New file.
267         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
268         present, test whether remainderf works with a zero second argument.
269         Replace it if not.
270         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
272         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
273         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
274         (Depends-on): Update conditions.
275         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
276         (Depends-on): Add remainder-ieee.
277         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
278         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
279         module.
280
281         remainder-ieee: Work around test failure on OSF/1.
282         * m4/remainder-ieee.m4: New file.
283         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
284         present, test whether remainder works with a zero second argument.
285         Replace it if not.
286         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
288         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
289         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
290         (Depends-on): Update dependencies.
291         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
292         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
293         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
294
295         Tests for module 'remainderl-ieee'.
296         * modules/remainderl-ieee-tests: New file.
297         * tests/test-remainderl-ieee.c: New file.
298
299         New module 'remainderl-ieee'.
300         * modules/remainderl-ieee: New file.
301
302         Tests for module 'remainder-ieee'.
303         * modules/remainder-ieee-tests: New file.
304         * tests/test-remainder-ieee.c: New file.
305
306         New module 'remainder-ieee'.
307         * modules/remainder-ieee: New file.
308
309         Tests for module 'remainderf-ieee'.
310         * modules/remainderf-ieee-tests: New file.
311         * tests/test-remainderf-ieee.c: New file.
312         * tests/test-remainder-ieee.h: New file.
313
314         New module 'remainderf-ieee'.
315         * modules/remainderf-ieee: New file.
316
317 2012-02-27  Bruno Haible  <bruno@clisp.org>
318
319         modff, modfl: Fix configure syntax error.
320         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
321         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
322
323 2012-02-27  Bruno Haible  <bruno@clisp.org>
324
325         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
326         * m4/fmodl-ieee.m4: New file.
327         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
328         whether fmodl works with zero arguments. Replace it if not.
329         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
330         (Depends-on): Add fmod-ieee.
331         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
332         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
333
334         fmodf-ieee: Work around test failure on OSF/1.
335         * m4/fmodf-ieee.m4: New file.
336         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
337         whether fmodf works with zero arguments. Replace it if not.
338         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
340         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
341         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
342         (Depends-on): Update dependencies.
343         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
344         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
345         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
346
347         fmodf-ieee: Work around test failure on MSVC 9.
348         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
349         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
350
351         fmod-ieee: Work around test failures on OSF/1, mingw.
352         * m4/fmod-ieee.m4: New file.
353         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
354         whether fmod works with zero arguments. Replace it if not.
355         * lib/math.in.h (fmod): New declaration.
356         * lib/fmod.c: New file.
357         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
359         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
360         * modules/fmod (Files): Add lib/fmod.c.
361         (Depends-on): Add math, isinf, trunc, fma.
362         (configure.ac): Arrange to compile lib/fmod.c if needed.
363         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
364         m4/signbit.m4.
365         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
366         * tests/test-math-c++.cc: Check the declaration of fmod.
367         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
368
369         fmodl-ieee: Fix test failures.
370         * lib/fmodl.c (fmodl): Treat Inf specially.
371         * modules/fmodl (Depends-on): Add isinf.
372
373         Tests for module 'fmodl-ieee'.
374         * modules/fmodl-ieee-tests: New file.
375         * tests/test-fmodl-ieee.c: New file.
376
377         New module 'fmodl-ieee'.
378         * modules/fmodl-ieee: New file.
379
380         Tests for module 'fmod-ieee'.
381         * modules/fmod-ieee-tests: New file.
382         * tests/test-fmod-ieee.c: New file.
383
384         New module 'fmod-ieee'.
385         * modules/fmod-ieee: New file.
386
387         Tests for module 'fmodf-ieee'.
388         * modules/fmodf-ieee-tests: New file.
389         * tests/test-fmodf-ieee.c: New file.
390         * tests/test-fmod-ieee.h: New file.
391
392         New module 'fmodf-ieee'.
393         * modules/fmodf-ieee: New file.
394
395 2012-02-27  Bruno Haible  <bruno@clisp.org>
396
397         Tests for module 'rintl-ieee'.
398         * modules/rintl-ieee-tests: New file.
399         * tests/test-rintl-ieee.c: New file.
400
401         New module 'rintl-ieee'.
402         * modules/rintl-ieee: New file.
403
404         Tests for module 'rint-ieee'.
405         * modules/rint-ieee-tests: New file.
406         * tests/test-rint-ieee.c: New file.
407
408         New module 'rint-ieee'.
409         * modules/rint-ieee: New file.
410
411         Tests for module 'rintf-ieee'.
412         * modules/rintf-ieee-tests: New file.
413         * tests/test-rintf-ieee.c: New file.
414         * tests/test-rint-ieee.h: New file.
415
416         New module 'rintf-ieee'.
417         * modules/rintf-ieee: New file.
418
419 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
420
421         regex: re_search etc. should return -2 when memory exhausted
422         This bug was uncovered when testing 'grep'.  Without the fix,
423         re_search and friends return -1 when memory is exhausted, but -1
424         means no match, and this causes grep to falsely report no-match
425         instead of memory-exhaustion.  See
426         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
427         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
428         trouble; this can occur if re_search_internal ran out of memory.
429
430 2012-02-26  Bruno Haible  <bruno@clisp.org>
431
432         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
433         * m4/modfl-ieee.m4: New file.
434         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
435         whether modfl works with Inf. Replace it if not.
436         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
438         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
439         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
440         (Depends-on): Update dependencies.
441         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
442         m4/signbit.m4.
443         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
444         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
445
446         modfl-ieee: Fix dependencies.
447         * modules/modfl-ieee (Depends-on): Add modf-ieee.
448
449         modfl-ieee: Fix test failures.
450         * lib/modfl.c (modfl): Treat NaN and Inf specially.
451         * modules/modfl (Depends-on): Add isfinite, isinf.
452
453         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
454         * m4/modff-ieee.m4: New file.
455         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
456         whether modff works with NaN and Inf. Replace it if not.
457         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
459         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
460         * modules/modff (configure.ac): Consider REPLACE_MODFF.
461         (Depends-on): Update dependencies.
462         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
463         m4/signbit.m4.
464         (Depends-on): Add modf-ieee.
465         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
466         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
467
468         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
469         * m4/modf-ieee.m4: New file.
470         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
471         whether modf works with NaN and Inf. Replace it if not.
472         * lib/math.in.h (modf): New declaration.
473         * lib/modf.c: New file.
474         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
476         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
477         * modules/modf (Files): Add lib/modf.c.
478         (Depends-on): Add math, isfinite, trunc, isinf.
479         (configure.ac): Addrange to compile lib/modf.c if needed.
480         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
481         m4/signbit.m4.
482         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
483         * tests/test-math-c++.cc: Check the declaration of modf.
484         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
485
486         Tests for module 'modfl-ieee'.
487         * modules/modfl-ieee-tests: New file.
488         * tests/test-modfl-ieee.c: New file.
489
490         New module 'modfl-ieee'.
491         * modules/modfl-ieee: New file.
492
493         Tests for module 'modf-ieee'.
494         * modules/modf-ieee-tests: New file.
495         * tests/test-modf-ieee.c: New file.
496
497         New module 'modf-ieee'.
498         * modules/modf-ieee: New file.
499
500         Tests for module 'modff-ieee'.
501         * modules/modff-ieee-tests: New file.
502         * tests/test-modff-ieee.c: New file.
503         * tests/test-modf-ieee.h: New file.
504
505         New module 'modff-ieee'.
506         * modules/modff-ieee: New file.
507
508 2012-02-26  Bruno Haible  <bruno@clisp.org>
509
510         Tests for module 'fabsl-ieee'.
511         * modules/fabsl-ieee-tests: New file.
512         * tests/test-fabsl-ieee.c: New file.
513
514         New module 'fabsl-ieee'.
515         * modules/fabsl-ieee: New file.
516
517         Tests for module 'fabs-ieee'.
518         * modules/fabs-ieee-tests: New file.
519         * tests/test-fabs-ieee.c: New file.
520
521         New module 'fabs-ieee'.
522         * modules/fabs-ieee: New file.
523
524         Tests for module 'fabsf-ieee'.
525         * modules/fabsf-ieee-tests: New file.
526         * tests/test-fabsf-ieee.c: New file.
527         * tests/test-fabs-ieee.h: New file.
528
529         New module 'fabsf-ieee'.
530         * modules/fabsf-ieee: New file.
531
532 2012-02-26  Bruno Haible  <bruno@clisp.org>
533
534         Tests for module 'fmal-ieee'.
535         * modules/fmal-ieee-tests: New file.
536         * tests/test-fmal-ieee.c: New file.
537
538         New module 'fmal-ieee'.
539         * modules/fmal-ieee: New file.
540
541         Tests for module 'fma-ieee'.
542         * modules/fma-ieee-tests: New file.
543         * tests/test-fma-ieee.c: New file.
544
545         New module 'fma-ieee'.
546         * modules/fma-ieee: New file.
547
548         Tests for module 'fmaf-ieee'.
549         * modules/fmaf-ieee-tests: New file.
550         * tests/test-fmaf-ieee.c: New file.
551         * tests/test-fma-ieee.h: New file.
552
553         New module 'fmaf-ieee'.
554         * modules/fmaf-ieee: New file.
555
556 2012-02-26  Bruno Haible  <bruno@clisp.org>
557
558         Tests for module 'ldexpl-ieee'.
559         * modules/ldexpl-ieee-tests: New file.
560         * tests/test-ldexpl-ieee.c: New file.
561
562         New module 'ldexpl-ieee'.
563         * modules/ldexpl-ieee: New file.
564
565         Tests for module 'ldexp-ieee'.
566         * modules/ldexp-ieee-tests: New file.
567         * tests/test-ldexp-ieee.c: New file.
568
569         New module 'ldexp-ieee'.
570         * modules/ldexp-ieee: New file.
571
572         Tests for module 'ldexpf-ieee'.
573         * modules/ldexpf-ieee-tests: New file.
574         * tests/test-ldexpf-ieee.c: New file.
575         * tests/test-ldexp-ieee.h: New file.
576
577         New module 'ldexpf-ieee'.
578         * modules/ldexpf-ieee: New file.
579
580 2012-02-26  Bruno Haible  <bruno@clisp.org>
581
582         Refactor frexp*-ieee tests.
583         * tests/test-frexp-ieee.h: New file.
584         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
585         (main): Just call test_function.
586         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
587         (main): Just call test_function.
588         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
589         (main): Just call test_function.
590         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
591         * modules/frexp-ieee-tests (Files): Likewise.
592         * modules/frexpl-ieee-tests (Files): Likewise.
593
594         Tests for module 'frexpl-ieee'.
595         * modules/frexpl-ieee-tests: New file.
596         * tests/test-frexpl-ieee.c: New file.
597
598         New module 'frexpl-ieee'.
599         * modules/frexpl-ieee: New file.
600
601         Tests for module 'frexp-ieee'.
602         * modules/frexp-ieee-tests: New file.
603         * tests/test-frexp-ieee.c: New file.
604
605         New module 'frexp-ieee'.
606         * modules/frexp-ieee: New file.
607
608         Tests for module 'frexpf-ieee'.
609         * modules/frexpf-ieee-tests: New file.
610         * tests/test-frexpf-ieee.c: New file.
611
612         New module 'frexpf-ieee'.
613         * modules/frexpf-ieee: New file.
614
615 2012-02-26  Bruno Haible  <bruno@clisp.org>
616
617         roundl-ieee tests: More tests.
618         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
619         (main): Add tests for [MX] shaded specification in POSIX.
620         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
621         (Depends-on): Add isnanl-nolibm.
622
623         round-ieee tests: More tests.
624         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
625         (main): Add tests for [MX] shaded specification in POSIX.
626         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
627         (Depends-on): Add isnand-nolibm.
628
629         roundf-ieee tests: More tests.
630         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
631         (main): Add tests for [MX] shaded specification in POSIX.
632         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
633         (Depends-on): Add isnanf-nolibm.
634
635         truncl-ieee tests: More tests.
636         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
637         (main): Add tests for [MX] shaded specification in POSIX.
638         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
639         (Depends-on): Add isnanl-nolibm.
640
641         trunc-ieee tests: More tests.
642         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
643         (main): Add tests for [MX] shaded specification in POSIX.
644         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
645         (Depends-on): Add isnand-nolibm.
646
647         truncf-ieee tests: More tests.
648         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
649         (main): Add tests for [MX] shaded specification in POSIX.
650         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
651         (Depends-on): Add isnanf-nolibm.
652
653         ceill-ieee tests: More tests.
654         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
655         (main): Add tests for [MX] shaded specification in POSIX.
656         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
657         (Depends-on): Add isnanl-nolibm.
658
659         ceil-ieee tests: More tests.
660         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
661         (main): Add tests for [MX] shaded specification in POSIX.
662         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
663         (Depends-on): Add isnand-nolibm.
664
665         ceilf-ieee tests: More tests.
666         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
667         (main): Add tests for [MX] shaded specification in POSIX.
668         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
669         (Depends-on): Add isnanf-nolibm.
670
671         floorl-ieee tests: More tests.
672         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
673         (main): Add tests for [MX] shaded specification in POSIX.
674         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
675         (Depends-on): Add isnanl-nolibm.
676
677         floor-ieee tests: More tests.
678         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
679         (main): Add tests for [MX] shaded specification in POSIX.
680         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
681         (Depends-on): Add isnand-nolibm.
682
683         floorf-ieee tests: More tests.
684         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
685         (main): Add tests for [MX] shaded specification in POSIX.
686         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
687         (Depends-on): Add isnanf-nolibm.
688
689 2012-02-26  Bruno Haible  <bruno@clisp.org>
690
691         fpieee: More comments.
692         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
693
694 2012-02-25  Bruno Haible  <bruno@clisp.org>
695
696         Tests for module 'log10l'.
697         * modules/log10l-tests: New file.
698         * tests/test-log10l.c: New file.
699         * tests/test-math-c++.cc: Check the declaration of log10l.
700
701         New module 'log10l'.
702         * lib/math.in.h (log10l): New declaration.
703         * lib/log10l.c: New file.
704         * m4/log10l.m4: New file.
705         * modules/log10l: New file.
706         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
708         HAVE_DECL_LOG10L.
709         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
710         HAVE_DECL_LOG10L.
711         * doc/posix-functions/log10l.texi: Mention the new module.
712
713 2012-02-25  Bruno Haible  <bruno@clisp.org>
714
715         fmodl, remainder*: Avoid wrong results due to rounding errors.
716         * lib/fmodl.c (fmodl): Correct the result if it is not within the
717         expected bounds.
718         * lib/remainderf.c (remainderf): Likewise.
719         * lib/remainder.c (remainder): Likewise.
720         * lib/remainderl.c (remainderl): Likewise.
721
722 2012-02-25  Bruno Haible  <bruno@clisp.org>
723
724         Tests for module 'remainderl'.
725         * modules/remainderl-tests: New file.
726         * tests/test-remainderl.c: New file.
727         * tests/test-math-c++.cc: Check the declaration of remainderl.
728
729         New module 'remainderl'.
730         * lib/math.in.h (remainderl): New declaration.
731         * lib/remainderl.c: New file.
732         * m4/remainderl.m4: New file.
733         * modules/remainderl: New file.
734         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
736         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
737         HAVE_REMAINDERL.
738         * doc/posix-functions/remainderl.texi: Mention the new module.
739
740 2012-02-25  Bruno Haible  <bruno@clisp.org>
741
742         Tests for module 'remainderf'.
743         * modules/remainderf-tests: New file.
744         * tests/test-remainderf.c: New file.
745         * tests/test-math-c++.cc: Check the declaration of remainderf.
746
747         New module 'remainderf'.
748         * lib/math.in.h (remainderf): New declaration.
749         * lib/remainderf.c: New file.
750         * m4/remainderf.m4: New file.
751         * modules/remainderf: New file.
752         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
754         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
755         HAVE_REMAINDERF.
756         * doc/posix-functions/remainderf.texi: Mention the new module.
757
758 2012-02-25  Bruno Haible  <bruno@clisp.org>
759
760         remainder: Support for MSVC.
761         * lib/math.in.h (remainder): New declaration.
762         * lib/remainder.c: New file.
763         * m4/remainder.m4: New file.
764         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
765         (Depends-on): Add math, round, fma.
766         (configure.ac): Use results of gl_FUNC_REMAINDER.
767         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
769         HAVE_DECL_REMAINDER.
770         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
771         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
772         * tests/test-math-c++.cc: Check the declaration of remainder.
773         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
774         problems are fixed.
775
776 2012-02-25  Bruno Haible  <bruno@clisp.org>
777
778         Tests for module 'fmodl'.
779         * modules/fmodl-tests: New file.
780         * tests/test-fmodl.c: New file.
781         * tests/test-math-c++.cc: Check the declaration of fmodl.
782
783         New module 'fmodl'.
784         * lib/math.in.h (fmodl): New declaration.
785         * lib/fmodl.c: New file.
786         * m4/fmodl.m4: New file.
787         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
789         REPLACE_FMODL.
790         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
791         REPLACE_FMODL.
792         * modules/fmodl: New file.
793         * doc/posix-functions/fmodl.texi: Mention the new module.
794
795 2012-02-25  Bruno Haible  <bruno@clisp.org>
796
797         Tests for module 'modfl'.
798         * modules/modfl-tests: New file.
799         * tests/test-modfl.c: New file.
800         * tests/test-math-c++.cc: Check the declaration of modfl.
801
802         New module 'modfl'.
803         * lib/math.in.h (modfl): New declaration.
804         * lib/modfl.c: New file.
805         * m4/modfl.m4: New file.
806         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
808         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
809         * modules/modfl: New file.
810         * doc/posix-functions/modfl.texi: Mention the new module.
811
812 2012-02-25  Bruno Haible  <bruno@clisp.org>
813
814         Tests for module 'fabsl'.
815         * modules/fabsl-tests: New file.
816         * tests/test-fabsl.c: New file.
817         * tests/test-math-c++.cc: Check the declaration of fabsl.
818
819         New module 'fabsl'.
820         * lib/math.in.h (fabsl): New declaration.
821         * lib/fabsl.c: New file.
822         * m4/fabsl.m4: New file.
823         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
825         REPLACE_FABSL.
826         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
827         REPLACE_FABSL.
828         * modules/fabsl: New file.
829         * doc/posix-functions/fabsl.texi: Mention the new module.
830
831 2012-02-25  Bruno Haible  <bruno@clisp.org>
832
833         fabs tests: More tests.
834         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
835         (zero): New variable.
836         (main): Add tests for signed zero.
837         * modules/fabs-tests (Files): Add tests/minus-zero.h.
838
839         fabsf tests: More tests.
840         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
841         (zero): New variable.
842         (main): Add tests for signed zero.
843         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
844
845 2012-02-24  Bruno Haible  <bruno@clisp.org>
846
847         atanl: Provide function definition on MSVC.
848         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
849         function pointer.
850         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
851
852 2012-02-24  Bruno Haible  <bruno@clisp.org>
853
854         acosl: Provide function definition on MSVC.
855         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
856         function pointer.
857         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
858
859 2012-02-24  Bruno Haible  <bruno@clisp.org>
860
861         asinl: Provide function definition on MSVC.
862         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
863         function pointer.
864         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
865
866 2012-02-24  Bruno Haible  <bruno@clisp.org>
867
868         tanl: Provide function definition on MSVC.
869         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
870         function pointer.
871         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
872
873 2012-02-24  Bruno Haible  <bruno@clisp.org>
874
875         cosl: Provide function definition on MSVC.
876         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
877         function pointer.
878         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
879
880 2012-02-24  Bruno Haible  <bruno@clisp.org>
881
882         sinl: Provide function definition on MSVC.
883         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
884         function pointer.
885         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
886
887 2012-02-24  Bruno Haible  <bruno@clisp.org>
888
889         logl: Provide function definition on MSVC.
890         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
891         function pointer.
892         * lib/math.in.h (logl): Undefine if it does not exist as a function.
893
894 2012-02-24  Bruno Haible  <bruno@clisp.org>
895
896         expl: Provide function definition on MSVC.
897         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
898         function pointer.
899         * lib/math.in.h (expl): Undefine if it does not exist as a function.
900
901 2012-02-24  Bruno Haible  <bruno@clisp.org>
902
903         sqrtl: Provide function definition on MSVC.
904         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
905         a function pointer.
906         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
907
908 2012-02-24  Bruno Haible  <bruno@clisp.org>
909
910         ceill: Provide function definition on MSVC.
911         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
912         used as a function pointer.
913         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
914
915 2012-02-24  Bruno Haible  <bruno@clisp.org>
916
917         floorl: Provide function definition on MSVC.
918         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
919         used as a function pointer.
920         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
921
922 2012-02-24  Bruno Haible  <bruno@clisp.org>
923
924         ceilf: Provide function definition on MSVC.
925         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
926         used as a function pointer.
927         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
928
929 2012-02-24  Bruno Haible  <bruno@clisp.org>
930
931         floorf: Provide function definition on MSVC.
932         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
933         used as a function pointer.
934         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
935
936 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
937
938         stdnoreturn: new module
939         This implements a replacement for C11's <stdnoreturn.h>.
940         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
941         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
942         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
943         * tests/test-stdnoreturn.c: New files.
944
945 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
946
947         regex: fix false multibyte matches in some regular expressions
948         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
949         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
950         * lib/regex_internal.c (re_string_skip_chars):
951         Fix miscomputation of remain_len that may cause incomplete
952         multi-byte character and false match.
953
954 2012-02-24  Jim Meyering  <meyering@redhat.com>
955
956         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
957         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
958         uses with "==" *before* the call, e.g., 0 == strcmp (...)
959         Remove now-unnecessary str''cmp obfuscation.
960         Suggested by Akim Demaille.
961
962 2012-02-24  Bruno Haible  <bruno@clisp.org>
963
964         streq: Rename macro.
965         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
966         * NEWS: Mention the change.
967         * lib/mbrtowc.c (mbrtowc): Update.
968         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
969         * lib/wcwidth.c (wcwidth): Update.
970         Suggested by Akim Demaille and Jim Meyering.
971
972 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
973
974         regex: fix typo in definition of MIN
975         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
976         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
977
978 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
979             Bruno Haible  <bruno@clisp.org>
980
981         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
982         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
983         entries into a stack-allocated buffer directly.
984         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
985
986 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
987             Bruno Haible  <bruno@clisp.org>
988
989         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
990
991          - There were several instances of this pattern:
992
993              for (;;) {
994                n = acl (f, GETACLCNT, 0, NULL);
995                [ allocate an array A of size N ]
996                if (acl (f, GETACL, n, a) == n)
997                  break;
998              }
999
1000            This loop might never terminate if some other process is constantly
1001            manipulating the file's ACL.  The loop should be rewritten to
1002            terminate.
1003
1004          - The acl (... GETACLNT ...) call is merely an optimization; its value
1005            is merely a hint as to how big to make the array.  A better
1006            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
1007            and just guess a reasonably-big size, growing the size and trying
1008            again if it's not large enough.  This guarantees termination, and
1009            saves a system call.
1010
1011         * lib/acl-internal.h: Include <limits.h>.
1012         (MIN, SIZE_MAX): New macros.
1013         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
1014         a stack-allocated buffer, and use malloc if it does not fit. Don't
1015         use GETACLCNT.
1016         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1017
1018 2012-02-19  Bruno Haible  <bruno@clisp.org>
1019
1020         acl: Fix endless loop on Solaris with vxfs.
1021         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
1022         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
1023         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1024         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
1025         * tests/test-sameacls.c (main)[Solaris]: Likewise.
1026         Reported by Bill Jones in
1027         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
1028
1029 2012-02-19  Bruno Haible  <bruno@clisp.org>
1030
1031         acl: Fix copy-acl test failure on Solaris 11 2011-11.
1032         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
1033         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
1034         that this function returns 0 in some more cases.
1035
1036 2012-02-19  Bruno Haible  <bruno@clisp.org>
1037
1038         acl: Update doc references.
1039         * doc/acl-resources.txt: Update links to Solaris documentation.
1040
1041 2012-02-19  Bruno Haible  <bruno@clisp.org>
1042
1043         Fix test failure in many locales on Solaris 11.
1044         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
1045         'tr' arguments.
1046         * tests/test-pipe-filter-ii1.c (main): Likewise.
1047         * build-aux/bootstrap (check_versions): Run 'tr' command with range
1048         expressions in the C locale.
1049         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1050         * m4/host-os.m4 (gl_HOST_OS): Likewise.
1051
1052 2012-02-19  Bruno Haible  <bruno@clisp.org>
1053
1054         gnulib-tool: Improve usage message.
1055         * gnulib-tool (func_usage): Move doc of --help and --version to the
1056         section "Operation modes".
1057
1058 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
1059
1060         README-release: make it easier to execute commands
1061         * top/README-release: break commands out on to separate lines.
1062
1063 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1064
1065         GNUmakefile: simplify detection of unconfigured trees
1066         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
1067         whether the tree make is being run from is already configured or
1068         not.  Related simplifications.
1069
1070 2012-02-13  Simon Josefsson  <simon@josefsson.org>
1071
1072         * gnulib-tool (func_usage): Document --help and --version.
1073
1074 2012-02-11  Jim Meyering  <meyering@redhat.com>
1075
1076         bootstrap: don't exit 0 upon gnulib-tool failure
1077         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
1078         its exit status, not 0.
1079
1080 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
1081
1082         README-release: various improvements
1083         * top/README-release: Give a command to push changes for the
1084         release.  Add "distcheck" to list of other pre-release checks.
1085         Fix instance of "make stable" which should be "make TYPE".
1086
1087 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         maint: replace FSF snail-mail addresses with URLs
1090         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
1091         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
1092         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
1093         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
1094         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
1095         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
1096         * lib/check-version.c, lib/check-version.h, lib/config.charset:
1097         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
1098         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
1099         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
1100         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
1101         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
1102         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
1103         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
1104         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
1105         * lib/glthread/thread.c, lib/glthread/thread.h:
1106         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
1107         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
1108         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
1109         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
1110         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
1111         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
1112         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
1113         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
1114         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
1115         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
1116         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
1117         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
1118         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
1119         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
1120         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
1121         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
1122         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
1123         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
1124         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
1125         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
1126         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
1127         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
1128         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
1129         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
1130         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
1131         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
1132         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
1133         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
1134         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
1135         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
1136         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
1137         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
1138         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
1139         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
1140         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
1141         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
1142         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
1143         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
1144         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
1145         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
1146         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
1147         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
1148         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
1149         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
1150         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
1151         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
1152         * tests/test-poll.c, tests/test-quotearg-simple.c:
1153         * tests/test-quotearg.c, tests/test-quotearg.h:
1154         * tests/test-round-ieee.c, tests/test-round1.c:
1155         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
1156         * tests/test-roundl-ieee.c, tests/test-roundl.c:
1157         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
1158         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
1159         * tests/test-strerror.c, tests/test-strerror_r.c:
1160         * tests/test-strsignal.c, tests/test-strverscmp.c:
1161         * tests/test-xmemdup0.c:
1162         Replace FSF snail mail addresses with URLs, as per GNU coding
1163         standards.  See glibc bug
1164         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
1165
1166 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1167
1168         README-release: capitalize a word and split a line
1169         * top/README-release: Fix punctuation and spacing.
1170
1171 2012-02-08  Akim Demaille  <demaille@gostai.com>
1172
1173         fatal-signal: use C prototypes (with explicit void).
1174         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1175         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
1176
1177 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1178
1179         regex: spelling fix
1180         * lib/regexec.c: spelling fix
1181
1182         regex: rely on stdint.h for SIZE_MAX
1183         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
1184
1185 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         regex: merge glibc changes
1188
1189         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
1190         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
1191         (init_word_char): Work even if bitset words are not exactly 32 or
1192         64 bits wide.  Don't assume there are no padding bits.
1193         * lib/regex.c [_LIBC]: Do not include <config.h>.
1194         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
1195         and -Wtype-limits.
1196         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
1197         needless disagreement with glibc.  All uses changed.  Define it to
1198         1 only if _GNU_SOURCE, to match glibc.
1199         (_REG_RM_NAME): Remove; no longer needed, since the names in
1200         question are now all protected by __USE_GNU.
1201         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
1202         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
1203         * lib/regex_internal.h (MIN): New macro.
1204
1205         2012-01-03 Ulrich Drepper <drepper@gmail.com>
1206         * lib/regcomp.c (init_word_char): Optimize regex a bit.
1207
1208         2011-12-30 Jakub Jelinek <jakub@redhat.com>
1209         * lib/regex_internal.c (re_string_fetch_byte_case):
1210         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
1211         is miscompiled, and it turns out it is because of an incorrect
1212         attribute on re_string_fetch_byte_case.  Unlike
1213         re_string_peek_byte_case, this one is really not pure, it modifies
1214         memory (increments pstr->cur_idx), and with the pure attribute GCC
1215         assumed it doesn't and it cached the presumed value of
1216         regexp->cur_idx in a variable across the
1217          for (;; ++i)
1218            {
1219              if (i >= BRACKET_NAME_BUF_SIZE)
1220                return REG_EBRACK;
1221              if (token->type == OP_OPEN_CHAR_CLASS)
1222                ch = re_string_fetch_byte_case (regexp);
1223              else
1224                ch = re_string_fetch_byte (regexp);
1225              if (re_string_eoi(regexp))
1226                return REG_EBRACK;
1227              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1228                break;
1229              elem->opr.name[i] = ch;
1230            }
1231
1232         2011-11-29 Andreas Schwab <schwab@redhat.com>
1233         * lib/regcomp.c (build_equiv_class):
1234         Fix access after end of search string in regex matcher.
1235
1236         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1237         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1238
1239         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1240         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1241
1242         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1243         * lib/regcomp.c (parse_branch, parse_sub_exp):
1244         More regex memory leak fixes and tests.
1245         (parse_sub_exp, parse_bracket_exp):
1246         Fix memory leak for some invalid regular expressions.
1247
1248         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1249         * lib/regex_internal.c, lib/regexec.c:
1250         Fix unnecessary overallocation due to incomplete character.  When
1251         incomplete characters are found at the end of a string the code
1252         ran amok and allocated lots of memory.  Stricter limits are now in
1253         place.
1254
1255         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1256         * lib/regex.h: Update documentation.
1257
1258         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1259         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1260
1261         2010-05-05 Andreas Schwab <schwab@redhat.com>
1262         * lib/regexec.c (find_collation_sequence_value):
1263         Fix lookup of collation sequence value during regexp matching.
1264
1265         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1266         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1267
1268         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1269         * lib/regex.h: Cleanup namespace.
1270
1271         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1272         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1273
1274         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1275         * lib/regex_internal.h: Prevent some declarations and definitions
1276         to be seen when used in tests.
1277
1278         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1279         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1280         __libc_lock_* macros if not _LIBC.
1281         (struct re_dfa_t): Add lock.
1282
1283 2012-02-07  Eric Blake  <eblake@redhat.com>
1284
1285         maint.mk: also prohibit lower-case @var@
1286         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1287         lower case, like @top_srcdir@.
1288
1289 2012-02-04  Eric Blake  <eblake@redhat.com>
1290
1291         canonicalize: avoid uninitialized memory use
1292         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1293         random '/' left in dest.
1294         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1295
1296 2012-02-04  Bruno Haible  <bruno@clisp.org>
1297
1298         isatty: Fix test failure of ptsname_r on native Windows.
1299         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1300         and don't set errno.
1301         (isatty): Test first whether fd is valid. Set errno when returning 0.
1302
1303 2012-02-04  Bruno Haible  <bruno@clisp.org>
1304
1305         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1306         * tests/test-spawn-pipe-main.c: Include progname.h.
1307         (main): Invoke set_program_name.
1308         * modules/spawn-pipe-tests (Depends-on): Add progname.
1309
1310         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1311         * tests/test-nonblocking-socket-main.c: Include progname.h.
1312         (main): Invoke set_program_name.
1313         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1314
1315         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1316         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1317         (main): Invoke set_program_name.
1318         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1319
1320 2012-02-04  Eric Blake  <eblake@redhat.com>
1321
1322         canonicalize-lgpl: fix // handling
1323         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1324
1325         canonicalize: fix // handling
1326         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1327         /// to //, since only // is special.
1328
1329 2012-02-04  Bruno Haible  <bruno@clisp.org>
1330
1331         ioctl: Fix test failure on native Windows.
1332         * lib/ioctl.c: Include msvc-nothrow.h.
1333         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1334
1335 2012-02-04  Bruno Haible  <bruno@clisp.org>
1336
1337         fsync: Avoid test failure on native Windows.
1338         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1339         read-only.
1340
1341 2012-02-04  Bruno Haible  <bruno@clisp.org>
1342
1343         sys_select: Avoid syntax error on OpenBSD 5.0.
1344         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1345         currently being included, just include the system's <sys/select.h>.
1346
1347 2012-02-04  Bruno Haible  <bruno@clisp.org>
1348
1349         sys_select: Avoid syntax error on OpenBSD 5.0.
1350         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1351         <sys/select.h>, not before.
1352         Reported by Jiri B <jirib@devio.us>.
1353
1354 2012-02-04  Bruno Haible  <bruno@clisp.org>
1355
1356         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1357         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1358         global variables.
1359         * tests/test-get-rusage-data.c (main): Likewise.
1360         Reported by Jim Meyering.
1361
1362 2012-02-04  Bruno Haible  <bruno@clisp.org>
1363
1364         stdioext: Fix last commit.
1365         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1366
1367 2012-02-03  Bruno Haible  <bruno@clisp.org>
1368
1369         stdioext: Add tentative support for Plan9.
1370         * lib/stdio-impl.h: Include <errno.h>.
1371         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1372         * lib/freadable.c (freadable): Likewise.
1373         * lib/fwritable.c (fwritable): Likewise.
1374         * lib/fbufmode.c (fbufmode): Likewise.
1375         * lib/freading.c (freading): Likewise.
1376         * lib/fwriting.c (fwriting): Likewise.
1377         * lib/freadptr.c (freadptr): Likewise.
1378         * lib/freadseek.c (freadptrinc): Likewise.
1379         * lib/freadahead.c (freadahead): Likewise.
1380         * lib/fpurge.c (fpurge): Likewise.
1381         * lib/fseeko.c (rpl_fseeko): Likewise.
1382         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1383         Reported by Jens Staal <staal1978@gmail.com>.
1384
1385 2012-02-02  Jim Meyering  <meyering@redhat.com>
1386
1387         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1388         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1389         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1390         not even to try to add the attribute.  Instead, add a pragma to suppress
1391         the suggestion/warning.
1392
1393 2012-01-31  Karl Berry  <karl@gnu.org>
1394
1395         setstate doc: typo.
1396         * doc/posix-functions/setstate.texi (setstate): { not (.
1397
1398 2012-01-31  Bruno Haible  <bruno@clisp.org>
1399
1400         popen: Make more robust on Windows.
1401         * lib/popen.c: On native Windows, use the _popen based code even if
1402         HAVE_POPEN is set.
1403         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1404         environment variable on native Windows.
1405
1406 2012-01-30  Bruno Haible  <bruno@clisp.org>
1407
1408         pclose: Fix typo.
1409         * lib/stdio.in.h (pclose): Fix typo in warning message.
1410
1411 2012-01-30  Bruno Haible  <bruno@clisp.org>
1412
1413         doc about getlogin_r, setstate.
1414         * doc/posix-functions/getlogin_r.texi: List the incompatible
1415         declaration problem under "not fixed by gnulib".
1416         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1417         problem on Solaris 11 and other platforms.
1418
1419 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1420             Bruno Haible  <bruno@clisp.org>
1421
1422         poll tests: Make test more robust.
1423         * tests/test-poll.c: Include macros.h.
1424         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1425         return value of various I/O operations.
1426         * modules/poll-tests (Files): Add tests/macros.h.
1427
1428 2012-01-30  Bruno Haible  <bruno@clisp.org>
1429
1430         sys_stat: Fix support for mingw64 and MSVC.
1431         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1432         header files already do it.
1433         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1434         stat itself.
1435         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1436
1437 2012-01-30  Bruno Haible  <bruno@clisp.org>
1438
1439         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1441         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1442
1443 2012-01-29  Bruno Haible  <bruno@clisp.org>
1444
1445         quotearg: Fix test failure on MacOS X 10.5.
1446         * tests/test-quotearg-simple.c: Include localcharset.h.
1447         (main): If the locale encoding is not ASCII, bypass the tests of
1448         locale_quoting_style and clocale_quoting_style.
1449         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1450
1451 2012-01-29  Jim Meyering  <meyering@redhat.com>
1452
1453         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1454         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1455         detect uses of canonicalize_file_name.
1456
1457 2012-01-28  Bruno Haible  <bruno@clisp.org>
1458
1459         test-framework-sh: Fix test failure with AIX 7.1 diff.
1460         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1461         in column 1, like 'diff -c' does.
1462         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1463         whether 'diff -u' is used. Instead, test whether the output contains
1464         some '@' character.
1465
1466 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         strtoimax: eliminate need for stdint.h, inttypes.h checks
1469         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1470         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1471         the prerequisites for a recently-introduced strtoimax test.
1472         I guess this might cause strtoimax to be replaced when not
1473         strictly necessary on older hosts, but this shouldn't introduce
1474         any bugs and it should make Emacs 'configure' faster on typical
1475         modern hosts.  Problem discovered when importing the latest gnulib
1476         to an Emacs test version.
1477         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1478
1479 2012-01-28  Bruno Haible  <bruno@clisp.org>
1480
1481         sys_time: Override 'struct timeval' on some native Windows platforms.
1482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1483         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1484         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1485         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1486         needs to be overridden.
1487         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1488         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1489         * tests/test-sys_select.c: Check that the tv_sec member has the same
1490         size as a 'time_t'.
1491         * tests/test-sys_time.c: Likewise.
1492         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1493         is set, set also REPLACE_GETTIMEOFDAY.
1494         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1495         convert the resulting 'struct timeval' before returning.
1496         * lib/select.c: Include <sys/time.h>.
1497         (select, timeval): Undefine at the right place.
1498         * modules/select (Depends-on): Add sys_time.
1499         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1500         some Windows platforms.
1501         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1502
1503 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1504
1505         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1506         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1507         an integer.
1508         * lib/fcntl.c (dupfd): Likewise.
1509         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1510
1511 2012-01-28  Bruno Haible  <bruno@clisp.org>
1512
1513         fcntl: Avoid compilation error on native Windows.
1514         * modules/fcntl (Depends-on): Add 'close'.
1515
1516 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1517
1518         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1519         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1520         pointer to an integer.
1521         * lib/poll.c (IsConsoleHandle): Likewise.
1522         * lib/isatty.c (IsConsoleHandle): Likewise.
1523
1524 2012-01-28  Jim Meyering  <meyering@redhat.com>
1525
1526         doc: clarify README-release
1527         * top/README-release: Clarify: you should make a point to have
1528         the latest stable versions of build tools in your PATH, and the
1529         reference to buildreq is solely for its list of tool names, not
1530         for its minimal-functional version numbers.
1531         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1532
1533         maint.mk: use more readable (yet functionally equivalent) quoting
1534         It is common to quote a single quote in a single quoted string like
1535         this:  '...'\''...'.  Unless you know the idiom, that looks like
1536         gibberish, so prefer to double-quote the string when possible.
1537         Then you can use a more readable, lone single quote: "...'..."
1538         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1539         "don't" is more readable than the equivalent 'don'\''t'.
1540         (sc_cast_of_x_alloc_return_value): Likewise.
1541         (sc_cast_of_alloca_return_value): Likewise.
1542         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1543         rather than '\'':'\''.
1544
1545 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         stdalign: relax _Alignof and tighten _Alignas test
1548         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1549         as it was too strict: alignof must divide offsetof, but it need
1550         not equal offsetof.  Inspired by Joseph S. Myers's comment
1551         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1552         Conversely, tighten the _Alignas test a bit, as the resulting
1553         alignment must be exactly 8.
1554
1555 2012-01-27  Bruno Haible  <bruno@clisp.org>
1556
1557         stdalign: Document the last change.
1558         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1559
1560 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1561
1562         stdalign: check that alignof and offsetof are consistent
1563         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1564         Problem reported for gnulib by Richard W.M. Jones in
1565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1566
1567 2012-01-27  Jim Meyering  <meyering@redhat.com>
1568
1569         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1570         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1571         convert a sequence with gaps to the minimal containing range.
1572         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1573         * tests/test-update-copyright.sh: Test for this.
1574         The FSF confirmed it is ok to do this, assuming there is at
1575         least one significant change per year in the affected range:
1576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1577
1578 2012-01-26  Bruno Haible  <bruno@clisp.org>
1579
1580         pipe2: refine doc about thread-safety
1581         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1582         multithread-safety problem.
1583         * doc/glibc-functions/accept4.texi: Likewise.
1584
1585 2012-01-26  Bruno Haible  <bruno@clisp.org>
1586
1587         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1588         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1589         In the test program, include <fcntl.h>, for O_RDONLY.
1590
1591 2012-01-26  Eric Blake  <eblake@redhat.com>
1592
1593         pipe2: document lack of thread-safety in replacement
1594         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1595         issue in replacement.
1596         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1597         Based on a report by Eric Wong.
1598
1599 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1600             Bruno Haible  <bruno@clisp.org>
1601
1602         malloca: Avoid warnings on x86_64 mingw64.
1603         * lib/malloca.c: Include <stdint.h>.
1604         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1605         * modules/malloca (Depends-on): Add stdint.
1606         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1607
1608 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         obstack: remove __STDC__ conditionals
1611         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1612         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1613         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1614         m4/include_next.m4 as the only gnulib-maintained places that still
1615         refer to __STDC__.
1616
1617 2012-01-24  Bruno Haible  <bruno@clisp.org>
1618
1619         havelib: Modern quoting.
1620         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1621         the recent change to the GNU coding standards.
1622
1623 2012-01-24  Bruno Haible  <bruno@clisp.org>
1624
1625         stdint: Improve support for Android.
1626         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1627         Reported by Simon Josefsson <simon@josefsson.org>.
1628
1629 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1630
1631         doc: omit trailing empty lines from INSTALL etc.
1632         * doc/Makefile (INSTALL): Omit trailing empty lines.
1633         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1634         omit trailing empty lines.  This simplifies the build procedure.
1635
1636 2012-01-23  Jim Meyering  <meyering@redhat.com>
1637
1638         tests: avoid spurious warnings about gl_sockets_startup
1639         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1640         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1641         reporting a "statement with no effect".
1642         * tests/test-accept.c (main): Mark as "(void)".
1643         * tests/test-accept4.c (main): Likewise.
1644         * tests/test-bind.c (main): Likewise.
1645         * tests/test-connect.c (main): Likewise.
1646         * tests/test-getpeername.c (main): Likewise.
1647         * tests/test-getsockname.c (main): Likewise.
1648         * tests/test-getsockopt.c (main): Likewise.
1649         * tests/test-listen.c (main): Likewise.
1650         * tests/test-recv.c (main): Likewise.
1651         * tests/test-recvfrom.c (main): Likewise.
1652         * tests/test-send.c (main): Likewise.
1653         * tests/test-sendto.c (main): Likewise.
1654         * tests/test-setsockopt.c (main): Likewise.
1655         * tests/test-shutdown.c (main): Likewise.
1656
1657 2012-01-21  Bruno Haible  <bruno@clisp.org>
1658
1659         locale-fr.m4: Fix for Android.
1660         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1661         failure of the test program on Bionic libc.
1662
1663 2012-01-21  Jim Meyering  <meyering@redhat.com>
1664
1665         bootstrap: fail when bootstrap_post_import_hook fails
1666         Otherwise, it's far too easy to miss diagnostics emitted
1667         between gnulib-tool's output and that of running configure.
1668         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1669
1670 2012-01-17  Jim Meyering  <meyering@redhat.com>
1671
1672         maint: enable sc_trailing_blank
1673         * build-aux/pmccabe.css: Remove trailing blanks.
1674         * doc/acl-cygwin.txt: Likewise.
1675         * doc/gnu-oids.texi: Likewise
1676         * cfg.mk: Enable sc_trailing_blank.
1677         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1678
1679 2012-01-17  Jim Meyering  <meyering@redhat.com>
1680
1681         maint: enable sc_prohibit_openat_without_use
1682         * cfg.mk: Enable sc_prohibit_openat_without_use.
1683         Exempt lib/selinux-at.c.
1684
1685 2012-01-17  Jim Meyering  <meyering@redhat.com>
1686
1687         maint: enable sc_prohibit_cloexec_without_use
1688         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1689         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1690
1691 2012-01-17  Jim Meyering  <meyering@redhat.com>
1692
1693         maint: enable sc_prohibit_intprops_without_use
1694         * cfg.mk: Enable sc_prohibit_intprops_without_use
1695         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1696
1697 2012-01-17  Jim Meyering  <meyering@redhat.com>
1698
1699         maint: enable sc_prohibit_hash_pjw_without_use
1700         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1701         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1702         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1703         following " (".
1704
1705 2012-01-17  Jim Meyering  <meyering@redhat.com>
1706
1707         maint: enable double-word-prohibiting rule
1708         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1709         Exempt three files.
1710
1711 2012-01-17  Jim Meyering  <meyering@redhat.com>
1712
1713         maint: remove empty lines at EOF, but excluding modules/*
1714         Apply syntax rules at home as well as abroad.  Most changes
1715         were induced by running this:
1716           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1717             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1718             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1719         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1720         Exempt modules/* and two binary files.
1721         Also exempt doc/INSTALL*, per request from Bruno Haible.
1722         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1723         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1724         * doc/Copyright/request-assign.future: Likewise.
1725         * doc/Copyright/request-disclaim.changes: Likewise.
1726         * doc/INSTALL: Likewise.
1727         * doc/INSTALL.ISO: Likewise.
1728         * doc/INSTALL.UTF-8: Likewise.
1729         * doc/acl-cygwin.txt: Likewise.
1730         * doc/acl-resources.txt: Likewise.
1731         * doc/fdl-1.2.texi: Likewise.
1732         * doc/fdl-1.3.texi: Likewise.
1733         * doc/fdl.texi: Likewise.
1734         * lib/argp-pin.c: Likewise.
1735         * lib/round.c: Likewise.
1736         * lib/unicase/u16-totitle.c: Likewise.
1737         * lib/unictype/block_test.c: Likewise.
1738         * lib/uninorm/canonical-decomposition.c: Likewise.
1739         * m4/README: Likewise.
1740         * m4/relocatable-lib.m4: Likewise.
1741         * tests/test-isnand-nolibm.c: Likewise.
1742         * tests/test-isnand.c: Likewise.
1743         * tests/uninorm/NormalizationTest.txt: Likewise.
1744
1745 2012-01-17  Jim Meyering  <meyering@redhat.com>
1746
1747         maint: add framework to run syntax-check rules against gnulib sources
1748         * cfg.mk: New file, to disable all currently-failing tests.
1749         We'll enable them one by one, as they are made to pass.
1750         * Makefile (sc_maint): New rule.
1751
1752 2012-01-21  Bruno Haible  <bruno@clisp.org>
1753
1754         stdint: Add support for Android.
1755         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1756         include the system's <stdint.h>.
1757         Reported by Simon Josefsson <simon@josefsson.org>.
1758
1759 2012-01-19  Jim Meyering  <meyering@redhat.com>
1760
1761         bootstrap: add bootstrap_post_import_hook
1762         Bison does still need something like the gnulib_mk_hook whose
1763         invocation I had to remove along with slurp in commit 767ccd40.
1764         Technically, we could get along without it, but doing so would
1765         have required living with a warning and a mandatory post-bootstrap
1766         automake rerun.
1767         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1768         (bootstrap_post_import_hook): New function.
1769         Invoke it after gnulib-tool --import and before autoreconf.
1770
1771 2012-01-18  Jim Meyering  <meyering@redhat.com>
1772
1773         gitlog-to-changelog: don't use "no_"-prefixed variable name
1774         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1775         to enable both --cluster and --no-cluster.  Change variable name,
1776         s/\$no_cluster/$cluster/, and reverse usage to match.
1777
1778         gitlog-to-changelog: use "||", not "or" in expressions
1779         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1780         expressions.
1781
1782 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1783
1784         gitlog-to-changelog: new option --no-cluster
1785         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1786         clustering of adjacent commit messages.
1787
1788 2012-01-17  Jim Meyering  <meyering@redhat.com>
1789
1790         maint: spell file systems with two words, not one
1791         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1792         two words, not one.
1793
1794 2012-01-16  Jim Meyering  <meyering@redhat.com>
1795
1796         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1797         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1798
1799 2012-01-16  Eric Blake  <eblake@redhat.com>
1800
1801         bootstrap: cater to autoconf 2.59
1802         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1803         is not available.
1804
1805         bootstrap: properly check for libtool
1806         * build-aux/bootstrap (libtoolize): Also run libtool when older
1807         usage is detected.
1808
1809 2012-01-15  Bruno Haible  <bruno@clisp.org>
1810
1811         Improve support for MSVC 9.
1812         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1813         clashes on MSVC.
1814         * lib/fcntl.in.h: Likewise.
1815         * lib/stdlib.in.h: Likewise.
1816         * lib/sys_stat.in.h: Likewise.
1817
1818 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1819
1820         gnupload: we hold the master copy of this script now
1821         For motivation and more information, see:
1822         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1823         * build-aux/gnupload: Make it clear in the heading comments that the
1824         master copy of this file is maintained by gnulib.  Since we are at
1825         it, bump its copyright year and ...
1826         ($scriptversion): ... the date in its version.
1827         ($usage): Patches and bug reports should be sent to the gnulib list,
1828         not the automake one.
1829         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1830         anymore.
1831
1832 2012-01-15  Bruno Haible  <bruno@clisp.org>
1833
1834         Fix module 'random'.
1835         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1836         initstate, setstate are declared.
1837
1838 2012-01-14  Bruno Haible  <bruno@clisp.org>
1839
1840         Tests for module 'random'.
1841         * modules/random-tests: New file.
1842         * tests/test-random.c: New file, based on tests/test-random_r.c.
1843
1844         New module 'random'.
1845         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1846         declarations.
1847         * lib/random.c: New file, based on glibc/stdlib/random.c.
1848         * m4/random.m4: New file.
1849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1850         HAVE_RANDOM.
1851         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1852         * modules/random: New file.
1853         * config/srclist.txt: Add an entry for random.c.
1854         * doc/posix-functions/random.texi: Mention the 'random' module.
1855         * doc/posix-functions/initstate.texi: Likewise.
1856         * doc/posix-functions/setstate.texi: Likewise.
1857         * doc/posix-functions/srandom.texi: Likewise.
1858
1859 2012-01-12  Bruno Haible  <bruno@clisp.org>
1860
1861         random_r: Use common idioms.
1862         * lib/random_r.c: Include <stdlib.h> first.
1863
1864         random_r: Override incompatible API on AIX, OSF/1.
1865         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1866         Override the system function if REPLACE_RANDOM_R is 1.
1867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1868         and OSF/1, set REPLACE_RANDOM_R.
1869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1870         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1871         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1872         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1873         * doc/glibc-functions/random_r.texi: Likewise.
1874         * doc/glibc-functions/setstate_r.texi: Likewise.
1875
1876         random_r: Support for MSVC 9.
1877         * lib/random_r.c: Include stdint.h, not inttypes.h.
1878
1879 2012-01-12  Eric Blake  <eblake@redhat.com>
1880
1881         inet_ntop: guard extra work by IF_LINT
1882         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1883         better code generation when not checking for warnings.
1884         Suggested by Paul Eggert and Jim Meyering.
1885
1886         strptime: fix regression on mingw
1887         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1888         Fix regression.  Reported by Bruno Haible.
1889
1890 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1891             Bruno Haible  <bruno@clisp.org>
1892
1893         copy-file: add error-code-returning variant.
1894         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1895         (qcopy_file_preserving): New declaration.
1896         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1897         copy_file_preserving. Change return type to 'int'. Don't emit an error
1898         message here.
1899         (copy_file_preserving): New function.
1900         * tests/test-copy-file.c: Include <stdlib.h>.
1901         (main): Test qcopy_file_preserving if the environment variable
1902         NO_STDERR_OUTPUT is set.
1903         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1904         with NO_STDERR_OUTPUT
1905         * tests/test-copy-file-2.sh: Likewise.
1906
1907 2012-01-10  Bruno Haible  <bruno@clisp.org>
1908
1909         copy-file: Use 'quote' module consistently.
1910         * lib/copy-file.c (copy_file_preserving): Use quote().
1911
1912         copy-file: Refactor.
1913         * lib/copy-file.c: Include quote.h.
1914         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1915         message here.
1916         * modules/copy-file (Depends-on): Add quote.
1917
1918         acl: Export qcopy_acl.
1919         * lib/acl.h (qcopy_acl): New declaration.
1920         * lib/copy-acl.c (qcopy_acl): Make non-static.
1921
1922         acl: Rename a local variable.
1923         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1924
1925         acl: Align return values of copy_acl and qcopy_acl.
1926         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1927         maybe < -1.
1928
1929 2012-01-11  Eric Blake  <eblake@redhat.com>
1930
1931         strptime: silence gcc warnings
1932         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1933         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1934         Reported by Daniel P. Berrange.
1935
1936         inet_ntop: silence gcc warning
1937         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1938         Reported by Daniel P. Berrange.
1939
1940 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1941
1942         getloadavg test: skip the test on GNU/Linux without /proc mounted
1943         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1944         file.  When /proc is not mounted, it always fails with ENOENT.
1945         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1946         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1947
1948 2012-01-10  Bruno Haible  <bruno@clisp.org>
1949
1950         regex: Avoid link error on MSVC 9.
1951         * modules/regex (Depends-on): Add wctype.
1952
1953 2012-01-10  Bruno Haible  <bruno@clisp.org>
1954
1955         doc: Mention --with-tests option.
1956         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1957         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1958         --with-tests.
1959         Reported by Reuben Thomas.
1960
1961 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1962
1963         users.txt: order package names lexicographically.
1964         * users.txt: Order package names lexicographically.
1965
1966 2012-01-10  Jim Meyering  <meyering@redhat.com>
1967
1968         maint.mk: fix description in comment
1969         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1970
1971         ignore-value: remove deprecated ignore_ptr function
1972         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1973         * NEWS: Note this.
1974
1975 2012-01-09  Jim Meyering  <meyering@redhat.com>
1976
1977         test-init.sh: avoid a subshell
1978         * tests/test-init.sh: Remove protective subshell.
1979         Suggested by Bernhard Voelker.  While a subshell is normally
1980         required to protect against older shells (Solaris, FreeBSD) that
1981         warn about a missing program before performing redirection, the
1982         shell-selection tests performed by init.sh probably exclude any
1983         offending shell.
1984
1985 2012-01-08  Bruno Haible  <bruno@clisp.org>
1986
1987         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1988         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1989         variable.
1990
1991 2012-01-08  Bruno Haible  <bruno@clisp.org>
1992
1993         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1994         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1996         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1997         macro.
1998         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2000         * lib/spawn_faction_addopen.c: Add workaround implementation if
2001         HAVE_WORKING_POSIX_SPAWN.
2002         * modules/spawn (Makefile): Substitute
2003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2004         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
2005         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
2006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2007         (Depends-on): Update conditions.
2008         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2009         the Solaris 11 bug.
2010
2011 2012-01-08  Bruno Haible  <bruno@clisp.org>
2012
2013         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
2014         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2015         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2016         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
2017         macro.
2018         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
2019         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2020         * lib/spawn_faction_adddup2.c: Add workaround implementation if
2021         HAVE_WORKING_POSIX_SPAWN.
2022         * modules/spawn (Makefile): Substitute
2023         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2024         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
2025         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
2026         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2027         (Depends-on): Update conditions.
2028         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2029         the Solaris 11 bug.
2030
2031 2012-01-08  Bruno Haible  <bruno@clisp.org>
2032
2033         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
2034         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2035         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
2037         HAVE_WORKING_POSIX_SPAWN.
2038         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
2039         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
2040         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2041         * lib/spawn_faction_addclose.c: Add workaround implementation if
2042         HAVE_WORKING_POSIX_SPAWN.
2043         * modules/spawn (Makefile): Substitute
2044         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2045         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
2046         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
2047         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2048         (Depends-on): Update conditions.
2049         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2050         the Solaris 11 bug.
2051
2052 2012-01-08  Bruno Haible  <bruno@clisp.org>
2053
2054         doc: Update for Solaris 11 2011-11.
2055         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
2056         * m4/printf.m4: Update comments.
2057
2058 2012-01-08  Bruno Haible  <bruno@clisp.org>
2059
2060         mktime: Avoid compilation error on Solaris 11.
2061         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
2062
2063 2012-01-08  Bruno Haible  <bruno@clisp.org>
2064
2065         doc: Small fix.
2066         * doc/posix-headers/nl_types.texi: Correct platforms list.
2067
2068 2012-01-08  Simon Josefsson  <simon@josefsson.org>
2069
2070         Add lgpl-3.0 module.
2071         * MODULES.html.sh (Support for building documentation): Add
2072         lgpl-3.0.
2073         * modules/lgpl-3.0: New file.
2074
2075 2012-01-08  Jim Meyering  <meyering@redhat.com>
2076
2077         select.c: indent with spaces, not TABs
2078         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
2079
2080 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2081
2082         quotearg: do not use grave accent for left quote
2083         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
2084         locale_quoting_style.
2085         (quotearg_buffer_restyled): Fix example.
2086         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
2087
2088 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2089
2090         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
2091         Most programs do not have translation catalogs for English and much
2092         less separate catalogs for British and American English.  Drop the
2093         suggestion to translators about these two, and provide it
2094         automatically for Unicode locales.  Like most programs, even those
2095         using American English, we use single quotation marks.  This conflicts
2096         with the American typographic convention, but works better when you
2097         cite the entire error message within double quotes.  It also tries not
2098         to clash with established practice and with what non-gnulib programs
2099         will usually do.
2100         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
2101         using an UTF-8 or GB-18030 locale.  The list of other locales with
2102         quotes was provided by Bruno Haible.
2103         (quotearg_buffer_restyled): Adjust instructions to translators.
2104         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
2105         text, since this would be wrong when using Unicode.
2106         * modules/quotearg: Depend on c-strcaseeq.
2107
2108 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2109
2110         quotearg: fix Wikipedia link
2111         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
2112
2113 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2114
2115         Fix for mingw with MSVC9.
2116         * m4/ld-version-script.m4: Check that compiler rejects version
2117         scripts with syntax errors.  Reported by Bruno Haible
2118         <bruno@clisp.org>.
2119
2120 2012-01-06  Bruno Haible  <bruno@clisp.org>
2121
2122         Talk about "native Windows API", not "Woe32".
2123         * lib/accept4.c: Update comments to mention native Windows.
2124         * lib/execute.c: Likewise.
2125         * lib/fatal-signal.c: Likewise.
2126         * lib/localcharset.c: Likewise.
2127         * lib/nanosleep.c: Likewise.
2128         * lib/nl_langinfo.c: Likewise.
2129         * lib/pclose.c: Likewise.
2130         * lib/pipe-filter-gi.c: Likewise.
2131         * lib/pipe-filter-ii.c: Likewise.
2132         * lib/pipe.c: Likewise.
2133         * lib/pipe2.c: Likewise.
2134         * lib/popen.c: Likewise.
2135         * lib/progreloc.c: Likewise.
2136         * lib/relocatable.c: Likewise.
2137         * lib/sigaction.c: Likewise.
2138         * lib/sigprocmask.c: Likewise.
2139         * lib/spawn-pipe.h: Likewise.
2140         * lib/spawn-pipe.c: Likewise.
2141         * lib/spawni.c: Likewise.
2142         * lib/stat-time.h: Likewise.
2143         * lib/w32spawn.h: Likewise.
2144         * tests/test-isatty.c: Likewise.
2145         * lib/config.charset: More comments.
2146         * doc/gnulib-intro.texi: Mention native Windows.
2147         * doc/posix-functions/_Exit_C99.texi: Likewise.
2148         * doc/posix-headers/fcntl.texi: Likewise.
2149
2150 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
2151
2152         argp: Avoid crash if translator uses % characters in a translation.
2153         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
2154         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2155
2156 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2157
2158         doc: C11 and C++11 are now official
2159         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
2160         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
2161         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
2162         * modules/stdalign:
2163         Replace references to draft C1X to C11, and to draft C++0X to C++11.
2164
2165 2012-01-06  Bruno Haible  <bruno@clisp.org>
2166
2167         uc-is-grapheme-break tests: Tweak.
2168         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
2169         message.
2170
2171 2012-01-06  Bruno Haible  <bruno@clisp.org>
2172
2173         test-init.sh: correct the test for diff -u
2174         * tests/test-init.sh: Also redirect stdout to /dev/null.
2175
2176 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         Use ', not `, for quoting output.
2179         * build-aux/announce-gen (usage, sizes, print_news_deltas)
2180         (print_changelog_deltas, get_tool_versions, main program):
2181         * build-aux/git-version-gen:
2182         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
2183         * build-aux/move-if-change (help):
2184         * build-aux/useless-if-before-free (usage, main program):
2185         * check-module (parse_module_file, usage)
2186         (find_included_lib_files, check_module):
2187         * lib/argmatch.c (main) [TEST]:
2188         * lib/argp-help.c (_help):
2189         * lib/getopt1.c (main) [TEST]:
2190         * lib/git-merge-changelog.c (usage):
2191         * lib/xstrtol-error.c (xstrtol_error):
2192         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2193         * m4/argz.m4 (gl_FUNC_ARGZ):
2194         * m4/bison.m4 (gl_BISON):
2195         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
2196         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2197         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2198         * m4/fpending.m4 (gl_PREREQ_FPENDING):
2199         * m4/gc-random.m4 (gl_GC_RANDOM):
2200         * m4/intl.m4 (gt_CHECK_DECL):
2201         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
2202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
2203         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
2205         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2206         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
2207         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
2208         * tests/test-dirname.c (main):
2209         * tests/test-getpass.c (main):
2210         * tests/test-iconvme.c (main):
2211         * tests/test-parse-datetime.c (LOG):
2212         * tests/test-xstrtoimax.sh:
2213         * tests/test-xstrtol.sh:
2214         * tests/test-xstrtoll.sh:
2215         * tests/test-xstrtoumax.sh:
2216         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
2217         * top/GNUmakefile (abort-due-to-no-makefile):
2218         Quote 'like this', not `like this', as per the recent change to
2219         the GNU coding standards.
2220
2221 2012-01-05  Bruno Haible  <bruno@clisp.org>
2222
2223         strtoimax: Don't force a replacement on systems where intmax_t is int.
2224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2225         'intmax_t' is not larger than 'int'.
2226         Reported by Pádraig Brady <P@draigBrady.com>.
2227
2228 2012-01-05  Bruno Haible  <bruno@clisp.org>
2229
2230         doc: Mention NetBSD bugs.
2231         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2232         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2233
2234 2012-01-05  Bruno Haible  <bruno@clisp.org>
2235
2236         strtoumax tests: Enhance tests.
2237         * tests/test-strtoumax.c (main): Add tests for large values.
2238
2239 2012-01-05  Bruno Haible  <bruno@clisp.org>
2240
2241         strtoimax: Work around AIX 5.1 bug.
2242         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2243         definition.
2244         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2245         Set HAVE_STRTOIMAX.
2246         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2247         REPLACE_STRTOIMAX.
2248         * modules/inttypes-incomplete (Makefile.am): Substitute
2249         REPLACE_STRTOIMAX.
2250         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2251         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2252         (Depends-on): Update conditions.
2253         * tests/test-strtoimax.c (main): Add tests for large values.
2254         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2255
2256 2012-01-05  Bruno Haible  <bruno@clisp.org>
2257
2258         inttypes: Modernize.
2259         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2260         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2261         (Makefile.am): Update inttypes.h rule.
2262
2263 2012-01-05  Jim Meyering  <meyering@redhat.com>
2264
2265         init.sh: don't waste a subshell just to redirect stderr
2266         * tests/init.sh: In testing for diff -u and diff -c, use a
2267         stderr-redirecting exec inside `...` rather than a subshell.
2268
2269         test-init.sh: avoid failure on HP-UX 11.00
2270         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2271         resolves to diff -c or cmp.  Reported by Bruno Haible.
2272
2273 2012-01-05  Bruno Haible  <bruno@clisp.org>
2274
2275         Tests for module 'strtoull'.
2276         * modules/strtoull-tests: New file.
2277         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2278
2279 2012-01-05  Bruno Haible  <bruno@clisp.org>
2280
2281         Tests for module 'strtoll'.
2282         * modules/strtoll-tests: New file.
2283         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2284
2285 2012-01-05  Bruno Haible  <bruno@clisp.org>
2286
2287         Tests for module 'strtoul'.
2288         * modules/strtoul-tests: New file.
2289         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2290
2291 2012-01-05  Bruno Haible  <bruno@clisp.org>
2292
2293         Tests for module 'strtol'.
2294         * modules/strtol-tests: New file.
2295         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2296
2297 2012-01-04  Jim Meyering  <meyering@redhat.com>
2298
2299         test-init.sh: accommodate Solaris 5.10's different diff -u output
2300         * tests/test-init.sh: Also exempt @@ lines from the comparison
2301         of diff output, since Solaris 5.10 and GNU diff formats differ.
2302         Reported by Stefano Lattarini.
2303
2304 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2305
2306         test-posixtm: don't assume signed integer wraparound
2307         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2308         after signed integer overflow.  Inspired by (though it may not
2309         fix) Bruno Haible's bug report in
2310         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2311
2312         Spell out "Windows 9x" and "Windows XP".
2313         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2314         "Windows 9x" and "WinXP" with "Windows XP".
2315
2316 2012-01-04  Jim Meyering  <meyering@redhat.com>
2317
2318         test-vc-list-files-cvs.sh: remove obsolete comment
2319         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2320         double exit.  Now that's all encapsulated via skip_ and Exit.
2321
2322 2012-01-04  Bruno Haible  <bruno@clisp.org>
2323
2324         Talk about "native Windows API", not "Win32".
2325         * lib/classpath.c: Update comments to mention native Windows.
2326         * lib/csharpexec.c: Likewise.
2327         * lib/dup2.c: Likewise.
2328         * lib/error.c: Likewise.
2329         * lib/fcntl.c: Likewise.
2330         * lib/filename.h: Likewise.
2331         * lib/findprog.c: Likewise.
2332         * lib/get-rusage-as.c: Likewise.
2333         * lib/get-rusage-data.c: Likewise.
2334         * lib/getpagesize.c: Likewise.
2335         * lib/javaexec.c: Likewise.
2336         * lib/msvc-inval.c: Likewise.
2337         * lib/msvc-nothrow.c: Likewise.
2338         * lib/nanosleep.c: Likewise.
2339         * lib/nonblocking.c: Likewise.
2340         * lib/printf-parse.c: Likewise.
2341         * lib/setlocale.c: Likewise.
2342         * lib/sigaction.c: Likewise.
2343         * lib/strerror_r.c: Likewise.
2344         * lib/tmpdir.c: Likewise.
2345         * lib/vasnprintf.c: Likewise.
2346         * lib/w32spawn.h: Likewise.
2347         * lib/waitpid.c: Likewise.
2348         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2349         * m4/locale-ar.m4: Likewise.
2350         * m4/locale-fr.m4: Likewise.
2351         * m4/locale-ja.m4: Likewise.
2352         * m4/locale-tr.m4: Likewise.
2353         * m4/locale-zh.m4: Likewise.
2354         * m4/printf.m4: Likewise.
2355         * tests/test-cloexec.c: Likewise.
2356         * tests/test-copy-acl.sh: Likewise.
2357         * tests/test-copy-file.sh: Likewise.
2358         * tests/test-file-has-acl.sh: Likewise.
2359         * tests/test-set-mode-acl.sh: Likewise.
2360         * tests/test-dup-safer.c: Likewise.
2361         * tests/test-dup2.c: Likewise.
2362         * tests/test-dup3.c: Likewise.
2363         * tests/test-fcntl.c: Likewise.
2364         * tests/test-nonblocking-pipe.h: Likewise.
2365         * tests/test-nonblocking-socket.h: Likewise.
2366         * tests/test-pipe.c: Likewise.
2367         * tests/test-pipe2.c: Likewise.
2368         * tests/test-spawn-pipe-child.c: Likewise.
2369         * doc/acl-resources.txt: Likewise.
2370         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2371         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2372         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2373         * lib/localcharset.c: Update comments to mention native Windows.
2374         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2375         * lib/localename.c: Likewise.
2376         * lib/progreloc.c: Likewise.
2377         * lib/relocatable.c: Likewise.
2378         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2379         (windows_compute_revents): Renamed from win32_compute_revents.
2380         (windows_compute_revents_socket): Renamed from
2381         win32_compute_revents_socket.
2382         * lib/select.c: Update comments to mention native Windows.
2383         (windows_poll_handle): Renamed from win32_poll_handle.
2384         * m4/threadlib.m4: Update comments to mention native Windows.
2385         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2386         --enable-threads=windows instead of --enable-threads=win32. Set
2387         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2388         * lib/glthread/lock.h: Update comments to mention native Windows.
2389         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2390         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2391         USE_WIN32_THREADS.
2392         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2393         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2394         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2395         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2396         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2397         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2398         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2399         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2400         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2401         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2402         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2403         * tests/test-tls.c: Likewise.
2404         Rationale:
2405         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2406         on both 32-bit and 64-bit Windows systems.
2407         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2408         line of distinction is between "native Windows" on one side and Unix/
2409         POSIX systems on the other side. More details in
2410         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2411         Suggested by Paul Eggert.
2412
2413 2012-01-03  Bruno Haible  <bruno@clisp.org>
2414
2415         isatty: Support for MSVC 9.
2416         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2417         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2418         (_isatty_nothrow): New function.
2419         (isatty): Use it instead of _isatty.
2420         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2421         * lib/poll.c (IsConsoleHandle): Likewise.
2422         * lib/select.c (IsConsoleHandle): Likewise.
2423         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2424         (gl_PREREQ_ISATTY): New macro.
2425         * modules/isatty (Depends-on): Add msvc-inval.
2426         (configure.ac): Invoke gl_PREREQ_ISATTY.
2427
2428 2012-01-03  Jim Meyering  <meyering@redhat.com>
2429
2430         maint.mk: remove temporary transition aid from over 1.5 years ago
2431         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2432         purpose was to aid in the transition (avoiding silent malfunction)
2433         from that old name to the new _sc_search_regexp.  This shim was
2434         added by commit 219c504b.
2435
2436         init.sh: do not try to accommodate compare arguments starting with "-"
2437         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2438         compare arguments that start with "-".  Besides, we do not worry
2439         about this when invoking diff or cmp; why start now with sed?
2440         Using "--" to separate options from argument would trigger sed
2441         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2442         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2443
2444 2012-01-02  Bruno Haible  <bruno@clisp.org>
2445
2446         Enhance tests for module 'isatty'.
2447         * modules/isatty-tests (Depends-on): Add pipe-posix.
2448         * tests/test-isatty.c: Include <fcntl.h>.
2449         (DEV_NULL): New macro.
2450         (main): Test the resut of isatty() also on regular files, pipes, and
2451         /dev/null.
2452
2453         New module 'isatty'.
2454         * lib/unistd.in.h (isatty): New declaration.
2455         * lib/isatty.c: New file, based on an idea of
2456         Bastien Roucariès <roucaries.bastien@gmail.com>.
2457         * m4/isatty.m4: New file.
2458         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2459         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2460         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2461         REPLACE_ISATTY.
2462         * modules/isatty: New file.
2463         * doc/posix-functions/isatty.texi: Mention the new module.
2464         Suggested by Paolo Bonzini.
2465
2466 2012-01-02  Bruno Haible  <bruno@clisp.org>
2467
2468         canonicalize: Tweak 2011-12-29 commit.
2469         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2470         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2471
2472 2012-01-02  Jim Meyering  <meyering@redhat.com>
2473
2474         gitlog-to-changelog: describe input syntax in --help output
2475         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2476
2477         gitlog-to-changelog: fix typo in --help: show backslash before email @
2478         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2479         in sources, but not in actual output.
2480
2481 2011-12-30  Jim Meyering  <meyering@redhat.com>
2482
2483         gitlog-to-changelog: don't malfunction when name contains %-directive
2484         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2485         in a name string cause trouble.  E.g., with a user name of "%s",
2486         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2487
2488 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2489
2490         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2491         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2492         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2493         the "  (tiny change)" notation that is appended to the standard
2494         ChangeLog "date  name  email" header line.
2495
2496 2012-01-01  Jim Meyering  <meyering@redhat.com>
2497
2498         test-framework-sh: init.sh: fix "make dist" failure
2499         When using gnulib-tool's --with-tests option and any module that
2500         depends on test-framework-sh, "make dist" would fail due to the
2501         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2502         in the gltests directory, and not in the gllib/ directory.
2503         One way to work around that is to move the EXTRA_DIST += init.sh
2504         from the primary module to the -tests one:
2505         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2506         * modules/test-framework-sh (Makefile.am): ...not here.
2507         Reported by Tom G. Christensen in
2508         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2509
2510         version-etc: update copyright year reported by --version
2511         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2512
2513 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2514
2515         canonicalize: only stat() if required
2516         * lib/canonicalize.c (canonicalize_filename_mode):
2517         Avoid calling l?stat() when both CAN_MISSING,
2518         and CAN_NOLINKS are set, as we neither need
2519         to resolve symlinks or test component existence.
2520
2521 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         doc: cover st_ino issues once; add OpenVMS etc.
2524         * doc/posix-functions/stat.texi (stat):
2525         * doc/posix-functions/lstat.texi (lstat):
2526         * doc/posix-functions/fstatat.texi (fstatat):
2527         * doc/posix-functions/fstat.texi (fstat):
2528         Move general 'struct stat' stuff to sys_stat.texi,
2529         leaving behind a pointer.
2530         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2531         Merge duplicate info about 'struct stat' problems into here.
2532         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2533         and suggest partial workarounds.
2534
2535         same-inode: port to OpenVMS
2536         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2537         three st_ino values.
2538
2539 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2540
2541         canonicalize: fix references to stat() and lstat()
2542         * lib/canonicalize.c (canonicalize_filename_mode):
2543         Ensure references always resolve to a replacement
2544         function if required (even via a macro).
2545
2546 2011-12-30  Jim Meyering  <meyering@redhat.com>
2547
2548         gitlog-to-changelog: remove a little duplication
2549         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2550         rather than twice.
2551
2552 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2553
2554         canonicalize: add support for not resolving symlinks
2555         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2556         indicate we don't want to follow symlinks.  Also
2557         provide CAN_MODE_MASK to aid setting these existing
2558         mutually exclusive values.
2559         * lib/canonicalize.c (canonicalize_filename_mode):
2560         Extract the flags from can_mode parameter, which
2561         are currently just used to select between stat()
2562         and lstat().  Also ensure that mutually exclusive
2563         values are flagged immediately as invalid.
2564         * tests/test-canonicalize.c: Verify symlinks are
2565         not followed, and that invalid flag combinations
2566         are diagnosed.
2567
2568 2011-12-25  Jim Meyering  <meyering@redhat.com>
2569
2570         gitlog-to-changelog: do not clump multi-paragraph entries
2571         Identical header lines (date,name,email+coauthors) are suppressed,
2572         thus putting all entries with those same characteristics under
2573         a single header.  However, when a log entry consists of two or
2574         more paragraphs, it may not be clear where it starts and ends.
2575         This change makes it so that such an entry is always separated
2576         from others by a header line, even when that header would
2577         otherwise be suppressed.
2578         * build-aux/gitlog-to-changelog: Implement the above.
2579         Inspired by a related request from Stefano Lattarini in
2580         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2581
2582 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2583
2584         announce-gen: fix `cmd' typo in diagnostic
2585         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2586         diagnostic: a missing '$' meant that the command was not output.
2587
2588 2011-12-23  Jim Meyering  <meyering@redhat.com>
2589
2590         test-framework-sh: distribute init.sh
2591         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2592         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2593         fail due to the lack of init.sh.
2594
2595         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2596         * modules/atexit-tests: Rather than listing tests/init.sh,
2597         now that there's a module for it, simply depend on that new module.
2598         * modules/closein-tests: Likewise.
2599         * modules/exclude-tests: Likewise.
2600         * modules/getcwd-tests: Likewise.
2601         * modules/perror-tests: Likewise.
2602         * modules/pread-tests: Likewise.
2603         * modules/pwrite-tests: Likewise.
2604         * modules/vc-list-files-tests: Likewise.
2605         * modules/verify-tests: Likewise.
2606         * modules/xalloc-die-tests: Likewise.
2607         * modules/xstrtoimax-tests: Likewise.
2608         * modules/xstrtol-tests: Likewise.
2609         * modules/xstrtoll-tests: Likewise.
2610         * modules/xstrtoumax-tests: Likewise.
2611         * modules/yesno-tests: Likewise.
2612
2613 2011-12-22  Jim Meyering  <meyering@redhat.com>
2614
2615         test-framework-sh: add minimal tests of init.sh's compare function
2616         * modules/test-framework-sh-tests: New file.
2617         * tests/test-init.sh: New file.
2618
2619         test-framework-sh: new module
2620         * modules/test-framework-sh: New file.
2621         * MODULES.html.sh (Support for maintaining and releasing projects):
2622         List it.
2623
2624         init.sh: do not emit simulated diff output to stderr
2625         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2626
2627 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2628
2629         .gitignore: ignore gnulib.dvi and regex.info
2630         * doc/.gitignore:add gnulib.dvi and regex.info
2631
2632 2011-12-22  Jim Meyering  <meyering@redhat.com>
2633
2634         init.sh: correct previous change
2635         * tests/init.sh (compare): My previous change was wrong.
2636         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2637
2638         init.sh: avoid unwarranted test failure when using "set -e"
2639         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2640         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2641         a use like "compare exp out" would get evoke an unconditional failure.
2642
2643 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2644
2645         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2646         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2647         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2648         autoreconf that did not.
2649         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2650         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2651
2652 2011-12-17  Jim Meyering  <meyering@redhat.com>
2653
2654         bootstrap: remove some now-unneeded code
2655         This script arose back when gnulib-tool was young.
2656         Since then, it has seen improvements that render much of this
2657         script unnecessary.  In particular, it can now make symlinks
2658         to the files it uses.  Also, I no longer see as much value in
2659         marking files as read-only via comments.
2660         If you relied on the symlink-creation feature of the preceding
2661         version of this script, you can get most of that functionality
2662         by adding the --symlink option to the definition of
2663         gnulib_tool_option_extras in your bootstrap.conf file.
2664         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2665         Run autopoint and libtoolize *before* gnulib-tool.
2666         After it, run an abbreviated autoreconf, rather than a loop around
2667         all tools.
2668         (slirp, bt_mark_as_generated): Remove functions.
2669
2670 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2671
2672         ftoastr: fix typo
2673         * lib/ftoastr.h: Fix misspelling in comment.
2674
2675 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2676
2677         * top/README-release: fix punctuation.
2678
2679 2011-12-17  Jim Meyering  <meyering@redhat.com>
2680
2681         bootstrap: correct the recent buildreq change
2682         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2683         had no effect.
2684         * build-aux/bootstrap (buildreq): Bracket each search term with
2685         "*...*", so that the shell "case" statement works as intended.
2686         Add comments.
2687
2688 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2689
2690         build: let bootstrap resort to wget when downloading .po files
2691         * build-aux/bootstrap (download_po_files): Fallback to wget when
2692         downloading the .po files via rsync fails.  This is necessary to
2693         bootstrap from behind a strict firewall.
2694
2695 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2696
2697         stdint: don't assume C++11 when compiling with g++
2698         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2700         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2701         work also in C++ before C++11, as that improperly inhibits
2702         generating a substitute stdint.h for that case.
2703
2704 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2705
2706         alloca: protect comment from gnulib-tool
2707         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2708         that gnulib-tool doesn't think it's a license, and munge it to
2709         say "GCC version 3".
2710
2711 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2712
2713         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2714         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2715         $(abs_top_builddir) instead of $(top_builddir).
2716
2717 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2718
2719         strftime-tests: also test nanoseconds
2720         * tests/test-strftime.c (T): Add a test of %N.
2721
2722 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2723
2724         inttypes, stdint: add C++11 support
2725         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2726         when including inttypes.h and stdint.h.  Support this change to
2727         the standard.
2728         * doc/posix-headers/inttypes.texi (inttypes.h):
2729         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2730         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2731         Define if not defined already, for the benefit of pre-C++11 hosts.
2732         Define the standard format macros (e.g., PRId8) always.
2733         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2734         Likewise, if __cpluspus.  Define the standard constant and limit
2735         macros (e.g., INT8_C, INT8_MAX) always.
2736         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2737         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2738         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2739         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2740         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2741         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2742         Likewise.
2743
2744 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         nonblocking tests: Fix test failure on Linux/PPC.
2747         Suggested by Prerna Saxena in
2748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2749         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2750         Set to 1100000.
2751
2752 2011-12-12  Jim Meyering  <meyering@redhat.com>
2753
2754         argmatch: don't hard-code `' when listing valid option arguments
2755         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2756         use the quote function to add quotes.  Use fputs rather than
2757         fprintf for the format string with no format directive.
2758
2759 2011-12-07  Eric Blake  <eblake@redhat.com>
2760
2761         bootstrap: detect tools required by gnulib-tool
2762         * build-aux/bootstrap (buildreq): Provide minimum implicit
2763         dependencies.
2764         * DEPENDENCIES: Mention patch as a prereq.
2765
2766 2011-12-04  Bruno Haible  <bruno@clisp.org>
2767
2768         sethostname: Port to Windows platforms.
2769         * lib/sethostname.c: Provide an alternate implementation for Windows
2770         platforms.
2771         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2772         (main): Skip the test if sethostname() fails with EPERM. On Windows
2773         platforms, don't check the result of gethostname().
2774
2775 2011-12-04  Bruno Haible  <bruno@clisp.org>
2776             Jim Meyering  <meyering@redhat.com>
2777
2778         tests: Avoid spurious error message on platforms without mktemp program.
2779         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2780
2781 2011-12-04  Bruno Haible  <bruno@clisp.org>
2782
2783         sethostname: Fix documentation.
2784         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2785         "not fixed" section.
2786
2787 2011-12-03  Bruno Haible  <bruno@clisp.org>
2788
2789         gnulib-tool: Verify that the License field is present and non-empty.
2790         * gnulib-tool (func_get_license_raw): New function, extracted from
2791         func_get_license.
2792         (func_get_license): Use it. Warn if the module is not a test module and
2793         has no license.
2794         Suggested by Jim Meyering.
2795
2796 2011-12-03  Bruno Haible  <bruno@clisp.org>
2797
2798         sethostname tests: Fix link error on mingw.
2799         * tests/test-sethostname1.c: New file, extracted from
2800         tests/test-sethostname.c.
2801         * tests/test-sethostname2.c: New file, extracted from
2802         tests/test-sethostname.c.
2803         * tests/test-sethostname.c: Remove file.
2804         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2805         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2806         (Depends-on): Add gethostname.
2807         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2808         Link the latter with $(GETHOSTNAME_LIB).
2809
2810         sethostname tests: Fix compilation error on mingw.
2811         * tests/test-sethostname.c: Don't include <sys/types.h>.
2812         (geteuid): Use a dummy value without uid_t.
2813         * modules/sethostname-tests (Depends-on): Remove sys_types.
2814
2815         sethostname tests: Avoid a gcc warning.
2816         * tests/test-sethostname.c (main): Remove an unused variable.
2817
2818         Tweak last commit.
2819         * modules/sethostname-tests (Files): Sort by decreasing importance.
2820         (configure.ac): Check for geteuid.
2821         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2822         the test when there's nothing to test. Drop an unnecessary cast.
2823         Improve an error message. Verify that the final sethostname() call
2824         succeeds.
2825
2826 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2827
2828         Add a test suite for the sethostname module.
2829         * modules/sethostname-tests: New file.  A test program
2830         for the sethostname module.
2831         * tests/test-sethostname.c: Likewise.
2832
2833 2011-12-03  Bruno Haible  <bruno@clisp.org>
2834
2835         Tweak last commit.
2836         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2837         Fix preprocessor directives indentation. Fix typos.
2838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2839         * modules/unistd (Makefile): Likewise.
2840
2841 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2842
2843         Integrate the sethostname module into unistd.
2844         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2845         into the unistd.h header.
2846         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2847         preprocessor directives.
2848         * modules/unistd: Setup the Makefile substitutions of the
2849         SETHOSTNAME preprocessor directives.
2850
2851 2011-12-03  Bruno Haible  <bruno@clisp.org>
2852
2853         Tweak last commit.
2854         * lib/sethostname.c: Don't include <string.h>.
2855         (sethostname): No need to copy the argument string to the stack. Don't
2856         call clearerr. Preserve errno when fprintf failed.
2857         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2858         Don't invoke AC_REPLACE_FUNCS.
2859         * modules/sethostname (Link): Remove empty section.
2860         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2861         failure problem.
2862
2863 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2864
2865         New module 'sethostname'.
2866         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2867         for systems that lack it.
2868         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2869         sethostname declaration and function.
2870         * modules/sethostname: New file.  Define the sethostname module.
2871
2872 2011-12-03  Bruno Haible  <bruno@clisp.org>
2873
2874         Tweak last commit.
2875         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2876
2877 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2878
2879         Split the HOST_NAME_MAX detection into a separate m4 macro.
2880         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2881         macro so it can be used by the pending sethostname module.
2882
2883 2011-12-03  Bruno Haible  <bruno@clisp.org>
2884
2885         Fix module descriptions syntax.
2886         * modules/argv-iter (License): Fix syntax.
2887         * modules/di-set (License): Likewise.
2888         * modules/ino-map (License): Likewise.
2889         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2890
2891 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         stdalign: port to Clang 3.0
2894         Problem reported by Simon Josefsson in
2895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2896         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2897         which has <stdalign.h> but which does not define alignof.
2898         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2899
2900 2011-12-01  Eric Blake  <eblake@redhat.com>
2901
2902         mktempd: silence dd usage
2903         * build-aux/mktempd (rand_bytes): Silence dd.
2904
2905 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2906
2907         manywarnings: Don't mention gcc version in docstring.
2908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2909         Jim Meyering <meyering@redhat.com>.
2910
2911 2011-11-30  Jim Meyering  <meyering@redhat.com>
2912
2913         hash: mark a few floating point constants with "f" suffix
2914         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2915         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2916         floating point constants with "f", since they're destined to be
2917         saved/used as "float"s.
2918
2919 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2920
2921         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2922         * tests/test-float.c (test_long_double): Correct and re-enable the
2923         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2924
2925 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2926
2927         Avoid subtracting two pointers that don't point into the same block.
2928         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2929         only pointers into the same memory block are subtracted. We cannot
2930         assume that sizeof (ptrdiff_t) == sizeof (void *).
2931
2932 2011-11-29  Eric Blake  <eblake@redhat.com>
2933
2934         maint.mk: add syntax check for use of compare from init.sh
2935         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2936         moved here from coreutils.
2937
2938         manywarnings: drop -Wunsuffixed-float-constants
2939         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2940         '1.0D', which is the only way to silence this warning for 'double'.
2941
2942 2011-11-29  Jim Meyering  <meyering@redhat.com>
2943
2944         hash: mark compute_bucket_size with the pure attribute
2945         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2946
2947         quotearg, propername: correct pragma guard expression
2948         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2949         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2950
2951 2011-11-28  Jim Meyering  <meyering@redhat.com>
2952
2953         propername: do not mark proper_name with the const attribute
2954         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2955         since it examines data pointed to by its parameter.
2956         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2957         the suggestion from -Wsuggest-attribute=const.
2958
2959         propername: mark one more function as const
2960         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2961
2962 2011-11-27  Jim Meyering  <meyering@redhat.com>
2963
2964         mark functions with const and pure attributes
2965
2966         Mark functions per suggestions from gcc-4.6 when using these options:
2967         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2968         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2969         Follow these guidelines: when possible, apply the attribute to
2970         an extern declaration, not to its definition.  Apply it to the
2971         definition only when the definition is static.
2972         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2973         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2974         * lib/base64.h (isbase64): Likewise.
2975         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2976         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2977         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2978         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2979         (c_tolower, c_toupper): Likewise.
2980         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2981         * lib/chdir-long.c (find_non_slash): Likewise.
2982         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2983         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2984         * lib/file-type.h (file_type): Likewise.
2985         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2986         * lib/filevercmp.c (verrevcmp): Likewise.
2987         * lib/freadahead.h (freadahead): Likewise.
2988         * lib/fts.c (fts_maxarglen): Likewise.
2989         * lib/hash-pjw.h (hash_pjw): Likewise.
2990         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2991         * lib/hash.c (is_prime, next_prime): Likewise.
2992         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2993         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2994         (hash_table_ok, hash_get_first, hash_string): Likewise.
2995         (compute_bucket_size): Likewise.
2996         * lib/i-ring.h (i_ring_empty): Likewise.
2997         * lib/isnan.c (isnanl): Likewise.
2998         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2999         * lib/memcasecmp.h (memcasecmp): Likewise.
3000         * lib/memchr2.h (memchr2): Likewise.
3001         * lib/memcmp2.h (memcmp2): Likewise.
3002         * lib/parse-datetime.y (lookup_zone): Likewise.
3003         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
3004         [!WINDOWS_SOCKETS]: Likewise.
3005         * lib/strnlen1.h (strnlen1): Likewise.
3006         * lib/uniwidth.in.h (uc_width): Likewise.
3007         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
3008         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
3009         (quoting_options_from_style): Add a comment.
3010         * lib/propername.h (proper_name): Add a comment.
3011
3012 2011-11-27  Bruno Haible  <bruno@clisp.org>
3013
3014         Remove unused macros from !_LIBC code in glibc-borrowed files.
3015         * lib/fnmatch.c (STRCOLL): Remove macro.
3016         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
3017         * lib/glob.c (__stat, __readdir64): Remove macros.
3018         * lib/tempname.c (__open64, __xstat64): Remove macros.
3019         Suggested by Paul Eggert.
3020
3021 2011-11-27  Bruno Haible  <bruno@clisp.org>
3022
3023         getcwd: Fix link error on MSVC 9.
3024         * modules/getcwd (Depends-on): Add readdir, rewinddir.
3025
3026 2011-11-27  Bruno Haible  <bruno@clisp.org>
3027
3028         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
3029         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
3030         HAVE_OPENDIR is 0.
3031         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
3032         HAVE_CLOSEDIR is 0.
3033         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
3034         is 0.
3035         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
3036
3037 2011-11-27  Bruno Haible  <bruno@clisp.org>
3038
3039         getcwd: Fix bug from 2011-08-17.
3040         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
3041         platforms that need it.
3042         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
3043         code of 4 to be a failure, not a success. This ensures that
3044         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
3045
3046 2011-11-27  Bruno Haible  <bruno@clisp.org>
3047
3048         binary-io tests: Avoid test failure on mingw when libtool is used.
3049         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
3050         Don't verify the size of t-bin-out1.tmp here.
3051         * tests/test-binary-io.sh: Verify it here.
3052         Reported by Simon Josefsson.
3053
3054 2011-11-26  Bruno Haible  <bruno@clisp.org>
3055
3056         Fix conflict between two instantiations of module 'unistd'.
3057         * gnulib-tool (func_emit_autoconf_snippet): Substitute
3058         ${include_guard_prefix} also in the autoconf snippet.
3059         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
3060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
3061         GNULIB_UNISTD_H_GETOPT.
3062         * modules/getopt-posix (configure.ac): Set the
3063         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
3064         * modules/getopt-gnu (configure.ac): Likewise.
3065         * modules/unistd (Makefile.am): Change the substitution value of
3066         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
3067         Reported by Simon Josefsson.
3068
3069 2011-11-25  Bruno Haible  <bruno@clisp.org>
3070
3071         pagealign_alloc: Doc and comments.
3072         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
3073         module.
3074         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
3075
3076 2011-11-25  Jim Meyering  <meyering@redhat.com>
3077
3078         test-update-copyright.sh: avoid false-positive failure
3079         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
3080         around false positive failure on Cygwin/Windows.  The latter was
3081         matching erroneously-created files with names like
3082         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
3083
3084 2011-11-25  Simon Josefsson  <simon@josefsson.org>
3085
3086         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
3087         * m4/valgrind-tests.m4: Check that the parameters that will be
3088         used works, not just a subset of them.  Reported by Bruno Haible
3089         <bruno@clisp.org>.
3090
3091 2011-11-24  Jim Meyering  <meyering@redhat.com>
3092
3093         test-stdalign.c: comment out long double tests
3094         * tests/test-stdalign.c: Don't try to reduce alignment of long double
3095         variables.  That provokes errors like this from gcc-4.7.0 20111124:
3096         error: '_Alignas' specifiers cannot reduce alignment of \
3097         'static_longdouble_alignas'.
3098
3099 2011-11-22  Jim Meyering  <meyering@redhat.com>
3100
3101         init.sh: make "compare /dev/null FILE" output more readable
3102         * tests/init.sh (compare_): Document the preferred order of arguments.
3103         (emit_diff_u_header_): New function.
3104         (compare_dev_null_): Emit a simulated diff, rather than just the
3105         contents of the unexpected file.  Suggestion from Bruno Haible.
3106
3107 2011-11-21  Jim Meyering  <meyering@redhat.com>
3108             Eric Blake  <eblake@redhat.com>
3109
3110         init.sh: work around OSF/1 5.1's mishandling of /dev/null
3111         * tests/init.sh: Make our compare function slightly more portable.
3112         Reported by Bruno Haible in
3113         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
3114
3115 2011-11-21  Simon Josefsson  <simon@josefsson.org>
3116
3117         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
3118         before using it, in code that ends up in config.h.
3119
3120 2011-11-20  Bruno Haible  <bruno@clisp.org>
3121
3122         getcwd: Work around getcwd bug on AIX 5..7.
3123         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
3124         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
3125         Use a different value for gl_cv_func_getcwd_path_max. Move the
3126         definition of HAVE_PARTLY_WORKING_GETCWD from here...
3127         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
3128         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
3129         Define HAVE_MINIMALLY_WORKING_GETCWD.
3130         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
3131         where it is not even minimally working, that is, on AIX.
3132         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
3133         m4/getcwd-path-max.m4.
3134         (main): Update exit code computation.
3135         * doc/posix-functions/getcwd.texi: Mention list of platforms where
3136         getcwd does not handle long file names.
3137
3138 2011-11-20  Bruno Haible  <bruno@clisp.org>
3139
3140         getcwd: Fix bug from 2009-09-10.
3141         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
3142         like "no".
3143
3144 2011-11-20  Simon Josefsson  <simon@josefsson.org>
3145
3146         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
3147
3148 2011-11-20  Bruno Haible  <bruno@clisp.org>
3149
3150         fma tests: Avoid shadowing local variables.
3151         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
3152         expected.
3153
3154 2011-11-20  Bruno Haible  <bruno@clisp.org>
3155
3156         copysignf tests: Fix.
3157         * tests/test-copysignf.c: Fix signature check.
3158
3159 2011-11-20  Bruno Haible  <bruno@clisp.org>
3160
3161         fma: Remove unused code.
3162         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
3163         unused macros.
3164
3165 2011-11-20  Bruno Haible  <bruno@clisp.org>
3166
3167         sethostname: Fix doc about AIX.
3168         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
3169         sethostname; it has it.
3170
3171         sethostname: Mention more portability problems.
3172         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
3173         problem.
3174         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3175
3176 2011-11-19  Bruno Haible  <bruno@clisp.org>
3177
3178         Depend on module fcntl-h when AT_FDCWD is used.
3179         * modules/utimens (Depends-on): Add fcntl-h.
3180         * modules/areadlinkat (Depends-on): Likewise.
3181         * modules/areadlinkat-with-size (Depends-on): Likewise.
3182         * modules/faccessat (Depends-on): Likewise.
3183         * modules/fchmodat (Depends-on): Likewise.
3184         * modules/fchownat (Depends-on): Likewise.
3185         * modules/getcwd (Depends-on): Likewise.
3186         * modules/mkdirat (Depends-on): Likewise.
3187         * modules/mkfifoat (Depends-on): Likewise.
3188         * modules/readlinkat (Depends-on): Likewise.
3189         * modules/symlinkat (Depends-on): Likewise.
3190         * modules/dup2-tests (Depends-on): Likewise.
3191         * modules/fdutimensat-tests (Depends-on): Likewise.
3192         * modules/futimens-tests (Depends-on): Likewise.
3193
3194 2011-11-19  Bruno Haible  <bruno@clisp.org>
3195
3196         euidaccess: Update a comment.
3197         * lib/euidaccess.c: Update comment about platforms with faccessat.
3198
3199 2011-11-19  Bruno Haible  <bruno@clisp.org>
3200
3201         openat: Fix file list.
3202         * modules/openat (Files): Remove lib/at-func.c.
3203
3204 2011-11-19  Bruno Haible  <bruno@clisp.org>
3205
3206         fstatat: Simplify.
3207         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
3208         gnulib should define rpl_fstatat, there is a
3209         "#define fstatat rpl_fstatat" in <sys/stat.h>.
3210
3211 2011-11-19  Bruno Haible  <bruno@clisp.org>
3212
3213         Ensure 'inline' can be used in tests/test-utimens-common.h.
3214         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
3215         * modules/futimens-tests (configure.ac): Likewise.
3216         * modules/utimens-tests (configure.ac): Likewise.
3217         * modules/utimensat-tests (configure.ac): Likewise.
3218
3219 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3220
3221         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3222         not hash_insert0.
3223         (hash_insert_if_absent): Doc fix.
3224
3225 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3226
3227         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3228
3229 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3230
3231         test-getcwd: disambiguate exit status
3232         * tests/test-getcwd.c (test_long_name): Return 0..7.
3233         (main): Exit with an unambiguous exit status.  The old
3234         code yielded a mysterious mixture of two failure codes.
3235
3236         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3237         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3238         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3239         rpl_fstatat or fstatat.  This should fix the other problem
3240         reported by Kai Habel in
3241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3242         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3244         and I reproduced it on a Solaris 8 host we still have in production.
3245
3246 2011-11-18  Jim Meyering  <meyering@redhat.com>
3247
3248         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3249         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3250         Add a sentence to the comment.
3251         (hash_insert0): New function that simply calls hash_insert_if_absent.
3252         * lib/hash.h (hash_insert_if_absent): Declare it.
3253         (hash_insert0): Add deprecation attribute.
3254         (_GL_ATTRIBUTE_DEPRECATED): Define.
3255         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3256         not hash_insert0.
3257         * NEWS: Mention it, even though it's not really an incompatible change.
3258
3259 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3260
3261         openat: avoid compilation failure due to lack of <errno.h> inclusion
3262         * lib/openat.c: Include <errno.h>.
3263
3264 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         * modules/getcwd (Depends-on): Add fdopendir.
3267         This fixes one of the two problems reported by Kai Habel in
3268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3269
3270         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3271         stdalign problem reported by Ian Beckwith in
3272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3273         * modules/crypto/gc-arcfour (Depends-on):
3274         Depend conditionally on crypto/arcfour.
3275         * modules/crypto/gc-arctwo (Depends-on):
3276         Depend conditionally on crypto/arctwo.
3277         * modules/crypto/gc-des (Depends-on):
3278         Depend conditionally on crypto/des.
3279         * modules/crypto/gc-hmac-md5 (Depends-on):
3280         Depend conditionally on crypto/hmac-md5.
3281         * modules/crypto/gc-hmac-sha1 (Depends-on):
3282         Depend conditionally on crypto/hmac-sha1.
3283         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3284         * modules/crypto/gc-md4 (Depends-on):
3285         Depend conditionally on crypto/md4.
3286         * modules/crypto/gc-md5 (Depends-on):
3287         Depend conditionally on crypto/md5.
3288         * modules/crypto/gc-rijndael (Depends-on):
3289         Depend conditionally on crypto/rijndael.
3290         * modules/crypto/gc-sha1 (Depends-on):
3291         Depend conditionally on crypto/sha1.
3292         * modules/crypto/gc-arcfour:
3293         * modules/crypto/gc-arctwo:
3294         * modules/crypto/gc-des:
3295         * modules/crypto/gc-hmac-md5:
3296         * modules/crypto/gc-hmac-sha1:
3297         * modules/crypto/gc-md2:
3298         * modules/crypto/gc-md4:
3299         * modules/crypto/gc-md5:
3300         * modules/crypto/gc-rijndael:
3301         * modules/crypto/gc-sha1:
3302         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3303         now that the conditional dependencies do the work for us.
3304
3305 2011-11-17  Jim Meyering  <meyering@redhat.com>
3306
3307         tests: factor st_ctime-comparison out of two headers
3308         * tests/test-utimens-common.h (ctime_compare): Define.
3309         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3310         * tests/test-lutimens.h (test_lutimens): Likewise.
3311         * tests/test-utimens.h (test_utimens): Likewise.
3312
3313         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3314         Invoke the test program via an init.sh-using wrapper.
3315         * tests/test-getcwd.sh: New file.
3316         * modules/getcwd-tests (Files): Add it.
3317         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3318
3319 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3320
3321         gitlog-to-changelog: support multi-author commits.
3322         The FSF cares about keeping track of all authors of patches to its
3323         projects, but Git doesn't provide obvious support for multi-author
3324         changesets. Consensus seems to be forming around the use of extra
3325         Signed-off-by inspired lines in the log message formatted as
3326         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3327         multi-author commits between version control systems.
3328         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3329         log message and output in standard ChangeLog multi-author format.
3330         Reported by Peter Rosin <peda@lysator.liu.se>
3331
3332 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3333             Bruno Haible  <bruno@clisp.org>
3334
3335         Fix some modules' file list.
3336         * modules/fstatat (Files): Add m4/lstat.m4.
3337         * modules/openat (Files): Likewise.
3338         * modules/unlinkat (Files): Likewise.
3339
3340 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3341
3342         maint.mk: fix tight-scope.mk generation in VPATH builds.
3343         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3344         reference with $(srcdir) so that the file is found correctly even
3345         when running `make syntax-check' in a VPATH build.
3346
3347 2011-11-13  Bruno Haible  <bruno@clisp.org>
3348             Jim Meyering  <meyering@redhat.com>
3349
3350         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3351         * tests/init.sh (compare): Remove "No differences encountered" or
3352         synonymous output from the 'diff' program.
3353
3354 2011-11-13  Bruno Haible  <bruno@clisp.org>
3355
3356         Makefile: Tweak indentation.
3357         * Makefile: Use tab as first character in every line that contains rule
3358         commands.
3359
3360 2011-11-13  Bruno Haible  <bruno@clisp.org>
3361
3362         Syntax check for copyright statements.
3363         * check-copyright: New file.
3364         * Makefile (sc_check_copyright): New rule.
3365
3366 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3367
3368         * build-aux/git-version-gen: Add --prefix to configure the tag
3369         match string.
3370
3371 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3372
3373         * build-aux/git-version-gen: Add --help and --version.
3374
3375 2011-11-12  Jim Meyering  <meyering@redhat.com>
3376
3377         revamp the other test-exclude?.sh scripts to use init.sh, too
3378         * tests/test-exclude1.sh: Use init.sh.
3379         * tests/test-exclude2.sh: Likewise.
3380         * tests/test-exclude3.sh: Likewise.
3381         * tests/test-exclude4.sh: Likewise.
3382         * tests/test-exclude5.sh: Likewise.
3383         * tests/test-exclude6.sh: Likewise.
3384         * tests/test-exclude7.sh: Likewise.
3385         * tests/test-exclude8.sh: Likewise.
3386         * modules/exclude-tests (Files): List init.sh.
3387
3388         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3389         These shell scripts ignored failure of the binary test-exclude,
3390         so making the latter return 77 didn't cause them to be skipped.
3391         * tests/test-exclude5.sh: Exit with test-exclude's error status
3392         when that program fails.  Revamp to use init.sh.
3393         * tests/test-exclude2.sh: Likewise.
3394
3395         test-exclude: fix a typo
3396         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3397
3398 2011-11-11  Bruno Haible  <bruno@clisp.org>
3399
3400         obstack: Fix compilation error on MSVC 9.
3401         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3402
3403 2011-11-11  Jim Meyering  <meyering@redhat.com>
3404
3405         test-exclude: skip tests rather than failing on deficient systems
3406         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3407         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3408         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3409         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3410
3411 2011-11-10  Bruno Haible  <bruno@clisp.org>
3412
3413         ptsname_r test: Avoid gcc warning on glibc systems.
3414         * tests/test-ptsname_r.c (null_ptr): New function.
3415         (test_errors): Use it.
3416
3417 2011-11-10  Bruno Haible  <bruno@clisp.org>
3418
3419         ptsname_r: Avoid compilation error on OSF/1 5.1.
3420         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3422         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3423         function is not declared or incompatibly declared.
3424         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3425         * modules/ptsname_r (Depends-on, configure.ac): Update.
3426         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3427
3428 2011-11-10  Bruno Haible  <bruno@clisp.org>
3429
3430         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3431         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3432         When cross-compiling, guess yes on all platforms except AIX.
3433         Reported by Ludovic Courtès <ludo@gnu.org>.
3434
3435 2011-11-09  Bruno Haible  <bruno@clisp.org>
3436
3437         ptsname_r tests: Fix bugs.
3438         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3439         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3440
3441 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3442
3443         fstatat: work with cross-compilation
3444         Problem reported by Ludovic Courtès in
3445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3446         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3447         "cross-compiling" and assume the bug is present.  Replace
3448         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3449         an inverted sense, to be more conservative about our assumptions.
3450         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3451
3452 2011-11-09  Bruno Haible  <bruno@clisp.org>
3453
3454         Improve MODULES.html output.
3455         * modules/mkfifoat (Description): Use the word "function".
3456         * modules/readlinkat (Description): Likewise.
3457         * modules/symlinkat (Description): Likewise.
3458
3459 2011-11-09  Eric Blake  <eblake@redhat.com>
3460
3461         ptsname_r-tests: new test module
3462         * modules/ptsname_r-tests: New module.
3463         * tests/test-ptsname_r.c: New file.
3464
3465         ptsname_r: new module
3466         * modules/ptsname_r: New module.
3467         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3468         * lib/ptsname.c (__ptsname_r): Split...
3469         * lib/ptsname_r.c: ...into new file.
3470         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3471         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3472         * modules/stdlib (Makefile.am): Substitute witnesses.
3473         * lib/stdlib.in.h (ptsname_r): Declare it.
3474         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3475         * MODULES.html.sh (Misc): Likewise.
3476         * modules/ptsname (Depends-on): Alter dependency.
3477         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3478
3479 2011-11-09  Jim Meyering  <meyering@redhat.com>
3480
3481         announce-gen: be more concise when there's only one URL+tarball
3482         * build-aux/announce-gen (get_tool_versions): When you distribute
3483         only one type of tarball, combine the first two "Here are..."
3484         sections and make the key-checking grammar independent of
3485         how many tarballs there are.
3486
3487 2011-11-09  Eric Blake  <eblake@redhat.com>
3488
3489         openpty: provide a stub on mingw
3490         * lib/pty.in.h (includes): Provide forward declarations.
3491         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3492
3493         raise: fix mingw handling of SIGPIPE
3494         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3495
3496 2011-11-08  Bruno Haible  <bruno@clisp.org>
3497
3498         More conditional dependencies.
3499         * modules/faccessat (Depends-on): Add conditions.
3500         * modules/fchmodat (Depends-on): Likewise.
3501         * modules/fchownat (Depends-on): Likewise.
3502         * modules/fstatat (Depends-on): Likewise.
3503         * modules/mkfifoat (Depends-on): Likewise.
3504         * modules/readlinkat (Depends-on): Likewise.
3505         * modules/symlinkat (Depends-on): Likewise.
3506         * modules/unlinkat (Depends-on): Likewise.
3507         * modules/utimensat (Depends-on): Likewise.
3508         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3509         * modules/linkat (Depends-on): Refine the conditions.
3510         * modules/renameat (Depends-on): Likewise.
3511
3512 2011-11-08  Bruno Haible  <bruno@clisp.org>
3513
3514         faccessat: Move AC_LIBOBJ invocation to module description.
3515         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3516         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3517         invocation from here...
3518         * modules/faccessat (configure.ac): ... to here. Invoke
3519         gl_PREREQ_FACCESSAT.
3520
3521 2011-11-08  Bruno Haible  <bruno@clisp.org>
3522
3523         faccessat: Simplify autoconf macro.
3524         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3525         gl_FUNC_EUIDACCESS.
3526
3527 2011-11-08  Bruno Haible  <bruno@clisp.org>
3528
3529         renameat: Fix dependencies.
3530         * modules/renameat (Depends-on): Add stdbool.
3531
3532 2011-11-08  Bruno Haible  <bruno@clisp.org>
3533
3534         mkfifoat: Fix module description.
3535         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3536         not gl_UNISTD_MODULE_INDICATOR.
3537
3538 2011-11-08  Bruno Haible  <bruno@clisp.org>
3539
3540         fstatat: Remove unused dependency.
3541         * modules/fstatat (Depends-on): Remove fstat.
3542
3543 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3544
3545         GNUmakefile: behave when Makefile is missing.
3546         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3547
3548 2011-11-08  Bruno Haible  <bruno@clisp.org>
3549
3550         openat: Conditionalize dependencies.
3551         * lib/openat.c: Reduce the scope of some #includes.
3552         * modules/openat (Depends-on): Add conditions.
3553
3554 2011-11-07  Jim Meyering  <meyering@redhat.com>
3555
3556         maint.mk: extract GPG key ID without using a temporary file
3557         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3558         without using a temporary file.  Based on a suggestion from Werner Koch
3559         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3560
3561 2011-11-07  Eric Blake  <eblake@redhat.com>
3562
3563         grantpt: fix typo
3564         * lib/stdlib.in.h (grantpt): Check correct function.
3565
3566         maint.mk: silence new syntax check
3567         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3568
3569 2011-11-06  Bruno Haible  <bruno@clisp.org>
3570
3571         Doc about floating-point and math API.
3572         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3573         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3574
3575 2011-11-06  Bruno Haible  <bruno@clisp.org>
3576
3577         stdalign tests: Skip the test when compiled by Sun C.
3578         * tests/test-stdalign.c (main): Skip the test on Sun C.
3579
3580 2011-11-06  Bruno Haible  <bruno@clisp.org>
3581
3582         ansi-c++-opt: Complete the 2011-06-05 change.
3583         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3584         does not support namespaces, set the variable to "no", not to ":".
3585
3586 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3587
3588         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3589
3590 2011-11-06  Bruno Haible  <bruno@clisp.org>
3591
3592         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3593         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3594         (minus_zerol) [HP-UX]: New macro.
3595         (unary_minus) [HP-UX]: New function.
3596         (copysignl) [HP-UX]: Use unary_minus function.
3597
3598 2011-11-06  Bruno Haible  <bruno@clisp.org>
3599
3600         ldexp, ldexpf, ldexpl: Enhance tests.
3601         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3602         and tests/test-ldexpl.c.
3603         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3604         LDEXP, MIN_EXP, MAX_EXP): New macros.
3605         Include test-ldexp.h.
3606         (main): Just call test_function.
3607         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3608         infinity.h, nan.h.
3609         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3610         MAX_EXP): New macros.
3611         Include test-ldexp.h.
3612         (x, y): Remove variables.
3613         (main): Just call test_function.
3614         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3615         infinity.h, nan.h.
3616         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3617         MAX_EXP): New macros.
3618         Include test-ldexp.h.
3619         (x, y): Remove variables.
3620         (main): Just call test_function.
3621         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3622         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3623         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3624         (Depends-on): Add isnand-nolibm, signbit, float.
3625         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3626         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3627         (Depends-on): Add isnanf-nolibm, signbit, float.
3628
3629 2011-11-06  Bruno Haible  <bruno@clisp.org>
3630
3631         math tests: Cosmetics.
3632         * tests/test-math-c++.cc: Reorder declarations.
3633
3634 2011-11-05  Bruno Haible  <bruno@clisp.org>
3635
3636         fma*: Simplify test.
3637         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3638         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3639
3640         Tests for module 'fmal'.
3641         * modules/fmal-tests: New file.
3642         * tests/test-fmal1.c: New file.
3643         * tests/test-fmal2.c: New file.
3644
3645         New module 'fmal'.
3646         * lib/math.in.h (fmal): New declaration.
3647         * lib/fmal.c: New file.
3648         * m4/fmal.m4: New file.
3649         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3651         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3652         REPLACE_FMAL.
3653         * modules/fmal: New file.
3654         * doc/posix-functions/fmal.texi: Mention the new module and the various
3655         bugs.
3656
3657         Tests for module 'fmaf'.
3658         * modules/fmaf-tests: New file.
3659         * tests/test-fmaf1.c: New file.
3660         * tests/test-fmaf2.c: New file.
3661
3662         New module 'fmaf'.
3663         * lib/math.in.h (fmaf): New declaration.
3664         * lib/fmaf.c: New file.
3665         * m4/fmaf.m4: New file.
3666         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3668         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3669         REPLACE_FMAF.
3670         * modules/fmaf: New file.
3671         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3672         bugs.
3673
3674         Tests for module 'fma'.
3675         * modules/fma-tests: New file.
3676         * tests/test-fma1.c: New file.
3677         * tests/test-fma1.h: New file.
3678         * tests/test-fma2.c: New file.
3679         * tests/test-fma2.h: New file.
3680
3681         New module 'fma'.
3682         * lib/math.in.h (fma): New declaration.
3683         * lib/fma.c: New file.
3684         * m4/fma.m4: New file.
3685         * m4/fegetround.m4: New file.
3686         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3688         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3689         REPLACE_FMA.
3690         * modules/fma: New file.
3691         * doc/posix-functions/fma.texi: Mention the new module and the various
3692         bugs.
3693
3694         Extend gl_MATHFUNC.
3695         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3696         Support 'void' as argument type.
3697         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3698
3699 2011-11-05  Jim Meyering  <meyering@redhat.com>
3700
3701         maint.mk: also prohibit inclusion of dirent.h without use
3702         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3703
3704 2011-11-05  Bruno Haible  <bruno@clisp.org>
3705
3706         ldexpl tests: Avoid test failure on MSVC 9.
3707         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3708         value. Needed in order to enforce the conversion from a value greater
3709         than LDBL_MAX to Infinity.
3710
3711 2011-11-05  Bruno Haible  <bruno@clisp.org>
3712
3713         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3714         * modules/at-internal: New file, extracted from modules/openat.
3715         * modules/openat-h: New file.
3716         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3717         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3718         * modules/openat (Description): Add reference to POSIX function.
3719         (Files): Remove lib/openat.h, lib/openat-proc.c.
3720         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3721         intprops, unistd.
3722         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3723         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3724         gl_FCNTL_MODULE_INDICATOR.
3725         (Include): Remove unistd.h, openat.h.
3726         * modules/areadlinkat (Files): Add lib/at-func.c.
3727         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3728         openat-die, openat-h, save-cwd.
3729         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3730         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3731         openat-die, openat-h, save-cwd, unistd.
3732         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3733         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3734         openat-h, save-cwd. Remove fcntl-h, openat.
3735         * modules/fchmodat (Files): Remove lib/openat.h.
3736         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3737         openat, stdbool, unistd.
3738         * modules/fchownat (Files): Remove lib/openat.h.
3739         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3740         openat, stdbool, sys_stat.
3741         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3742         lib/openat-proc.c.
3743         (Depends-on): Add at-internal.
3744         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3745         * modules/fstatat (Files): Remove lib/openat.h.
3746         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3747         stdbool, unistd.
3748         * modules/fts (Depends-on): Add openat-h.
3749         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3750         openat.
3751         * modules/mkdirat (Files): Remove lib/openat.h.
3752         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3753         openat, stdbool, sys_stat.
3754         * modules/mkfifoat (Files): Add lib/at-func.c.
3755         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3756         openat-h, save-cwd. Remove fcntl-h, openat.
3757         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3758         * modules/readlinkat (Files): Add lib/at-func.c.
3759         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3760         openat-h, save-cwd. Remove fcntl-h, openat.
3761         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3762         openat.
3763         * modules/selinux-at (Files): Add lib/at-func.c.
3764         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3765         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3766         * modules/symlinkat (Files): Add lib/at-func.c.
3767         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3768         openat-h, save-cwd. Remove fcntl-h, openat.
3769         * modules/unlinkat (Files): Remove lib/openat.h.
3770         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3771         stdbool.
3772         * modules/utimensat (Files): Add lib/at-func.c.
3773         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3774         openat-die, openat-h, save-cwd.
3775         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3776         * modules/fdutimensat-tests (Depends-on): Add openat.
3777         * modules/fstatat-tests (Depends-on): Add openat-h.
3778         * modules/readlinkat-tests (Depends-on): Add openat.
3779         * modules/symlinkat-tests (Depends-on): Add openat.
3780
3781 2011-11-05  Bruno Haible  <bruno@clisp.org>
3782
3783         openat: Include <stdbool.h>.
3784         * lib/openat.c: Include <stdbool.h>.
3785
3786 2011-11-04  Bruno Haible  <bruno@clisp.org>
3787
3788         fchownat, renameat, unlinkat: Fix dependencies.
3789         * modules/fchownat (Depends-on): Add fstatat.
3790         * modules/renameat (Depends-on): Likewise.
3791         * modules/unlinkat (Depends-on): Likewise.
3792
3793 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         openat: remove direct dependency on dirent
3796         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3797         and hasn't been needed ever since fdopendir was split into its own
3798         module on 2009-08-31.
3799         * modules/openat (Depends-on): Remove dirent.
3800
3801 2011-11-04  Bruno Haible  <bruno@clisp.org>
3802
3803         renameat: Optimize code size.
3804         * modules/renameat (configure.ac): Don't compile at-func2.c if
3805         REPLACE_RENAMEAT is 1.
3806
3807 2011-11-04  Bruno Haible  <bruno@clisp.org>
3808
3809         openat tests: Fix file list.
3810         * modules/openat-tests (Files): Add tests/test-open.h.
3811
3812 2011-11-04  Bruno Haible  <bruno@clisp.org>
3813
3814         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3815         * modules/fchmodat (Depends-on): Add openat-die.
3816         * modules/fchownat (Depends-on): Likewise.
3817         * modules/linkat (Depends-on): Likewise.
3818         * modules/renameat (Depends-on): Likewise.
3819         * modules/openat (Depends-on): Add dirent.
3820
3821 2011-11-04  Jim Meyering  <meyering@redhat.com>
3822
3823         at-func*.c: fix comments
3824         * lib/at-func2.c: Correct/improve first-line comment.
3825         * lib/at-func.c: Correct grammar in first-line comment.
3826
3827 2011-11-04  Bruno Haible  <bruno@clisp.org>
3828
3829         New module 'mkdirat', split off from module 'openat'.
3830         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3831         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3832         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3833         * modules/mkdirat: New file, extracted from modules/openat.
3834         * modules/openat (Files): Remove lib/mkdirat.c.
3835         (Depends-on): Remove mkdir.
3836         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3837         (Include): Remove <sys/stat.h>.
3838         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3839         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3840         tests/test-mkdir.h.
3841         (Depends-on): Remove ignore-value.
3842         (Makefile.am): Remove rules for test-mkdirat.
3843         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3844         of module 'openat'.
3845         * NEWS: Mention the change.
3846
3847 2011-11-04  Bruno Haible  <bruno@clisp.org>
3848
3849         closedir: Avoid warning on mingw.
3850         * lib/closedir.c: Include <unistd.h>.
3851
3852 2011-11-04  Bruno Haible  <bruno@clisp.org>
3853
3854         New module 'fstatat', split off from module 'openat'.
3855         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3856         defined.
3857         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3858         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3859         gl_FUNC_FSTATAT.
3860         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3861         * modules/fstatat: New file, extracted from modules/openat.
3862         * modules/openat (Files): Remove lib/fstatat.c.
3863         (Depends-on): Remove lstat.
3864         (configure.ac): Remove AC_LIBOBJ of fstatat.
3865         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3866         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3867         tests/test-lstat.h, tests/test-stat.h.
3868         (Depends-on): Remove getcwd-lgpl.
3869         (Makefile.am): Remove rules for test-fstatat.
3870         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3871         of module 'openat'.
3872         * NEWS: Mention the change.
3873         * modules/getcwd (Depends-on): Add fstatat.
3874         * modules/linkat (Depends-on): Likewise.
3875         * modules/mkfifoat-tests (Depends-on): Likewise.
3876         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3877
3878 2011-11-03  Bruno Haible  <bruno@clisp.org>
3879
3880         New module 'unlinkat', split off from module 'openat'.
3881         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3883         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3884         * modules/unlinkat: New file, extracted from modules/openat. Correct
3885         the dependency conditions.
3886         * modules/openat (Files): Remove lib/unlinkat.c.
3887         (Depends-on): Remove rmdir, unlink.
3888         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3889         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3890         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3891         tests/test-rmdir.h, tests/test-unlink.h.
3892         (Depends-on): Remove unlinkdir.
3893         (Makefile.am): Remove rules for test-unlinkat.
3894         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3895         of module 'openat'.
3896         * NEWS: Mention the change.
3897         * modules/linkat-tests (Depends-on): Add unlinkat.
3898         * modules/mkfifoat-tests (Depends-on): Likewise.
3899         * modules/readlinkat-tests (Depends-on): Likewise.
3900
3901 2011-11-02  Bruno Haible  <bruno@clisp.org>
3902
3903         New module 'fchmodat', split off from module 'openat'.
3904         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3905         defined.
3906         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3907         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3908         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3909         * modules/fchmodat: New file, extracted from modules/openat.
3910         * modules/openat (Files): Remove lib/fchmodat.c.
3911         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3912         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3913         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3914         (Makefile.am): Remove rules for test-fchmodat.
3915         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3916         of module 'openat'.
3917         * NEWS: Mention the change.
3918
3919 2011-11-02  Jim Meyering  <meyering@redhat.com>
3920
3921         putenv: indent #definition of "environ" to placate cppi
3922         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3923
3924         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3925         Git logs are often treated as immutable, because editing them
3926         changes the SHA1 checksums of all descendants.  Thus, errors in
3927         git logs tend to stay there forever.  However, when we generate
3928         a ChangeLog file -- typically for distribution -- from that git log,
3929         we can actually make corrections in the generated file.  The key
3930         lies in recording in machine-readable/applicable form the desired
3931         corrections.  See --help for description and an example.
3932         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3933         (usage): Describe it; alphabetize option descriptions.
3934         (main): Honor the new option, carefully.
3935
3936 2011-11-01  Jim Meyering  <meyering@redhat.com>
3937
3938         gitlog-to-changelog: avoid an infloop
3939         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3940         that ends up being empty.
3941
3942 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3943
3944         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3945         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3946         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3947         contains (possibly-quoted) backslashes.  This should avoid
3948         all-too-common shell bugs if COMPLICATED contains backslashes in
3949         the "wrong" places.  Reported by David Evans in
3950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3951         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3952         because we want ASCII ranges.  Is there some reason we don't use
3953         the C locale everywhere in this script?
3954         (func_module, top level): Avoid unwanted pathname expansion when
3955         $repo_url_prefix or $repo_url_suffix_repl contain shell
3956         metacharacters like '?' and '*'.
3957
3958 2011-11-01  Bruno Haible  <bruno@clisp.org>
3959
3960         fchownat: Improve description.
3961         * modules/fchownat (Description): Add link to function.
3962
3963 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3964
3965         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3966         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3968         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3969
3970 2011-11-01  Bruno Haible  <bruno@clisp.org>
3971
3972         alignof: Avoid collision with stdalign module.
3973         * lib/alignof.h (alignof): Remove macro.
3974         * NEWS: Mention the change.
3975         Reported by Paul Eggert.
3976
3977 2011-11-01  Bruno Haible  <bruno@clisp.org>
3978
3979         New module 'fchownat', split off from module 'openat'.
3980         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3981         defined.
3982         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3983         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3984         invoke gl_FUNC_FCHOWNAT.
3985         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3986         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3987         * modules/fchownat: New file, extracted from modules/openat.
3988         * modules/openat (Files): Remove lib/fchownat.c.
3989         (Depends-on): Remove lchown.
3990         (configure.ac): Remove AC_LIBOBJ of fchownat.
3991         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3992         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3993         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3994         (Depends-on): Remove mgetgroups, usleep, stat-time.
3995         (configure.ac): Remove test for getegid.
3996         (Makefile.am): Remove rules for test-fchownat.
3997         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3998         of module 'openat'.
3999         * NEWS: Mention the change.
4000
4001 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
4002
4003         stdalign: port better to MSVC and to Sun C 5.11
4004         This fixes some of the problems reported by Bruno Haible in
4005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
4006         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
4007         shortcomings of MSVC and of Sun C 5.11.
4008         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
4009         around __declspec arg.
4010         * modules/stdalign-tests (Files): Add tests/macros.h.
4011         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
4012         Include macros.h, for ASSERT.
4013         (DECLARE_ALIGNED): Remove.
4014         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
4015         to catch bug), and to 1 if not (simplifies the rest of the code).
4016         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
4017         (CHECK_AUTO): Remove.
4018         (CHECK_ALIGNED): Check only the alignment of the static vars,
4019         since auto var alignment isn't supported by Sun C 5.11.
4020         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
4021         ASSERT failures are easier to diagnose.
4022
4023 2011-10-31  Bruno Haible  <bruno@clisp.org>
4024
4025         doc about some IRIX 5.3 problems.
4026         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
4027         on IRIX 5.3.
4028         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
4029         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
4030         5.3.
4031         * doc/posix-functions/grantpt.texi: Likewise.
4032         * doc/posix-functions/unlockpt.texi: Likewise.
4033         * doc/posix-functions/lgamma.texi: Likewise.
4034         * doc/posix-functions/nextafter.texi: Likewise.
4035         * doc/posix-functions/remainder.texi: Likewise.
4036         * doc/posix-functions/select.texi: Mention misplaced declaration on
4037         IRIX 5.3.
4038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4039
4040 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
4041
4042         gitlog-to-changelog: fix git-log invocation.
4043         git-log mishandles date strings before 1970-01-01 UTC, and there is
4044         no use to specify --since=1970-01-01 by default anyway.
4045         * build-aux/gitlog-to-changelog: By default, when no --since option
4046         was given, do not specify explicit --since option to git-log.
4047
4048 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
4049
4050         gitlog-to-changelog: new option --append-dot.
4051         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
4052         first non-blank line of each commit message terminated with a dot.
4053
4054 2011-10-30  Bruno Haible  <bruno@clisp.org>
4055
4056         ffsl, ffsll: Avoid compilation error due to 'restrict'.
4057         * lib/ffsl.h: Include <config.h>.
4058         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
4059
4060 2011-10-30  Jim Meyering  <meyering@redhat.com>
4061
4062         GNUmakefile: reenable "make syntax-check" for most projects
4063         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
4064         build-aux variable", "syntax-check" would do nothing but succeed with
4065         the "No version control files detected..." diagnostic (unless you
4066         happened to override _build-aux via cfg.mk).
4067         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
4068         to precede inclusion of maint.mk.  Otherwise, these variables would
4069         be used undefined in any project that does not override the default.
4070
4071 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
4072
4073         gitlog-to-changelog: treat a message with only blank lines as empty.
4074         * build-aux/gitlog-to-changelog: Move the code that removes leading and
4075         trailing blank lines before the code that issues a warning about an
4076         empty commit message.
4077
4078 2011-10-30  Jim Meyering  <meyering@redhat.com>
4079
4080         test-parse-datetime.c: avoid new DST-related false positive test failure
4081         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
4082         based on the time/date we'll convert, not the current time.
4083         Otherwise, the moment we cross a DST boundary like today's in
4084         Europe, (CEST to CET), that offset ends up being one hour off.
4085
4086 2011-10-27  Bruno Haible  <bruno@clisp.org>
4087
4088         fstat: Tweak documentation.
4089         * modules/fstat (Description): More precise description.
4090
4091 2011-10-27  Bruno Haible  <bruno@clisp.org>
4092
4093         Update documentation regarding 'largefile' module.
4094         * doc/posix-functions/fstat.texi: Tweak wording.
4095         * doc/posix-functions/opendir.texi: Mention that the module fixes the
4096         problems with huge directories and/or small ino_t types.
4097         * doc/posix-functions/readdir.texi: Likewise.
4098         * doc/posix-functions/rewinddir.texi: Likewise.
4099
4100 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
4101
4102         maint.mk: don't maintain a second build-aux variable.
4103         * maint.mk (build_aux): Removed.  The maintainer-makefile module
4104         depends on GNUmakefile, which already maintains a cfg.mk
4105         overridable $(_build-aux) for projects with a non-standard
4106         build-aux directory location, although without the $(srcdir)
4107         prefix.  Use that variable consistently instead of introducing a
4108         second one.  Adjust all call sites.
4109
4110 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4111
4112         Add stdalign module and use it in other modules.
4113         This is based on a previous proposal by Bruno Haible
4114         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
4115
4116         stdalign: new module
4117         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
4118         * modules/stdalign: New files.
4119         * MODULES.html.sh (c1x_core_properties): Add stdalign.
4120         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
4121
4122         stdalign-tests: new module
4123         * modules/stdalign-tests, tests/test-stdalign.c: New files.
4124
4125         argp: use stdalign
4126         * lib/argp-parse.c: Include <stdalign.h>.
4127         (alignof): Remove.
4128         * modules/argp (Depends-on): Add stdalign.
4129
4130         crypto libraries: use stdalign
4131         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
4132         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
4133         Do not include <stdlib.h> twice, in md4.c.
4134         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
4135         because we are accessing a pointer's bit-pattern, not a size.
4136         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
4137         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
4138         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
4139         * modules/crypto/sha512: Likewise.
4140
4141         sys_socket: use stdalign, not alignof
4142         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
4143         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
4144
4145 2011-10-27  Bruno Haible  <bruno@clisp.org>
4146
4147         raise test: Avoid a test failure on Linux/MIPS.
4148         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
4149         because 99 is a valid signal on Linux/MIPS.
4150
4151 2011-10-27  Bruno Haible  <bruno@clisp.org>
4152
4153         nonblocking tests: Fix test failure on Linux/MIPS.
4154         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
4155         Set to 270000.
4156
4157 2011-10-27  Bruno Haible  <bruno@clisp.org>
4158
4159         utimensat: Work around problem on Linux/hppa.
4160         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
4161         values.
4162         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
4163
4164 2011-10-25  Jim Meyering  <meyering@redhat.com>
4165
4166         maint.mk: fix a bug in sc_prohibit_stddef_without_use
4167         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
4168         after symbols like NULL, size_t, etc.
4169         Reported by Alfred M. Szmidt.
4170
4171         maint.mk: exempt ENODATA from a syntax-check rule
4172         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
4173         from the sc_prohibit_always-defined_macros syntax-check rule.
4174         Add a comment.  See this for more details:
4175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
4176
4177 2011-10-23  Jim Meyering  <meyering@redhat.com>
4178
4179         fts: close parent dir FD before returning from post-traversal fts_read
4180         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
4181         unlink A, even though an FD open on A remained.  This is suboptimal
4182         (holding a file descriptor open longer than needed), but otherwise not
4183         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
4184         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
4185         that represents a real problem: it causes the removal of A to fail
4186         with e.g., "rm: cannot remove `A': Device or resource busy"
4187
4188         fts visits each directory twice and keeps a cache (fts_fd_ring) of
4189         directory file descriptors.  After completing the final, FTS_DP,
4190         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
4191         cache, but then proceeded to add a new FD to it via the subsequent
4192         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
4193         final file descriptor would be closed only via fts_close's call to
4194         fd_ring_clear.  Now, it is usually closed earlier, via the final
4195         FTS_DP-returning fts_read call.
4196         * lib/fts.c (restore_initial_cwd): New function, converted from
4197         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
4198         Update callers.
4199         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
4200         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
4201
4202 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
4203             Bruno Haible  <bruno@clisp.org>
4204             Jim Meyering  <jim@meyering.net>
4205
4206         readme-release: improve safety of release prep instructions.
4207         * README-release: Don't git pull all branches when only master
4208         is needed for the release process.
4209         Run make maintainer-clean before changing trees and merging.
4210         Don't try to run ./configure right after git pull in case files
4211         that influence the bootstrap process have changed, move the
4212         ./configure step to after running ./bootstrap.
4213         Don't bootstrap "one last time"... it's the first time!
4214
4215 2011-10-22  Bruno Haible  <bruno@clisp.org>
4216
4217         errno, strerror-override: Support for MSVC 10.
4218         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
4219         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
4220         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
4221         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4222         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4223         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4224         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4225         Assign values compatible with MSVC 10.
4226         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4227         New macros.
4228         (GNULIB_defined_EWINSOCK): New macro.
4229         * lib/strerror-override.c (strerror_override): Update accordingly.
4230         * lib/strerror-override.h: Likewise.
4231         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4232         longer equal to the corresponding errno value.
4233         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4234
4235 2011-10-22  Bruno Haible  <bruno@clisp.org>
4236
4237         perror: Recognize when test program crashes.
4238         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4239         strerror, set gl_cv_func_perror_works to no.
4240         Reported by Daniel Richard G. <skunk@iskunk.org>.
4241
4242         perror: Fix indentation.
4243         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4244
4245 2011-10-22  Bruno Haible  <bruno@clisp.org>
4246
4247         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4248         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4249         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4250         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4251         functions, not as a macro.
4252         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4253         macros.
4254         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4255         absence of macro.
4256         Suggested by Eric Blake.
4257         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4258
4259 2011-10-21  Bruno Haible  <bruno@clisp.org>
4260
4261         relocatable-prog-wrapper: Don't leave object files behind.
4262         * build-aux/install-reloc: Re-synchronize list of .o files to be
4263         removed with list of compilation units.
4264
4265 2011-10-20  Bruno Haible  <bruno@clisp.org>
4266
4267         openpty, posix_openpt: Remove code duplication.
4268         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4269         * lib/openpty.c: Include <stdlib.h>.
4270         (openpty): Use posix_openpt on all platforms except IRIX.
4271         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4272
4273 2011-10-20  Bruno Haible  <bruno@clisp.org>
4274
4275         unlockpt: Detect invalid argument.
4276         * lib/unlockpt.c: Include <fcntl.h>.
4277         (unlockpt): Check whether fd is valid, using fcntl().
4278         * modules/unlockpt (Depends-on): Add fcntl-h.
4279
4280 2011-10-20  Bruno Haible  <bruno@clisp.org>
4281
4282         openpty: Avoid compilation error on AIX 6.1.
4283         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4284
4285 2011-10-20  Bruno Haible  <bruno@clisp.org>
4286
4287         posix_openpt: Support for OpenBSD.
4288         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4289         (posix_openpt) [OpenBSD]: New code.
4290         * lib/grantpt.c: Include <fcntl.h>.
4291         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4292         * modules/grantpt (Depends-on): Add fcntl-h.
4293
4294 2011-10-20  Bruno Haible  <bruno@clisp.org>
4295
4296         posix_openpt test: Coding style.
4297         * tests/test-posix_openpt.c: Use GNU coding style.
4298
4299 2011-10-20  Bruno Haible  <bruno@clisp.org>
4300
4301         grantpt: Support --avoid=pt_chown.
4302         * modules/grantpt (Files): Add lib/pty-private.h.
4303
4304 2011-10-20  Bruno Haible  <bruno@clisp.org>
4305
4306         posix_openpt: Fix autoconf macro.
4307         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4308         unneeded check for _getpty.
4309
4310 2011-10-20  Bruno Haible  <bruno@clisp.org>
4311
4312         openpty: Update comments.
4313         * lib/openpty.c: Add comments about Minix.
4314
4315 2011-10-19  Eric Blake  <eblake@redhat.com>
4316
4317         openpty: relax license
4318         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4319
4320         pt_chown: use configmake to simplify build
4321         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4322
4323         ptsname and others: relax license
4324         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4325         * modules/unlockpt (License): Likewise.
4326         * modules/pt_chown (License): Likewise.
4327         * modules/ptsname (License): Likewise.
4328         * modules/ttyname_r (License): Likewise.
4329
4330 2011-10-19  Jim Meyering  <meyering@redhat.com>
4331
4332         posix_openpt: remove spurious #endif
4333         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4334
4335 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4336
4337         maint.mk: Respect $(build_aux) in web-manual rule.
4338         * top/maint.mk (web-manual): Find gen-announce script in user's
4339         $(build_aux) directory instead of hard-coding 'build-aux'.
4340
4341 2011-10-19  Bruno Haible  <bruno@clisp.org>
4342
4343         posix_openpt: Fix compilation error.
4344         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4345         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4346         Mention the openpty module as an alternative.
4347
4348 2011-10-19  Bruno Haible  <bruno@clisp.org>
4349
4350         Support for old NeXTstep 3.3 frexp().
4351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4352         execution time of the test to 5 seconds.
4353         Reported by Daniel Richard G. <skunk@iskunk.org>.
4354
4355 2011-10-19  Bruno Haible  <bruno@clisp.org>
4356
4357         Support for old NeXTstep 3.3 sed.
4358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4359         part, use /.../, not \|...|. Escape periods in the header file name.
4360         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4361         Reported by Daniel Richard G. <skunk@iskunk.org>.
4362
4363 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4364
4365         Support for old NeXTstep 3.3 gcc.
4366         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4367         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4368         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4369         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4370         * lib/regex.h (_Restrict_arr_): Likewise.
4371         * lib/regex_internal.h (re_token_t): Likewise.
4372         * lib/regexec.c (check_node_accept_bytes): Likewise.
4373         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4374
4375 2011-10-18  Eric Blake  <eblake@redhat.com>
4376
4377         posix_openpt: new module
4378         * modules/posix_openpt: New module.
4379         * m4/posix_openpt.m4: New file.
4380         * lib/posix_openpt.c: Likewise.
4381         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4382         (gl_STDLIB_H_DEFAULTS): Set defaults.
4383         * modules/stdlib (Makefile.am): Substitute macros.
4384         * lib/stdlib.in.h (posix_openpt): Declare.
4385         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4386         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4387         * modules/posix_openpt-tests: New test module.
4388         * tests/test-posix_openpt.c: New test.
4389
4390 2011-10-15  Bruno Haible  <bruno@clisp.org>
4391
4392         xstrtoll: Fix compilation failure.
4393         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4394         from lib/strtol.c.
4395         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4396         some platforms.
4397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4398
4399 2011-10-15  Bruno Haible  <bruno@clisp.org>
4400
4401         vasnprintf: Optimize bit search operation.
4402         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4404         gl_DOUBLE_EXPONENT_LOCATION.
4405         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4406         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4407         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4408         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4409         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4410         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4411         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4412         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4413         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4414
4415 2011-10-15  Bruno Haible  <bruno@clisp.org>
4416
4417         vasnprintf: Fix comments.
4418         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4419
4420 2011-10-14  Bruno Haible  <bruno@clisp.org>
4421
4422         Tests for module 'integer_length_ll'.
4423         * modules/integer_length_ll-tests: New file.
4424         * tests/test-integer_length_ll.c: New file.
4425
4426         New module 'integer_length_ll'.
4427         * lib/integer_length_ll.c: New file.
4428         * modules/integer_length_ll: New file.
4429
4430 2011-10-14  Bruno Haible  <bruno@clisp.org>
4431
4432         Tests for module 'integer_length_l'.
4433         * modules/integer_length_l-tests: New file.
4434         * tests/test-integer_length_l.c: New file.
4435
4436         New module 'integer_length_l'.
4437         * lib/integer_length_l.c: New file.
4438         * modules/integer_length_l: New file.
4439
4440 2011-10-14  Bruno Haible  <bruno@clisp.org>
4441
4442         Tests for module 'integer_length'.
4443         * modules/integer_length-tests: New file.
4444         * tests/test-integer_length.c: New file.
4445
4446         New module 'integer_length'.
4447         * lib/integer_length.h: New file.
4448         * lib/integer_length.c: New file.
4449         * modules/integer_length: New file.
4450
4451 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4452
4453         popen: Fix dependency conditions.
4454         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4455
4456 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4457
4458         perror: Fix autoconf test.
4459         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4460         <stdlib.h> and <string.h>.
4461
4462 2011-10-14  Bruno Haible  <bruno@clisp.org>
4463
4464         ffsl: Optimize on 64-bit platforms.
4465         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4466         unrolling.
4467
4468 2011-10-13  Bruno Haible  <bruno@clisp.org>
4469
4470         ffsl: Optimize on 32-bit platforms.
4471         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4472         use ffs() without a loop.
4473
4474         ffsl, ffsll: Optimize for GCC.
4475         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4476         * lib/ffsl.c (GCC_BUILTIN): New macro.
4477         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4478
4479 2011-10-13  Bruno Haible  <bruno@clisp.org>
4480
4481         ffs, bcopy, memset: Support symbol renaming via config.h.
4482         * lib/ffs.c: Include <config.h>.
4483         * lib/bcopy.c: Likewise.
4484         * lib/memset.c: Likewise.
4485
4486 2011-10-10  Bruno Haible  <bruno@clisp.org>
4487
4488         atanl: Simplify for platforms where 'long double' == 'double'.
4489         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4490         alternative implementation.
4491         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4492         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4493         * modules/atanl (Depends-on): Add atan. Update conditions.
4494
4495 2011-10-10  Bruno Haible  <bruno@clisp.org>
4496
4497         acosl: Simplify for platforms where 'long double' == 'double'.
4498         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4499         alternative implementation.
4500         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4501         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4502         * modules/acosl (Depends-on): Add acos. Update conditions.
4503
4504 2011-10-10  Bruno Haible  <bruno@clisp.org>
4505
4506         asinl: Simplify for platforms where 'long double' == 'double'.
4507         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4508         alternative implementation.
4509         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4510         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4511         * modules/asinl (Depends-on): Add asin. Update conditions.
4512
4513 2011-10-10  Bruno Haible  <bruno@clisp.org>
4514
4515         tanl: Simplify for platforms where 'long double' == 'double'.
4516         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4517         implementation.
4518         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4519         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4520         * modules/tanl (Depends-on): Add tan. Update conditions.
4521         (configure.ac): Don't compile trigl.c if
4522         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4523
4524 2011-10-10  Bruno Haible  <bruno@clisp.org>
4525
4526         cosl: Simplify for platforms where 'long double' == 'double'.
4527         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4528         implementation.
4529         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4530         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4531         * modules/cosl (Depends-on): Add cos. Update conditions.
4532         (configure.ac): Don't compile sincosl.c and trigl.c if
4533         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4534
4535 2011-10-10  Bruno Haible  <bruno@clisp.org>
4536
4537         sinl: Simplify for platforms where 'long double' == 'double'.
4538         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4539         implementation.
4540         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4541         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4542         * modules/sinl (Depends-on): Add sin. Update conditions.
4543         (configure.ac): Don't compile sincosl.c and trigl.c if
4544         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4545
4546 2011-10-10  Bruno Haible  <bruno@clisp.org>
4547
4548         logl: Simplify for platforms where 'long double' == 'double'.
4549         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4550         implementation.
4551         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4552         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4553         * modules/logl (Depends-on): Add log. Update conditions.
4554
4555 2011-10-10  Bruno Haible  <bruno@clisp.org>
4556
4557         expl: Simplify for platforms where 'long double' == 'double'.
4558         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4559         implementation.
4560         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4561         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4562         * modules/expl (Depends-on): Add exp. Update conditions.
4563
4564 2011-10-10  Bruno Haible  <bruno@clisp.org>
4565
4566         sqrtl: Simplify for platforms where 'long double' == 'double'.
4567         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4568         alternative implementation.
4569         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4570         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4571         * modules/sqrtl (Depends-on): Update conditions.
4572
4573 2011-10-10  Bruno Haible  <bruno@clisp.org>
4574
4575         ldexpl: Simplify for platforms where 'long double' == 'double'.
4576         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4577         alternative implementation.
4578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4579         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4580         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4581
4582 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4583
4584         ffsll: set correct witness
4585         * modules/ffsll (configure.ac): Fix typo.
4586
4587 2011-10-10  Bruno Haible  <bruno@clisp.org>
4588
4589         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4590         * lib/printf-frexpl.c: Include <config.h>.
4591         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4592         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4593         second time.
4594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4595         gl_LONG_DOUBLE_VS_DOUBLE.
4596         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4597         conditions.
4598
4599 2011-10-10  Bruno Haible  <bruno@clisp.org>
4600
4601         frexpl: Simplify for platforms where 'long double' == 'double'.
4602         * lib/frexpl.c: Include <config.h>.
4603         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4604         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4605         time.
4606         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4607         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4608         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4609         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4610         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4611         conditions.
4612
4613 2011-10-10  Jim Meyering  <meyering@redhat.com>
4614
4615         test-renameat: don't leave behind a temporary file
4616         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4617           ERROR: files left in build directory after distclean:
4618           ./gltests/test-renameat.too
4619           make[1]: *** [distcleancheck] Error 1
4620         Reported by Tom G. Christensen.
4621
4622 2011-10-09  Bruno Haible  <bruno@clisp.org>
4623
4624         rint: Determine RINT_LIBM correctly on AIX 7.
4625         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4626         directly, not only through a function pointer. Also accept an optional
4627         4th argument with extra code.
4628         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4629         rintf() call by gcc when optimizing.
4630
4631         mathfunc.m4: Refactor.
4632         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4633         m4 variable.
4634
4635 2011-10-09  Bruno Haible  <bruno@clisp.org>
4636
4637         rintl: Simplify for platforms where 'long double' == 'double'.
4638         * lib/rintl.c: Include <config.h>.
4639         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4640         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4641         time.
4642         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4643         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4644         * modules/rintl (Depends-on): Add rint. Update conditions.
4645
4646 2011-10-09  Bruno Haible  <bruno@clisp.org>
4647
4648         roundl: Simplify for platforms where 'long double' == 'double'.
4649         * lib/roundl.c: Include <config.h>.
4650         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4651         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4652         time.
4653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4654         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4655         * modules/roundl (Depends-on): Add round. Update conditions.
4656
4657 2011-10-09  Bruno Haible  <bruno@clisp.org>
4658
4659         truncl: Simplify for platforms where 'long double' == 'double'.
4660         * lib/truncl.c: Include <config.h>.
4661         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4662         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4663         time.
4664         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4665         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4666         * modules/truncl (Depends-on): Add trunc. Update conditions.
4667
4668 2011-10-09  Bruno Haible  <bruno@clisp.org>
4669
4670         ceill: Simplify for platforms where 'long double' == 'double'.
4671         * lib/ceill.c: Include <config.h>.
4672         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4673         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4674         time.
4675         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4676         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4677         * modules/ceill (Depends-on): Add ceil. Update conditions.
4678
4679 2011-10-09  Bruno Haible  <bruno@clisp.org>
4680
4681         floorl: Simplify for platforms where 'long double' == 'double'.
4682         * lib/floorl.c: Include <config.h>.
4683         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4684         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4685         time.
4686         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4687         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4688         * modules/floorl (Depends-on): Add floor. Update conditions.
4689
4690 2011-10-09  Bruno Haible  <bruno@clisp.org>
4691
4692         rint: Fix ordering constraints.
4693         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4694         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4695         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4696
4697 2011-10-09  Bruno Haible  <bruno@clisp.org>
4698
4699         copysignl: Simplify for platforms where 'long double' == 'double'.
4700         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4701         alternative.
4702         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4703         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4704         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4705
4706 2011-10-09  Bruno Haible  <bruno@clisp.org>
4707
4708         Tests for module 'rintl'.
4709         * modules/rintl-tests: New file.
4710         * tests/test-rintl.c: New file.
4711
4712         New module 'rintl'.
4713         * lib/math.in.h (rintl): New declaration.
4714         * lib/rintl.c: New file.
4715         * m4/rintl.m4: New file.
4716         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4718         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4719         * modules/rintl: New file.
4720         * tests/test-math-c++.cc: Check the declaration of rintl.
4721         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4722         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4723         * doc/posix-functions/rintl.texi: Mention the new module.
4724
4725 2011-10-09  Bruno Haible  <bruno@clisp.org>
4726
4727         Tests for module 'rintf'.
4728         * modules/rintf-tests: New file.
4729         * tests/test-rintf.c: New file.
4730
4731         New module 'rintf'.
4732         * lib/math.in.h (rintf): New declaration.
4733         * lib/rintf.c: New file.
4734         * m4/rintf.m4: New file.
4735         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4737         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4738         * modules/rintf: New file.
4739         * tests/test-math-c++.cc: Check the declaration of rintf.
4740         * doc/posix-functions/rintf.texi: Mention the new module.
4741
4742 2011-10-09  Bruno Haible  <bruno@clisp.org>
4743
4744         rint: Support for MSVC.
4745         * lib/math.in.h (rint): New declaration.
4746         * lib/rint.c: New file.
4747         * m4/rint.m4: New file.
4748         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4750         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4751         * modules/rint (Description): Fix.
4752         (Files): Add lib/rint.c, m4/rint.m4.
4753         (Depends-on): Add math.
4754         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4755         gl_MATH_MODULE_INDICATOR.
4756         * tests/test-math-c++.cc: Check the declaration of rint.
4757         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4758         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4759         * doc/posix-functions/rint.texi: Mention the replacement provided by
4760         the module.
4761
4762         rint tests: More tests.
4763         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4764         minus-zero.h, infinity.h, nan.h.
4765         (main): Skip the test if the current rounding mode is not standard. Add
4766         tests for negative numbers, minus zero, infinity, NaN.
4767         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4768         tests/nan.h.
4769         (Depends-on): Add isnand-nolibm.
4770
4771 2011-10-09  Bruno Haible  <bruno@clisp.org>
4772
4773         Tests for module 'copysignl'.
4774         * modules/copysignl-tests: New file.
4775         * tests/test-copysignl.c: New file.
4776
4777         New module 'copysignl'.
4778         * lib/math.in.h (copysignl): New declaration.
4779         * lib/copysignl.c: New file.
4780         * m4/copysignl.m4: New file.
4781         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4783         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4784         HAVE_COPYSIGNL.
4785         * modules/copysignl: New file.
4786         * tests/test-math-c++.cc: Check the declaration of copysignl.
4787         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4788         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4789         * doc/posix-functions/copysignl.texi: Mention the new module.
4790
4791 2011-10-09  Bruno Haible  <bruno@clisp.org>
4792
4793         Tests for module 'copysignf'.
4794         * modules/copysignf-tests: New file.
4795         * tests/test-copysignf.c: New file.
4796
4797         New module 'copysignf'.
4798         * lib/math.in.h (copysignf): New declaration.
4799         * lib/copysignf.c: New file.
4800         * m4/copysignf.m4: New file.
4801         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4803         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4804         HAVE_COPYSIGNF.
4805         * modules/copysignf: New file.
4806         * tests/test-math-c++.cc: Check the declaration of copysignf.
4807         * doc/posix-functions/copysignf.texi: Mention the new module.
4808
4809 2011-10-09  Bruno Haible  <bruno@clisp.org>
4810
4811         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4812         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4813         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4814         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4815         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4816         gl_SIGNAL_H_DEFAULTS.
4817
4818 2011-10-09  Bruno Haible  <bruno@clisp.org>
4819
4820         poll: Make macro safer.
4821         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4822         ac_cv_header_poll_h is not set.
4823
4824 2011-10-09  Bruno Haible  <bruno@clisp.org>
4825
4826         copysign: Provide replacement.
4827         * lib/math.in.h (copysign): New declaration.
4828         * lib/copysign.c: New file.
4829         * m4/copysign.m4: New file.
4830         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4832         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4833         HAVE_COPYSIGN.
4834         * modules/copysign (Description): Clarify.
4835         (Files): Add lib/copysign.c, m4/copysign.m4.
4836         (Depends-on): Add math, signbit.
4837         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4838         gl_MATH_MODULE_INDICATOR.
4839         * tests/test-math-c++.cc: Check the declaration of copysign.
4840         * doc/posix-functions/copysign.texi: Mention the effects of the module
4841         on Minix and MSVC.
4842
4843 2011-10-09  Bruno Haible  <bruno@clisp.org>
4844
4845         isinf: Ensure macro on AIX 5.1.
4846         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4847         macro.
4848         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4849
4850 2011-10-09  Bruno Haible  <bruno@clisp.org>
4851
4852         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4853         * modules/snprintf-posix-tests (configure.ac): Require
4854         gl_LONG_DOUBLE_VS_DOUBLE.
4855         * modules/sprintf-posix-tests (configure.ac): Likewise.
4856         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4857         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4858         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4859         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4860         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4861         tests on platforms where 'long double' is the same as 'double'.
4862         * tests/test-sprintf-posix.h (test_function): Likewise.
4863         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4864         * tests/test-vasprintf-posix.c (test_function): Likewise.
4865
4866         *printf: Fix for platforms where 'long double' == 'double'.
4867         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4868         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4869         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4870         * modules/fprintf-posix (Files): Likewise.
4871         * modules/obstack-printf-posix (Files): Likewise.
4872         * modules/snprintf-posix (Files): Likewise.
4873         * modules/sprintf-posix (Files): Likewise.
4874         * modules/vasnprintf (Files): Likewise.
4875         * modules/vasnprintf-posix (Files): Likewise.
4876         * modules/vasprintf-posix (Files): Likewise.
4877         * modules/vdprintf-posix (Files): Likewise.
4878         * modules/vfprintf-posix (Files): Likewise.
4879         * modules/vsnprintf-posix (Files): Likewise.
4880         * modules/vsprintf-posix (Files): Likewise.
4881         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4882         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4883         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4884         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4885         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4886         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4887         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4888
4889         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4890         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4891         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4892         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4893         'long double'.
4894         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4895
4896         isinf: Fix for platforms where 'long double' == 'double'.
4897         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4898         Don't blindly assume 80-bit 'long double'.
4899
4900         isfinite: Fix for platforms where 'long double' == 'double'.
4901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4902         Don't blindly assume 80-bit 'long double'.
4903
4904         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4905         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4906         * modules/isfinite-tests (configure.ac): Require
4907         gl_LONG_DOUBLE_VS_DOUBLE.
4908         * modules/isinf-tests (configure.ac): Likewise.
4909         * modules/isnan-tests (configure.ac): Likewise.
4910         * modules/isnanl-tests (configure.ac): Likewise.
4911         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4912         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4913         tests on platforms where 'long double' is the same as 'double'.
4914         * tests/test-isinf.c (test_isinfl): Likewise.
4915         * tests/test-isnan.c (test_long_double): Likewise.
4916         * tests/test-isnanl.h (main): Likewise.
4917
4918 2011-10-08  Bruno Haible  <bruno@clisp.org>
4919
4920         Tests for module 'tanhf'.
4921         * modules/tanhf-tests: New file.
4922         * tests/test-tanhf.c: New file.
4923
4924         New module 'tanhf'.
4925         * lib/math.in.h (tanhf): New declaration.
4926         * lib/tanhf.c: New file.
4927         * m4/tanhf.m4: New file.
4928         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4930         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4931         * modules/tanhf: New file.
4932         * tests/test-math-c++.cc: Check the declaration of tanhf.
4933         * doc/posix-functions/tanhf.texi: Mention the new module.
4934
4935         tanh: Use a .m4 file.
4936         * m4/tanh.m4: New file.
4937         * modules/tanh (Files): Add it.
4938         (configure.ac): Just invoke gl_FUNC_TANH.
4939
4940 2011-10-08  Bruno Haible  <bruno@clisp.org>
4941
4942         Tests for module 'coshf'.
4943         * modules/coshf-tests: New file.
4944         * tests/test-coshf.c: New file.
4945
4946         New module 'coshf'.
4947         * lib/math.in.h (coshf): New declaration.
4948         * lib/coshf.c: New file.
4949         * m4/coshf.m4: New file.
4950         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4952         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4953         * modules/coshf: New file.
4954         * tests/test-math-c++.cc: Check the declaration of coshf.
4955         * doc/posix-functions/coshf.texi: Mention the new module.
4956
4957         cosh: Use a .m4 file.
4958         * m4/cosh.m4: New file.
4959         * modules/cosh (Files): Add it.
4960         (configure.ac): Just invoke gl_FUNC_COSH.
4961
4962 2011-10-08  Bruno Haible  <bruno@clisp.org>
4963
4964         Tests for module 'sinhf'.
4965         * modules/sinhf-tests: New file.
4966         * tests/test-sinhf.c: New file.
4967
4968         New module 'sinhf'.
4969         * lib/math.in.h (sinhf): New declaration.
4970         * lib/sinhf.c: New file.
4971         * m4/sinhf.m4: New file.
4972         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4974         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4975         * modules/sinhf: New file.
4976         * tests/test-math-c++.cc: Check the declaration of sinhf.
4977         * doc/posix-functions/sinhf.texi: Mention the new module.
4978
4979         sinh: Use a .m4 file.
4980         * m4/sinh.m4: New file.
4981         * modules/sinh (Files): Add it.
4982         (configure.ac): Just invoke gl_FUNC_SINH.
4983
4984 2011-10-08  Bruno Haible  <bruno@clisp.org>
4985
4986         Tests for module 'atan2f'.
4987         * modules/atan2f-tests: New file.
4988         * tests/test-atan2f.c: New file.
4989
4990         New module 'atan2f'.
4991         * lib/math.in.h (atan2f): New declaration.
4992         * lib/atan2f.c: New file.
4993         * m4/atan2f.m4: New file.
4994         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4996         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4997         * modules/atan2f: New file.
4998         * tests/test-math-c++.cc: Check the declaration of atan2f.
4999         * doc/posix-functions/atan2f.texi: Mention the new module.
5000
5001         atan2: Use a .m4 file.
5002         * m4/atan2.m4: New file.
5003         * modules/atan2 (Files): Add it.
5004         (configure.ac): Just invoke gl_FUNC_ATAN2.
5005
5006 2011-10-08  Bruno Haible  <bruno@clisp.org>
5007
5008         Tests for module 'atanf'.
5009         * modules/atanf-tests: New file.
5010         * tests/test-atanf.c: New file.
5011
5012         New module 'atanf'.
5013         * lib/math.in.h (atanf): New declaration.
5014         * lib/atanf.c: New file.
5015         * m4/atanf.m4: New file.
5016         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
5017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
5018         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
5019         * modules/atanf: New file.
5020         * tests/test-math-c++.cc: Check the declaration of atanf.
5021         * doc/posix-functions/atanf.texi: Mention the new module.
5022
5023         atan: Use a .m4 file.
5024         * m4/atan.m4: New file.
5025         * modules/atan (Files): Add it.
5026         (configure.ac): Just invoke gl_FUNC_ATAN.
5027
5028 2011-10-08  Bruno Haible  <bruno@clisp.org>
5029
5030         Tests for module 'acosf'.
5031         * modules/acosf-tests: New file.
5032         * tests/test-acosf.c: New file.
5033
5034         New module 'acosf'.
5035         * lib/math.in.h (acosf): New declaration.
5036         * lib/acosf.c: New file.
5037         * m4/acosf.m4: New file.
5038         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
5039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
5040         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
5041         * modules/acosf: New file.
5042         * tests/test-math-c++.cc: Check the declaration of acosf.
5043         * doc/posix-functions/acosf.texi: Mention the new module.
5044
5045         acos: Use a .m4 file.
5046         * m4/acos.m4: New file.
5047         * modules/acos (Files): Add it.
5048         (configure.ac): Just invoke gl_FUNC_ACOS.
5049
5050 2011-10-08  Bruno Haible  <bruno@clisp.org>
5051
5052         Tests for module 'asinf'.
5053         * modules/asinf-tests: New file.
5054         * tests/test-asinf.c: New file.
5055
5056         New module 'asinf'.
5057         * lib/math.in.h (asinf): New declaration.
5058         * lib/asinf.c: New file.
5059         * m4/asinf.m4: New file.
5060         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
5061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
5062         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
5063         * modules/asinf: New file.
5064         * tests/test-math-c++.cc: Check the declaration of asinf.
5065         * doc/posix-functions/asinf.texi: Mention the new module.
5066
5067         asin: Use a .m4 file.
5068         * m4/asin.m4: New file.
5069         * modules/asin (Files): Add it.
5070         (configure.ac): Just invoke gl_FUNC_ASIN.
5071
5072 2011-10-08  Bruno Haible  <bruno@clisp.org>
5073
5074         Tests for module 'tanf'.
5075         * modules/tanf-tests: New file.
5076         * tests/test-tanf.c: New file.
5077
5078         New module 'tanf'.
5079         * lib/math.in.h (tanf): New declaration.
5080         * lib/tanf.c: New file.
5081         * m4/tanf.m4: New file.
5082         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
5083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
5084         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
5085         * modules/tanf: New file.
5086         * tests/test-math-c++.cc: Check the declaration of tanf.
5087         * doc/posix-functions/tanf.texi: Mention the new module.
5088
5089         tan: Use a .m4 file.
5090         * m4/tan.m4: New file.
5091         * modules/tan (Files): Add it.
5092         (configure.ac): Just invoke gl_FUNC_TAN.
5093
5094 2011-10-08  Bruno Haible  <bruno@clisp.org>
5095
5096         Tests for module 'cosf'.
5097         * modules/cosf-tests: New file.
5098         * tests/test-cosf.c: New file.
5099
5100         New module 'cosf'.
5101         * lib/math.in.h (cosf): New declaration.
5102         * lib/cosf.c: New file.
5103         * m4/cosf.m4: New file.
5104         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
5105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
5106         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
5107         * modules/cosf: New file.
5108         * tests/test-math-c++.cc: Check the declaration of cosf.
5109         * doc/posix-functions/cosf.texi: Mention the new module.
5110
5111         cos: Use a .m4 file.
5112         * m4/cos.m4: New file.
5113         * modules/cos (Files): Add it.
5114         (configure.ac): Just invoke gl_FUNC_COS.
5115
5116 2011-10-08  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'sinf'.
5119         * modules/sinf-tests: New file.
5120         * tests/test-sinf.c: New file.
5121
5122         New module 'sinf'.
5123         * lib/math.in.h (sinf): New declaration.
5124         * lib/sinf.c: New file.
5125         * m4/sinf.m4: New file.
5126         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
5127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
5128         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
5129         * modules/sinf: New file.
5130         * tests/test-math-c++.cc: Check the declaration of sinf.
5131         * doc/posix-functions/sinf.texi: Mention the new module.
5132
5133         sin: Use a .m4 file.
5134         * m4/sin.m4: New file.
5135         * modules/sin (Files): Add it.
5136         (configure.ac): Just invoke gl_FUNC_SIN.
5137
5138 2011-10-08  Bruno Haible  <bruno@clisp.org>
5139
5140         Tests for module 'powf'.
5141         * modules/powf-tests: New file.
5142         * tests/test-powf.c: New file.
5143
5144         New module 'powf'.
5145         * lib/math.in.h (powf): New declaration.
5146         * lib/powf.c: New file.
5147         * m4/powf.m4: New file.
5148         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
5149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
5150         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
5151         * modules/powf: New file.
5152         * tests/test-math-c++.cc: Check the declaration of powf.
5153         * doc/posix-functions/powf.texi: Mention the new module.
5154
5155         pow: Use a .m4 file.
5156         * m4/pow.m4: New file.
5157         * modules/pow (Files): Add it.
5158         (configure.ac): Just invoke gl_FUNC_POW.
5159
5160 2011-10-08  Bruno Haible  <bruno@clisp.org>
5161
5162         Tests for module 'log10f'.
5163         * modules/log10f-tests: New file.
5164         * tests/test-log10f.c: New file.
5165
5166         New module 'log10f'.
5167         * lib/math.in.h (log10f): New declaration.
5168         * lib/log10f.c: New file.
5169         * m4/log10f.m4: New file.
5170         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
5171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
5172         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
5173         * modules/log10f: New file.
5174         * tests/test-math-c++.cc: Check the declaration of log10f.
5175         * doc/posix-functions/log10f.texi: Mention the new module.
5176
5177         log10: Use a .m4 file.
5178         * m4/log10.m4: New file.
5179         * modules/log10 (Files): Add it.
5180         (configure.ac): Just invoke gl_FUNC_LOG10.
5181
5182 2011-10-08  Bruno Haible  <bruno@clisp.org>
5183
5184         Tests for module 'logf'.
5185         * modules/logf-tests: New file.
5186         * tests/test-logf.c: New file.
5187
5188         New module 'logf'.
5189         * lib/math.in.h (logf): New declaration.
5190         * lib/logf.c: New file.
5191         * m4/logf.m4: New file.
5192         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
5193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
5194         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
5195         * modules/logf: New file.
5196         * tests/test-math-c++.cc: Check the declaration of logf.
5197         * doc/posix-functions/logf.texi: Mention the new module.
5198
5199         log: Use a .m4 file.
5200         * m4/log.m4: New file.
5201         * modules/log (Files): Add it.
5202         (configure.ac): Just invoke gl_FUNC_LOG.
5203
5204 2011-10-08  Bruno Haible  <bruno@clisp.org>
5205
5206         Tests for module 'expf'.
5207         * modules/expf-tests: New file.
5208         * tests/test-expf.c: New file.
5209
5210         New module 'expf'.
5211         * lib/math.in.h (expf): New declaration.
5212         * lib/expf.c: New file.
5213         * m4/expf.m4: New file.
5214         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
5215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
5216         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
5217         * modules/expf: New file.
5218         * tests/test-math-c++.cc: Check the declaration of expf.
5219         * doc/posix-functions/expf.texi: Mention the new module.
5220
5221         exp: Use a .m4 file.
5222         * m4/exp.m4: New file.
5223         * modules/exp (Files): Add it.
5224         (configure.ac): Just invoke gl_FUNC_EXP.
5225
5226 2011-10-08  Bruno Haible  <bruno@clisp.org>
5227
5228         Tests for module 'sqrtf'.
5229         * modules/sqrtf-tests: New file.
5230         * tests/test-sqrtf.c: New file.
5231
5232         New module 'sqrtf'.
5233         * lib/math.in.h (sqrtf): New declaration.
5234         * lib/sqrtf.c: New file.
5235         * m4/sqrtf.m4: New file.
5236         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5238         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5239         * modules/sqrtf: New file.
5240         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5241         * doc/posix-functions/sqrtf.texi: Mention the new module.
5242
5243 2011-10-08  Bruno Haible  <bruno@clisp.org>
5244
5245         Tests: Avoid link failures w.r.t. libintl.
5246         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5247         $(LIBINTL).
5248         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5249         $(LIBINTL).
5250         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5251         against $(LIBINTL).
5252         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5253         $(LIBINTL).
5254         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5255         $(LIBINTL).
5256         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5257
5258 2011-10-08  Bruno Haible  <bruno@clisp.org>
5259
5260         pow tests: Defeat compiler optimizations.
5261         * tests/test-pow.c (main): Assign arguments to x and y before use.
5262
5263 2011-10-08  Bruno Haible  <bruno@clisp.org>
5264
5265         gnulib-tool: Improve last commit.
5266         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5267         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5268         ignore dependencies that are not among the modules list.
5269
5270 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5271
5272         gnulib-tool: don't follow dependencies to avoided modules
5273         This fixes a bug that is related to the previous one.
5274         * gnulib-tool (func_modules_transitive_closure)
5275         (func_emit_autoconf_snippets):
5276         Check whether a dependency is acceptable before using it.
5277         (--extract-dependencies): Report an error if --avoid is also used,
5278         since this combination of options is not yet supported.
5279
5280         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5281         Problem reported by Peter Dyballa in
5282         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5283         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5284         when echoing "$condition".
5285
5286 2011-10-07  Bruno Haible  <bruno@clisp.org>
5287
5288         Fix documentation about math functions on MacOS X.
5289         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5290         MacOS X 10.5.
5291         * doc/posix-functions/fdim.texi: Likewise.
5292         * doc/posix-functions/feclearexcept.texi: Likewise.
5293         * doc/posix-functions/fegetenv.texi: Likewise.
5294         * doc/posix-functions/fegetround.texi: Likewise.
5295         * doc/posix-functions/feholdexcept.texi: Likewise.
5296         * doc/posix-functions/feraiseexcept.texi: Likewise.
5297         * doc/posix-functions/fesetenv.texi: Likewise.
5298         * doc/posix-functions/fesetround.texi: Likewise.
5299         * doc/posix-functions/fetestexcept.texi: Likewise.
5300         * doc/posix-functions/feupdateenv.texi: Likewise.
5301         * doc/posix-functions/fmax.texi: Likewise.
5302         * doc/posix-functions/fmin.texi: Likewise.
5303         * doc/posix-functions/log2.texi: Likewise.
5304         * doc/posix-functions/modff.texi: Likewise.
5305         * doc/posix-functions/nan.texi: Likewise.
5306         * doc/posix-functions/nanf.texi: Likewise.
5307         * doc/posix-functions/nextafterf.texi: Likewise.
5308         * doc/posix-functions/remquo.texi: Likewise.
5309
5310 2011-10-07  Bruno Haible  <bruno@clisp.org>
5311
5312         modff: Drop assumption about library that defines modff.
5313         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5314         AC_CHECK_FUNCS.
5315         * modules/modff (Files): Add m4/mathfunc.m4.
5316
5317 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5318
5319         raise tests: Avoid a GCC warning.
5320         * tests/test-raise.c (handler): Use _Noreturn.
5321
5322 2011-10-07  Bruno Haible  <bruno@clisp.org>
5323
5324         Tests for module 'ldexpf'.
5325         * modules/ldexpf-tests: New file.
5326         * tests/test-ldexpf.c: New file.
5327
5328         New module 'ldexpf'.
5329         * lib/math.in.h (ldexpf): New declaration.
5330         * lib/ldexpf.c: New file.
5331         * m4/ldexpf.m4: New file.
5332         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5334         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5335         * modules/ldexpf: New file.
5336         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5337         * doc/posix-functions/ldexpf.texi: Mention the new module.
5338
5339 2011-10-06  Bruno Haible  <bruno@clisp.org>
5340
5341         frexpf: Work around problems on IRIX and mingw.
5342         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5344         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5345         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5346         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5347         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5348         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5349
5350 2011-10-06  Bruno Haible  <bruno@clisp.org>
5351
5352         fabsf: Drop assumption about library that defines fabsf.
5353         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5354         AC_CHECK_FUNCS.
5355         * modules/fabsf (Files): Add m4/mathfunc.m4.
5356
5357 2011-10-06  Bruno Haible  <bruno@clisp.org>
5358
5359         frexpf: Drop assumption about library that defines frexpf.
5360         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5361         'int *', 'float *', 'long double *', 'float', 'long double'.
5362         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5363         AC_CHECK_FUNCS.
5364         * modules/frexpf (Files): Add m4/mathfunc.m4.
5365
5366         Tests for module 'frexpf'.
5367         * modules/frexpf-tests: New file.
5368         * tests/test-frexpf.c: New file.
5369
5370         New module 'frexpf'.
5371         * lib/math.in.h (frexpf): New declaration.
5372         * lib/frexpf.c: New file.
5373         * m4/frexpf.m4: New file.
5374         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5376         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5377         * modules/frexpf: New file.
5378         * tests/test-math-c++.cc: Check the declaration of frexpf.
5379         * doc/posix-functions/frexpf.texi: Mention the new module.
5380
5381 2011-10-06  Bruno Haible  <bruno@clisp.org>
5382
5383         math: Sort function declarations of math.in.h.
5384         * lib/math.in.h (frexp, logb): Move declarations.
5385
5386 2011-10-05  Bruno Haible  <bruno@clisp.org>
5387
5388         Tests for module 'modff'.
5389         * modules/modff-tests: New file.
5390         * tests/test-modff.c: New file.
5391
5392         New module 'modff'.
5393         * lib/math.in.h (modff): New declaration.
5394         * lib/modff.c: New file.
5395         * m4/modff.m4: New file.
5396         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5398         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5399         * modules/modff: New file.
5400         * tests/test-math-c++.cc: Check the declaration of modff.
5401         * doc/posix-functions/modff.texi: Mention the new module.
5402
5403         modf tests: Make test sharper.
5404         * tests/test-modf.c (main): Strengthen upper bound.
5405
5406         modf: Use a .m4 file.
5407         * m4/modf.m4: New file.
5408         * modules/modf (Files): Add it.
5409         (configure.ac): Just invoke gl_FUNC_MODF.
5410
5411 2011-10-05  Bruno Haible  <bruno@clisp.org>
5412
5413         Tests for module 'fmodf'.
5414         * modules/fmodf-tests: New file.
5415         * tests/test-fmodf.c: New file.
5416
5417         New module 'fmodf'.
5418         * lib/math.in.h (fmodf): New declaration.
5419         * lib/fmodf.c: New file.
5420         * m4/fmodf.m4: New file.
5421         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5423         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5424         * modules/fmodf: New file.
5425         * tests/test-math-c++.cc: Check the declaration of fmodf.
5426         * doc/posix-functions/fmodf.texi: Mention the new module.
5427
5428         fmod: Use a .m4 file.
5429         * m4/fmod.m4: New file.
5430         * modules/fmod (Files): Add it.
5431         (configure.ac): Just invoke gl_FUNC_FMOD.
5432
5433 2011-10-05  Bruno Haible  <bruno@clisp.org>
5434
5435         Tests for module 'fabsf'.
5436         * modules/fabsf-tests: New file.
5437         * tests/test-fabsf.c: New file.
5438
5439         New module 'fabsf'.
5440         * lib/math.in.h (fabsf): New declaration.
5441         * lib/fabsf.c: New file.
5442         * m4/fabsf.m4: New file.
5443         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5445         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5446         * modules/fabsf: New file.
5447         * tests/test-math-c++.cc: Check the declaration of fabsf.
5448         * doc/posix-functions/fabsf.texi: Mention the new module.
5449
5450         fabs: Use a .m4 file.
5451         * m4/fabs.m4: New file.
5452         * modules/fabs (Files): Add it.
5453         (configure.ac): Just invoke gl_FUNC_FABS.
5454
5455 2011-10-05  Jim Meyering  <meyering@redhat.com>
5456
5457         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5458         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5459         ls -lL regression introduced in coreutils-8.12, it does so at the
5460         cost of an additional stat call in the common case.  Besides, now
5461         that the kernel change that prompted commit 95f7c57f has been reverted
5462         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5463         we have no use for commit 95f7c57f, "file-has-acl: use
5464         acl_extended_file_nofollow if available".
5465
5466 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5467
5468         file-has-acl: revert unintended change in behavior of ls -L
5469         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5470         derived from...
5471         (file_has_acl): ...code here.  Call it.
5472         This problem was introduced with 2011-07-22 commit 95f7c57f,
5473         "file-has-acl: use acl_extended_file_nofollow if available".
5474         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5475
5476 2011-10-03  Bruno Haible  <bruno@clisp.org>
5477
5478         poll: Avoid link errors on MSVC.
5479         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5480         * modules/poll (Depends-on): Add sockets.
5481         (Link): New section.
5482         * NEWS: Mention the change.
5483         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5484         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5485         $(LIB_POLL) instead of $(LIBSOCKET).
5486
5487 2011-10-03  Bruno Haible  <bruno@clisp.org>
5488
5489         sys_select tests: Fix link error on MSVC 9.
5490         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5491         with $(LIB_SELECT) instead of $(LIBSOCKET).
5492
5493 2011-10-03  Bruno Haible  <bruno@clisp.org>
5494
5495         sys_select: Fix compilation error on mingw.
5496         * lib/sys_select.in.h: On native Windows, include <io.h>.
5497
5498 2011-10-03  Bruno Haible  <bruno@clisp.org>
5499
5500         wmemset: Support for MSVC.
5501         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5502         whether wmemset() exists.
5503
5504 2011-10-03  Bruno Haible  <bruno@clisp.org>
5505
5506         wmemmove: Support for MSVC.
5507         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5508         whether wmemmove() exists.
5509
5510 2011-10-03  Bruno Haible  <bruno@clisp.org>
5511
5512         wmemcpy: Support for MSVC.
5513         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5514         whether wmemcpy() exists.
5515
5516 2011-10-03  Bruno Haible  <bruno@clisp.org>
5517
5518         wmemcmp: Support for MSVC.
5519         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5520         whether wmemcmp() exists.
5521
5522 2011-10-03  Bruno Haible  <bruno@clisp.org>
5523
5524         wmemchr: Support for MSVC.
5525         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5526         whether wmemchr() exists.
5527
5528 2011-10-03  Bruno Haible  <bruno@clisp.org>
5529
5530         glthread/*, strsignal: Support for MSVC.
5531         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5532         including <winsock.h> on MSVC 9.
5533         * lib/glthread/lock.h: Likewise.
5534         * lib/glthread/thread.h: Likewise.
5535         * lib/glthread/tls.h: Likewise.
5536         * lib/glthread/yield.h: Likewise.
5537         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5538         if HAVE_UNISTD_H is false.
5539         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5540
5541 2011-10-03  Bruno Haible  <bruno@clisp.org>
5542
5543         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5544         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5545         Set to 100000.
5546
5547 2011-10-03  Bruno Haible  <bruno@clisp.org>
5548
5549         acl: Fix specification.
5550         * lib/file-has-acl.c (file_has_acl): Fix specification.
5551
5552 2011-10-03  Bruno Haible  <bruno@clisp.org>
5553
5554         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5555         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5556         (compute_curr_prefix, shared_library_fullname,
5557         find_shared_library_fullname, get_shared_library_fullname, relocate):
5558         Use it together with PIC && INSTALLDIR.
5559         Reported by <jojelino@gmail.com>
5560         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5561
5562 2011-10-01  Jim Meyering  <meyering@redhat.com>
5563
5564         maint.mk: adjust a release-related rule not to require use of gzip
5565         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5566         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5567         projects that build only .tar.xz files.  Also fix an erroneous test.
5568
5569         test-linkat: don't leave behind a temporary file
5570         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5571         Otherwise, coreutils' "make distcheck" would fail with this:
5572           Only in /c/cu/tests/torture/coreutils/test/\
5573             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5574           make[2]: *** [my-distcheck] Error 1
5575
5576         float, math: add omitted file
5577         * lib/itold.c: Add file, required for yesterday's float change.
5578
5579 2011-10-01  Bruno Haible  <bruno@clisp.org>
5580
5581         isinf: Fix for OpenBSD/x86.
5582         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5583         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5584         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5585
5586 2011-10-01  Bruno Haible  <bruno@clisp.org>
5587
5588         isfinite: Fix syntax error in configure test.
5589         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5590
5591         isfinite: Fix typo.
5592         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5593         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5594
5595 2011-10-01  Bruno Haible  <bruno@clisp.org>
5596
5597         nonblocking tests: Fix test failure on Linux/IA-64.
5598         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5599         Set to 270000.
5600
5601 2011-10-01  Bruno Haible  <bruno@clisp.org>
5602
5603         mkfifoat tests: Fix a test failure on mingw.
5604         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5605         with error ENOSYS.
5606
5607 2011-09-30  Bruno Haible  <bruno@clisp.org>
5608
5609         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5610         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5611         'long double'. Set REPLACE_ITOLD.
5612         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5613         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5614         * lib/itold.c: New file.
5615         * modules/float (Files): Add lib/itold.c.
5616         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5617         (Makefile.am): Substitute REPLACE_ITOLD.
5618         * modules/math (Depends-on): Add float.
5619         (Makefile.am): Substitute REPLACE_ITOLD.
5620         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5621         * doc/posix-headers/math.texi: Likewise.
5622         * doc/posix-functions/logl.texi: Likewise.
5623
5624 2011-09-30  Bruno Haible  <bruno@clisp.org>
5625
5626         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5627         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5628         Set to 140000.
5629
5630 2011-09-30  Bruno Haible  <bruno@clisp.org>
5631
5632         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5633         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5634         invocation, say "right after AC_PROG_CC_STDC", not "right after
5635         AC_PROG_CC".
5636         Reported by Gary V. Vaughan <gary@gnu.org>.
5637
5638 2011-09-30  Bruno Haible  <bruno@clisp.org>
5639
5640         Centralize C99 requirement.
5641         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5642         * modules/stdarg (configure.ac-early): Invoke it instead of
5643         AC_PROG_CC_STDC.
5644         Reported by Gary V. Vaughan and Paul Eggert.
5645
5646 2011-09-29  Bruno Haible  <bruno@clisp.org>
5647
5648         float: Fix LDBL_MAX value on Linux/PowerPC.
5649         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5650         on Linux/PowerPC.
5651         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5652         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5653         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5654         platform.
5655         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5656
5657 2011-09-29  Bruno Haible  <bruno@clisp.org>
5658
5659         doc: Improve doc about gl_EARLY.
5660         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5661         AC_PROG_CC_STDC invocation.
5662         Reported by Gary V. Vaughan <gary@gnu.org>.
5663
5664 2011-09-28  Bruno Haible  <bruno@clisp.org>
5665
5666         fgetc, fputc, fread, fwrite tests: Fix link error.
5667         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5668         on non-MSVC platforms.
5669         * tests/test-fputc.c (main): Likewise.
5670         * tests/test-fread.c (main): Likewise.
5671         * tests/test-fwrite.c (main): Likewise.
5672         Reported by Jim Meyering.
5673
5674 2011-09-27  Bruno Haible  <bruno@clisp.org>
5675
5676         fputc, fwrite tests: Avoid test failure on MSVC.
5677         * tests/test-fgetc.c: Include msvc-inval.h.
5678         (main): Invoke gl_msvc_inval_ensure_handler.
5679         * tests/test-fputc.c: Include msvc-inval.h.
5680         (main): Invoke gl_msvc_inval_ensure_handler.
5681         * tests/test-fread.c: Include msvc-inval.h.
5682         (main): Invoke gl_msvc_inval_ensure_handler.
5683         * tests/test-fwrite.c: Include msvc-inval.h.
5684         (main): Invoke gl_msvc_inval_ensure_handler.
5685         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5686         * modules/fputc-tests (Depends-on): Likewise.
5687         * modules/fread-tests (Depends-on): Likewise.
5688         * modules/fwrite-tests (Depends-on): Likewise.
5689
5690 2011-09-27  Bruno Haible  <bruno@clisp.org>
5691
5692         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5693         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5694         (raise): Remove older, duplicated declaration.
5695         (_gl_raise_SIGPIPE): New declaration.
5696         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5697         (rpl_raise): Remove function.
5698         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5699         a gnulib-defined SIGPIPE here.
5700         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5701         'sigprocmask' has detected missing signal-blocking and the module
5702         'sigpipe' is enabled.
5703         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5704
5705 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5706
5707         base64-tests: avoid memory leak
5708         * tests/test-base64.c (main): Plug memory leak.
5709
5710         base32: new module
5711         * modules/base32: New module.
5712         * lib/base32.c: New file.
5713         * lib/base32.h: Likewise.
5714         * m4/base32.m4: Likewise.
5715         * modules/base32-tests: New test.
5716         * tests/test-base32.c: Likewise.
5717         * MODULES.html.sh (Misc): Mention it.
5718
5719 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5720
5721         gnulib: use more-standard license notice wording
5722         * gnulib-tool (func_emit_copyright_notice): When emitting a
5723         license notice into a file, use the standard wording as suggested
5724         by the current information for GNU maintainers, except say "file"
5725         rather than "program".  The new wording gives a license version
5726         number, which addresses an issue raised by Glenn Morris in
5727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5728         * m4/onceonly.m4: Use that same wording here, too.
5729
5730         dup2: minor simplification
5731         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5732         as lib/dup2.c no longer uses 'inline'.
5733
5734 2011-09-25  Bruno Haible  <bruno@clisp.org>
5735
5736         strings: Fix compilation error on MSVC.
5737         * lib/strings.in.h: Include <stddef.h> for size_t.
5738
5739 2011-09-25  Bruno Haible  <bruno@clisp.org>
5740
5741         fflush et al.: Document limitation on MSVC.
5742         * doc/posix-functions/fflush.texi: Document possible crash in handling
5743         mode other than DEFAULT_HANDLING.
5744         * doc/posix-functions/fgetc.texi: Likewise.
5745         * doc/posix-functions/fputc.texi: Likewise.
5746         * doc/posix-functions/fread.texi: Likewise.
5747         * doc/posix-functions/fwrite.texi: Likewise.
5748
5749 2011-09-25  Bruno Haible  <bruno@clisp.org>
5750
5751         msvc-inval: Allow three invalid parameter handling modes.
5752         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5753         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5754         macros.
5755         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5756         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5757         SANE_LIBRARY_HANDLING as a no-op.
5758         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5759         <stdlib.h>.
5760         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5761
5762 2011-09-25  Bruno Haible  <bruno@clisp.org>
5763
5764         msvc-inval: Make handler multithread-safe.
5765         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5766         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5767         declarations.
5768         (gl_msvc_inval_current): New declaration.
5769         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5770         Operate on the structure returned by gl_msvc_inval_current().
5771         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5772         Remove varaiables.
5773         (tls_index, tls_initialized): New variables.
5774         (not_per_thread): New variable.
5775         (gl_msvc_inval_current): New function.
5776         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5777         returned by gl_msvc_inval_current().
5778
5779 2011-09-25  Bruno Haible  <bruno@clisp.org>
5780
5781         msvc-inval: Install handler globally.
5782         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5783         !_MSC_VER.
5784         (gl_msvc_invalid_parameter_handler): Remove declaration.
5785         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5786         declarations.
5787         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5788         Install the handler globally, don't uninstall it.
5789         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5790         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5791         currently valid, call RaiseException instead.
5792         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5793         for !_MSC_VER.
5794
5795 2011-09-25  Bruno Haible  <bruno@clisp.org>
5796
5797         strerror_r-posix: Fix for MSVC 9.
5798         * lib/strerror_r.c (local_snprintf): New function.
5799         (snprintf): Define to local_snprintf, not to _snprintf.
5800
5801 2011-09-25  Bruno Haible  <bruno@clisp.org>
5802
5803         ftruncate: Support for MSVC 9.
5804         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5805         (chsize_nothrow): New function.
5806         (chsize): Redefine as a macro.
5807         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5808         * modules/ftruncate (Depends-on): Add msvc-inval.
5809
5810 2011-09-25  Bruno Haible  <bruno@clisp.org>
5811
5812         New module 'fstat'.
5813         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5814         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5815         * lib/fchdir.c (rpl_fstat): Remove function.
5816         * m4/fstat.m4: New file.
5817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5819         declared.
5820         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5821         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5822         * modules/fstat: New file.
5823         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5824         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5825         is set.
5826         * doc/posix-functions/fstat.texi: Mention the new module and the
5827         problem on MSVC.
5828         * NEWS: Mention the change.
5829         * modules/acl (Depends-on): Add fstat.
5830         * modules/chdir-safer (Depends-on): Likewise.
5831         * modules/chown (Depends-on): Likewise.
5832         * modules/copy-file (Depends-on): Likewise.
5833         * modules/fchdir (Depends-on): Likewise.
5834         * modules/fdopendir (Depends-on): Likewise.
5835         * modules/fopen (Depends-on): Likewise.
5836         * modules/fts (Depends-on): Likewise.
5837         * modules/getcwd (Depends-on): Likewise.
5838         * modules/isapipe (Depends-on): Likewise.
5839         * modules/linkat (Depends-on): Likewise.
5840         * modules/lseek (Depends-on): Likewise.
5841         * modules/mkdir-p (Depends-on): Likewise.
5842         * modules/open (Depends-on): Likewise.
5843         * modules/openat (Depends-on): Likewise.
5844         * modules/read-file (Depends-on): Likewise.
5845         * modules/renameat (Depends-on): Likewise.
5846         * modules/utimens (Depends-on): Likewise.
5847
5848 2011-09-25  Bruno Haible  <bruno@clisp.org>
5849
5850         linkat: Fix compilation on MSVC 9.
5851         * lib/linkat.c: Don't include <stdint.h>.
5852
5853 2011-09-25  Bruno Haible  <bruno@clisp.org>
5854
5855         fclose: Support for MSVC 9.
5856         * lib/fclose.c: Include msvc-inval.h.
5857         (fclose_nothrow): New function.
5858         (rpl_fclose): Use it.
5859         * modules/fclose (Depends-on): Add msvc-inval.
5860         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5861
5862 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5863
5864         dup2: minor simplifications
5865         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5866         that it's a performance win.
5867         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5868         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5869
5870 2011-09-24  Jim Meyering  <meyering@redhat.com>
5871
5872         test-futimens: avoid a warning from gcc -Wshadow
5873         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5874         to avoid a shadowing warning.
5875
5876 2011-09-24  Bruno Haible  <bruno@clisp.org>
5877
5878         fdopen: Support for MSVC 9.
5879         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5880         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5881         * lib/fdopen.c: Include msvc-inval.h.
5882         (fdopen_nothrow): New function.
5883         (rpl_fdopen): Use it.
5884         * modules/fdopen (Depends-on): Add msvc-inval.
5885         * modules/fclose-tests (Depends-on): Add fdopen.
5886         * modules/fflush-tests (Depends-on): Likewise.
5887         * modules/fgetc-tests (Depends-on): Likewise.
5888         * modules/fputc-tests (Depends-on): Likewise.
5889         * modules/fread-tests (Depends-on): Likewise.
5890         * modules/freopen-tests (Depends-on): Likewise.
5891         * modules/fseeko-tests (Depends-on): Likewise.
5892         * modules/ftello-tests (Depends-on): Likewise.
5893         * modules/fwrite-tests  (Depends-on): Likewise.
5894         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5895
5896 2011-09-24  Bruno Haible  <bruno@clisp.org>
5897
5898         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5899         * modules/fgetc-tests (Depends-on): Add unistd.
5900         * modules/fputc-tests (Depends-on): Likewise.
5901         * modules/fread-tests (Depends-on): Likewise.
5902         * modules/fwrite-tests (Depends-on): Likewise.
5903
5904 2011-09-24  Bruno Haible  <bruno@clisp.org>
5905
5906         dup: Simplify autoconf test.
5907         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5908         on gl_MSVC_INVAL's result.
5909
5910 2011-09-24  Bruno Haible  <bruno@clisp.org>
5911
5912         Tests for function fwrite().
5913         * modules/fwrite-tests: New file.
5914         * tests/test-fwrite.c: New file.
5915         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5916
5917         Tests for function fread().
5918         * modules/fread-tests: New file.
5919         * tests/test-fread.c: New file.
5920         * modules/stdio-tests (Depends-on): Add fread-tests.
5921
5922         Activate fputc tests.
5923         * modules/stdio-tests (Depends-on): Add fputc-tests.
5924
5925         Enhance fgetc, fputc tests.
5926         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5927         * tests/test-fputc.c (main): Likewise.
5928
5929 2011-09-24  Bruno Haible  <bruno@clisp.org>
5930
5931         write: Support for MSVC 9.
5932         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5933         is not 1.
5934         * lib/write.c (write_nothrow): New function.
5935         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5936         not 1. Use write_nothrow.
5937         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5938         invalid parameter handler.
5939         (gl_PREREQ_WRITE): New macro.
5940         * modules/write (Depends-on): Add msvc-inval.
5941         (configure.ac): Invoke gl_PREREQ_WRITE.
5942         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5943
5944 2011-09-24  Bruno Haible  <bruno@clisp.org>
5945
5946         read: Fix last commit.
5947         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5948
5949 2011-09-24  Bruno Haible  <bruno@clisp.org>
5950
5951         dup2: Fix last commit.
5952         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5953         (rpl_dup2): Disable fcntl workaround on native Windows.
5954
5955         sigprocmask: Make code safer.
5956         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5957         section that changes macro definitions for this compilation unit.
5958
5959 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5960
5961         dup2: clarify by coalescing Windows-specific material
5962         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5963         "msvc-nothrow.h"' to the Windows-specific section, so that the
5964         Emacs source need not contain these include files.
5965         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5966         Windows-specific fixes into this function rather than just the
5967         nothrow fix, as this shortens and clarifies the code.  Always
5968         define as a function, as that's a bit cleaner than having it be
5969         sometimes a function and sometimes a macro.
5970         (rpl_dup2): Move the Windows-specific stuff out of here and into
5971         ms_windows_dup2.  Don't protect the Haiku-related fix with
5972         "#if !defined __linux__", as the same code also works around
5973         a Linux kernel bug, and it doesn't add any system calls on any
5974         platform.  Add comment about FreeBSD 6.1.
5975
5976         sigprocmask: move #include directive
5977         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5978         Windows-specific section, so that the Emacs source need not
5979         contain msvc-inval.h.
5980
5981 2011-09-23  Bruno Haible  <bruno@clisp.org>
5982
5983         read: Support for MSVC 9.
5984         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5985         is not 1.
5986         * lib/read.c (read_nothrow): New function.
5987         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5988         read_nothrow.
5989         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5990         invalid parameter handler.
5991         (gl_PREREQ_READ): New macro.
5992         * modules/read (Depends-on): Add msvc-inval.
5993         (configure.ac): Invoke gl_PREREQ_READ.
5994         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5995
5996 2011-09-23  Bruno Haible  <bruno@clisp.org>
5997
5998         close: Support for MSVC 9.
5999         * lib/close.c: Include <errno.h>, msvc-inval.h.
6000         (close_nothrow): New function.
6001         (rpl_close): Use it.
6002         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
6003         invalid parameter handler.
6004         * modules/close (Depends-on): Add msvc-inval.
6005         * modules/dup2-tests (Depends-on): Add close.
6006         * modules/dup3-tests (Depends-on): Likewise.
6007         * modules/fcntl-tests (Depends-on): Likewise.
6008         * modules/spawn-pipe-tests (Depends-on): Likewise.
6009         * modules/unistd-safer-tests (Depends-on): Likewise.
6010         * doc/posix-functions/close.texi: Mention the problem on MSVC.
6011
6012 2011-09-23  Bruno Haible  <bruno@clisp.org>
6013
6014         New module 'dup'.
6015         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
6016         Allow replacement.
6017         * lib/dup.c: New file.
6018         * lib/fchdir.c (rpl_dup): Remove function.
6019         * m4/dup.m4: New file.
6020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
6021         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
6022         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
6023         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
6024         * modules/dup: New file.
6025         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
6026         'dup' module is in use.
6027         * modules/fdopendir (Depends-on): Add dup.
6028         * modules/fdutimensat-tests (Depends-on): Likewise.
6029         * modules/fts (Depends-on): Likewise.
6030         * modules/futimens-tests (Depends-on): Likewise.
6031         * modules/posix_spawnp-tests (Depends-on): Likewise.
6032         * modules/unistd-safer-tests (Depends-on): Likewise.
6033         * modules/utimens-tests (Depends-on): Likewise.
6034         * doc/posix-functions/dup.texi: Mention the new module and the problem
6035         on MSVC.
6036
6037 2011-09-23  Bruno Haible  <bruno@clisp.org>
6038
6039         getdtablesize: Support for MSVC 9.
6040         * lib/getdtablesize.c: Include msvc-inval.h.
6041         (_setmaxstdio_nothrow): New function.
6042         (_setmaxstdio): Redefine it.
6043         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
6044         * modules/getdtablesize (Depends-on): Add msvc-inval.
6045         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
6046
6047 2011-09-23  Bruno Haible  <bruno@clisp.org>
6048
6049         signal-h: Rename from signal.
6050         * modules/signal-h: Renamed from modules/signal.
6051         * modules/pthread_sigmask (Depends-on): Update.
6052         * modules/raise (Depends-on): Likewise.
6053         * modules/sigaction (Depends-on): Likewise.
6054         * modules/sigpipe (Depends-on): Likewise.
6055         * modules/sigprocmask (Depends-on): Likewise.
6056         * modules/sys_select (Depends-on): Likewise.
6057         * modules/signal-h-tests: Renamed from modules/signal-tests.
6058         (Files, Depends-on, Makefile.am): Update.
6059         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
6060         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
6061         (Files, Makefile.am): Update.
6062         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
6063         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
6064         * modules/signal: New placeholder file.
6065         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
6066         * doc/posix-headers/signal.texi: Update.
6067         * NEWS: Mention the change.
6068
6069 2011-09-23  Bruno Haible  <bruno@clisp.org>
6070
6071         sigprocmask: Avoid crashes through signal() on MSVC 9.
6072         * lib/sigprocmask.c: Include msvc-inval.h.
6073         (signal_nothrow): New function.
6074         (signal): Redefine it.
6075         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
6076         * modules/sigprocmask (Depends-on): Add msvc-inval.
6077         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
6078
6079 2011-09-23  Bruno Haible  <bruno@clisp.org>
6080
6081         Tests for module 'raise'.
6082         * modules/raise-tests: New file.
6083         * tests/test-raise.c: New file.
6084
6085         raise: Support for MSVC.
6086         * lib/signal.in.h (raise): New declaration.
6087         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
6088         for native Windows platforms.
6089         * m4/raise.m4: New file.
6090         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
6091         HAVE_RAISE, REPLACE_RAISE.
6092         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
6093         REPLACE_RAISE.
6094         * modules/raise (Status, Notice): Remove fields.
6095         (Files): Add m4/raise.m4.
6096         (Depends-on): Add signal, msvc-inval.
6097         (configure.ac): Use the common idioms.
6098         (Maintainer): Add me.
6099         * tests/test-signal-c++.cc: Check the signature of raise.
6100         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
6101
6102 2011-09-23  Bruno Haible  <bruno@clisp.org>
6103
6104         pipe2: Fix compilation on pre-C99 compilers.
6105         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
6106
6107 2011-09-23  Bruno Haible  <bruno@clisp.org>
6108
6109         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
6110         * lib/msvc-nothrow.h: New file.
6111         * lib/msvc-nothrow.c: New file.
6112         * m4/msvc-nothrow.m4: New file.
6113         * modules/msvc-nothrow: New file.
6114         * lib/dup2.c: Include msvc-nothrow.h.
6115         (rpl_dup2): No need to protect _get_osfhandle call here.
6116         * lib/accept4.c: Include msvc-nothrow.h.
6117         * lib/error.c: Likewise.
6118         * lib/fcntl.c: Likewise.
6119         * lib/lseek.c: Likewise.
6120         * lib/nonblocking.c: Likewise.
6121         * lib/poll.c: Likewise.
6122         * lib/read.c: Likewise.
6123         * lib/select.c: Likewise.
6124         * lib/sockets.h: Likewise.
6125         * lib/sockets.c: Likewise.
6126         * lib/stdio-read.c: Likewise.
6127         * lib/stdio-write.c: Likewise.
6128         * lib/write.c: Likewise.
6129         * lib/w32sock.h: Likewise.
6130         * lib/w32spawn.h: Likewise.
6131         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
6132         * lib/fsync.c: Likewise.
6133         * lib/isapipe.c: Likewise.
6134         * modules/dup2 (Depends-on): Add msvc-nothrow.
6135         * modules/accept4 (Depends-on): Likewise.
6136         * modules/error (Depends-on): Likewise.
6137         * modules/fcntl (Depends-on): Likewise.
6138         * modules/lseek (Depends-on): Likewise.
6139         * modules/nonblocking (Depends-on): Likewise.
6140         * modules/poll (Depends-on): Likewise.
6141         * modules/read (Depends-on): Likewise.
6142         * modules/select (Depends-on): Likewise.
6143         * modules/sockets (Depends-on): Likewise.
6144         * modules/sigpipe (Depends-on): Likewise.
6145         * modules/write (Depends-on): Likewise.
6146         * modules/accept (Depends-on): Likewise.
6147         * modules/bind (Depends-on): Likewise.
6148         * modules/connect (Depends-on): Likewise.
6149         * modules/gethostname (Depends-on): Likewise.
6150         * modules/getpeername (Depends-on): Likewise.
6151         * modules/getsockname (Depends-on): Likewise.
6152         * modules/getsockopt (Depends-on): Likewise.
6153         * modules/ioctl (Depends-on): Likewise.
6154         * modules/listen (Depends-on): Likewise.
6155         * modules/recv (Depends-on): Likewise.
6156         * modules/recvfrom (Depends-on): Likewise.
6157         * modules/send (Depends-on): Likewise.
6158         * modules/sendto (Depends-on): Likewise.
6159         * modules/setsockopt (Depends-on): Likewise.
6160         * modules/shutdown (Depends-on): Likewise.
6161         * modules/socket (Depends-on): Likewise.
6162         * modules/execute (Depends-on): Likewise.
6163         * modules/spawn-pipe (Depends-on): Likewise.
6164         * modules/flock (Depends-on): Likewise.
6165         * modules/fsync (Depends-on): Likewise.
6166         * modules/isapipe (Depends-on): Likewise.
6167         * tests/test-cloexec.c: Include msvc-nothrow.h.
6168         * tests/test-dup-safer.c: Likewise.
6169         * tests/test-dup2.c: Likewise.
6170         * tests/test-dup3.c: Likewise.
6171         * tests/test-fcntl.c: Likewise.
6172         * tests/test-pipe.c: Likewise.
6173         * tests/test-pipe2.c: Likewise.
6174         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
6175         * modules/unistd-safer-tests (Depends-on): Likewise.
6176         * modules/dup2-tests (Depends-on): Likewise.
6177         * modules/dup3-tests (Depends-on): Likewise.
6178         * modules/fcntl-tests (Depends-on): Likewise.
6179         * modules/pipe-posix-tests (Depends-on): Likewise.
6180         * modules/pipe2-tests (Depends-on): Likewise.
6181
6182 2011-09-23  Bruno Haible  <bruno@clisp.org>
6183
6184         dup2: Make code more maintainable.
6185         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
6186         (rpl_dup2): Use it.
6187         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
6188         * modules/dup2 (configure.ac): Invoke it.
6189         Reported by Paul Eggert.
6190
6191 2011-09-23  Bruno Haible  <bruno@clisp.org>
6192
6193         msvc-inval: Fix compilation error.
6194         * lib/msvc-inval.h: Include <excpt.h>.
6195
6196 2011-09-23  Bruno Haible  <bruno@clisp.org>
6197
6198         mkdir: Tweak for MSVC 9.
6199         * lib/sys_stat.in.h: Update comments.
6200         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
6201
6202         Tests for module 'chdir'.
6203         * modules/chdir-tests: New file.
6204         * tests/test-chdir.c: New file.
6205
6206         New module 'chdir'.
6207         * modules/chdir: New file.
6208         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
6209         (chdir): New declaration.
6210         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
6211         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
6212         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
6213         * tests/test-unistd-c++.cc: Check signature of chdir.
6214         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
6215         * modules/chdir-long (Depends-on): Add chdir.
6216         * modules/fchdir (Depends-on): Likewise.
6217         * modules/rename (Depends-on): Likewise.
6218         * modules/savewd (Depends-on): Likewise.
6219
6220         rmdir: Support for mingw, MSVC 9.
6221         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6222         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6223
6224         getcwd: Tweak for MSVC 9.
6225         * lib/unistd.in.h: Update comments.
6226         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6227
6228 2011-09-22  Bruno Haible  <bruno@clisp.org>
6229
6230         strerror_r-posix: Avoid a link error on MSVC.
6231         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6232         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6233
6234 2011-09-22  Bruno Haible  <bruno@clisp.org>
6235
6236         select: Avoid link errors on MSVC.
6237         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6238         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6239         * modules/pselect (Link): Likewise.
6240         * NEWS: Mention the change.
6241         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6242         test-select-stdin against $(LIB_SELECT).
6243         * modules/pselect-tests (Makefile.am): Link test-pselect against
6244         $(LIB_SELECT).
6245
6246 2011-09-22  Bruno Haible  <bruno@clisp.org>
6247
6248         select: Avoid compilation error on MSVC.
6249         * lib/select.c: Don't include <stdbool.h>.
6250
6251 2011-09-21  Bruno Haible  <bruno@clisp.org>
6252
6253         Consolidate all uses of PATH_MAX in *.m4 files.
6254         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6255         macros.
6256         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6257         and gl_PATHMAX_SNIPPET.
6258         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6260         * modules/chdir-long (Files): Add m4/pathmax.m4.
6261         * modules/getcwd (Files): Likewise.
6262
6263 2011-09-21  Bruno Haible  <bruno@clisp.org>
6264
6265         ftruncate: Un-deprecate, concentrate on Win32 support.
6266         * modules/ftruncate (Status, Notice): Remove sections.
6267         (Depends-on): Add largefile.
6268         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6269         non-mingw platforms.
6270         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6271         include <io.h>.
6272         * modules/perror-tests (Depends-on): Add ftruncate.
6273         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6274         'ftruncate' module.
6275
6276 2011-09-21  Bruno Haible  <bruno@clisp.org>
6277
6278         Add dependencies to new dirent related modules.
6279         * modules/opendir (Depends-on): Add closedir.
6280         * modules/getcwd (Depends-on): Add opendir, closedir.
6281         * modules/dirent-safer-tests (Depends-on): Likewise.
6282         * modules/fdopendir-tests (Depends-on): Likewise.
6283         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6284         * modules/renameat-tests (Depends-on): Likewise.
6285
6286 2011-09-21  Bruno Haible  <bruno@clisp.org>
6287
6288         opendir: Avoid compilation error on mingw.
6289         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6290         * modules/opendir (Depends-on): Add unistd.
6291
6292 2011-09-21  Bruno Haible  <bruno@clisp.org>
6293
6294         ftruncate tests: Avoid a test failure on mingw.
6295         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6296
6297 2011-09-21  Bruno Haible  <bruno@clisp.org>
6298
6299         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6300         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6301         native Windows.
6302
6303 2011-09-21  Bruno Haible  <bruno@clisp.org>
6304
6305         New module 'fdopen'.
6306         * lib/stdio.in.h (fdopen): New declaration.
6307         * lib/fdopen.c: New file.
6308         * m4/fdopen.m4: New file.
6309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6310         REPLACE_FDOPEN.
6311         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6312         REPLACE_FDOPEN.
6313         * modules/fdopen: New file.
6314         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6315         * tests/test-stdio-c++.cc: Check signature of fdopen.
6316         * doc/posix-functions/fdopen.texi: Mention the new module.
6317
6318 2011-09-21  Bruno Haible  <bruno@clisp.org>
6319
6320         unlockpt tests: Avoid test failure on NetBSD 5.1.
6321         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6322         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6323
6324 2011-09-21  Bruno Haible  <bruno@clisp.org>
6325
6326         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6327         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6328         * tests/test-getlogin_r.c (main): Likewise.
6329
6330 2011-09-20  Bruno Haible  <bruno@clisp.org>
6331
6332         time tests: Don't require pid_t.
6333         * doc/posix-headers/time.texi: Revert last change.
6334         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6335         * tests/test-time.c: Comment out the check for pid_t.
6336
6337 2011-09-20  Bruno Haible  <bruno@clisp.org>
6338
6339         fsync tests: Avoid a test failure on mingw.
6340         * tests/test-fsync.c (main): Allow a failure with EIO.
6341
6342 2011-09-20  Bruno Haible  <bruno@clisp.org>
6343
6344         euidaccess: Update comments.
6345         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6346
6347 2011-09-20  Bruno Haible  <bruno@clisp.org>
6348
6349         Ensure EBADF returns for socket functions on mingw.
6350         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6351         descriptor is invalid.
6352         * lib/bind.c (rpl_bind): Likewise.
6353         * lib/connect.c (rpl_connect): Likewise.
6354         * lib/getpeername.c (rpl_getpeername): Likewise.
6355         * lib/getsockname.c (rpl_getsockname): Likewise.
6356         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6357         * lib/listen.c (rpl_listen): Likewise.
6358         * lib/recv.c (rpl_recv): Likewise.
6359         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6360         * lib/send.c (rpl_send): Likewise.
6361         * lib/sendto.c (rpl_sendto): Likewise.
6362         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6363         * lib/shutdown.c (rpl_shutdown): Likewise.
6364
6365 2011-09-20  Bruno Haible  <bruno@clisp.org>
6366
6367         select tests: EBADF tests.
6368         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6369         test_bad_fd): New functions.
6370         (test_function): Invoke also test_bad_fd.
6371
6372 2011-09-20  Bruno Haible  <bruno@clisp.org>
6373
6374         Tests for module 'posix_spawn_file_actions_addopen.
6375         * modules/posix_spawn_file_actions_addopen-tests: New file.
6376         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6377
6378         Tests for module 'posix_spawn_file_actions_adddup2'.
6379         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6380         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6381
6382         Tests for module 'posix_spawn_file_actions_addclose'.
6383         * modules/posix_spawn_file_actions_addclose-tests: New file.
6384         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6385
6386 2011-09-20  Bruno Haible  <bruno@clisp.org>
6387
6388         Tests for module 'unlockpt'.
6389         * modules/unlockpt-tests: New file.
6390         * tests/test-unlockpt.c: New file.
6391         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6392
6393         Tests for module 'grantpt'.
6394         * modules/grantpt-tests: New file.
6395         * tests/test-grantpt.c: New file.
6396         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6397
6398 2011-09-20  Bruno Haible  <bruno@clisp.org>
6399
6400         freopen tests: EBADF tests.
6401         * tests/test-freopen.c: Include errno.h, unistd.h.
6402         (main): Add tests for EBADF, commented out for the moment.
6403
6404         fclose tests: EBADF tests.
6405         * tests/test-fclose.c (main): Add tests for EBADF.
6406
6407         fflush tests: EBADF tests.
6408         * tests/test-fflush.c: Include errno.h, macros.h.
6409         (main): Add tests for EBADF.
6410
6411         ftello tests: EBADF tests.
6412         * tests/test-ftello4.sh: New file.
6413         * tests/test-ftello4.c: New file.
6414         * modules/ftello-tests (Files): Add them.
6415         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6416
6417         fseeko tests: EBADF tests.
6418         * tests/test-fseeko4.sh: New file.
6419         * tests/test-fseeko4.c: New file.
6420         * modules/fseeko-tests (Files): Add them.
6421         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6422
6423         Tests for function fputc().
6424         * modules/fputc-tests: New file.
6425         * tests/test-fputc.c: New file.
6426         * modules/stdio-tests (Depends-on): Add fputc-tests.
6427
6428         Tests for function fgetc().
6429         * modules/fgetc-tests: New file.
6430         * tests/test-fgetc.c: New file.
6431         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6432
6433         Tests for function fdopen().
6434         * modules/fdopen-tests: New file.
6435         * tests/test-fdopen.c: New file.
6436         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6437
6438         Tests for module 'vdprintf'.
6439         * modules/vdprintf-tests: New file.
6440         * tests/test-vdprintf.c: New file.
6441
6442         Tests for module 'dprintf'.
6443         * modules/dprintf-tests: New file.
6444         * tests/test-dprintf.c: New file.
6445
6446 2011-09-20  Bruno Haible  <bruno@clisp.org>
6447
6448         Tests for module 'ioctl'.
6449         * modules/ioctl-tests: New file.
6450         * tests/test-ioctl.c: New file.
6451
6452 2011-09-20  Bruno Haible  <bruno@clisp.org>
6453
6454         fcntl tests: EBADF tests.
6455         * tests/test-fcntl.c (main): Add more tests for EBADF.
6456
6457 2011-09-20  Bruno Haible  <bruno@clisp.org>
6458
6459         utimensat tests: EBADF tests.
6460         * tests/test-utimensat.c (main): Add tests for EBADF.
6461
6462         renameat tests: EBADF tests.
6463         * tests/test-renameat.c (main): Add tests for EBADF.
6464
6465         mkfifoat tests: EBADF tests.
6466         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6467
6468         readlinkat tests: EBADF tests.
6469         * tests/test-readlinkat.c (main): Add tests for EBADF.
6470
6471         symlinkat tests: EBADF tests.
6472         * tests/test-symlinkat.c (main): Add tests for EBADF.
6473
6474         linkat tests: EBADF tests.
6475         * tests/test-linkat.c (main): Add tests for EBADF.
6476
6477         Tests for module 'faccessat'.
6478         * modules/faccessat-tests: New file.
6479         * tests/test-faccessat.c: New file.
6480
6481         fdopendir tests: EBADF tests.
6482         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6483
6484         openat tests: EBADF tests.
6485         * tests/test-fchownat.c (main): Add tests for EBADF.
6486         * tests/test-fstatat.c (main): Likewise.
6487         * tests/test-mkdirat.c (main): Likewise.
6488         * tests/test-openat.c (main): Likewise.
6489         * tests/test-unlinkat.c (main): Likewise.
6490         * tests/test-fchmodat.c: New file.
6491         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6492         (Makefile.am): Also run 'test-fchmodat'.
6493
6494 2011-09-20  Bruno Haible  <bruno@clisp.org>
6495
6496         utimens, futimens, fdutimensat tests: EBADF tests.
6497         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6498
6499         Tests for function fstat().
6500         * modules/fstat-tests: New file.
6501         * tests/test-fstat.c: New file.
6502         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6503
6504 2011-09-20  Bruno Haible  <bruno@clisp.org>
6505
6506         test-ttyname_r tests: EBADF tests.
6507         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6508
6509         Tests for module 'isatty'.
6510         * modules/isatty-tests: New file.
6511         * tests/test-isatty.c: New file.
6512
6513         Tests for module 'write'.
6514         * modules/write-tests: New file.
6515         * tests/test-write.c: New file.
6516
6517         Tests for module 'read'.
6518         * modules/read-tests: New file.
6519         * tests/test-read.c: New file.
6520
6521         pwrite tests: EBADF tests.
6522         * tests/test-pwrite.c (main): Add tests for EBADF.
6523
6524         pread tests: EBADF tests.
6525         * tests/test-pread.c (main): Add tests for EBADF.
6526
6527         lseek tests: EBADF tests.
6528         * tests/test-lseek.c (main): Add more tests for EBADF.
6529
6530         Tests for module 'ftruncate'.
6531         * modules/ftruncate-tests: New file.
6532         * tests/test-ftruncate.sh: New file.
6533         * tests/test-ftruncate.c: New file.
6534
6535         fsync tests: EBADF tests.
6536         * tests/test-fsync.c (main): Add more tests for EBADF.
6537
6538         fdatasync tests: EBADF tests.
6539         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6540
6541         Tests for module 'fchown'.
6542         * modules/fchown-tests: New file.
6543         * tests/test-fchown.c: New file.
6544
6545         Tests for module 'fchmod'.
6546         * modules/fchmod-tests: New file.
6547         * tests/test-fchmod.c: New file.
6548
6549         fchdir tests: EBADF tests.
6550         * tests/test-fchdir.c (main): Add more tests for EBADF.
6551
6552         dup2 tests: EBADF tests.
6553         * tests/test-dup2.c (main): Add more tests for EBADF.
6554
6555         Tests for module 'dup'.
6556         * modules/dup-tests: New file.
6557         * tests/test-dup.c: New file.
6558
6559         Tests for module 'close'.
6560         * modules/close-tests: New file.
6561         * tests/test-close.c: New file.
6562
6563 2011-09-20  Bruno Haible  <bruno@clisp.org>
6564
6565         Tests for module 'shutdown'.
6566         * modules/shutdown-tests: New file.
6567         * tests/test-shutdown.c: New file.
6568
6569         Tests for module 'setsockopt'.
6570         * modules/setsockopt-tests: New file.
6571         * tests/test-setsockopt.c: New file.
6572
6573         Tests for module 'sendto'.
6574         * modules/sendto-tests: New file.
6575         * tests/test-sendto.c: New file.
6576
6577         Tests for module 'send'.
6578         * modules/send-tests: New file.
6579         * tests/test-send.c: New file.
6580
6581         Tests for module 'recvfrom'.
6582         * modules/recvfrom-tests: New file.
6583         * tests/test-recvfrom.c: New file.
6584
6585         Tests for module 'recv'.
6586         * modules/recv-tests: New file.
6587         * tests/test-recv.c: New file.
6588
6589         Tests for module 'listen'.
6590         * modules/listen-tests: New file.
6591         * tests/test-listen.c: New file.
6592
6593         Tests for module 'getsockopt'.
6594         * modules/getsockopt-tests: New file.
6595         * tests/test-getsockopt.c: New file.
6596
6597         Tests for module 'getsockname'.
6598         * modules/getsockname-tests: New file.
6599         * tests/test-getsockname.c: New file.
6600
6601         Tests for module 'getpeername'.
6602         * modules/getpeername-tests: New file.
6603         * tests/test-getpeername.c: New file.
6604
6605         Tests for module 'connect'.
6606         * modules/connect-tests: New file.
6607         * tests/test-connect.c: New file.
6608
6609         Tests for module 'bind'.
6610         * modules/bind-tests: New file.
6611         * tests/test-bind.c: New file.
6612
6613         accept4 tests: Fix for native Windows.
6614         * tests/test-accept4.c: Include sockets.h.
6615         (main): Invoke gl_sockets_startup.
6616         * modules/accept4-tests (Depends-on): Add sockets.
6617
6618         accept tests: Fix for native Windows.
6619         * tests/test-accept.c: Include sockets.h.
6620         (main): Invoke gl_sockets_startup.
6621         * modules/accept-tests (Depends-on): Add sockets.
6622
6623 2011-09-19  Bruno Haible  <bruno@clisp.org>
6624
6625         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6626         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6627         do...while(0).
6628         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6629         Suggested by Paul Eggert.
6630
6631 2011-09-19  Bruno Haible  <bruno@clisp.org>
6632
6633         sched: Ensure pid_t is defined.
6634         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6635         not define pid_t.
6636         * lib/sched.in.h: Include <sys/types.h>.
6637         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6639
6640 2011-09-19  Bruno Haible  <bruno@clisp.org>
6641
6642         msvc-inval: Ensure the entire expansion is a single statement.
6643         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6644         of braces.
6645
6646 2011-09-19  Jim Meyering  <meyering@redhat.com>
6647
6648         tests: use printf, not echo in init.sh's warn_ function
6649         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6650         misbehave when given strings containing a backslash or starting
6651         with e.g., -n.  James Youngman suggested setting IFS.
6652
6653 2011-09-19  Eric Blake  <eblake@redhat.com>
6654
6655         futimens: enhance test
6656         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6657         closed non-negative fd.
6658
6659         date: accept 'hence' as opposite of 'ago'
6660         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6661         * tests/test-parse-datetime.c (main): Enhance test.
6662         Suggested by Jesse Wilson.
6663
6664 2011-09-19  Jim Meyering  <meyering@redhat.com>
6665
6666         getcwd: don't fail in a deep directory on a system without openat
6667         Before this change, getcwd would fail when called from a directory
6668         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6669         the non-openat implementation used "..", "../..", "../../..", etc.
6670         to access ancestor directories.  With too many, that string would
6671         be longer than PATH_MAX.
6672         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6673         using gnulib's openat replacement.
6674         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6675         we're using the replacement function.
6676
6677 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6678
6679         maint.mk: avoid warnings from perl about missing files
6680         * top/maint.mk (def_sym_regex): Ignore files listed in
6681         $(gl_other_headers_) that do not exist, say because a project
6682         does not use a corresponding module.
6683
6684 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6685
6686         stat: use pathmax.h only if needed
6687         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6688         This is better for Emacs, which does not have a mingw port and
6689         therefore can avoid the pathmax module.
6690
6691         utimens: remove dependency on dup2
6692         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6693         to work around the Linux kernel bug.
6694         * modules/utimens (Depends-on): Remove dup2.
6695
6696 2011-09-18  Bruno Haible  <bruno@clisp.org>
6697
6698         inet_ntop, inet_pton: Look for it also in libresolv.
6699         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6700         libnsl, search for it in libresolv.
6701         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6702         Needed on Solaris 7.
6703
6704 2011-09-18  Bruno Haible  <bruno@clisp.org>
6705
6706         accept, accept4 tests: Avoid link error on Solaris.
6707         * modules/accept-tests (Makefile.am): Link test-accept against
6708         $(LIBSOCKET).
6709         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6710         $(LIBSOCKET).
6711
6712         accept4: Avoid link error on Solaris.
6713         * modules/accept4 (Link): New section.
6714
6715         socket functions: Avoid link errors on Solaris.
6716         * modules/accept (Depends-on): Add socketlib.
6717         (Link): New section.
6718         * modules/bind (Depends-on): Add socketlib.
6719         (Link): New section.
6720         * modules/connect (Depends-on): Add socketlib.
6721         (Link): New section.
6722         * modules/getpeername (Depends-on): Add socketlib.
6723         (Link): New section.
6724         * modules/getsockname (Depends-on): Add socketlib.
6725         (Link): New section.
6726         * modules/getsockopt (Depends-on): Add socketlib.
6727         (Link): New section.
6728         * modules/listen (Depends-on): Add socketlib.
6729         (Link): New section.
6730         * modules/recv (Depends-on): Add socketlib.
6731         (Link): New section.
6732         * modules/recvfrom (Depends-on): Add socketlib.
6733         (Link): New section.
6734         * modules/send (Depends-on): Add socketlib.
6735         (Link): New section.
6736         * modules/sendto (Depends-on): Add socketlib.
6737         (Link): New section.
6738         * modules/setsockopt (Depends-on): Add socketlib.
6739         (Link): New section.
6740         * modules/shutdown (Depends-on): Add socketlib.
6741         (Link): New section.
6742         * modules/socket (Depends-on): Add socketlib.
6743         (Link): New section.
6744
6745 2011-09-18  Bruno Haible  <bruno@clisp.org>
6746
6747         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6748         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6749         than 5 seconds.
6750         * modules/ptsname-tests (configure.ac): Test for alarm.
6751
6752 2011-09-18  Bruno Haible  <bruno@clisp.org>
6753
6754         posix_spawn_file_actions_add*: Fix module dependencies.
6755         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6756         posix_spawn_file_actions_init.
6757         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6758         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6759
6760 2011-09-18  Bruno Haible  <bruno@clisp.org>
6761
6762         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6763         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6764         * tests/test-renameat.c (main): Likewise.
6765
6766 2011-09-18  Bruno Haible  <bruno@clisp.org>
6767
6768         Tests for module 'accept4'.
6769         * modules/accept4-tests: New file.
6770         * tests/test-accept4.c: New file.
6771
6772 2011-09-18  Bruno Haible  <bruno@clisp.org>
6773
6774         Tests for module 'accept'.
6775         * modules/accept-tests: New file.
6776         * tests/test-accept.c: New file.
6777
6778 2011-09-18  Bruno Haible  <bruno@clisp.org>
6779
6780         dup2: Support for MSVC.
6781         * lib/dup2.c: Include msvc-inval.h.
6782         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6783         _get_osfhandle calls.
6784         * modules/dup2 (Depends-on): Add msvc-inval.
6785         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6786
6787         New module 'msvc-inval'.
6788         * lib/msvc-inval.h: New file.
6789         * lib/msvc-inval.c: New file.
6790         * m4/msvc-inval.m4: New file.
6791         * modules/msvc-inval: New file.
6792
6793 2011-09-17  Bruno Haible  <bruno@clisp.org>
6794
6795         Tests for module 'pclose'.
6796         * modules/pclose-tests: New file.
6797
6798         New module 'pclose'.
6799         * lib/stdio.in.h (pclose): New declaration.
6800         * lib/pclose.c: New file.
6801         * m4/pclose.m4: New file.
6802         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6803         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6804         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6805         * modules/pclose: New file.
6806         * modules/popen-tests (Depends-on): Add pclose.
6807         * modules/popen-safer-tests (Depends-on): Likewise.
6808         * doc/posix-functions/pclose.texi: Mention the new module.
6809
6810 2011-09-17  Bruno Haible  <bruno@clisp.org>
6811
6812         popen: Support for MSVC.
6813         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6814         * lib/popen.c (popen): Provide alternate definition for native Windows.
6815         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6817         * modules/popen (Depends-on, configure.ac): Update condition.
6818         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6819         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6820         fixed.
6821
6822 2011-09-17  Bruno Haible  <bruno@clisp.org>
6823
6824         isnanl, isnand, isnanf: Work around MSVC bug.
6825         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6826
6827 2011-09-17  Bruno Haible  <bruno@clisp.org>
6828
6829         sys_socket tests: Fix recent mistake.
6830         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6831
6832 2011-09-17  Bruno Haible  <bruno@clisp.org>
6833
6834         putenv: Support for MSVC.
6835         * modules/putenv (Depends-on): Add environ.
6836         * lib/putenv.c (environ): Disable declaration.
6837         * lib/unistd.in.h: Update comment.
6838
6839 2011-09-17  Bruno Haible  <bruno@clisp.org>
6840
6841         math: Avoid macro redefinition warnings on MSVC.
6842         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6843         Undefine before redefining.
6844
6845 2011-09-17  Bruno Haible  <bruno@clisp.org>
6846
6847         doc: Mention functions which are declared as macros.
6848         * doc/posix-functions/*[fl].texi: Mention that some functions are
6849         defined as macros with arguments only.
6850
6851 2011-09-17  Bruno Haible  <bruno@clisp.org>
6852
6853         Add dependencies to new dirent related modules.
6854         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6855         * modules/fts (Depends-on): Likewise.
6856         * modules/glob (Depends-on): Likewise.
6857         * modules/savedir (Depends-on): Likewise.
6858         * modules/scandir (Depends-on): Likewise.
6859         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6860         * modules/fdopendir (Depends-on): Add opendir.
6861
6862 2011-09-17  Bruno Haible  <bruno@clisp.org>
6863
6864         inet_pton: Support for MSVC on Windows Vista or newer.
6865         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6866         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6867         HAVE_DECL_INET_PTON is defined.
6868         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6869         On platforms with <winsock2.h>, test whether inet_pton is declared in
6870         <ws2tcpip.h>. If so, arrange to replace it.
6871         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6872         REPLACE_INET_PTON.
6873         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6874         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6875         (Depends-on, configure.ac): Update condition.
6876         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6877
6878 2011-09-17  Bruno Haible  <bruno@clisp.org>
6879
6880         inet_ntop: Support for MSVC on Windows Vista or newer.
6881         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6882         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6883         HAVE_DECL_INET_NTOP is defined.
6884         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6885         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6886         <ws2tcpip.h>. If so, arrange to replace it.
6887         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6888         REPLACE_INET_NTOP.
6889         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6890         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6891         (Depends-on, configure.ac): Update condition.
6892         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6893
6894 2011-09-16  Eric Blake  <eblake@redhat.com>
6895
6896         test-fsync: yet another enhancement
6897         * tests/test-fsync.c (main): Also test behavior on read-only text
6898         file.
6899
6900 2011-09-16  Bruno Haible  <bruno@clisp.org>
6901
6902         Enhance fsync, fdatasync tests.
6903         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6904         * tests/test-fdatasync.c (main): Likewise.
6905
6906 2011-09-16  Bruno Haible  <bruno@clisp.org>
6907
6908         Support for MSVC compiler: Ensure mode_t gets defined.
6909         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6910         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6912         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6913         * tests/test-fcntl-h.c: Check that mode_t is defined.
6914         * tests/test-sys_stat.c: Likewise.
6915         * tests/test-sys_types.c: Likewise.
6916         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6917         * doc/posix-headers/sys_stat.texi: Likewise.
6918         * doc/posix-headers/sys_types.texi: Likewise.
6919
6920 2011-09-16  Bruno Haible  <bruno@clisp.org>
6921
6922         sys_stat: Support for MSVC.
6923         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6924         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6925         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6926         MSVC.
6927
6928 2011-09-16  Bruno Haible  <bruno@clisp.org>
6929
6930         Support for MSVC compiler: Ensure off_t gets defined.
6931         * lib/unistd.in.h: Include <sys/types.h>.
6932         * tests/test-fcntl-h.c: Check that off_t is defined.
6933         * tests/test-sys_stat.c: Likewise.
6934         * tests/test-sys_types.c: Likewise.
6935
6936 2011-09-16  Eric Blake  <eblake@redhat.com>
6937
6938         fdatasync: port to Solaris
6939         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6940         * modules/fdatasync (Link): Document it.
6941         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6942
6943         fdatasync: port to MacOS X 10.7
6944         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6945         declared.
6946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6947         * modules/unistd (Makefile.am): Substitute it.
6948         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6949         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6950
6951         fdatasync: minor improvements
6952         * modules/fdatasync (Depends-on): Add condition for fsync.
6953         * lib/fdatasync.c (fdatasync): Add comment.
6954         * tests/test-unistd-c++.cc: Test fdatasync.
6955
6956         unistd: update refs to newer POSIX
6957         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6958         Suggested by Bruno Haible.
6959
6960         fdatasync: new module
6961         * modules/fsync (Description): Document difference to fdatasync.
6962         * modules/fdatasync: New module.
6963         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6964         * lib/fdatasync.c (fdatasync): Likewise.
6965         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6966         defaults.
6967         * modules/unistd (Makefile.am): Set witnesses.
6968         * lib/unistd.in.h (fdatasync): Declare.
6969         * MODULES.html.sh: Document it.
6970         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6971         * modules/fdatasync-tests: New test.
6972         * tests/test-fdatasync.c: Likewise.
6973
6974 2011-09-16  Eric Blake  <eblake@redhat.com>
6975
6976         test-fsync: enhance tests
6977         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6978         * tests/test-fsync.c (main): Enhance test.
6979
6980 2011-09-15  Bruno Haible  <bruno@clisp.org>
6981
6982         Support for MSVC compiler: Ensure ssize_t gets defined.
6983         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6984         * doc/posix-headers/stdio.texi: Likewise.
6985         * modules/stdio (Depends-on): Add ssize_t.
6986         * modules/sys_socket (Depends-on): Likewise.
6987         * modules/sys_types (Depends-on): Likewise.
6988         * modules/sys_uio (Depends-on): Likewise.
6989         * modules/unistd (Depends-on): Likewise.
6990         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6991         * tests/test-sys_types.c: Check that ssize_t is defined.
6992
6993 2011-09-14  Bruno Haible  <bruno@clisp.org>
6994
6995         Avoid using #, the m4 comment starter character, near brackets.
6996         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6997         delimiter character in sed expressions.
6998         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6999         Suggested by Eric Blake.
7000
7001         Properly quote AC_CHECK_DECLS' 4th argument.
7002         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
7003         argument.
7004         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7005         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7006         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7007         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7008         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7009         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
7010         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
7011         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
7012         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
7013         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7014         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
7015         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7016         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7017         * m4/isinf.m4 (gl_ISINF): Likewise.
7018         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7019         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7020         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7021         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7022         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7023         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7024         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7025         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7026         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
7027         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7028         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
7031         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7033         Reported by Eric Blake.
7034
7035         Properly quote AC_CHECK_DECL's 4th argument.
7036         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
7037         argument.
7038         * m4/argp.m4 (gl_ARGP): Likewise.
7039         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7040         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7041         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7042         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7043         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
7044         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
7045         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7046         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7047         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7048         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7049         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7050         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7051         Reported by Eric Blake.
7052
7053 2011-09-14  Eric Blake  <eblake@redhat.com>
7054
7055         opendir: avoid compile warning
7056         * lib/opendir.c (includes): Always include errno.h.
7057         Reported by Tatsuro MATSUOKA.
7058
7059 2011-09-14  Jim Meyering  <meyering@redhat.com>
7060
7061         maint.mk: sc_tight_scope: propagate failure from sub-make
7062         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
7063         Reported by Martin von Gagern.
7064
7065 2011-09-13  Bruno Haible  <bruno@clisp.org>
7066
7067         tempname: Support for MSVC.
7068         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
7069         MSVC.
7070         * modules/tempname (Depends-on): Add fcntl-h.
7071
7072 2011-09-13  Bruno Haible  <bruno@clisp.org>
7073
7074         sys_time: Support for MSVC.
7075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
7076         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
7077         include <winsock2.h>.
7078         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
7079         function declarations that collide with POSIX.
7080         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
7081         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7082
7083 2011-09-13  Bruno Haible  <bruno@clisp.org>
7084
7085         stat: Support for MSVC.
7086         * lib/stat.c: Include pathmax.h.
7087         * modules/stat (Depends-on): Add pathmax.
7088
7089         pathmax: Support for native Windows.
7090         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
7091
7092 2011-09-12  Bruno Haible  <bruno@clisp.org>
7093
7094         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
7095         * lib/dirent.in.h (struct dirent): New type.
7096         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
7097         DT_WHT): New macros.
7098         (DIR): New type.
7099         (opendir, closedir): Declare only if the module 'opendir' is enabled.
7100         (readdir, rewinddir): New declarations.
7101         * lib/dirent-private.h: New file.
7102         * lib/opendir.c: New file.
7103         * lib/readdir.c: New file.
7104         * lib/rewinddir.c: New file.
7105         * lib/closedir.c: New file.
7106         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
7107         * m4/opendir.m4: New file.
7108         * m4/readdir.m4: New file.
7109         * m4/rewinddir.m4: New file.
7110         * m4/closedir.m4: New file.
7111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
7112         REPLACE_CLOSEDIR here.
7113         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
7114         readdir, rewinddir are declared.
7115         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
7116         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
7117         HAVE_REWINDDIR, HAVE_CLOSEDIR.
7118         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
7119         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
7120         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
7121         * modules/opendir: New file.
7122         * modules/readdir: New file.
7123         * modules/rewinddir: New file.
7124         * modules/closedir: New file.
7125         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
7126         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
7127         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
7128         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
7129         * NEWS: Mention the 'fchdir' change.
7130
7131 2011-09-11  Bruno Haible  <bruno@clisp.org>
7132
7133         asm-underscore.m4: Support for MSVC.
7134         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
7135         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
7136
7137 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
7138
7139         Doc about crypt functions.
7140         * doc/posix-functions/crypt.texi: Expand range of glibc versions
7141         needing for _GNU_SOURCE to get crypt.
7142         * doc/posix-functions/encrypt.texi: Likewise.
7143         * doc/posix-functions/setkey.texi: Likewise.
7144
7145 2011-09-11  Bruno Haible  <bruno@clisp.org>
7146
7147         doc: Update regarding MSVC 9.
7148         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
7149         tested".
7150         * doc/posix-functions/*.texi: Update with info about MSVC 9.
7151         * doc/posix-headers/*.texi: Likewise.
7152         * doc/pastposix-functions/*.texi: Likewise.
7153         * doc/glibc-functions/*.texi: Likewise.
7154         * doc/glibc-headers/*.texi: Likewise.
7155
7156 2011-09-11  Bruno Haible  <bruno@clisp.org>
7157
7158         unistd et al.: Don't assume <unistd.h> exists.
7159         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
7160         does not exist.
7161         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
7162         exist. But include <stdlib.h>.
7163         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
7164         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
7165         symlink() does not exist.
7166         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
7167         include <io.h> instead.
7168         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
7169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
7170         include <direct.h> instead.
7171         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7173         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
7174         <io.h> instead.
7175         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
7176         correctly if the system does not have hard links.
7177         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
7178         <direct.h> instead.
7179         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
7180         it when looking for function declarations.
7181         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
7182         <direct.h> and <io.h> instead.
7183         * doc/posix-headers/unistd.texi: More details about MSVC problem.
7184
7185 2011-09-11  Bruno Haible  <bruno@clisp.org>
7186
7187         strcase: Support for MSVC.
7188         * modules/strcase (Status, Notice): Remove obsoletion mark.
7189         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
7190         * doc/posix-functions/strncasecmp.texi: Likewise.
7191
7192         strings: Don't assume <strings.h> exists.
7193         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
7194         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
7195         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7196         * doc/posix-headers/strings.texi: Mention the MSVC problem.
7197
7198 2011-09-11  Bruno Haible  <bruno@clisp.org>
7199
7200         dirent: Don't assume <dirent.h> exists.
7201         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
7202         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
7203         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7204         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
7205
7206 2011-09-11  Bruno Haible  <bruno@clisp.org>
7207
7208         Fix wint_t on MSVC.
7209         * lib/wchar.in.h (wint_t): On MSVC, override it.
7210         * lib/wctype.in.h (wint_t): Likewise.
7211         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
7212         MSVC.
7213         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
7214         * doc/posix-headers/wctype.texi: Likewise.
7215
7216 2011-09-11  Bruno Haible  <bruno@clisp.org>
7217
7218         sys_types: Fix typo.
7219         * lib/sys_types.in.h: Fix typo in comment.
7220         Reported by Paul Eggert.
7221
7222         Support for MSVC compiler: Ensure size_t gets defined.
7223         * modules/strings (Depends-on): Add 'sys_types'.
7224         * modules/sys_uio (Depends-on): Likewise.
7225         * lib/sys_uio.in.h: Update comment.
7226
7227         C++ tests for module 'sys_types'.
7228         * modules/sys_types-c++-tests: New file.
7229         * tests/test-sys_types-c++.cc: New file.
7230
7231         Tests for module 'sys_types'.
7232         * modules/sys_types-tests: New file.
7233         * tests/test-sys_types.c: New file.
7234
7235         New module 'sys_types'.
7236         * lib/sys_types.in.h: New file.
7237         * m4/sys_types_h.m4: New file.
7238         * modules/sys_types: New file.
7239         * doc/posix-headers/sys_types.texi: Mention the new module and the
7240         size_t problem on MSVC 9.
7241
7242 2011-09-11  Bruno Haible  <bruno@clisp.org>
7243
7244         Support for MSVC compiler: Avoid division by a literal 0.
7245         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7247         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7248         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7249         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7250         * tests/infinity.h: New file.
7251         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7252         on MSVC.
7253         * tests/test-ceilf1.c: Include infinity.h.
7254         (main): Use Infinityf.
7255         * tests/test-ceil1.c: Include infinity.h.
7256         (main): Use Infinityd.
7257         * tests/test-ceill.c: Include infinity.h.
7258         (main): Use Infinityl.
7259         * tests/test-dprintf-posix.c: Include infinity.h.
7260         (test_function): Use Infinityd.
7261         * tests/test-floorf1.c: Include infinity.h.
7262         (main): Use Infinityf.
7263         * tests/test-floor1.c: Include infinity.h.
7264         (main): Use Infinityd.
7265         * tests/test-floorl.c: Include infinity.h.
7266         (main): Use Infinityl.
7267         * tests/test-fprintf-posix.c: Include infinity.h.
7268         (test_function): Use Infinityd.
7269         * tests/test-frexp.c: Include infinity.h.
7270         (main): Use Infinityd.
7271         * tests/test-frexpl.c: Include infinity.h.
7272         (main): Use Infinityl.
7273         * tests/test-isfinite.c: Include infinity.h.
7274         (test_isfinitef): Use Infinityf.
7275         (test_isfinited): Use Infinityd.
7276         (test_isfinitel): Use Infinityl.
7277         * tests/test-isinf.c: Include infinity.h.
7278         (test_isinff): Use Infinityf.
7279         (test_isinfd): Use Infinityd.
7280         (test_isinfl): Use Infinityl.
7281         * tests/test-isnan.c: Include infinity.h.
7282         (test_float): Use Infinityf.
7283         (test_double): Use Infinityd.
7284         (test_long_double): Use Infinityl.
7285         * tests/test-isnanf.h: Include infinity.h.
7286         (main): Use Infinityf.
7287         * tests/test-isnand.h: Include infinity.h.
7288         (main): Use Infinityd.
7289         * tests/test-isnanl.h: Include infinity.h.
7290         (main): Use Infinityl.
7291         * tests/test-ldexpl.c: Include infinity.h.
7292         (main): Use Infinityl.
7293         * tests/test-printf-posix.h: Include infinity.h.
7294         (test_function): Use Infinityd.
7295         * tests/test-roundf1.c: Include infinity.h.
7296         (main): Use Infinityf.
7297         * tests/test-round1.c: Include infinity.h.
7298         (main): Use Infinityd.
7299         * tests/test-roundl.c: Include infinity.h.
7300         (main): Use Infinityl.
7301         * tests/test-signbit.c: Include infinity.h.
7302         (test_signbitf): Use Infinityf.
7303         (test_signbitd): Use Infinityd.
7304         (test_signbitl): Use Infinityl.
7305         * tests/test-snprintf-posix.h: Include infinity.h.
7306         (test_function): Use Infinityd, Infinityl.
7307         * tests/test-sprintf-posix.h: Include infinity.h.
7308         (test_function): Use Infinityd, Infinityl.
7309         * tests/test-truncf1.c: Include infinity.h.
7310         (main): Use Infinityf.
7311         * tests/test-trunc1.c: Include infinity.h.
7312         (main): Use Infinityd.
7313         * tests/test-truncl.c: Include infinity.h.
7314         (main): Use Infinityl.
7315         * tests/test-vasnprintf-posix.c: Include infinity.h.
7316         (test_function): Use Infinityd, Infinityl.
7317         * tests/test-vasprintf-posix.c: Include infinity.h.
7318         (test_function): Use Infinityd, Infinityl.
7319         * modules/ceilf-tests (Files): Add tests/infinity.h.
7320         * modules/ceil-tests (Files): Likewise.
7321         * modules/ceill-tests (Files): Likewise.
7322         * modules/dprintf-posix-tests (Files): Likewise.
7323         * modules/floorf-tests (Files): Likewise.
7324         * modules/floor-tests (Files): Likewise.
7325         * modules/floorl-tests (Files): Likewise.
7326         * modules/fprintf-posix-tests (Files): Likewise.
7327         * modules/frexp-tests (Files): Likewise.
7328         * modules/frexp-nolibm-tests (Files): Likewise.
7329         * modules/frexpl-tests (Files): Likewise.
7330         * modules/frexpl-nolibm-tests (Files): Likewise.
7331         * modules/isfinite-tests (Files): Likewise.
7332         * modules/isinf-tests (Files): Likewise.
7333         * modules/isnan-tests (Files): Likewise.
7334         * modules/isnanf-tests (Files): Likewise.
7335         * modules/isnanf-nolibm-tests (Files): Likewise.
7336         * modules/isnand-tests (Files): Likewise.
7337         * modules/isnand-nolibm-tests (Files): Likewise.
7338         * modules/isnanl-tests (Files): Likewise.
7339         * modules/isnanl-nolibm-tests (Files): Likewise.
7340         * modules/ldexpl-tests (Files): Likewise.
7341         * modules/printf-posix-tests (Files): Likewise.
7342         * modules/roundf-tests (Files): Likewise.
7343         * modules/round-tests (Files): Likewise.
7344         * modules/roundl-tests (Files): Likewise.
7345         * modules/signbit-tests (Files): Likewise.
7346         * modules/snprintf-posix-tests (Files): Likewise.
7347         * modules/sprintf-posix-tests (Files): Likewise.
7348         * modules/truncf-tests (Files): Likewise.
7349         * modules/trunc-tests (Files): Likewise.
7350         * modules/truncl-tests (Files): Likewise.
7351         * modules/vasnprintf-posix-tests (Files): Likewise.
7352         * modules/vasprintf-posix-tests (Files): Likewise.
7353         * modules/vdprintf-posix-tests (Files): Likewise.
7354         * modules/vfprintf-posix-tests (Files): Likewise.
7355         * modules/vprintf-posix-tests (Files): Likewise.
7356         * modules/vsnprintf-posix-tests (Files): Likewise.
7357         * modules/vsprintf-posix-tests (Files): Likewise.
7358         * modules/xprintf-posix-tests (Files): Likewise.
7359
7360 2011-09-11  Bruno Haible  <bruno@clisp.org>
7361
7362         Ensure pid_t gets defined.
7363         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7364         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7365         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7366         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7367         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7368         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7369         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7370         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7371         * tests/test-fcntl-h.c: Check that pid_t is defined.
7372         * tests/test-sched.c: Likewise.
7373         * tests/test-termios.c: Likewise.
7374         * tests/test-time.c: Likewise.
7375         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7376         * doc/posix-headers/signal.texi: Likewise.
7377         * doc/posix-headers/sys_types.texi: Likewise.
7378         * doc/posix-headers/time.texi: Likewise.
7379
7380 2011-09-11  Bruno Haible  <bruno@clisp.org>
7381
7382         acl: Fix compilation on Solaris 10 (older version).
7383         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7384         of ACE_EVERYONE.
7385         * lib/set-mode-acl.c (qset_acl): Likewise.
7386         Reported by Christian Jullien <eligis@orange.fr>.
7387
7388 2011-09-10  Bruno Haible  <bruno@clisp.org>
7389
7390         iconv, unsetenv: Add support for MSVC compiler.
7391         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7392         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7393
7394 2011-09-10  Bruno Haible  <bruno@clisp.org>
7395
7396         *printf: Add support for MSVC compiler.
7397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7398         handles the exception caused by the %n directive. When cross-compiling,
7399         guess no on native Windows.
7400         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7401         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7402         emulate it through vsnprintf.
7403         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7404         * doc/posix-functions/dprintf.texi: Update documentation regarding
7405         MSVC 9.
7406         * doc/posix-functions/fprintf.texi: Likewise.
7407         * doc/posix-functions/printf.texi: Likewise.
7408         * doc/posix-functions/snprintf.texi: Likewise.
7409         * doc/posix-functions/sprintf.texi: Likewise.
7410         * doc/posix-functions/swprintf.texi: Likewise.
7411         * doc/posix-functions/vdprintf.texi: Likewise.
7412         * doc/posix-functions/vfprintf.texi: Likewise.
7413         * doc/posix-functions/vprintf.texi: Likewise.
7414         * doc/posix-functions/vsnprintf.texi: Likewise.
7415         * doc/posix-functions/vsprintf.texi: Likewise.
7416         * doc/glibc-functions/asprintf.texi: Likewise.
7417         * doc/glibc-functions/obstack_printf.texi: Likewise.
7418         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7419         * doc/glibc-functions/vasprintf.texi: Likewise.
7420
7421 2011-09-10  Bruno Haible  <bruno@clisp.org>
7422
7423         nocrash: Add support for native Windows.
7424         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7425
7426 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7427             Bruno Haible  <bruno@clisp.org>
7428
7429         absolute-header, include-next: Add support for MSVC compiler.
7430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7431         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7432         directory separator in #line directives.
7433         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7434         recognize also backslash as directory separator in #line directives.
7435
7436 2011-09-08  Jim Meyering  <meyering@redhat.com>
7437
7438         maint.mk: mark the post-release commit log with "maint: " prefix
7439         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7440         one-line commit-log summary.
7441
7442 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7443             Bruno Haible  <bruno@clisp.org>
7444
7445         Doc about crypt functions.
7446         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7447         systems.
7448         * doc/posix-functions/encrypt.texi: Likewise.
7449         * doc/posix-functions/setkey.texi: Likewise.
7450
7451 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7452
7453         * lib/gc.h: Fix copyright header.
7454
7455 2011-09-07  Bruno Haible  <bruno@clisp.org>
7456
7457         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7458         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7459         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7460
7461 2011-09-07  Bruno Haible  <bruno@clisp.org>
7462
7463         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7464         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7465         * lib/freopen.c: Likewise.
7466         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7467         * lib/lstat.c: Likewise.
7468         * lib/stat.c: Likewise.
7469         * lib/open.c: Use different syntax for include of <fcntl.h>.
7470         * lib/openat.c: Include fcntl.h again, explicitly.
7471
7472 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7473
7474         parse-datetime: document the newly accepted format
7475         * doc/parse-datetime.texi (Combined date and time of day items):
7476         New section.
7477
7478 2011-09-06  Bruno Haible  <bruno@clisp.org>
7479
7480         acl: Fix a test failure on newer Solaris 10 with ZFS.
7481         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7482         ENOSYS as no ACL.
7483         Reported by Jim Meyering.
7484
7485 2011-09-06  Bruno Haible  <bruno@clisp.org>
7486
7487         acl: Update for AIX >= 5.3 with NFS.
7488         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7489         ENOSYS as no ACL.
7490
7491         acl: Fix a test failure on AIX >= 5.3 with NFS.
7492         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7493         as no ACL.
7494
7495 2011-09-06  Bruno Haible  <bruno@clisp.org>
7496
7497         acl: Fix a test failure on IRIX 6.5 with NFS.
7498         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7499         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7500         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7501         * lib/copy-acl.c (qcopy_acl): Likewise.
7502
7503 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         openat: port to AIX 7.1 with large files
7506         AIX 7.1 does a "#define openat open64at" if large files are in use,
7507         so we can't simply #undef openat.  Use the orig_openat trick (similar
7508         to orig_open in lib/open.c) to work around the problem.  Problem
7509         reported by Kevin Brott for GNU tar, in the thread containing
7510         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7511         * lib/openat.c (__need_system_fcntl_h): Define first.
7512         Include <fcntl.h> and <sys/types.h> before undefining.
7513         (orig_openat) [HAVE_OPENAT]: New inline function.
7514         (openat) [HAVE_OPENAT]: Do not undef.
7515         (rpl_openat): Use orig_openat, not openat.
7516
7517 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7518             Bruno Haible  <bruno@clisp.org>
7519
7520         acl: Avoid errors on NonStop Kernel.
7521         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7522         ENOTSUP errors.
7523
7524 2011-09-05  Bruno Haible  <bruno@clisp.org>
7525
7526         acl: Clean up Solaris code.
7527         * lib/acl-internal.h: Remove no-op #if.
7528         * lib/file-has-acl.c: Likewise.
7529         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7530         * lib/copy-acl.c (qcopy_acl): Likewise.
7531
7532 2011-09-05  Bruno Haible  <bruno@clisp.org>
7533
7534         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7535         binaries built on the original Solaris 10.
7536         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7537         trivial.
7538
7539 2011-09-05  Bruno Haible  <bruno@clisp.org>
7540
7541         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7542         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7543         10.
7544         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7545         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7546         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7547         instead of acl_get, facl_get, acl_set, facl_set.
7548
7549 2011-09-05  Bruno Haible  <bruno@clisp.org>
7550
7551         copy-file: Try unit tests on more file systems.
7552         * tests/test-copy-file-1.sh: New file.
7553         * tests/test-copy-file-2.sh: New file.
7554         * modules/copy-file-tests (Files): Add them.
7555         (Makefile.am): Add them to TESTS.
7556
7557         acl: Try unit tests on more file systems.
7558         * tests/test-file-has-acl-1.sh: New file.
7559         * tests/test-file-has-acl-2.sh: New file.
7560         * tests/test-set-mode-acl-1.sh: New file.
7561         * tests/test-set-mode-acl-2.sh: New file.
7562         * tests/test-copy-acl-1.sh: New file.
7563         * tests/test-copy-acl-2.sh: New file.
7564         * modules/acl-tests (Files): Add them.
7565         (Makefile.am): Add them to TESTS.
7566
7567 2011-09-04  Bruno Haible  <bruno@clisp.org>
7568
7569         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7570         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7571         10.
7572         (OLD_ALLOW, OLD_DENY): New macros.
7573         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7574         ACE_ACCESS_ALLOWED_ACE_TYPE.
7575         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7576         ACE_ACCESS_DENIED_ACE_TYPE.
7577         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7578         (NEW_ACE_EXECUTE): Fix value.
7579         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7580         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7581         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7582         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7583         NEW_ACE_SYNCHRONIZE): New macros.
7584         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7585         instead of acl_fromtext, acl_set, facl_set.
7586         Fixes a coreutils/tests/cp/perm failure.
7587
7588 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7589
7590         openat: test for fstatat (..., 0) bug
7591         Further testing with tar suggests that fstatat (..., 0)
7592         does not work in general, on AIX 7.1; see
7593         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7594         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7595         replacement fstatat (which is what older AIX releases were using
7596         anyway).
7597         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7598         use is now changed to orig_fstatat.  This was probably the right
7599         thing to do anyway.
7600         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7601         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7602         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7603         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7604         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7605         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7606         if the bug is found.
7607
7608         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7609         This tests for another fstatat bug on AIX 7.1:
7610         fstatat (AT_FDCWD, ..., 0) does not work.  See
7611         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7612         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7613         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7614         (rpl_fstatat): Adjust so that it works around either (or both)
7615         bugs if present.
7616         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7617
7618 2011-09-03  Karl Berry  <karl@gnu.org>
7619
7620         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7621         in index entries.
7622
7623 2011-09-02  Bruno Haible  <bruno@clisp.org>
7624
7625         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7626         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7627         values of AR, ARFLAGS, RANLIB.
7628         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7629
7630 2011-09-02  Bruno Haible  <bruno@clisp.org>
7631
7632         Find 'ar' program that fits with --host argument.
7633         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7634
7635 2011-09-02  Bruno Haible  <bruno@clisp.org>
7636
7637         tests: init.sh: Support any non-GNU diff.
7638         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7639         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7640         Solaris 8.
7641
7642 2011-09-02  Bruno Haible  <bruno@clisp.org>
7643
7644         tests: init.sh: work also with any non-GNU diff that supports -u
7645         * tests/init.sh: Relax check for diff -u support.
7646         Rather than checking for GNU diff via --version, simply check
7647         for support for -u itself.  Useful at least on OpenBSD 4.9,
7648         AIX 7.1, IRIX 6.5, and Solaris 10.
7649
7650 2011-09-01  Bruno Haible  <bruno@clisp.org>
7651
7652         strtoimax, strtoumax: Document problem on HP-UX 11.
7653         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7654         * doc/posix-functions/strtoumax.texi: Likewise.
7655
7656 2011-09-01  Bruno Haible  <bruno@clisp.org>
7657
7658         strtoumax: Avoid link error on OSF/1 with DTK cc.
7659         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7660         defined as a function.
7661         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7662         strtoumax is defined, not whether it is declared.
7663
7664 2011-09-01  Bruno Haible  <bruno@clisp.org>
7665
7666         strtoimax: Avoid link error on OSF/1 with DTK cc.
7667         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7668         defined as a function.
7669         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7670         strtoimax is defined, not whether it is declared.
7671
7672 2011-09-01  Bruno Haible  <bruno@clisp.org>
7673
7674         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7675         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7676         as a function.
7677         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7678         whether it is declared.
7679
7680 2011-09-01  Bruno Haible  <bruno@clisp.org>
7681
7682         imaxabs: Avoid link error on OSF/1 with DTK cc.
7683         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7684         as a function.
7685         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7686         whether it is declared.
7687
7688 2011-09-01  Bruno Haible  <bruno@clisp.org>
7689
7690         Tests for module 'strtoumax'.
7691         * modules/strtoumax-tests: New file.
7692         * tests/test-strtoumax.c: New file.
7693
7694         Tests for module 'strtoimax'.
7695         * modules/strtoimax-tests: New file.
7696         * tests/test-strtoimax.c: New file.
7697
7698         Tests for module 'imaxdiv'.
7699         * modules/imaxdiv-tests: New file.
7700         * tests/test-imaxdiv.c: New file.
7701
7702         Tests for module 'imaxabs'.
7703         * modules/imaxabs-tests: New file.
7704         * tests/test-imaxabs.c: New file.
7705
7706 2011-09-01  Bruno Haible  <bruno@clisp.org>
7707
7708         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7710         pthread_create.
7711
7712 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7713
7714         openat: work around AIX 7.1 fstatat issue
7715         This should fix the problem that was not properly fixed
7716         in the previous change, dated 2011-08-30.
7717         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7718         __need_system_stat_h defined.
7719         (orig_fstatat) [HAVE_FSTATAT]: New function.
7720         (rpl_fstatat): Go back to the old way of doing things,
7721         except call orig_fstatat instead of fstatat.
7722         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7723         Remove unnecessary check whether fstatat fills in st_size etc.
7724
7725 2011-09-01  Bruno Haible  <bruno@clisp.org>
7726
7727         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7728         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7729         just include the system's header.
7730
7731 2011-08-31  Jim Meyering  <meyering@redhat.com>
7732
7733         tests: avoid spurious assertion failure in test-float.c on ppc64
7734         * tests/test-float.c (test_long_double): Comment out an assertion,
7735         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7736         with gcc-4.4.4.
7737
7738         maint: indent with spaces, not TABs
7739         I need to get in the habit of running gnulib's "make check".
7740         Both of these would have been caught.
7741         * m4/largefile.m4: Indent with spaces, not TABs.
7742         * lib/parse-datetime.y (iso_8601_time): Likewise.
7743         Spotted by Pádraig Brady.
7744
7745         test-parse-datetime.c: accommodate a relatively strict gcc warning
7746         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7747         to avoid a warning from gcc's -Werror=missing-declarations.
7748         Insert a few spaces-before-funcall-parenthesis.
7749
7750 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7751
7752         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7753         The parser now accepts ISO 8601 date-time strings with "T" as the
7754         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7755         with a space between the date and time strings.  Now it also parses
7756         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7757         variants like "2004-02-29T16:21:42.333-07:00"
7758         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7759         of day representation using the 'T' separator character.
7760         * doc/parse-datetime.texi (General date syntax): replace use of
7761         deprecated --iso-8601 option with --rfc-3339 in example of date
7762         command output formats that can be parsed.
7763         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7764         lib/parse-datetime.y.
7765         (gmt_offset): New function.
7766         (main): Add additional test cases to validate ISO8601 extended
7767         date and time of day parsing.
7768
7769 2011-08-31  Bruno Haible  <bruno@clisp.org>
7770
7771         freopen: Documentation.
7772         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7773         name.
7774         Reported by Claudio Bley <claudio.bley@gmail.com>.
7775
7776 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7777
7778         freopen: Don't crash if the filename argument is NULL.
7779         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7780         NULL.
7781
7782 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         openat: work around AIX 7.1 fstatat bug
7785         Problem reported by Kevin Brott for GNU tar, in the thread containing
7786         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7787         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7788         FSTATAT_ST_SIZE_ETC_BROKEN.
7789         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7790         rpl_fstatat.
7791         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7792         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7793         AC_CHECK_FUNCS_ONCE for fstatat.
7794         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7795         fchmodat, mkdirat, openat and unlinkat.
7796
7797 2011-08-30  Bruno Haible  <bruno@clisp.org>
7798
7799         Avoid endless recursions if config.h includes some header files.
7800         * lib/fopen.c (__need_FILE): Define already before including config.h.
7801         * lib/freopen.c (__need_FILE): Likewise.
7802         * lib/open.c (__need_system_fcntl_h): Likewise.
7803         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7804         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7805         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7806
7807 2011-08-25  Karl Berry  <karl@gnu.org>
7808
7809         * config/srclist.txt (ylwrap): new try.
7810         * build-aux/ylwrap: new file.
7811
7812 2011-08-23  Bruno Haible  <bruno@clisp.org>
7813
7814         tmpdir: Use a good default directory on native Windows.
7815         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7816         (P_tmpdir): Default to _P_tmpdir on native Windows.
7817         (path_search): On native Windows, try the value returned by GetTempPath
7818         before trying P_tmpdir.
7819         * modules/tmpdir (Depends-on): Add pathmax.
7820         Suggested by John Darrington <john@darrington.wattle.id.au>.
7821
7822 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7823
7824         doc: fix typo in README-release
7825         * top/README-release: Capitalize first word of a sentence.
7826
7827 2011-08-19  Jim Meyering  <meyering@redhat.com>
7828
7829         fts: do not exhaust memory when processing million-entry directories
7830         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7831         directory would require about 256*N bytes of memory.  Thus, it was
7832         easy to construct a directory too large to be processed by any of
7833         those tools.  With this change, fts' maximum memory utilization is
7834         now limited to around 30MB.
7835         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7836         (fts_read): When we've processed the final entry (i.e., when
7837         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7838         using the parent entry to read any remaining entries.  Dispatch
7839         depending on what fts_build returns:
7840         - NULL+stop, aka failure: stop
7841         - NULL otherwise: move up in the dir hierarchy
7842         - non-NULL: handle this new entry
7843         (fts_build): Declare and use new local, continue_readdir.
7844         Prepare to be called from fts_read, when the entries
7845         from a partially-read directory have just been exhausted.
7846         In that case, we'll skip the opendir and instead use the parent's
7847         fts_dirp and derive dir_fd from that.
7848         Finally, in the readdir loop, if we read max_entries entries,
7849         exit the loop ensuring *not* to call closedir.  This is required
7850         so that fts_dirp can be reused on a subsequent call.
7851         Prompted by Ben England's report of memory exhaustion in find
7852         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7853
7854         maint: fts: move decl of `dp' down into while loop; split a long line
7855         * lib/fts.c (fts_build): No semantic change.
7856
7857         fts: add/use new struct member, fts_dirp
7858         We are about to use this to manage any directory with
7859         too many entries to read all of them into memory at once.
7860         To do that, we'll need to save the DIR* pointer in each
7861         affected FTSENT struct.
7862         * lib/fts_.h: Include <dirent.h>.
7863         (struct FTSENT) [fts_dirp]: New member.
7864         * lib/fts.c (closedir_and_clear): Define.
7865         Use it in place of closedir so that we are sure to
7866         clear the new fts_dirp member when done with it.
7867         (fts_alloc): Initialize the new member.
7868         (fts_lfree): Free, if needed.
7869
7870         maint: fts: give __opendir2 a new parameter and rename
7871         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7872         than surreptitiously using sole caller's "dir_fd".
7873         (fts_opendir): Rename from __opendir2.
7874
7875         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7876         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7877
7878         maint: fts.c: correct off-by-one indentation
7879         * lib/fts.c (fts_build): Correct indentation, change style
7880         of a couple of block comments, and bracing style.
7881
7882         maint: fts.c: move __opendir2 #define "up" out of function body
7883         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7884
7885         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7886         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7887         out for a long time and besides was useful only on BSD systems.
7888
7889 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7890
7891         regex: port to Stratus OpenVOS
7892         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7893         define to empty, rather than attempting nonportable optimizations.
7894         Problem reported by Paul Green in:
7895         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7896         and fix suggested by Eric Blake in:
7897         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7898
7899 2011-08-17  Eric Blake  <eblake@redhat.com>
7900
7901         getcwd: fix test failures on mingw
7902         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7903         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7904         test if long directory cannot be created, and allow mingw errno.
7905
7906         getcwd-lgpl: fix m4 to match relaxed test for BSD
7907         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7908         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7909         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7910         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7911         signature problem.
7912
7913         getcwd: fix compilation on mingw64
7914         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7915         getcwd.
7916         Reported by Marc-André Lureau.
7917
7918         pipe2: silence compiler warning
7919         * lib/pipe2.c (pipe2): Hide label if it is not used.
7920
7921 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7922
7923         relocatable-prog: fix link error
7924         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7925         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7926         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7927         into modules/relocatable-lib without noticing that
7928         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7929         also needs to build relocatable.c.
7930
7931 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7935         shell code: it contained a 'break' that was not in a loop.
7936         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7937         via a shell-language loop; this may have been true in old Autoconf
7938         versions, but it's not true in Autoconf 2.68.  I found this bug
7939         when testing coreutils git on Solaris 8, whose shell complains
7940         about the syntax error.
7941
7942 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7943
7944         * lib/base64.c: Fix comment to reference RFC 4648.
7945         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7946         <gvtulder@gmail.com>.
7947
7948 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7951
7952         po/Makefile.in.in: fix make -q problem
7953         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7954         rule, since there's no file named 'check-macro-version' and its
7955         use as a file breaks make -q.
7956         (all): Don't depend on check-macro-version.
7957         (CHECK_MACRO_VERSION): New macro.
7958         (stamp-po): Use it.
7959
7960         configmake: fix make -q problem
7961         * modules/configmake (configmake.h): Update configmake.h's time stamp
7962         even if the file does not change.  Otherwise, 'make -q' fails.
7963         Problem reported by Simon Josefsson in
7964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7965
7966 2011-08-11  Jim Meyering  <meyering@redhat.com>
7967
7968         git-version-gen: correct the advice in a comment
7969         * build-aux/git-version-gen: Correct comment.
7970         Don't recommend to list .tarball-version in .gitignore.
7971
7972 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7973
7974         base64: fix off-by-one buffer size bug
7975         Problem and (trivial) fix reported by Gijs van Tulder in
7976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7977         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7978         * tests/test-base64.c (main): Catch the bug.
7979
7980 2011-08-10  Eric Blake  <eblake@redhat.com>
7981
7982         closein: correct comments
7983         * lib/closein.c (close_stdin): Improve comments.
7984
7985 2011-08-09  Bruno Haible  <bruno@clisp.org>
7986
7987         More tests for 'fseeko'.
7988         * tests/test-fseeko3.c: New file, from Eric Blake.
7989         * tests/test-fseeko3.sh: New file.
7990         * modules/fseeko-tests (Files): Add them.
7991         (TESTS): Add test-fseeko3.sh.
7992         (check_PROGRAMS): Add test-fseeko3.
7993
7994 2011-08-09  Eric Blake  <eblake@redhat.com>
7995
7996         fseeko: remove unneeded hack
7997         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7998
7999         fseeko: fix bug on glibc
8000         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
8001         Reported by John W. Eaton.
8002
8003 2011-08-08  Bruno Haible  <bruno@clisp.org>
8004
8005         unictype/base: Fix interoperability with preinstalled libunistring.
8006         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
8007         Reported by Simon Josefsson.
8008
8009 2011-08-08  Bruno Haible  <bruno@clisp.org>
8010
8011         iswblank: Detect declaration correctly.
8012         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
8013         AC_CHECK_DECLS invocation.
8014
8015 2011-08-08  Bruno Haible  <bruno@clisp.org>
8016
8017         tcgetsid: Detect declaration correctly.
8018         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
8019         AC_CHECK_DECLS invocation.
8020         Reported by Simon Josefsson.
8021
8022 2011-08-08  Eric Blake  <eblake@redhat.com>
8023
8024         largefile: fix typo that regressed large file support
8025         * modules/largefile (configure.ac-early): Fix section name.
8026
8027 2011-08-06  Karl Berry  <karl@gnu.org>
8028
8029         * MODULES.html.sh (func_all_files): _Noreturn is no longer
8030         a separate module.
8031
8032 2011-08-05  Simon Josefsson  <simon@josefsson.org>
8033
8034         openat: Fix warnings and commens when building unlinkat.c on Hurd.
8035         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
8036         get prototype for free.
8037
8038 2011-08-04  Bruno Haible  <bruno@clisp.org>
8039
8040         Tests for module 'pathmax'.
8041         * modules/pathmax-tests: New file.
8042         * tests/test-pathmax.c: New file.
8043
8044         canonicalize-lgpl: Support larger filenames on the Hurd.
8045         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
8046         Reported by Paul Eggert.
8047
8048         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
8049         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
8050         * lib/chdir-long.h: Include pathmax.h.
8051         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
8052         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
8053         (PATH_MAX): Remove code that is done by pathmax.h.
8054         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
8055         * lib/tmpfile.c: Add a comment.
8056         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
8057         * modules/chdir-long (Depends-on): Add pathmax.
8058         * modules/getcwd (Depends-on): Add pathmax.
8059         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
8060         is not defined.
8061         * doc/posix-headers/limits.texi: Mention the pathmax module.
8062         * NEWS: Mention the change.
8063
8064 2011-08-02  Bruno Haible  <bruno@clisp.org>
8065
8066         pthread_sigmask: Actually use results of gl_THREADLIB.
8067         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
8068         gl_THREADLIB, not gl_[]THREADLIB.
8069         Reported by Eric Blake.
8070
8071 2011-08-02  Jim Meyering  <meyering@redhat.com>
8072
8073         maint.mk: relax the default _gl_TS_function_match regexp
8074         * top/maint.mk (_gl_TS_function_match): Don't require at least one
8075         space between function name and "(" in an "extern" declaration.
8076         That would fail to match a decl with no space there: extern void foo();
8077
8078 2011-07-31  Iain Nicol  <iain@thenicols.net>
8079
8080         git-version-gen: document that EXTRA_DIST must include .version
8081         * build-aux/git-version-gen: In the how-to-use comment, document
8082         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
8083         will fail when run from an unpacked distribution tarball.
8084
8085 2011-08-01  Bruno Haible  <bruno@clisp.org>
8086
8087         wctype-h: Fix last change.
8088         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
8089         REPLACE_TOWLOWER to 0.
8090         Reported by Sam Steingold <sds@gnu.org>.
8091
8092 2011-07-31  Bruno Haible  <bruno@clisp.org>
8093
8094         frexpl: Update autoconf test.
8095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
8096         according to changes of 2011-06-20.
8097
8098 2011-07-31  Bruno Haible  <bruno@clisp.org>
8099
8100         sys_utsname: Add support for Minix.
8101         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
8102         <sys/utsname.h>.
8103         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8104         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8105
8106 2011-07-31  Bruno Haible  <bruno@clisp.org>
8107
8108         strings: Add support for Minix.
8109         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
8110         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8111         * doc/posix-headers/strings.texi: Document the Minix problem.
8112
8113 2011-07-31  Bruno Haible  <bruno@clisp.org>
8114
8115         wctype-h: Add support for Minix.
8116         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
8117         REPLACE_TOWLOWER.
8118         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
8119         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
8120         REPLACE_ISWCNTRL.
8121
8122 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
8123
8124         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
8125         This is a performance improvement for 64-bit hosts: it causes the
8126         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
8127
8128 2011-07-31  Bruno Haible  <bruno@clisp.org>
8129
8130         stdioext: Add support for Minix.
8131         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
8132         * lib/fpurge.c (fpurge): Likewise.
8133         * lib/freadahead.c (freadahead): Likewise.
8134         * lib/freadable.c (freadable): Likewise.
8135         * lib/freading.c (freading): Likewise.
8136         * lib/freadptr.c (freadptr): Likewise.
8137         * lib/freadseek.c (freadptrinc): Likewise.
8138         * lib/fseeko.c (rpl_fseeko): Likewise.
8139         * lib/fseterr.c (fseterr): Likewise.
8140         * lib/fwritable.c (fwritable): Likewise.
8141         * lib/fwriting.c (fwriting): Likewise.
8142         * lib/fflush.c (clear_ungetc_buffer): Update comment.
8143         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
8144
8145 2011-07-31  Bruno Haible  <bruno@clisp.org>
8146
8147         errno: Port to Minix.
8148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
8149         ECONNABORTED are defined.
8150         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
8151         GNULIB_defined_ECONNABORTED): New macros.
8152         * lib/strerror-override.h (strerror_override): Test also
8153         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
8154         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
8155         ECONNABORTED.
8156         * doc/posix-headers/errno.texi: Mention the Minix problem.
8157
8158 2011-07-31  Bruno Haible  <bruno@clisp.org>
8159
8160         Work around declaration collisions on Minix.
8161         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
8162         defined, set REPLACE_MBSINIT.
8163         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
8164         defined, set REPLACE_MBRTOWC.
8165         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
8166         set REPLACE_MBRLEN.
8167         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
8168         defined, set REPLACE_MBSRTOWCS.
8169         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
8170         defined, set REPLACE_WCRTOMB.
8171         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
8172         defined, set REPLACE_WCSRTOMBS.
8173
8174 2011-07-31  Bruno Haible  <bruno@clisp.org>
8175
8176         Add support for Minix with ACK compiler.
8177         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
8178         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
8179         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
8180
8181 2011-07-31  Bruno Haible  <bruno@clisp.org>
8182
8183         Documentation about Minix.
8184         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
8185         * doc/glibc-headers/*.texi: Likewise.
8186         * doc/posix-functions/*.texi: Likewise.
8187         * doc/glibc-functions/*.texi: Likewise.
8188
8189 2011-07-31  Bruno Haible  <bruno@clisp.org>
8190
8191         snippet/warn-on-use: Fix indentation.
8192         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
8193
8194 2011-07-25  Jim Meyering  <meyering@redhat.com>
8195
8196         tests: test-update-copyright.sh: remove unnecessary "rm" commands
8197         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
8198         commands.
8199
8200 2011-07-27  Jim Meyering  <meyering@redhat.com>
8201
8202         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
8203         * top/maint.mk (gl_extract_significant_defines_): Now that
8204         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
8205         gnulib/lib/signal.in.h, and now that we recommend to
8206         define-if-undefined those two symbols in application code,
8207         we must filter them out of the "significant" list.
8208         This avoids a "make syntax-check" failure in coreutils.
8209
8210 2011-07-26  Eric Blake  <eblake@redhat.com>
8211
8212         warnings: add comments about previous patch
8213         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
8214         * m4/include_next.m4: Likewise.
8215         * m4/warn-on-use.m4: Likewise.
8216         * m4/warnings.m4: Likewise, and simplify use.
8217         Suggested by Stefano Lattarini.
8218
8219         include-next, warnings: support older autoconf
8220         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
8221         AS_VAR_PUSHDEF in a way that works with older autoconf.
8222         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8223         Reported by Daniel P. Berrange.
8224
8225 2011-07-25  Bruno Haible  <bruno@clisp.org>
8226
8227         fseek, ftell: Fix doc.
8228         * doc/posix-functions/fseek.texi: Reword statement about
8229         AC_SYS_LARGEFILE.
8230         * doc/posix-functions/ftell.texi: Likewise.
8231
8232 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8233             Bruno Haible  <bruno@clisp.org>
8234
8235         Add dependencies to the 'largefile' module.
8236         * modules/fopen (Depends-on): Add 'largefile'.
8237         * modules/freopen (Depends-on): Likewise.
8238         * modules/fseeko (Depends-on): Likewise.
8239         * modules/ftello (Depends-on): Likewise.
8240         * modules/glob (Depends-on): Likewise.
8241         * modules/lseek (Depends-on): Likewise.
8242         * modules/lstat (Depends-on): Likewise.
8243         * modules/mkostemp (Depends-on): Likewise.
8244         * modules/mkostemps (Depends-on): Likewise.
8245         * modules/mkstemp (Depends-on): Likewise.
8246         * modules/mkstemps (Depends-on): Likewise.
8247         * modules/open (Depends-on): Likewise.
8248         * modules/openat (Depends-on): Likewise.
8249         * modules/pread (Depends-on): Likewise.
8250         * modules/pwrite (Depends-on): Likewise.
8251         * modules/scandir (Depends-on): Likewise.
8252         * modules/stat (Depends-on): Likewise.
8253         * modules/tmpfile (Depends-on): Likewise.
8254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8255         since the containing module now depends on the largefile module.
8256         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8257         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8258         off_t is fixed by gnulib.
8259         * doc/posix-functions/freopen.texi: Likewise.
8260         * doc/posix-functions/fseeko.texi: Likewise.
8261         * doc/posix-functions/fstatat.texi: Likewise.
8262         * doc/posix-functions/ftello.texi: Likewise.
8263         * doc/posix-functions/glob.texi: Likewise.
8264         * doc/posix-functions/lseek.texi: Likewise.
8265         * doc/posix-functions/lstat.texi: Likewise.
8266         * doc/posix-functions/mkstemp.texi: Likewise.
8267         * doc/posix-functions/open.texi: Likewise.
8268         * doc/posix-functions/openat.texi: Likewise.
8269         * doc/posix-functions/pread.texi: Likewise.
8270         * doc/posix-functions/pwrite.texi: Likewise.
8271         * doc/posix-functions/scandir.texi: Likewise.
8272         * doc/posix-functions/stat.texi: Likewise.
8273         * doc/posix-functions/tmpfile.texi: Likewise.
8274         * doc/glibc-functions/mkostemp.texi: Likewise.
8275         * doc/glibc-functions/mkostemps.texi: Likewise.
8276         * doc/glibc-functions/mkstemps.texi: Likewise.
8277
8278 2011-07-25  Bruno Haible  <bruno@clisp.org>
8279
8280         fcntl: Move AC_LIBOBJ invocation to module description.
8281         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8282         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8283
8284         fcntl: Remove call-in from fchdir.m4.
8285         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8287
8288         dup3: Remove potential call-in from fchdir.m4.
8289         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8291
8292         dup2: Move AC_LIBOBJ invocation to module description.
8293         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8294         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8295         Don't invoke AC_LIBOBJ.
8296         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8297
8298         dup2: Remove call-in from fchdir.m4.
8299         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8301
8302         fclose: Move AC_LIBOBJ invocation to module description.
8303         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8304         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8305         to 1.
8306         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8307
8308         fclose: Remove call-in from close.m4.
8309         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8310         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8311
8312         close: Move AC_LIBOBJ invocation to module description.
8313         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8314         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8315         1.
8316         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8317
8318         close: Remove call-in from fchdir.m4.
8319         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8321
8322         open: Move AC_LIBOBJ invocation to module description.
8323         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8324         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8325         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8326
8327         open: Remove call-in from fchdir.m4.
8328         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8330
8331         fchdir: Start to remove gl_REPLACE_* idiom.
8332         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8333         (gl_FUNC_FCHDIR): Invoke it.
8334
8335 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8336
8337         * lib/ftell.c (ftell): Comment out cast.
8338
8339         close: use gl_REPLACE_FCLOSE only if defined
8340         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8341         is defined.  The close module doesn't depend on the fclose module
8342         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8344         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8345
8346 2011-07-24  Jim Meyering  <meyering@redhat.com>
8347
8348         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8349         * tests/test-select.h (test_function): Declare as "static".
8350
8351 2011-07-24  Bruno Haible  <bruno@clisp.org>
8352
8353         doc: Mention the effects of AC_SYS_LARGEFILE.
8354         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8355         on this function.
8356         * doc/posix-functions/aio_error.texi: Likewise.
8357         * doc/posix-functions/aio_fsync.texi: Likewise.
8358         * doc/posix-functions/aio_read.texi: Likewise.
8359         * doc/posix-functions/aio_return.texi: Likewise.
8360         * doc/posix-functions/aio_suspend.texi: Likewise.
8361         * doc/posix-functions/aio_write.texi: Likewise.
8362         * doc/posix-functions/fgetpos.texi: Likewise.
8363         * doc/posix-functions/fopen.texi: Likewise.
8364         * doc/posix-functions/freopen.texi: Likewise.
8365         * doc/posix-functions/fsetpos.texi: Likewise.
8366         * doc/posix-functions/fstatvfs.texi: Likewise.
8367         * doc/posix-functions/ftruncate.texi: Likewise.
8368         * doc/posix-functions/ftw.texi: Likewise.
8369         * doc/posix-functions/getrlimit.texi: Likewise.
8370         * doc/posix-functions/glob.texi: Likewise.
8371         * doc/posix-functions/lio_listio.texi: Likewise.
8372         * doc/posix-functions/lockf.texi: Likewise.
8373         * doc/posix-functions/mkstemp.texi: Likewise.
8374         * doc/posix-functions/mmap.texi: Likewise.
8375         * doc/posix-functions/nftw.texi: Likewise.
8376         * doc/posix-functions/openat.texi: Likewise.
8377         * doc/posix-functions/opendir.texi: Likewise.
8378         * doc/posix-functions/posix_fadvise.texi: Likewise.
8379         * doc/posix-functions/posix_fallocate.texi: Likewise.
8380         * doc/posix-functions/pread.texi: Likewise.
8381         * doc/posix-functions/pwrite.texi: Likewise.
8382         * doc/posix-functions/readdir.texi: Likewise.
8383         * doc/posix-functions/readdir_r.texi: Likewise.
8384         * doc/posix-functions/rewinddir.texi: Likewise.
8385         * doc/posix-functions/scandir.texi: Likewise.
8386         * doc/posix-functions/seekdir.texi: Likewise.
8387         * doc/posix-functions/setrlimit.texi: Likewise.
8388         * doc/posix-functions/statvfs.texi: Likewise.
8389         * doc/posix-functions/telldir.texi: Likewise.
8390         * doc/posix-functions/tmpfile.texi: Likewise.
8391         * doc/posix-functions/truncate.texi: Likewise.
8392         * doc/glibc-functions/fallocate.texi: Likewise.
8393         * doc/glibc-functions/fstatfs.texi: Likewise.
8394         * doc/glibc-functions/fts_children.texi: Likewise.
8395         * doc/glibc-functions/fts_read.texi: Likewise.
8396         * doc/glibc-functions/getdirentries.texi: Likewise.
8397         * doc/glibc-functions/mkostemp.texi: Likewise.
8398         * doc/glibc-functions/mkostemps.texi: Likewise.
8399         * doc/glibc-functions/mkstemps.texi: Likewise.
8400         * doc/glibc-functions/preadv.texi: Likewise.
8401         * doc/glibc-functions/pwritev.texi: Likewise.
8402         * doc/glibc-functions/sendfile.texi: Likewise.
8403         * doc/glibc-functions/statfs.texi: Likewise.
8404
8405 2011-07-24  Bruno Haible  <bruno@clisp.org>
8406
8407         doc: Fix typo.
8408         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8409
8410 2011-07-24  Bruno Haible  <bruno@clisp.org>
8411
8412         doc: Mention fsusage.
8413         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8414
8415 2011-07-24  Bruno Haible  <bruno@clisp.org>
8416
8417         doc: Mention new glibc headers and functions.
8418         * doc/glibc-headers/gshadow.texi: New file.
8419         * doc/glibc-functions/endsgent.texi: New file.
8420         * doc/glibc-functions/fgetsgent.texi: New file.
8421         * doc/glibc-functions/fgetsgent_r.texi: New file.
8422         * doc/glibc-functions/getsgent.texi: New file.
8423         * doc/glibc-functions/getsgent_r.texi: New file.
8424         * doc/glibc-functions/getsgnam.texi: New file.
8425         * doc/glibc-functions/getsgnam_r.texi: New file.
8426         * doc/glibc-functions/putsgent.texi: New file.
8427         * doc/glibc-functions/setsgent.texi: New file.
8428         * doc/glibc-functions/sgetsgent.texi: New file.
8429         * doc/glibc-functions/sgetsgent_r.texi: New file.
8430         * doc/glibc-functions/malloc_info.texi: New file.
8431         * doc/glibc-functions/preadv.texi: New file.
8432         * doc/glibc-functions/pwritev.texi: New file.
8433         * doc/glibc-functions/register_printf_modifier.texi: New file.
8434         * doc/glibc-functions/register_printf_specifier.texi: New file.
8435         * doc/glibc-functions/register_printf_type.texi: New file.
8436         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8437         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8438         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8439         * doc/glibc-functions/pthread_getname_np.texi: New file.
8440         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8441         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8442         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8443         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8444         * doc/glibc-functions/pthread_setname_np.texi: New file.
8445         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8446         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8447         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8448         * doc/glibc-functions/qsort_r.texi: New file.
8449         * doc/glibc-functions/quick_exit.texi: New file.
8450         * doc/glibc-functions/syncfs.texi: New file.
8451         * doc/gnulib.texi: Include them.
8452         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8453         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8454         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8455         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8456         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8457         * doc/glibc-functions/execvpe.texi: Likewise.
8458
8459 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8460
8461         ftell: don't include <unistd.h>
8462         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8463         guaranteed to define off_t, and the ftell module depends on the
8464         stdio module.
8465
8466         ftell: do not assume wraparound signed arithmetic
8467         * lib/ftell.c: Include <limits.h>.
8468         (ftell): Don't assume wraparound signed arithmetic.
8469
8470 2011-07-24  Bruno Haible  <bruno@clisp.org>
8471
8472         close: No longer depend on module 'fclose'.
8473         * modules/close (Depends-on): Remove fclose.
8474         * NEWS: Mention the change.
8475         Suggested by Sam Steingold <sds@gnu.org>.
8476
8477 2011-07-24  Bruno Haible  <bruno@clisp.org>
8478
8479         fsusage: Enable large volume support on AIX >= 5.2.
8480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8481         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8482         instead of STAT_STATVFS.
8483         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8484
8485         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8486         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8487         f_blocks field only on MacOS X.
8488
8489         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8491         * modules/fsusage (Depends-on): Add largefile.
8492
8493 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         * README: Modernize discussion of signed integers.
8496         Assuming overflow wraparound is no longer safe.
8497         Mention ones' complement and signed magnitude.
8498
8499 2011-07-22  Bruno Haible  <bruno@clisp.org>
8500
8501         select tests, pselect tests: Refactor.
8502         * tests/test-select.h: New file, extracted from tests/test-select.c.
8503         (select_fn): New type.
8504         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8505         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8506         test_pipe): Add my_select argument.
8507         (test_function): Renamed from main. Add my_select argument.
8508         * tests/test-select.c: Move most code to tests/test-select.h. Include
8509         test-select.h.
8510         * modules/select-tests (Files): Add tests/test-select.h.
8511         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8512         (my_select, main): New functions.
8513         * modules/pselect-tests (Files): Add tests/test-select.h,
8514         tests/macros.h, tests/signature.h.
8515         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8516         (configure.ac): Check for <sys/wait.h>.
8517
8518 2011-07-22  Bruno Haible  <bruno@clisp.org>
8519
8520         sys_select tests: Check the signature of FD_*.
8521         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8522         signature tests from here...
8523         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8524         here.
8525         * modules/sys_select-tests (Files): Add tests/signature.h.
8526
8527 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8528
8529         largefile: new module, replacing large-inode
8530         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8531         * MODULES.html.sh: Add largefile, remove large-inode.
8532         * modules/largefile, m4/largefile.m4: New files.
8533         * modules/large-inode, m4/large-inode.m4: Remove.
8534
8535         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8537         implementations that use only 32 bits to count blocks.
8538         On typical hosts with 1024-byte blocks, this fails with file
8539         systems as small as 4 TiB.  Problem reported by Herb Wartens
8540         <http://debbugs.gnu.org/9140> and this should also fix a similar
8541         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8542
8543         large-inode: New module
8544         * MODULES.html.sh: Add it.
8545         * modules/large-inode, m4/large-inode.m4: New files.
8546
8547         extensions: Enable extensions on MacOS X 10.5 and later.
8548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8549
8550 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8551
8552         file-has-acl: use acl_extended_file_nofollow if available
8553         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8554         (acl_extended_file): New macro.
8555         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8556         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8557
8558 2011-07-21  Bruno Haible  <bruno@clisp.org>
8559
8560         Declare system functions in a way that works with C++.
8561         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8562         declare fdopendir as extern "C".
8563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8564         declare frexpl as extern "C".
8565         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8566         declare gai_strerror as extern "C".
8567         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8568         programs, declare gai_strerror as extern "C".
8569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8570         declare getlogin_r as extern "C".
8571         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8572         as extern "C".
8573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8574         declare ldexpl as extern "C".
8575         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8576         as extern "C".
8577         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8578         program, declare getmntinfo as extern "C".
8579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8580         stpncpy as extern "C".
8581         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8582         program, declare __xpg_strerror_r as extern "C".
8583         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8584         strndup as extern "C".
8585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8586         declare memset and bzero as extern "C".
8587         Reported by Sam Steingold <sds@gnu.org>.
8588
8589 2011-07-12  Jim Meyering  <meyering@redhat.com>
8590
8591         maint.mk: prohibit inclusion of "verify.h" without use
8592         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8593
8594 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8595
8596         timer-time: A new module to check for timer_settime()
8597         * m4/timer_time.m4: Check for the posix function.
8598         * modules/timer-time: Add the new module.
8599         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8600         Mention it.
8601
8602 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8603             Bruno Haible  <bruno@clisp.org>
8604
8605         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8606         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8607         not defined, assume POSIX threads and look for pthread_sigmask in
8608         $LIBS, without changing $CPPFLAGS.
8609
8610 2011-07-19  Bruno Haible  <bruno@clisp.org>
8611
8612         strstr: Update cross-compilation guess.
8613         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8614         CPUs, guess no, in view of glibc
8615         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8616         Suggested by Eric Blake. Reported by Reuben Thomas.
8617
8618 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8619
8620         getopt-gnu: suppress core dumps from detection code
8621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8622         to suppress core dumps that may well occur on glibc systems.
8623         * modules/getopt-gnu: Depend on nocrash.
8624
8625 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         pthread_sigmask: ensure usleep is declared
8628         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8629         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8630
8631 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8632
8633         doc: Document NonStop portability issues.
8634         * doc/posix-functions/sigaction.texi (sigaction):
8635         * doc/posix-headers/signal.texi (signal.h):
8636         Document NonStop.  See Joachim Schmitz in
8637         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8638
8639 2011-07-15  Bruno Haible  <bruno@clisp.org>
8640
8641         ffsl, ffsll: Avoid unportable behaviour.
8642         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8643
8644 2011-07-15  Bruno Haible  <bruno@clisp.org>
8645
8646         ffs: More tests.
8647         * tests/test-ffs.c (NBITS): New macro.
8648         (main): Add more tests.
8649         * tests/test-ffsl.c (NBITS): New macro.
8650         (main): Add more tests.
8651         * tests/test-ffsll.c (NBITS): New macro.
8652         (main): Add more tests.
8653
8654 2011-07-15  Eric Blake  <eblake@redhat.com>
8655
8656         ffsl, ffsll: new modules
8657         * modules/ffsl: New file.
8658         * modules/ffsll: Likewise.
8659         * m4/ffsl.m4: Likewise.
8660         * m4/ffsll.m4: Likewise.
8661         * lib/ffsl.c: Likewise.
8662         * lib/ffsl.h: Likewise.
8663         * lib/ffsll.c: Likewise.
8664         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8665         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8666         * modules/string (Makefile.am): Substitute witnesses.
8667         * lib/strings.in.h (ffsl, ffsll): Declare.
8668         * modules/ffsl-tests: New test file.
8669         * modules/ffsll-tests: Likewise.
8670         * tests/test-ffsl.c: Likewise.
8671         * tests/test-ffsll.c: Likewise.
8672         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8673         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8674         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8675
8676         ffs: fix m4 prerequisite
8677         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8678
8679         ffs: avoid undefined behavior
8680         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8681         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8682         Reported by Bruno Haible.
8683
8684 2011-07-12  Bruno Haible  <bruno@clisp.org>
8685
8686         pthread_sigmask: Rely on module 'threadlib'.
8687         * modules/pthread_sigmask (Depends-on): Add threadlib.
8688         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8689         is defined.
8690
8691 2011-07-12  Bruno Haible  <bruno@clisp.org>
8692
8693         regex: Depend on module 'strcase'.
8694         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8695
8696 2011-07-12  Jim Meyering  <meyering@redhat.com>
8697
8698         warn-on-use: fix typo in file name
8699         * modules/snippet/warn-on-use (Files): Correct file name:
8700         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8701
8702 2011-07-12  Bruno Haible  <bruno@clisp.org>
8703
8704         strings: Document module.
8705         * doc/posix-headers/strings.texi: Mention module 'strings'.
8706
8707 2011-07-12  Bruno Haible  <bruno@clisp.org>
8708
8709         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8710         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8711         (Files, Makefile.am): Update.
8712         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8713         * modules/stdlib (Depends-on): Update.
8714
8715 2011-07-12  Bruno Haible  <bruno@clisp.org>
8716
8717         * NEWS: Mention the changes.
8718
8719         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8720         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8721         (Files, Makefile.am): Update.
8722         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8723         * modules/arpa_inet (Depends-on): Update.
8724         * modules/ctype (Depends-on): Update.
8725         * modules/dirent (Depends-on): Update.
8726         * modules/fcntl-h (Depends-on): Update.
8727         * modules/glob (Depends-on): Update.
8728         * modules/iconv-h (Depends-on): Update.
8729         * modules/inttypes-incomplete (Depends-on): Update.
8730         * modules/langinfo (Depends-on): Update.
8731         * modules/locale (Depends-on): Update.
8732         * modules/math (Depends-on): Update.
8733         * modules/netdb (Depends-on): Update.
8734         * modules/poll-h (Depends-on): Update.
8735         * modules/pty (Depends-on): Update.
8736         * modules/search (Depends-on): Update.
8737         * modules/signal (Depends-on): Update.
8738         * modules/spawn (Depends-on): Update.
8739         * modules/stdio (Depends-on): Update.
8740         * modules/stdlib (Depends-on): Update.
8741         * modules/string (Depends-on): Update.
8742         * modules/strings (Depends-on): Update.
8743         * modules/sys_file (Depends-on): Update.
8744         * modules/sys_ioctl (Depends-on): Update.
8745         * modules/sys_select (Depends-on): Update.
8746         * modules/sys_socket (Depends-on): Update.
8747         * modules/sys_stat (Depends-on): Update.
8748         * modules/sys_time (Depends-on): Update.
8749         * modules/sys_times (Depends-on): Update.
8750         * modules/sys_utsname (Depends-on): Update.
8751         * modules/sys_wait (Depends-on): Update.
8752         * modules/termios (Depends-on): Update.
8753         * modules/time (Depends-on): Update.
8754         * modules/unistd (Depends-on): Update.
8755         * modules/wchar (Depends-on): Update.
8756         * modules/wctype-h (Depends-on): Update.
8757         * MODULES.html.sh (Support for building libraries and executables):
8758         Update.
8759
8760         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8761         * modules/snippet/unused-parameter: Renamed from
8762         modules/unused-parameter.
8763         (Files, Makefile.am): Update.
8764         * build-aux/snippet/unused-parameter.h: Renamed from
8765         build-aux/unused-parameter.h.
8766         * modules/selinux-h (Depends-on): Update.
8767         * modules/unistr/base (Depends-on): Update.
8768         * MODULES.html.sh (Core language properties): Update.
8769
8770         Rename module 'link-warning' to 'snippet/link-warning'.
8771         * modules/snippet/link-warning: Renamed from modules/link-warning.
8772         (Files, Makefile.am): Update.
8773         * build-aux/snippet/link-warning.h: Renamed from
8774         build-aux/link-warning.h.
8775         * MODULES.html.sh (Support for building libraries and executables):
8776         Update.
8777
8778         Rename module 'c++defs' to 'snippet/c++defs'.
8779         * modules/snippet/c++defs: Renamed from modules/c++defs.
8780         (Files, Makefile.am): Update.
8781         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8782         * modules/arpa_inet (Depends-on): Update.
8783         * modules/ctype (Depends-on): Update.
8784         * modules/dirent (Depends-on): Update.
8785         * modules/fcntl-h (Depends-on): Update.
8786         * modules/glob (Depends-on): Update.
8787         * modules/iconv-h (Depends-on): Update.
8788         * modules/langinfo (Depends-on): Update.
8789         * modules/locale (Depends-on): Update.
8790         * modules/math (Depends-on): Update.
8791         * modules/netdb (Depends-on): Update.
8792         * modules/poll-h (Depends-on): Update.
8793         * modules/pty (Depends-on): Update.
8794         * modules/search (Depends-on): Update.
8795         * modules/signal (Depends-on): Update.
8796         * modules/spawn (Depends-on): Update.
8797         * modules/stdio (Depends-on): Update.
8798         * modules/stdlib (Depends-on): Update.
8799         * modules/string (Depends-on): Update.
8800         * modules/strings (Depends-on): Update.
8801         * modules/sys_ioctl (Depends-on): Update.
8802         * modules/sys_select (Depends-on): Update.
8803         * modules/sys_socket (Depends-on): Update.
8804         * modules/sys_stat (Depends-on): Update.
8805         * modules/sys_time (Depends-on): Update.
8806         * modules/sys_wait (Depends-on): Update.
8807         * modules/termios (Depends-on): Update.
8808         * modules/time (Depends-on): Update.
8809         * modules/unistd (Depends-on): Update.
8810         * modules/wchar (Depends-on): Update.
8811         * modules/wctype-h (Depends-on): Update.
8812
8813         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8814         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8815         (Files, Makefile.am): Update.
8816         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8817         * modules/argv-iter (Depends-on): Update.
8818         * modules/arpa_inet (Depends-on): Update.
8819         * modules/dirent (Depends-on): Update.
8820         * modules/fcntl-h (Depends-on): Update.
8821         * modules/fnmatch (Depends-on): Update.
8822         * modules/getopt-posix (Depends-on): Update.
8823         * modules/glob (Depends-on): Update.
8824         * modules/iconv-h (Depends-on): Update.
8825         * modules/inttypes-incomplete (Depends-on): Update.
8826         * modules/locale (Depends-on): Update.
8827         * modules/math (Depends-on): Update.
8828         * modules/netdb (Depends-on): Update.
8829         * modules/search (Depends-on): Update.
8830         * modules/signal (Depends-on): Update.
8831         * modules/spawn (Depends-on): Update.
8832         * modules/stdio (Depends-on): Update.
8833         * modules/stdlib (Depends-on): Update.
8834         * modules/string (Depends-on): Update.
8835         * modules/strings (Depends-on): Update.
8836         * modules/sys_socket (Depends-on): Update.
8837         * modules/sys_stat (Depends-on): Update.
8838         * modules/sys_time (Depends-on): Update.
8839         * modules/sys_times (Depends-on): Update.
8840         * modules/sys_utsname (Depends-on): Update.
8841         * modules/time (Depends-on): Update.
8842         * modules/unistd (Depends-on): Update.
8843         * modules/wchar (Depends-on): Update.
8844         * MODULES.html.sh (Support for building libraries and executables):
8845         Update.
8846
8847 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8848
8849         Improvements on _Noreturn and related modules.
8850
8851         modules/_Exit-tests: test _Noreturn too
8852         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8853         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8854         (main): Use them.
8855
8856         stdnoreturn, stdnoreturn-tests: remove modules
8857         They're not needed here and a bit premature for use elsewhere.  See
8858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8859         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8860         * tests/test-stdnoreturn.c: Remove files.
8861         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8862         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8863         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8864         and using noreturn.
8865         * modules/openat, modules/sigpipe-die, modules/xalloc:
8866         * modules/xmemdup0, modules/xstrtol:
8867         Remove dependency on stdnoreturn.
8868
8869         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8870         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8871         Reparenthesize to avoid GCC warning.
8872         Support Microsoft's syntax.
8873         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8874
8875         _Noreturn-tests: remove module
8876         * modules/_Noreturn-tests: Remove.
8877         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8878         * tests/test-_Noreturn.c: Remove.
8879         * tests/test-stdnoreturn.c: Merge from the old
8880         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8881
8882 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8883
8884         _Noreturn, stdnoreturn, and related modules.
8885
8886         * top/maint.mk: Adjust to new noreturn support.
8887         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8888         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8889
8890         xalloc: use stdnoreturn.h
8891         * lib/xalloc.h: Include <stdnoreturn.h>.
8892         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8893         * modules/xalloc (Depends-on): Add stdnoreturn.
8894
8895         xstrtol: use stdnoreturn.h
8896         * lib/xstrtol.h: Include <stdnoreturn.h>.
8897         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8898         * modules/xstrtol (Depends-on): Add stdnoreturn.
8899
8900         xmemdup0: use stdnoreturn.h
8901         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8902         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8903         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8904
8905         sigpipe-die: use stdnoreturn.h
8906         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8907         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8908         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8909
8910         openat: use stdnoreturn.h
8911         * lib/openat.h: Include <stdnoreturn.h>.
8912         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8913         * modules/openat (Depends-on): Add stdnoreturn.
8914
8915         * lib/openat-die.c (openat_save_fail): Modernize comment.
8916
8917         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8918
8919         * lib/glthread/thread.h: Modernize comment.
8920
8921         obstack: use _Noreturn
8922         * lib/obstack.c (__attribute__): Remove macro.
8923         (print_and_abort): Use _Noreturn.
8924
8925         c-stack: use _Noreturn
8926         * lib/c-stack.c (die, overflow_handler, segv_handler):
8927         Use _Noreturn rather than __attribute__((noreturn)).
8928
8929         argmatch-tests, exclude_tests: use _Noreturn
8930         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8931         Remove.
8932         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8933
8934         stdlib: use _Noreturn
8935         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8936         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8937         * modules/stdlib (Depends-on): Add _Noreturn.
8938         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8939
8940         stdnoreturn-tests: new module
8941         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8942
8943         stdnoreturn: new module
8944         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8945         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8946
8947         _Noreturn-tests: new module
8948         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8949
8950         _Noreturn: new module
8951         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8952         New section, mentioning it.
8953         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8954
8955         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8956
8957 2011-07-11  Eric Blake  <eblake@redhat.com>
8958
8959         ffs: new module
8960         * modules/ffs: New file.
8961         * m4/ffs.m4: Likewise.
8962         * lib/ffs.c: Likewise.
8963         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8964         * modules/strings (Makefile.am): Substitute witness.
8965         (Depends-on): Add c++defs.
8966         * lib/strings.in.h (ffs): Declare.
8967         * modules/ffs-tests: New test file.
8968         * tests/test-ffs.c: Test new module.
8969         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8970         * doc/posix-functions/ffs.texi (ffs): Likewise.
8971
8972         regex: avoid compiler warning
8973         * lib/regex.c (includes): Include <strings.h>, for use of
8974         strcasecmp in regcomp.c.
8975         Reported by Joachim Schmitz.
8976
8977 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8978
8979         stdint: respect system's intmax_t if INTMAX_MAX
8980         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8981         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8982         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8983         long but int64_t is long long, and where we will clash with the
8984         system intmax_t if we override it.  See
8985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8986         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8987         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8988         similarly for UINTMAX_C.
8989
8990 2011-07-08  Bruno Haible  <bruno@clisp.org>
8991
8992         pthread_sigmask tests: Avoid a compiler warning.
8993         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8994         non-zero.
8995
8996         sigprocmask tests: A better way to avoid a compiler warning.
8997         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8998         (main): Complain if system() returns non-zero.
8999         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
9000
9001 2011-07-08  Bruno Haible  <bruno@clisp.org>
9002
9003         pthread_sigmask: Work around IRIX bug.
9004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
9005         bug.
9006         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
9007         there may be unblocked pending signals.
9008         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
9009
9010 2011-07-08  Bruno Haible  <bruno@clisp.org>
9011
9012         pthread_sigmask: Work around Cygwin bug.
9013         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
9014         bug.
9015         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
9016         the system's pthread_sigmask function.
9017         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
9018
9019 2011-07-08  Bruno Haible  <bruno@clisp.org>
9020
9021         pthread_sigmask: Work around bug in single-threaded implementation.
9022         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
9023         FreeBSD, HP-UX, Solaris bug.
9024         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
9025         * lib/pthread_sigmask.c: Include <stddef.h>.
9026         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
9027         the system's pthread_sigmask function.
9028         * modules/pthread_sigmask (configure.ac): Invoke
9029         gl_PREREQ_PTHREAD_SIGMASK.
9030         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
9031         HP-UX, Solaris.
9032
9033 2011-07-08  Eric Blake  <eblake@redhat.com>
9034
9035         test-sigprocmask: avoid compiler warning
9036         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
9037         * tests/test-sigprocmask.c (main): Use it to silence warning.
9038         Reported by Jim Meyering.
9039
9040         test-snprintf: avoid compiler warning
9041         * tests/test-snprintf.c (main): Avoid shadowed declaration.
9042         * tests/test-vsnprintf.c (main): Likewise.
9043         Reported by Jim Meyering.
9044
9045 2011-07-08  Bruno Haible  <bruno@clisp.org>
9046
9047         Tests for module 'pthread_sigmask'.
9048         * modules/pthread_sigmask-tests: New file.
9049         * tests/test-pthread_sigmask1.c: New file, based on
9050         tests/test-sigprocmask.c.
9051         * tests/test-pthread_sigmask2.c: New file.
9052
9053 2011-07-08  Jim Meyering  <meyering@redhat.com>
9054
9055         test-getopt.h: avoid warning about an unused variable
9056         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
9057
9058 2011-07-07  Jim Meyering  <meyering@redhat.com>
9059
9060         maint: reduce list of files exempt from sc_prohibit_leading_TABs
9061         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
9062         now that it no longer contains leading TABs.
9063         Remove unused "url=FIXME" statement.
9064
9065 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9066
9067         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
9068         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9069         When gl_THREADLIB is not in use, assume that the POSIX sematics
9070         are desired.  This is better for Emacs, which uses POSIX semantics
9071         on GNUish and/or POSIXish platforms, and does not use threads at
9072         all otherwise.
9073
9074         pthread_sigmask: fix typo when testing for libraries
9075         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9076         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
9077
9078 2011-07-08  Eric Blake  <eblake@redhat.com>
9079
9080         fts: introduce FTS_NOATIME
9081         * lib/fts_.h (FTS_NOATIME): New bit flag.
9082         (FTS_OPTIONMASK): Adjust.
9083         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
9084         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
9085
9086 2011-07-08  Bruno Haible  <bruno@clisp.org>
9087
9088         Tests for module 'thread'.
9089         * modules/thread-tests: New file.
9090         * tests/test-thread_self.c: New file.
9091         * tests/test-thread_create.cc: New file.
9092
9093 2011-07-08  Bruno Haible  <bruno@clisp.org>
9094
9095         thread: Avoid gcc warnings when using gl_thread_self().
9096         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
9097         'void *'.
9098         (gl_thread_self_pointer): Update.
9099
9100 2011-07-07  Bruno Haible  <bruno@clisp.org>
9101
9102         signal-c++-tests: Check declaration of pthread_sigmask.
9103         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
9104         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
9105         $(LIB_PTHREAD_SIGMASK).
9106
9107 2011-07-07  Bruno Haible  <bruno@clisp.org>
9108
9109         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
9110         * lib/signal.in.h (pthread_sigmask): Override if
9111         REPLACE_PTHREAD_SIGMASK is 1.
9112         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9113         REPLACE_PTHREAD_SIGMASK.
9114         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
9115         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
9116         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
9117         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9118         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
9119
9120 2011-07-07  Bruno Haible  <bruno@clisp.org>
9121
9122         pthread_sigmask: Ensure declaration in <signal.h>.
9123         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
9124         include <pthread.h>.
9125         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
9126         problem.
9127
9128 2011-07-07  Bruno Haible  <bruno@clisp.org>
9129
9130         pthread_sigmask: Document the module.
9131         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
9132
9133 2011-07-07  Bruno Haible  <bruno@clisp.org>
9134
9135         pthread_sigmask: Follow gnulib conventions.
9136         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
9137         gl_PTHREAD_SIGMASK.
9138         * modules/pthread_sigmask (configure.ac): Update.
9139
9140 2011-07-07  Bruno Haible  <bruno@clisp.org>
9141
9142         pthread_sigmask: Make declaration C++ safe.
9143         * lib/signal.in.h: In two special conditions, just do an #include_next.
9144         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9145         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
9146         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9147         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9148         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
9149         not REPLACE_PTHREAD_MASK.
9150         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
9151         not REPLACE_PTHREAD_MASK.
9152         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9153
9154 2011-07-07  Bruno Haible  <bruno@clisp.org>
9155
9156         pthread_sigmask: Fix return value.
9157         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
9158         * lib/pthread_sigmask.c: New file.
9159         * modules/pthread_sigmask (Files): Add it.
9160         (configure.ac): Invoke AC_LIBOBJ.
9161
9162 2011-07-07  Eric Blake  <eblake@redhat.com>
9163
9164         getopt: more portable argv creation
9165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
9166         const, use char arrays rather than strings.
9167         Suggested by Paul Eggert.
9168
9169 2011-07-07  Bruno Haible  <bruno@clisp.org>
9170
9171         Tests for module 'sigprocmask'.
9172         * modules/sigprocmask-tests: New file.
9173         * tests/test-sigprocmask.c: New file.
9174
9175 2011-07-07  Bruno Haible  <bruno@clisp.org>
9176
9177         float tests: Tweak.
9178         * tests/test-float.c (main): Tweak skip message.
9179
9180 2011-07-07  Eric Blake  <eblake@redhat.com>
9181
9182         getopt: avoid compiler warning during configure
9183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
9184         assigning string literals to non-const pointer.
9185
9186         getopt-gnu: avoid crash in glibc getopt
9187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
9188         * tests/test-getopt.h (test_getopt): Enhance test.
9189         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9190         * doc/posix-functions/getopt.texi (getopt): Document it.
9191         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9192         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9193         Likewise.
9194
9195 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9196
9197         getopt: handle W; without long options in getopt [BZ #12922]
9198         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
9199         but no long options are defined, just return 'W'.
9200
9201 2011-07-07  Bruno Haible  <bruno@clisp.org>
9202
9203         Avoid literal tabs.
9204         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
9205         variable containing a tab instead of a literal tab.
9206         Reported by Jim Meyering.
9207
9208 2011-07-07  Bruno Haible  <bruno@clisp.org>
9209
9210         Comments.
9211         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
9212
9213 2011-07-06  Bruno Haible  <bruno@clisp.org>
9214
9215         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
9216         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
9217         <winsock2.h>.
9218         (rpl_fd_isset, FD_ISSET): New definitions, copied from
9219         lib/sys_socket.in.h.
9220         (close, gethostname): Hide declarations from <winsock2.h>.
9221         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9222         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9223         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9224         (select): Don't override if gnulib's <sys/select.h> was already
9225         included.
9226         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9227         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9228         setsockopt, shutdown, select): Tweak indentation.
9229
9230 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9231
9232         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9233         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9234         in an application that does not use the sys_select module.
9235
9236 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9237
9238         poll: do not return 0 on timeout=-1
9239         * lib/poll.c: Loop with yield if no events occured
9240
9241 2011-07-06  Eric Blake  <eblake@redhat.com>
9242
9243         pthread_sigmask: always replace when not using pthread
9244         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9245         replacement when using some threading other than pthread.  Fix
9246         logic bug.
9247
9248 2011-07-06  Bruno Haible  <bruno@clisp.org>
9249
9250         Comments.
9251         * m4/printf.m4: Update comments about mingw.
9252
9253 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9254
9255         sys_select: define sigset_t more portably
9256         * lib/sys_select.in.h: Always include <sys/types.h>, since
9257         we now need sigset_t and mingw defines it there.
9258         Include <signal.h> before split inclusion guard, to avoid
9259         mishaps on Solaris, whose <signal.h> eventually includes us.
9260         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9261         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9262         which come from ...
9263         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9264         gl_CHECK_TYPE_SIGSET_T.
9265         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9266         does the real work.
9267         * modules/sys_select (Depends-on): Add 'signal'.
9268
9269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9270         Suggested by Bruno Haible.
9271
9272         pselect: Use pthread_sigmask, not sigprocmask.
9273         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9274         multithreaded apps better than sigprocmask does.
9275         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9276         sigprocmask directly.
9277
9278 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9281         Don't #undef,  since we don't need any underlying pselect.
9282         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9283         (Depends-on): Add select.
9284         (Link): Add $(LIBSOCKET).
9285         These changes suggested by Bruno Haible.
9286
9287         pselect: document better
9288         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9289         * doc/posix-functions/pselect.texi (pselect): Document new module.
9290
9291         pthread_sigmask: new module
9292         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9293         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9294         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9295         This is done only as a macro; I don't know how well that'll
9296         work for C++.  Move <sys/types.h> include before the include_next,
9297         to avoid mishap on Solaris.
9298         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9299         * modules/signal (Makefile.am): Substitute the check's results.
9300         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9301
9302         test-pselect: new module
9303         * modules/pselect-tests, tests/test-pselect.c: New files.
9304         * tests/test-select.c, tests/test-sys_select-c++.cc:
9305         If TEST_PSELECT is defined, test pselect instead of testing select.
9306
9307         * tests/test-sys_select.c (sigset_t): Test for it, too.
9308         Suggested by Bruno Haible.
9309
9310 2011-07-05  Eric Blake  <eblake@redhat.com>
9311
9312         snprintf: guarantee %1$d, for libintl
9313         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9315         * doc/posix-functions/snprintf.texi (snprintf): Update.
9316         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9317         * tests/test-snprintf.c (main): Enhance test.
9318         * tests/test-vsnprintf.c (main): Likewise.
9319
9320 2011-07-05  Jim Meyering  <meyering@redhat.com>
9321
9322         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9323         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9324         per Bruno's request, to accommodate this idiom (no space after "#")
9325         even when the function is inside an #if block:
9326         char *
9327         gets (char *s)
9328         #undef gets
9329         {
9330           ...
9331         }
9332
9333 2011-07-04  Jim Meyering  <meyering@redhat.com>
9334
9335         maint: indent with spaces, not TABs, and add a rule to check this
9336         * tests/test-userspec.c: Indent with spaces, not TABs.
9337         * tests/test-argp.c: Likewise.
9338         * tests/test-c-stack2.sh: Likewise.
9339         * tests/test-parse-duration.sh: Likewise
9340         * m4/strtod.m4: Likewise.
9341         * m4/alloca.m4: Likewise.
9342         * m4/pselect.m4: Likewise.
9343         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9344
9345 2011-07-03  Jim Meyering  <meyering@redhat.com>
9346
9347         maint.mk: correct omissions in prohibit_argmatch_without_use check
9348         This rule would mistakenly report that argmatch.h is included without
9349         use even when both the argmatch and invalid_arg macro were used.
9350         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9351         of argmatch and invalid_arg.
9352
9353 2011-07-03  Bruno Haible  <bruno@clisp.org>
9354
9355         Comments about EINTR.
9356         * lib/safe-read.h: Explain the purpose of this module.
9357         * lib/safe-write.h: Likewise.
9358         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9359         module.
9360         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9361         module.
9362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9363
9364 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9365
9366         xnanosleep: Rewrite to use new dtotimespec module.
9367         It has the conversion code that used to be in xnanosleep.
9368         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9369         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9370         (TIME_T_MAX): Remove.
9371         (xnanosleep): Rewrite in terms of dtotimespec.
9372         * modules/xnanosleep (Depends-on): Add dtotimespec.
9373         Remove intprops, stdbool.
9374
9375         timespec-add, timespec-sub: new modules
9376         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9377         * lib/timespec-add.c, lib/timespec-sub.c:
9378         * modules/timespec-add, modules/timespec-sub: New files.
9379
9380         dtotimespec: new module
9381         * lib/timespec.h (dtotimespec): New decl.
9382         * lib/dtotimespec.c, modules/dtotimespec: New files.
9383
9384         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9385
9386         pselect: new module
9387         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9388         (pselect): New decls.
9389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9390         since the standard pselect decl uses 'restrict'.
9391         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9392         HAVE_PSELECT, REPLACE_PSELECT.
9393         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9394         HAVE_PSELECT, REPLACE_PSELECT.
9395         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9396
9397         sys_select: don't depend on sys_socket
9398         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9400         This fix works on GNU and GNU-like platforms, but has not been tested
9401         on native Windows.
9402         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9403         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9404         gl_HEADER_SYS_SOCKET.
9405         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9406         gl_PREREQ_SYS_H_WINSOCK2.
9407
9408 2011-06-29  Eric Blake  <eblake@redhat.com>
9409
9410         pipe2: fix C89 compile problem
9411         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9412         Reported by Bruno Haible.
9413
9414         pipe, pipe2: don't corrupt fd on error
9415         * lib/pipe.c (pipe): Leave fd unchanged on error.
9416         * lib/pipe2.c (pipe2): Likewise.
9417         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9418         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9419
9420 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9421
9422         mmap-anon: do not use regular expressions inadvertently
9423         * m4/mmap-anon.m4: Remove trailing period from strings sought
9424         in the output.
9425
9426 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9427
9428         nanosleep: fix integer overflow problem
9429         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9430         arithmetic wraps around on overflow.
9431
9432         nanosleep: simplify carrying
9433         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9434         first call to the underyling nanosleep, not for the last one.
9435         This doesn't fix any bugs, but it simplifies the computation of
9436         the remaining delay.  Found while auditing integer overflow issues.
9437
9438         dup2: remove test for existence of fcntl
9439         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9440         "#if HAVE_FCNTL", in the configure-time test program.
9441         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9442         and therefore speeds up "configure" a bit.  Found while
9443         adding the dup2 module to Emacs.
9444
9445 2011-06-24  Eric Blake  <eblake@redhat.com>
9446
9447         maint.mk: enhance useless header checks
9448         * top/maint.mk (_sc_header_without_use): Check both include
9449         styles.
9450         (sc_prohibit_assert_without_use)
9451         (sc_prohibit_close_stream_without_use)
9452         (sc_prohibit_getopt_without_use)
9453         (sc_prohibit_quotearg_without_use)
9454         (sc_prohibit_quote_without_use)
9455         (sc_prohibit_long_options_without_use)
9456         (sc_prohibit_inttostr_without_use)
9457         (sc_prohibit_ignore_value_without_use)
9458         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9459         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9460         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9461         (sc_prohibit_hash_pjw_without_use)
9462         (sc_prohibit_safe_read_without_use)
9463         (sc_prohibit_argmatch_without_use)
9464         (sc_prohibit_canonicalize_without_use)
9465         (sc_prohibit_root_dev_ino_without_use)
9466         (sc_prohibit_openat_without_use)
9467         (sc_prohibit_c_ctype_without_use)
9468         (sc_prohibit_signal_without_use)
9469         (sc_prohibit_stdio--_without_use)
9470         (sc_prohibit_stdio-safer_without_use)
9471         (sc_prohibit_strings_without_use)
9472         (sc_prohibit_intprops_without_use)
9473         (sc_prohibit_stddef_without_use)
9474         (sc_prohibit_xfreopen_without_use): Update clients.
9475
9476 2011-06-24  Jim Meyering  <meyering@redhat.com>
9477
9478         syntax-check: keep one maint.mk rule in sync with its header
9479         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9480         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9481         I prefer to avoid temporary files here, so use <(...), but that
9482         is not supported by /bin/sh, so...
9483         (SHELL): Define to /bin/bash.
9484
9485 2011-06-24  Eric Blake  <eblake@redhat.com>
9486
9487         maint.mk: update sc_prohibit_intprops_without_use
9488         * top/maint.mk (_intprops_names): Match recent changes.
9489
9490 2011-06-24  Bruno Haible  <bruno@clisp.org>
9491
9492         strerror-override: No-op tweak.
9493         * lib/strerror-override.h (strerror_override): Reorder conditions,
9494         for consistency with lib/strerror-override.c.
9495
9496 2011-06-23  Eric Blake  <eblake@redhat.com>
9497
9498         maint.mk: test further PATH_MAX issues
9499         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9500         (sc_prohibit_path_max_allocation): ...and also test alloca.
9501         Suggested by Jim Meyering.
9502
9503 2011-06-22  Eric Blake  <eblake@redhat.com>
9504
9505         maint.mk: add syntax-check to avoid char[PATH_MAX]
9506         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9507
9508         stat: be robust to PATH_MAX definition
9509         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9510         * modules/stat (Depends-on): Add verify.
9511
9512         link: work around IRIX bug
9513         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9514         * lib/link.c (rpl_link): Work around it.
9515         * tests/test-link.h (test_link): Enhance test.
9516         * doc/posix-functions/link.texi (link): Document the bug.
9517
9518         getopt: silence clang warning
9519         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9520         dereference.
9521         Reported by Gustavo Martin Domato.
9522
9523 2011-06-22  Jim Meyering  <meyering@redhat.com>
9524
9525         bootstrap: do not insert a blank line into each .gitignore file
9526         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9527
9528 2011-06-21  Eric Blake  <eblake@redhat.com>
9529
9530         perror: test for output mismatch
9531         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9532         perror on IRIX.
9533
9534         strerror_r: fix OpenBSD behavior on out-of-range
9535         * lib/strerror_r.c (strerror_r): Always use maximal string.
9536         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9537
9538         strerror_r: fix OpenBSD behavior on 0
9539         * lib/strerror-override.c (strerror_override): Also override 0
9540         when needed.
9541         * lib/strerror-override.h (strerror_override): Likewise.
9542         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9543         earlier.
9544         * lib/strerror_r.c (strerror_r): Likewise.
9545         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9546         behavior...
9547         (gl_FUNC_STRERROR_0): ...into new macro.
9548         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9549         is overridden.
9550         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9551         * modules/strerror-override (Files): Add strerror.m4.
9552         (configure.ac): Also provide override for 0 when needed.
9553         * doc/posix-functions/strerror.texi (strerror): Document this.
9554         * doc/posix-functions/perror.texi (perror): Likewise.
9555
9556         perror: adjust array size
9557         * modules/perror (Depends-on): Add strerror-override.
9558         * lib/perror.c (perror): Use it to avoid magic number.
9559
9560         strerror-override: reduce size
9561         * lib/strerror-override.c (strerror_override): Use fewer lines.
9562
9563 2011-06-20  Bruno Haible  <bruno@clisp.org>
9564
9565         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9566         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9567
9568 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9569
9570         alloca: port to compilers that can optimize like GCC 4.6.0
9571         * lib/alloca.c (find_stack_direction): New signature, taken from
9572         Autoconf git.  This works with GCC 4.6.0.  This code should never
9573         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9574         be used with other compilers that optimize as well as GCC 4.6.0 does.
9575         (alloca): Adjust to new signature.
9576         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9577         New macro, which patches Autoconf in a similar way.
9578
9579         c-stack: stop worrying about stack direction
9580         * lib/c-stack.c (find_stack_direction): Remove.
9581         (segv_handler): Don't worry about stack direction growth, as it's
9582         too much of a pain to configure this correctly, given how compilers
9583         are optimizing-away our stack-growth detection code.  Instead, assume
9584         that any access to just before or just after the stack is OK.
9585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9586         Don't require AC_FUNC_ALLOCA; no longer needed.
9587
9588 2011-06-20  Eric Blake  <eblake@redhat.com>
9589
9590         test-stat: don't allocate PATH_MAX bytes
9591         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9592         PATH_MAX-sized buffer.
9593         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9594         * modules/stat-tests (Depends-on): Likewise.
9595         * tests/test-fstatat.c (includes): Drop pathmax.h.
9596         * tests/test-stat.c (includes): Likewise.
9597         Reported by Bruno Haible.
9598
9599 2011-06-20  Bruno Haible  <bruno@clisp.org>
9600
9601         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9602         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9603         * lib/float.c: New file.
9604         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9605         REPLACE_FLOAT_LDBL.
9606         * modules/float (Files): Add lib/float.c.
9607         (configure.ac): Invoke AC_LIBOBJ.
9608         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9609
9610 2011-06-20  Bruno Haible  <bruno@clisp.org>
9611
9612         Tests for module 'float'.
9613         * modules/float-tests: New file.
9614         * tests/test-float.c: New file.
9615
9616 2011-06-19  Bruno Haible  <bruno@clisp.org>
9617
9618         isinf: Coding style.
9619         * lib/isinf.c: Use GNU coding style.
9620
9621 2011-06-19  Bruno Haible  <bruno@clisp.org>
9622
9623         linkat test: Avoid test failure on AIX 7.1.
9624         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9625         * tests/test-link.h (test_link): Likewise.
9626
9627 2011-06-19  Bruno Haible  <bruno@clisp.org>
9628
9629         pread test: Avoid test failure on OpenBSD 4.9.
9630         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9631
9632 2011-06-19  Bruno Haible  <bruno@clisp.org>
9633
9634         sprintf-posix: Fix test failure on AIX 7.1.
9635         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9636         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9637         on AIX.
9638         * doc/posix-functions/fprintf.texi: Likewise.
9639         * doc/posix-functions/printf.texi: Likewise.
9640         * doc/posix-functions/snprintf.texi: Likewise.
9641         * doc/posix-functions/sprintf.texi: Likewise.
9642         * doc/posix-functions/vdprintf.texi: Likewise.
9643         * doc/posix-functions/vfprintf.texi: Likewise.
9644         * doc/posix-functions/vprintf.texi: Likewise.
9645         * doc/posix-functions/vsnprintf.texi: Likewise.
9646         * doc/posix-functions/vsprintf.texi: Likewise.
9647
9648 2011-06-19  Bruno Haible  <bruno@clisp.org>
9649
9650         roundl-ieee: Fix test failure on AIX 7.1.
9651         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9652         * doc/posix-functions/roundl.texi: Mention problem with negative
9653         arguments.
9654
9655 2011-06-19  Bruno Haible  <bruno@clisp.org>
9656
9657         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9658         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9659         * doc/posix-functions/round.texi: Mention problem with negative
9660         arguments.
9661         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9662
9663 2011-06-19  Bruno Haible  <bruno@clisp.org>
9664
9665         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9666         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9667         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9668         * doc/posix-functions/roundf.texi: Mention problem with negative
9669         arguments.
9670         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9671
9672 2011-06-19  Bruno Haible  <bruno@clisp.org>
9673
9674         ceilf-ieee: Work around bug on MacOS X 10.5.
9675         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9676
9677         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9678         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9679         IEEE compliant, avoid compiler optimizations.
9680         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9681         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9682         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9683         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9684         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9685         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9686         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9688         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9689         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9690
9691 2011-06-19  Bruno Haible  <bruno@clisp.org>
9692
9693         ceilf-ieee: Work around bug on AIX 7.1.
9694         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9695         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9696
9697 2011-06-19  Bruno Haible  <bruno@clisp.org>
9698
9699         ceil-ieee: Work around bug on AIX 7.1.
9700         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9701         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9702
9703 2011-06-18  Bruno Haible  <bruno@clisp.org>
9704
9705         fsync test: Avoid test failure on MacOS X and AIX.
9706         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9707         EINVAL.
9708
9709 2011-06-18  Bruno Haible  <bruno@clisp.org>
9710
9711         openat, fdopendir tests: Fix link errors.
9712         * modules/openat-tests (Depends-on): Add progname.
9713         * modules/fdopendir-tests (Depends-on): Likewise.
9714         * tests/test-fchownat.c: Include progname.h.
9715         (main): Call set_program_name.
9716         * tests/test-fstatat.c: Include progname.h.
9717         (main): Call set_program_name.
9718         * tests/test-mkdirat.c: Include progname.h.
9719         (main): Call set_program_name.
9720         * tests/test-openat.c: Include progname.h.
9721         (main): Call set_program_name.
9722         * tests/test-unlinkat.c: Include progname.h.
9723         (main): Call set_program_name.
9724         * tests/test-fdopendir.c: Include progname.h.
9725         (main): Call set_program_name.
9726
9727 2011-06-18  Bruno Haible  <bruno@clisp.org>
9728
9729         Doc update.
9730         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9731         HP-UX.
9732         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9733
9734 2011-06-18  Bruno Haible  <bruno@clisp.org>
9735
9736         getcwd tests: Avoid compilation error on HP-UX 11.31.
9737         * modules/getcwd-tests (Depends-on): Add pathmax.
9738         * tests/test-getcwd.c: Include pathmax.h.
9739
9740 2011-06-18  Bruno Haible  <bruno@clisp.org>
9741
9742         isfinite, isinf: Fix link error on AIX 6 and 7.
9743         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9744         needed, also test the macro with a 'float' argument.
9745         * m4/isinf.m4 (gl_ISINF): Likewise.
9746
9747 2011-06-18  Bruno Haible  <bruno@clisp.org>
9748
9749         getloadavg: Don't clobber LIBS. Regression from previous commit.
9750         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9751         AC_CHECK_LIB from here...
9752         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9753         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9754         gl_func_getloadavg_done.
9755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9756
9757 2011-06-18  Bruno Haible  <bruno@clisp.org>
9758
9759         clean-temp: Improve documentation.
9760         * lib/clean-temp.h: Explain better how to use this module.
9761         Reported by John Darrington <john@darrington.wattle.id.au>.
9762
9763 2011-06-17  Bruno Haible  <bruno@clisp.org>
9764
9765         pread, pwrite: Avoid cc warning on AIX.
9766         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9767         (pwrite): Likewise.
9768
9769 2011-06-17  Bruno Haible  <bruno@clisp.org>
9770
9771         spawn-pipe tests: Fix link error.
9772         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9774
9775 2011-06-17  Bruno Haible  <bruno@clisp.org>
9776
9777         Tests: Remove unnecessary dependency.
9778         * modules/canonicalize-tests (Depends-on): Remove progname.
9779         * modules/chown-tests (Depends-on): Likewise.
9780         * modules/dirname-tests (Depends-on): Likewise.
9781         * modules/fdopendir-tests (Depends-on): Likewise.
9782         * modules/fdutimensat-tests (Depends-on): Likewise.
9783         * modules/hash-tests (Depends-on): Likewise.
9784         * modules/lchown-tests (Depends-on): Likewise.
9785         * modules/linkat-tests (Depends-on): Likewise.
9786         * modules/renameat-tests (Depends-on): Likewise.
9787         * modules/spawn-pipe-tests (Depends-on): Likewise.
9788         * modules/utimensat-tests (Depends-on): Likewise.
9789
9790 2011-06-17  Bruno Haible  <bruno@clisp.org>
9791
9792         spawn-pipe tests: Fix link error.
9793         * tests/test-spawn-pipe-child.c: Undefine fflush.
9794
9795 2011-06-17  Bruno Haible  <bruno@clisp.org>
9796
9797         Fix tests link errors.
9798         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9799         * modules/chown-tests (Makefile.am): Don't link test-chown with
9800         LIBINTL.
9801         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9802         LIBINTL.
9803         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9804         LIBINTL.
9805         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9806         LIBINTL.
9807
9808 2011-06-16  Bruno Haible  <bruno@clisp.org>
9809
9810         crypto/gc-sha1: Fix recent regression.
9811         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9812         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9813
9814         crypto/gc-md5: Fix recent regression.
9815         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9816
9817         crypto/gc-md4: Fix recent regression.
9818         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9819         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9820
9821         crypto/gc-arctwo: Fix recent regression.
9822         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9823         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9824
9825         crypto/gc-rijndael: Fix recent regression.
9826         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9827         (configure.ac): Invoke AC_LIBOBJ here.
9828         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9830
9831         crypto/gc-hmac-sha1: Fix recent regression.
9832         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9833         (configure.ac): Invoke AC_LIBOBJ here.
9834         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9836
9837         crypto/gc-hmac-md5: Fix recent regression.
9838         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9839         (configure.ac): Invoke AC_LIBOBJ here.
9840         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9842
9843         crypto/gc-des: Fix recent regression.
9844         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9845         (configure.ac): Invoke AC_LIBOBJ here.
9846         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9848
9849         crypto/gc-arcfour: Fix recent regression.
9850         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9851         (configure.ac): Invoke AC_LIBOBJ here.
9852         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9854
9855 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9856
9857         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9858         After the 2011-05-21 change, this macro requires
9859         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9860         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9861
9862 2011-06-16  Bruno Haible  <bruno@clisp.org>
9863
9864         fprintftime: Move AC_LIBOBJ invocations to module description.
9865         * m4/fprintftime.m4: Remove file.
9866         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9867         (configure.ac): Remove gl_FPRINTFTIME call.
9868         (Makefile.am): Augment lib_SOURCES.
9869         Reported by Jim Meyering.
9870
9871 2011-06-16  Bruno Haible  <bruno@clisp.org>
9872
9873         tmpfile-safer: Finish 2011-05-23 commit.
9874         * m4/stdio-safer.m4: Really remove file.
9875         Reported by Jim Meyering.
9876
9877 2011-06-16  Bruno Haible  <bruno@clisp.org>
9878
9879         syntax-check: Fix typo.
9880         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9881         printf-posix.m4.
9882         Reported by Jim Meyering.
9883
9884 2011-06-13  Jim Meyering  <meyering@redhat.com>
9885
9886         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9887         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9888
9889 2011-05-23  Bruno Haible  <bruno@clisp.org>
9890
9891         yesno: Move AC_LIBOBJ invocations to module description.
9892         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9893         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9894
9895 2011-05-23  Bruno Haible  <bruno@clisp.org>
9896
9897         xstrtol: Move AC_LIBOBJ invocations to module description.
9898         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9899         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9900
9901 2011-05-23  Bruno Haible  <bruno@clisp.org>
9902
9903         xstrtold: Move AC_LIBOBJ invocations to module description.
9904         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9905         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9906
9907 2011-05-23  Bruno Haible  <bruno@clisp.org>
9908
9909         xstrtod: Move AC_LIBOBJ invocations to module description.
9910         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9911         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9912
9913 2011-05-23  Bruno Haible  <bruno@clisp.org>
9914
9915         xnanosleep: Move AC_LIBOBJ invocations to module description.
9916         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9917         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9918
9919 2011-05-23  Bruno Haible  <bruno@clisp.org>
9920
9921         xgetcwd: Move AC_LIBOBJ invocations to module description.
9922         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9923         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9924
9925 2011-05-23  Bruno Haible  <bruno@clisp.org>
9926
9927         xalloc: Move AC_LIBOBJ invocations to module description.
9928         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9929         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9930
9931 2011-05-23  Bruno Haible  <bruno@clisp.org>
9932
9933         write-any-file: Move AC_LIBOBJ invocations to module description.
9934         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9935         invocation.
9936         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9937
9938 2011-05-23  Bruno Haible  <bruno@clisp.org>
9939
9940         utimens: Move AC_LIBOBJ invocations to module description.
9941         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9942         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9943
9944 2011-05-23  Bruno Haible  <bruno@clisp.org>
9945
9946         utimecmp: Move AC_LIBOBJ invocations to module description.
9947         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9948         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9949
9950 2011-05-23  Bruno Haible  <bruno@clisp.org>
9951
9952         userspec: Move AC_LIBOBJ invocations to module description.
9953         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9954         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9955
9956 2011-05-23  Bruno Haible  <bruno@clisp.org>
9957
9958         unlinkdir: Move AC_LIBOBJ invocations to module description.
9959         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9960         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9961
9962 2011-05-23  Bruno Haible  <bruno@clisp.org>
9963
9964         unistd-safer: Move AC_LIBOBJ invocations to module description.
9965         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9966         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9967
9968 2011-05-23  Bruno Haible  <bruno@clisp.org>
9969
9970         tempname: Move AC_LIBOBJ invocations to module description.
9971         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9972         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9973
9974 2011-05-23  Bruno Haible  <bruno@clisp.org>
9975
9976         strftime: Move AC_LIBOBJ invocations to module description.
9977         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9978         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9979
9980 2011-05-23  Bruno Haible  <bruno@clisp.org>
9981
9982         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9983         * m4/stdlib-safer.m4: Remove file.
9984         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9985         (configure.ac): Remove gl_STDLIB_SAFER call.
9986         (Makefile.am): Augment lib_SOURCES.
9987
9988 2011-05-23  Bruno Haible  <bruno@clisp.org>
9989
9990         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9991         * m4/stdio-safer.m4: Remove file.
9992         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9993         (configure.ac): Remove gl_TMPFILE_SAFER call.
9994         (Makefile.am): Augment lib_SOURCES.
9995
9996 2011-05-23  Bruno Haible  <bruno@clisp.org>
9997
9998         popen-safer: Move AC_LIBOBJ invocations to module description.
9999         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
10000         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
10001         (configure.ac): Remove gl_POPEN_SAFER call.
10002         (Makefile.am): Augment lib_SOURCES.
10003
10004 2011-05-23  Bruno Haible  <bruno@clisp.org>
10005
10006         freopen-safer: Move AC_LIBOBJ invocations to module description.
10007         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
10008         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
10009         (configure.ac): Remove gl_FREOPEN_SAFER call.
10010         (Makefile.am): Augment lib_SOURCES.
10011
10012 2011-05-23  Bruno Haible  <bruno@clisp.org>
10013
10014         fopen-safer: Move AC_LIBOBJ invocations to module description.
10015         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
10016         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
10017         (configure.ac): Remove gl_FOPEN_SAFER call.
10018         (Makefile.am): Augment lib_SOURCES.
10019
10020 2011-05-23  Bruno Haible  <bruno@clisp.org>
10021
10022         crypto/sha512: Move AC_LIBOBJ invocations to module description.
10023         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
10024         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
10025
10026 2011-05-23  Bruno Haible  <bruno@clisp.org>
10027
10028         crypto/sha256: Move AC_LIBOBJ invocations to module description.
10029         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
10030         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
10031
10032 2011-05-23  Bruno Haible  <bruno@clisp.org>
10033
10034         crypto/sha1: Move AC_LIBOBJ invocations to module description.
10035         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
10036         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
10037
10038 2011-05-23  Bruno Haible  <bruno@clisp.org>
10039
10040         settime: Move AC_LIBOBJ invocations to module description.
10041         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
10042         * modules/settime (Makefile.am): Augment lib_SOURCES.
10043
10044 2011-05-23  Bruno Haible  <bruno@clisp.org>
10045
10046         savedir: Move AC_LIBOBJ invocations to module description.
10047         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
10048         * modules/savedir (Makefile.am): Augment lib_SOURCES.
10049
10050 2011-05-23  Bruno Haible  <bruno@clisp.org>
10051
10052         save-cwd: Move AC_LIBOBJ invocations to module description.
10053         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
10054         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
10055
10056 2011-05-23  Bruno Haible  <bruno@clisp.org>
10057
10058         same: Move AC_LIBOBJ invocations to module description.
10059         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
10060         * modules/same (Makefile.am): Augment lib_SOURCES.
10061
10062 2011-05-23  Bruno Haible  <bruno@clisp.org>
10063
10064         safe-write: Move AC_LIBOBJ invocations to module description.
10065         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
10066         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
10067         instead of gl_SAFE_WRITE.
10068         (Makefile.am): Augment lib_SOURCES.
10069
10070 2011-05-23  Bruno Haible  <bruno@clisp.org>
10071
10072         safe-read: Move AC_LIBOBJ invocations to module description.
10073         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
10074         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
10075         of gl_SAFE_READ.
10076         (Makefile.am): Augment lib_SOURCES.
10077
10078 2011-05-23  Bruno Haible  <bruno@clisp.org>
10079
10080         safe-alloc: Move AC_LIBOBJ invocations to module description.
10081         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
10082         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
10083
10084 2011-05-23  Bruno Haible  <bruno@clisp.org>
10085
10086         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
10087         * m4/rijndael.m4: Remove file.
10088         * modules/crypto/rijndael (Files): Remove it.
10089         (configure.ac): Remove gl_RIJNDAEL call.
10090         (Makefile.am): Augment lib_SOURCES.
10091
10092 2011-05-23  Bruno Haible  <bruno@clisp.org>
10093
10094         readtokens: Move AC_LIBOBJ invocations to module description.
10095         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
10096         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
10097
10098 2011-05-23  Bruno Haible  <bruno@clisp.org>
10099
10100         read-file: Move AC_LIBOBJ invocations to module description.
10101         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
10102         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
10103         of gl_FUNC_READ_FILE.
10104         (Makefile.am): Augment lib_SOURCES.
10105
10106 2011-05-23  Bruno Haible  <bruno@clisp.org>
10107
10108         quotearg: Move AC_LIBOBJ invocations to module description.
10109         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
10110         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
10111
10112 2011-05-23  Bruno Haible  <bruno@clisp.org>
10113
10114         quote: Move AC_LIBOBJ invocations to module description.
10115         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
10116         * modules/quote (Makefile.am): Augment lib_SOURCES.
10117
10118 2011-05-23  Bruno Haible  <bruno@clisp.org>
10119
10120         posixver: Move AC_LIBOBJ invocations to module description.
10121         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
10122         * modules/posixver (Makefile.am): Augment lib_SOURCES.
10123
10124 2011-05-23  Bruno Haible  <bruno@clisp.org>
10125
10126         posixtm: Move AC_LIBOBJ invocations to module description.
10127         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
10128         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
10129
10130 2011-05-23  Bruno Haible  <bruno@clisp.org>
10131
10132         physmem: Move AC_LIBOBJ invocations to module description.
10133         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
10134         * modules/physmem (Makefile.am): Augment lib_SOURCES.
10135
10136 2011-05-23  Bruno Haible  <bruno@clisp.org>
10137
10138         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
10139         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
10140         invocation.
10141         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
10142
10143 2011-05-23  Bruno Haible  <bruno@clisp.org>
10144
10145         mpsort: Move AC_LIBOBJ invocations to module description.
10146         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
10147         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
10148
10149 2011-05-23  Bruno Haible  <bruno@clisp.org>
10150
10151         modechange: Move AC_LIBOBJ invocations to module description.
10152         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
10153         * modules/modechange (Makefile.am): Augment lib_SOURCES.
10154
10155 2011-05-23  Bruno Haible  <bruno@clisp.org>
10156
10157         mkdir-p: Move AC_LIBOBJ invocations to module description.
10158         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
10159         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
10160
10161 2011-05-23  Bruno Haible  <bruno@clisp.org>
10162
10163         mkancesdirs: Move AC_LIBOBJ invocations to module description.
10164         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
10165         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
10166
10167 2011-05-23  Bruno Haible  <bruno@clisp.org>
10168
10169         mgetgroups: Move AC_LIBOBJ invocations to module description.
10170         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
10171         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
10172
10173 2011-05-23  Bruno Haible  <bruno@clisp.org>
10174
10175         memxor: Move AC_LIBOBJ invocations to module description.
10176         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
10177         * modules/memxor (Makefile.am): Augment lib_SOURCES.
10178
10179 2011-05-23  Bruno Haible  <bruno@clisp.org>
10180
10181         memcoll: Move AC_LIBOBJ invocations to module description.
10182         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
10183         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
10184
10185 2011-05-23  Bruno Haible  <bruno@clisp.org>
10186
10187         memcasecmp: Move AC_LIBOBJ invocations to module description.
10188         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
10189         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
10190
10191 2011-05-23  Bruno Haible  <bruno@clisp.org>
10192
10193         crypto/md5: Move AC_LIBOBJ invocations to module description.
10194         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
10195         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
10196
10197 2011-05-23  Bruno Haible  <bruno@clisp.org>
10198
10199         crypto/md4: Move AC_LIBOBJ invocations to module description.
10200         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
10201         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
10202
10203 2011-05-23  Bruno Haible  <bruno@clisp.org>
10204
10205         crypto/md2: Move AC_LIBOBJ invocations to module description.
10206         * m4/md2.m4: Remove file.
10207         * modules/crypto/md2 (Files): Remove it.
10208         (configure.ac): Remove gl_MD2 call.
10209         (Makefile.am): Augment lib_SOURCES.
10210
10211 2011-05-23  Bruno Haible  <bruno@clisp.org>
10212
10213         long-options: Move AC_LIBOBJ invocations to module description.
10214         * m4/long-options.m4: Remove file.
10215         * modules/long-options (Files): Remove it.
10216         (configure.ac): Remove gl_LONG_OPTIONS call.
10217         (Makefile.am): Augment lib_SOURCES.
10218
10219 2011-05-23  Bruno Haible  <bruno@clisp.org>
10220
10221         i-ring: Move AC_LIBOBJ invocations to module description.
10222         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10223         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10224
10225 2011-05-23  Bruno Haible  <bruno@clisp.org>
10226
10227         idcache: Move AC_LIBOBJ invocations to module description.
10228         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10229         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10230
10231 2011-05-23  Bruno Haible  <bruno@clisp.org>
10232
10233         human: Move AC_LIBOBJ invocations to module description.
10234         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10235         * modules/human (Makefile.am): Augment lib_SOURCES.
10236
10237 2011-05-23  Bruno Haible  <bruno@clisp.org>
10238
10239         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10240         * m4/hmac-sha1.m4: Remove file.
10241         * modules/crypto/hmac-sha1 (Files): Remove it.
10242         (configure.ac): Remove gl_HMAC_SHA1 call.
10243         (Makefile.am): Augment lib_SOURCES.
10244
10245 2011-05-23  Bruno Haible  <bruno@clisp.org>
10246
10247         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10248         * m4/hmac-md5.m4: Remove file.
10249         * modules/crypto/hmac-md5 (Files): Remove it.
10250         (configure.ac): Remove gl_HMAC_MD5 call.
10251         (Makefile.am): Augment lib_SOURCES.
10252
10253 2011-05-23  Bruno Haible  <bruno@clisp.org>
10254
10255         hash: Move AC_LIBOBJ invocations to module description.
10256         * m4/hash.m4: Remove file.
10257         * modules/hash (Files): Remove it.
10258         (configure.ac): Remove gl_HASH call.
10259         (Makefile.am): Augment lib_SOURCES.
10260
10261 2011-05-23  Bruno Haible  <bruno@clisp.org>
10262
10263         hard-locale: Move AC_LIBOBJ invocations to module description.
10264         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10265         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10266
10267 2011-05-23  Bruno Haible  <bruno@clisp.org>
10268
10269         getugroups: Move AC_LIBOBJ invocations to module description.
10270         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10271         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10272
10273 2011-05-23  Bruno Haible  <bruno@clisp.org>
10274
10275         gettime: Move AC_LIBOBJ invocations to module description.
10276         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10277         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10278
10279 2011-05-23  Bruno Haible  <bruno@clisp.org>
10280
10281         getndelim2: Move AC_LIBOBJ invocations to module description.
10282         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10283         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10284
10285 2011-05-23  Bruno Haible  <bruno@clisp.org>
10286
10287         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10288         * m4/gc-pbkdf2-sha1.m4: Remove file.
10289         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10290         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10291         (Makefile.am): Augment lib_SOURCES.
10292
10293 2011-05-23  Bruno Haible  <bruno@clisp.org>
10294
10295         fts: Move AC_LIBOBJ invocations to module description.
10296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10297         * modules/fts (configure.ac): ... to here.
10298
10299 2011-05-23  Bruno Haible  <bruno@clisp.org>
10300
10301         file-type: Move AC_LIBOBJ invocations to module description.
10302         * m4/file-type.m4: Remove file.
10303         * modules/file-type (Files): Remove it.
10304         (configure.ac): Remove gl_FILE_TYPE call.
10305         (Makefile.am): Augment lib_SOURCES.
10306
10307 2011-05-23  Bruno Haible  <bruno@clisp.org>
10308
10309         filenamecat*: Respect rules for use of AC_LIBOBJ.
10310         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10311         Remove AC_LIBOBJ invocation.
10312         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10313         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10314
10315 2011-05-23  Bruno Haible  <bruno@clisp.org>
10316
10317         filemode: Move AC_LIBOBJ invocations to module description.
10318         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10319         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10320
10321 2011-05-23  Bruno Haible  <bruno@clisp.org>
10322
10323         openat-safer: Move AC_LIBOBJ invocations to module description.
10324         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10325         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10326
10327 2011-05-23  Bruno Haible  <bruno@clisp.org>
10328
10329         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10330         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10331         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10332
10333 2011-05-23  Bruno Haible  <bruno@clisp.org>
10334
10335         exclude: Move AC_LIBOBJ invocations to module description.
10336         * m4/exclude.m4: Remove file.
10337         * modules/exclude (Files): Remove it.
10338         (configure.ac): Remove gl_EXCLUDE call.
10339         (Makefile.am): Augment lib_SOURCES.
10340
10341 2011-05-23  Bruno Haible  <bruno@clisp.org>
10342
10343         dirname*: Respect rules for use of AC_LIBOBJ.
10344         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10345         invocations.
10346         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10347         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10348
10349 2011-05-23  Bruno Haible  <bruno@clisp.org>
10350
10351         dirent-safer: Move AC_LIBOBJ invocations to module description.
10352         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10353         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10354
10355 2011-05-23  Bruno Haible  <bruno@clisp.org>
10356
10357         crypto/des: Move AC_LIBOBJ invocations to module description.
10358         * m4/des.m4: Remove file.
10359         * modules/crypto/des (Files): Remove it.
10360         (configure.ac): Remove gl_DES call.
10361         (Makefile.am): Augment lib_SOURCES.
10362
10363 2011-05-23  Bruno Haible  <bruno@clisp.org>
10364
10365         cycle-check: Move AC_LIBOBJ invocations to module description.
10366         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10367         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10368
10369 2011-05-23  Bruno Haible  <bruno@clisp.org>
10370
10371         c-strtold: Move AC_LIBOBJ invocations to module description.
10372         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10373         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10374
10375 2011-05-23  Bruno Haible  <bruno@clisp.org>
10376
10377         c-strtod: Move AC_LIBOBJ invocations to module description.
10378         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10379         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10380
10381 2011-05-23  Bruno Haible  <bruno@clisp.org>
10382
10383         crc: Move AC_LIBOBJ invocations to module description.
10384         * m4/crc.m4: Remove file.
10385         * modules/crc (Files): Remove it.
10386         (configure.ac): Remove gl_CRC call.
10387         (Makefile.am): Augment lib_SOURCES.
10388
10389 2011-05-23  Bruno Haible  <bruno@clisp.org>
10390
10391         close-stream: Move AC_LIBOBJ invocations to module description.
10392         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10393         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10394
10395 2011-05-23  Bruno Haible  <bruno@clisp.org>
10396
10397         closeout: Move AC_LIBOBJ invocations to module description.
10398         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10399         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10400
10401 2011-05-23  Bruno Haible  <bruno@clisp.org>
10402
10403         closein: Move AC_LIBOBJ invocations to module description.
10404         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10405         * modules/closein (Makefile.am): Augment lib_SOURCES.
10406
10407 2011-05-23  Bruno Haible  <bruno@clisp.org>
10408
10409         cloexec: Move AC_LIBOBJ invocations to module description.
10410         * m4/cloexec.m4: Remove file.
10411         * modules/cloexec (Files): Remove it.
10412         (configure.ac): Remove gl_CLOEXEC call.
10413         (Makefile.am): Augment lib_SOURCES.
10414
10415 2011-05-23  Bruno Haible  <bruno@clisp.org>
10416
10417         check-version: Move AC_LIBOBJ invocations to module description.
10418         * m4/check-version.m4: Remove file.
10419         * modules/check-version (Files): Remove it.
10420         (configure.ac): Remove gl_CHECK_VERSION call.
10421         (Makefile.am): Augment lib_SOURCES.
10422
10423 2011-05-23  Bruno Haible  <bruno@clisp.org>
10424
10425         chdir-safer: Move AC_LIBOBJ invocations to module description.
10426         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10427         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10428
10429 2011-05-23  Bruno Haible  <bruno@clisp.org>
10430
10431         canonicalize: Move AC_LIBOBJ invocations to module description.
10432         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10433         AC_LIBOBJ invocation.
10434         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10435
10436 2011-05-23  Bruno Haible  <bruno@clisp.org>
10437
10438         canon-host: Move AC_LIBOBJ invocations to module description.
10439         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10440         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10441         instead of gl_CANON_HOST.
10442         (Makefile.am): Augment lib_SOURCES.
10443
10444 2011-05-23  Bruno Haible  <bruno@clisp.org>
10445
10446         backupfile: Move AC_LIBOBJ invocations to module description.
10447         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10448         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10449
10450 2011-05-23  Bruno Haible  <bruno@clisp.org>
10451
10452         argmatch: Move AC_LIBOBJ invocations to module description.
10453         * m4/argmatch.m4: Remove file.
10454         * modules/argmatch (Files): Remove it.
10455         (configure.ac): Remove gl_ARGMATCH call.
10456         (Makefile.am): Augment lib_SOURCES.
10457
10458 2011-05-23  Bruno Haible  <bruno@clisp.org>
10459
10460         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10461         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10462         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10463
10464 2011-05-23  Bruno Haible  <bruno@clisp.org>
10465
10466         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10467         * m4/arcfour.m4: Remove file.
10468         * modules/crypto/arcfour (Files): Remove it.
10469         (configure.ac): Remove gl_ARCFOUR call.
10470         (Makefile.am): Augment lib_SOURCES.
10471
10472 2011-05-22  Bruno Haible  <bruno@clisp.org>
10473
10474         write: Move AC_LIBOBJ invocations to module description.
10475         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10476         * modules/write (configure.ac): ... to here.
10477
10478 2011-05-22  Bruno Haible  <bruno@clisp.org>
10479
10480         wmemset: Move AC_LIBOBJ invocations to module description.
10481         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10482         here...
10483         * modules/wmemset (configure.ac): ... to here.
10484
10485 2011-05-22  Bruno Haible  <bruno@clisp.org>
10486
10487         wmemmove: Move AC_LIBOBJ invocations to module description.
10488         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10489         here...
10490         * modules/wmemmove (configure.ac): ... to here.
10491
10492 2011-05-22  Bruno Haible  <bruno@clisp.org>
10493
10494         wmemcpy: Move AC_LIBOBJ invocations to module description.
10495         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10496         here...
10497         * modules/wmemcpy (configure.ac): ... to here.
10498
10499 2011-05-22  Bruno Haible  <bruno@clisp.org>
10500
10501         wmemcmp: Move AC_LIBOBJ invocations to module description.
10502         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10503         here...
10504         * modules/wmemcmp (configure.ac): ... to here.
10505
10506 2011-05-22  Bruno Haible  <bruno@clisp.org>
10507
10508         wmemchr: Move AC_LIBOBJ invocations to module description.
10509         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10510         here...
10511         * modules/wmemchr (configure.ac): ... to here.
10512
10513 2011-05-22  Bruno Haible  <bruno@clisp.org>
10514
10515         wcswidth: Move AC_LIBOBJ invocations to module description.
10516         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10517         here...
10518         * modules/wcswidth (configure.ac): ... to here.
10519
10520 2011-05-22  Bruno Haible  <bruno@clisp.org>
10521
10522         wcwidth: Respect rules for use of AC_LIBOBJ.
10523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10524         invocation from here...
10525         * modules/wcwidth (configure.ac): ... to here.
10526         (Depends-on): Update conditions.
10527
10528 2011-05-22  Bruno Haible  <bruno@clisp.org>
10529
10530         wctype: Move AC_LIBOBJ invocations to module description.
10531         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10532         invocation from here...
10533         * modules/wctype (configure.ac): ... to here.
10534         (Depends-on): Update conditions.
10535
10536 2011-05-22  Bruno Haible  <bruno@clisp.org>
10537
10538         wctrans: Move AC_LIBOBJ invocations to module description.
10539         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10540         invocation from here...
10541         * modules/wctrans (configure.ac): ... to here.
10542
10543 2011-05-22  Bruno Haible  <bruno@clisp.org>
10544
10545         wctomb: Move AC_LIBOBJ invocations to module description.
10546         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10547         invocations from here...
10548         * modules/wctomb (configure.ac): ... to here.
10549
10550 2011-05-22  Bruno Haible  <bruno@clisp.org>
10551
10552         wctob: Move AC_LIBOBJ invocations to module description.
10553         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10554         gl_PREREQ_WCTOB invocations from here...
10555         * modules/wctob (configure.ac): ... to here.
10556         (Depends-on): Update conditions.
10557
10558 2011-05-22  Bruno Haible  <bruno@clisp.org>
10559
10560         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10561         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10562         here...
10563         * modules/wcsxfrm (configure.ac): ... to here.
10564
10565 2011-05-22  Bruno Haible  <bruno@clisp.org>
10566
10567         wcstok: Move AC_LIBOBJ invocations to module description.
10568         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10569         * modules/wcstok (configure.ac): ... to here.
10570
10571 2011-05-22  Bruno Haible  <bruno@clisp.org>
10572
10573         wcsstr: Move AC_LIBOBJ invocations to module description.
10574         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10575         * modules/wcsstr (configure.ac): ... to here.
10576
10577 2011-05-22  Bruno Haible  <bruno@clisp.org>
10578
10579         wcsspn: Move AC_LIBOBJ invocations to module description.
10580         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10581         * modules/wcsspn (configure.ac): ... to here.
10582
10583 2011-05-22  Bruno Haible  <bruno@clisp.org>
10584
10585         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10586         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10587         gl_PREREQ_WCSRTOMBS invocations from here...
10588         * modules/wcsrtombs (configure.ac): ... to here.
10589
10590 2011-05-22  Bruno Haible  <bruno@clisp.org>
10591
10592         wcsrchr: Move AC_LIBOBJ invocations to module description.
10593         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10594         here...
10595         * modules/wcsrchr (configure.ac): ... to here.
10596
10597 2011-05-22  Bruno Haible  <bruno@clisp.org>
10598
10599         wcspbrk: Move AC_LIBOBJ invocations to module description.
10600         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10601         here...
10602         * modules/wcspbrk (configure.ac): ... to here.
10603
10604 2011-05-22  Bruno Haible  <bruno@clisp.org>
10605
10606         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10607         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10608         gl_PREREQ_WCSNRTOMBS invocations from here...
10609         * modules/wcsnrtombs (configure.ac): ... to here.
10610
10611 2011-05-22  Bruno Haible  <bruno@clisp.org>
10612
10613         wcsnlen: Move AC_LIBOBJ invocations to module description.
10614         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10615         here...
10616         * modules/wcsnlen (configure.ac): ... to here.
10617
10618 2011-05-22  Bruno Haible  <bruno@clisp.org>
10619
10620         wcsncpy: Move AC_LIBOBJ invocations to module description.
10621         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10622         here...
10623         * modules/wcsncpy (configure.ac): ... to here.
10624
10625 2011-05-22  Bruno Haible  <bruno@clisp.org>
10626
10627         wcsncmp: Move AC_LIBOBJ invocations to module description.
10628         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10629         here...
10630         * modules/wcsncmp (configure.ac): ... to here.
10631
10632 2011-05-22  Bruno Haible  <bruno@clisp.org>
10633
10634         wcsncat: Move AC_LIBOBJ invocations to module description.
10635         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10636         here...
10637         * modules/wcsncat (configure.ac): ... to here.
10638
10639 2011-05-22  Bruno Haible  <bruno@clisp.org>
10640
10641         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10642         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10643         from here...
10644         * modules/wcsncasecmp (configure.ac): ... to here.
10645
10646 2011-05-22  Bruno Haible  <bruno@clisp.org>
10647
10648         wcslen: Move AC_LIBOBJ invocations to module description.
10649         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10650         * modules/wcslen (configure.ac): ... to here.
10651
10652 2011-05-22  Bruno Haible  <bruno@clisp.org>
10653
10654         wcsdup: Move AC_LIBOBJ invocations to module description.
10655         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10656         * modules/wcsdup (configure.ac): ... to here.
10657
10658 2011-05-22  Bruno Haible  <bruno@clisp.org>
10659
10660         wcscspn: Move AC_LIBOBJ invocations to module description.
10661         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10662         here...
10663         * modules/wcscspn (configure.ac): ... to here.
10664
10665 2011-05-22  Bruno Haible  <bruno@clisp.org>
10666
10667         wcscpy: Move AC_LIBOBJ invocations to module description.
10668         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10669         * modules/wcscpy (configure.ac): ... to here.
10670
10671 2011-05-22  Bruno Haible  <bruno@clisp.org>
10672
10673         wcscoll: Move AC_LIBOBJ invocations to module description.
10674         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10675         here...
10676         * modules/wcscoll (configure.ac): ... to here.
10677
10678 2011-05-22  Bruno Haible  <bruno@clisp.org>
10679
10680         wcscmp: Move AC_LIBOBJ invocations to module description.
10681         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10682         * modules/wcscmp (configure.ac): ... to here.
10683
10684 2011-05-22  Bruno Haible  <bruno@clisp.org>
10685
10686         wcschr: Move AC_LIBOBJ invocations to module description.
10687         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10688         * modules/wcschr (configure.ac): ... to here.
10689
10690 2011-05-22  Bruno Haible  <bruno@clisp.org>
10691
10692         wcscat: Move AC_LIBOBJ invocations to module description.
10693         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10694         * modules/wcscat (configure.ac): ... to here.
10695
10696 2011-05-22  Bruno Haible  <bruno@clisp.org>
10697
10698         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10699         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10700         here...
10701         * modules/wcscasecmp (configure.ac): ... to here.
10702
10703 2011-05-22  Bruno Haible  <bruno@clisp.org>
10704
10705         wcrtomb: Move AC_LIBOBJ invocations to module description.
10706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10707         invocations from here...
10708         * modules/wcrtomb (configure.ac): ... to here.
10709
10710 2011-05-22  Bruno Haible  <bruno@clisp.org>
10711
10712         wcpncpy: Move AC_LIBOBJ invocations to module description.
10713         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10714         here...
10715         * modules/wcpncpy (configure.ac): ... to here.
10716
10717 2011-05-22  Bruno Haible  <bruno@clisp.org>
10718
10719         wcpcpy: Move AC_LIBOBJ invocations to module description.
10720         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10721         * modules/wcpcpy (configure.ac): ... to here.
10722
10723 2011-05-22  Bruno Haible  <bruno@clisp.org>
10724
10725         waitpid: Move AC_LIBOBJ invocations to module description.
10726         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10727         invocation from here...
10728         * modules/waitpid (configure.ac): ... to here.
10729
10730 2011-05-22  Bruno Haible  <bruno@clisp.org>
10731
10732         utimensat: Move AC_LIBOBJ invocations to module description.
10733         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10734         here...
10735         * modules/utimensat (configure.ac): ... to here.
10736
10737 2011-05-22  Bruno Haible  <bruno@clisp.org>
10738
10739         usleep: Move AC_LIBOBJ invocations to module description.
10740         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10741         here...
10742         * modules/usleep (configure.ac): ... to here.
10743
10744 2011-05-22  Bruno Haible  <bruno@clisp.org>
10745
10746         unlockpt: Move AC_LIBOBJ invocations to module description.
10747         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10748         gl_PREREQ_UNLOCKPT invocations from here...
10749         * modules/unlockpt (configure.ac): ... to here.
10750
10751 2011-05-22  Bruno Haible  <bruno@clisp.org>
10752
10753         unlink: Respect rules for use of AC_LIBOBJ.
10754         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10755         * modules/unlink (configure.ac): ... to here.
10756
10757 2011-05-22  Bruno Haible  <bruno@clisp.org>
10758
10759         uname: Move AC_LIBOBJ invocations to module description.
10760         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10762         here...
10763         * modules/uname (configure.ac): ... to here.
10764
10765 2011-05-22  Bruno Haible  <bruno@clisp.org>
10766
10767         ttyname_r: Move AC_LIBOBJ invocations to module description.
10768         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10769         gl_PREREQ_TTYNAME_R invocations from here...
10770         * modules/ttyname_r (configure.ac): ... to here.
10771
10772 2011-05-22  Bruno Haible  <bruno@clisp.org>
10773
10774         tsearch: Move AC_LIBOBJ invocations to module description.
10775         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10776         invocations from here...
10777         * modules/tsearch (configure.ac): ... to here.
10778
10779 2011-05-22  Bruno Haible  <bruno@clisp.org>
10780
10781         towctrans: Move AC_LIBOBJ invocations to module description.
10782         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10783         AC_LIBOBJ invocation from here...
10784         * modules/towctrans (configure.ac): ... to here.
10785
10786 2011-05-22  Bruno Haible  <bruno@clisp.org>
10787
10788         tmpfile: Move AC_LIBOBJ invocations to module description.
10789         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10790         invocations from here...
10791         * modules/tmpfile (configure.ac): ... to here.
10792
10793 2011-05-22  Bruno Haible  <bruno@clisp.org>
10794
10795         times: Move AC_LIBOBJ invocations to module description.
10796         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10797         * modules/times (configure.ac): ... to here.
10798
10799 2011-05-22  Bruno Haible  <bruno@clisp.org>
10800
10801         time_r: Move AC_LIBOBJ invocations to module description.
10802         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10803         invocations from here...
10804         * modules/time_r (configure.ac): ... to here.
10805
10806 2011-05-22  Bruno Haible  <bruno@clisp.org>
10807
10808         timegm: Move AC_LIBOBJ invocations to module description.
10809         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10810         invocations from here...
10811         * modules/timegm (configure.ac): ... to here.
10812
10813 2011-05-22  Bruno Haible  <bruno@clisp.org>
10814
10815         tcgetsid: Move AC_LIBOBJ invocations to module description.
10816         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10817         and gl_PREREQ_TCGETSID invocations from here...
10818         * modules/tcgetsid (configure.ac): ... to here.
10819         (Depends-on): Update conditions.
10820
10821 2011-05-22  Bruno Haible  <bruno@clisp.org>
10822
10823         symlinkat: Move AC_LIBOBJ invocations to module description.
10824         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10825         here...
10826         * modules/symlinkat (configure.ac): ... to here.
10827
10828 2011-05-22  Bruno Haible  <bruno@clisp.org>
10829
10830         symlink: Move AC_LIBOBJ invocations to module description.
10831         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10832         here...
10833         * modules/symlink (configure.ac): ... to here.
10834
10835 2011-05-22  Bruno Haible  <bruno@clisp.org>
10836
10837         strverscmp: Move AC_LIBOBJ invocations to module description.
10838         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10840         from here...
10841         * modules/strverscmp (configure.ac): ... to here.
10842
10843 2011-05-22  Bruno Haible  <bruno@clisp.org>
10844
10845         strtok_r: Move AC_LIBOBJ invocations to module description.
10846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10847         and gl_PREREQ_STRTOK_R invocations from here...
10848         * modules/strtok_r (configure.ac): ... to here.
10849         (Depends-on): Update conditions.
10850
10851 2011-05-22  Bruno Haible  <bruno@clisp.org>
10852
10853         strtoumax: Move AC_LIBOBJ invocations to module description.
10854         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10856         from here...
10857         * modules/strtoumax (configure.ac): ... to here.
10858
10859 2011-05-22  Bruno Haible  <bruno@clisp.org>
10860
10861         strtoimax: Move AC_LIBOBJ invocations to module description.
10862         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10864         from here...
10865         * modules/strtoimax (configure.ac): ... to here.
10866
10867 2011-05-22  Bruno Haible  <bruno@clisp.org>
10868
10869         strtoull: Move AC_LIBOBJ invocations to module description.
10870         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10872         from here...
10873         * modules/strtoull (configure.ac): ... to here.
10874
10875 2011-05-22  Bruno Haible  <bruno@clisp.org>
10876
10877         strtoll: Move AC_LIBOBJ invocations to module description.
10878         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10880         here...
10881         * modules/strtoll (configure.ac): ... to here.
10882
10883 2011-05-22  Bruno Haible  <bruno@clisp.org>
10884
10885         strtoul: Move AC_LIBOBJ invocations to module description.
10886         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10887         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10888         * modules/strtoul (configure.ac): ... to here.
10889
10890 2011-05-22  Bruno Haible  <bruno@clisp.org>
10891
10892         strtol: Move AC_LIBOBJ invocations to module description.
10893         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10894         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10895         * modules/strtol (configure.ac): ... to here.
10896
10897 2011-05-22  Bruno Haible  <bruno@clisp.org>
10898
10899         strtod: Move AC_LIBOBJ invocations to module description.
10900         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10901         invocations from here...
10902         * modules/strtod (configure.ac): ... to here.
10903
10904 2011-05-22  Bruno Haible  <bruno@clisp.org>
10905
10906         strstr*: Move AC_LIBOBJ invocations to module description.
10907         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10908         invocations from here...
10909         * modules/strstr-simple (configure.ac): ... to here.
10910         * modules/strstr (configure.ac): ... and here.
10911
10912 2011-05-22  Bruno Haible  <bruno@clisp.org>
10913
10914         strsignal: Move AC_LIBOBJ invocations to module description.
10915         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10916         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10917         * modules/strsignal (configure.ac): ... to here.
10918         (Depends-on): Update conditions.
10919
10920 2011-05-22  Bruno Haible  <bruno@clisp.org>
10921
10922         strsep: Move AC_LIBOBJ invocations to module description.
10923         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10925         here...
10926         * modules/strsep (configure.ac): ... to here.
10927
10928 2011-05-22  Bruno Haible  <bruno@clisp.org>
10929
10930         strptime: Move AC_LIBOBJ invocations to module description.
10931         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10932         gl_PREREQ_STRPTIME invocations from here...
10933         * modules/strptime (configure.ac): ... to here.
10934
10935 2011-05-22  Bruno Haible  <bruno@clisp.org>
10936
10937         strpbrk: Move AC_LIBOBJ invocations to module description.
10938         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10940         here...
10941         * modules/strpbrk (configure.ac): ... to here.
10942
10943 2011-05-22  Bruno Haible  <bruno@clisp.org>
10944
10945         strnlen: Move AC_LIBOBJ invocations to module description.
10946         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10947         invocations from here...
10948         * modules/strnlen (configure.ac): ... to here.
10949
10950 2011-05-22  Bruno Haible  <bruno@clisp.org>
10951
10952         strndup: Move AC_LIBOBJ invocations to module description.
10953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10954         invocations from here...
10955         * modules/strndup (configure.ac): ... to here.
10956         (Depends-on): Update conditions.
10957
10958 2011-05-22  Bruno Haible  <bruno@clisp.org>
10959
10960         strncat: Move AC_LIBOBJ invocations to module description.
10961         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10962         invocations from here...
10963         * modules/strncat (configure.ac): ... to here.
10964
10965 2011-05-22  Bruno Haible  <bruno@clisp.org>
10966
10967         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10968         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10969         invocations from here...
10970         * modules/strdup (configure.ac): ... to here.
10971         * modules/strdup-posix (configure.ac): ... and here.
10972
10973 2011-05-22  Bruno Haible  <bruno@clisp.org>
10974
10975         strcspn: Move AC_LIBOBJ invocations to module description.
10976         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10978         here...
10979         * modules/strcspn (configure.ac): ... to here.
10980
10981 2011-05-22  Bruno Haible  <bruno@clisp.org>
10982
10983         strchrnul: Move AC_LIBOBJ invocations to module description.
10984         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10985         gl_PREREQ_STRCHRNUL invocations from here...
10986         * modules/strchrnul (configure.ac): ... to here.
10987
10988 2011-05-22  Bruno Haible  <bruno@clisp.org>
10989
10990         strcasestr*: Move AC_LIBOBJ invocations to module description.
10991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10992         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10993         * modules/strcasestr-simple (configure.ac): ... to here.
10994         * modules/strcasestr (configure.ac): ... and here.
10995
10996 2011-05-22  Bruno Haible  <bruno@clisp.org>
10997
10998         strcase: Move AC_LIBOBJ invocations to module description.
10999         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
11000         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
11001         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
11002         gl_PREREQ_STRNCASECMP invocations from here...
11003         * modules/strcase (configure.ac): ... to here.
11004
11005 2011-05-22  Bruno Haible  <bruno@clisp.org>
11006
11007         stpncpy: Move AC_LIBOBJ invocations to module description.
11008         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
11009         here...
11010         * modules/stpncpy (configure.ac): ... to here.
11011
11012 2011-05-22  Bruno Haible  <bruno@clisp.org>
11013
11014         stpcpy: Move AC_LIBOBJ invocations to module description.
11015         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
11016         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
11017         here...
11018         * modules/stpcpy (configure.ac): ... to here.
11019
11020 2011-05-21  Bruno Haible  <bruno@clisp.org>
11021
11022         stat: Move AC_LIBOBJ invocations to module description.
11023         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
11024         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
11025         here...
11026         * modules/stat (configure.ac): ... to here.
11027
11028 2011-05-21  Bruno Haible  <bruno@clisp.org>
11029
11030         sleep: Move AC_LIBOBJ invocations to module description.
11031         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
11032         * modules/sleep (configure.ac): ... to here.
11033
11034 2011-05-21  Bruno Haible  <bruno@clisp.org>
11035
11036         signbit: Move AC_LIBOBJ invocations to module description.
11037         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
11038         * modules/signbit (configure.ac): ... to here.
11039
11040 2011-05-21  Bruno Haible  <bruno@clisp.org>
11041
11042         sigprocmask: Move AC_LIBOBJ invocations to module description.
11043         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
11044         gl_PREREQ_SIGPROMASK invocations from here...
11045         * modules/sigprocmask (configure.ac): ... to here.
11046
11047 2011-05-21  Bruno Haible  <bruno@clisp.org>
11048
11049         sigaction: Move AC_LIBOBJ invocations to module description.
11050         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
11051         gl_PREREQ_SIGACTION invocations from here...
11052         * modules/sigaction (configure.ac): ... to here.
11053
11054 2011-05-21  Bruno Haible  <bruno@clisp.org>
11055
11056         sig2str: Move AC_LIBOBJ invocations to module description.
11057         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
11058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
11059         here...
11060         * modules/sig2str (configure.ac): ... to here.
11061
11062 2011-05-21  Bruno Haible  <bruno@clisp.org>
11063
11064         setlocale: Move AC_LIBOBJ invocations to module description.
11065         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
11066         gl_PREREQ_SETLOCALE invocations from here...
11067         * modules/setlocale (configure.ac): ... to here.
11068
11069 2011-05-21  Bruno Haible  <bruno@clisp.org>
11070
11071         unsetenv: Move AC_LIBOBJ invocations to module description.
11072         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
11073         and gl_PREREQ_UNSETENV invocations from here...
11074         * modules/unsetenv (configure.ac): ... to here.
11075         (Depends-on): Update.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         setenv: Move AC_LIBOBJ invocations to module description.
11080         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
11081         here...
11082         * modules/setenv (configure.ac): ... to here.
11083
11084 2011-05-21  Bruno Haible  <bruno@clisp.org>
11085
11086         selinux-h: Move AC_LIBOBJ invocations to module description.
11087         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
11088         AC_LIBOBJ invocation from here...
11089         * modules/selinux-h (configure.ac): ... to here.
11090
11091 2011-05-21  Bruno Haible  <bruno@clisp.org>
11092
11093         select: Respect rules for use of AC_LIBOBJ.
11094         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
11095         here...
11096         * modules/select (configure.ac): ... to here.
11097
11098 2011-05-21  Bruno Haible  <bruno@clisp.org>
11099
11100         scandir: Move AC_LIBOBJ invocations to module description.
11101         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
11102         invocations from here...
11103         * modules/scandir (configure.ac): ... to here.
11104
11105 2011-05-21  Bruno Haible  <bruno@clisp.org>
11106
11107         rpmatch: Move AC_LIBOBJ invocations to module description.
11108         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
11109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
11110         here...
11111         * modules/rpmatch (configure.ac): ... to here.
11112
11113 2011-05-21  Bruno Haible  <bruno@clisp.org>
11114
11115         rmdir: Respect rules for use of AC_LIBOBJ.
11116         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
11117         * modules/rmdir (configure.ac): ... to here.
11118
11119 2011-05-21  Bruno Haible  <bruno@clisp.org>
11120
11121         renameat: Move AC_LIBOBJ invocations to module description.
11122         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
11123         here...
11124         * modules/renameat (configure.ac): ... to here.
11125
11126 2011-05-21  Bruno Haible  <bruno@clisp.org>
11127
11128         rename: Respect rules for use of AC_LIBOBJ.
11129         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
11130         here...
11131         * modules/rename (configure.ac): ... to here.
11132
11133 2011-05-21  Bruno Haible  <bruno@clisp.org>
11134
11135         remove: Move AC_LIBOBJ invocations to module description.
11136         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
11137         here...
11138         * modules/remove (configure.ac): ... to here.
11139
11140 2011-05-21  Bruno Haible  <bruno@clisp.org>
11141
11142         relocatable-lib: Move AC_LIBOBJ invocations to module description.
11143         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
11144         macro.
11145         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
11146         * modules/relocatable-lib (configure.ac): ... to here.
11147         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11148         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
11149
11150 2011-05-21  Bruno Haible  <bruno@clisp.org>
11151
11152         relocatable-prog: Move AC_LIBOBJ invocations to module description.
11153         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
11154         here...
11155         * modules/relocatable-prog (configure.ac): ... to here.
11156
11157 2011-05-21  Bruno Haible  <bruno@clisp.org>
11158
11159         regex: Move AC_LIBOBJ invocations to module description.
11160         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
11161         invocations from here...
11162         * modules/regex (configure.ac): ... to here.
11163
11164 2011-05-21  Bruno Haible  <bruno@clisp.org>
11165
11166         realloc-*: Move AC_LIBOBJ invocations to module description.
11167         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
11168         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
11169         AC_LIBOBJ invocations from here...
11170         * modules/realloc-gnu (configure.ac): ... to here.
11171         * modules/realloc-posix (configure.ac): ... and here.
11172
11173 2011-05-21  Bruno Haible  <bruno@clisp.org>
11174
11175         readutmp: Move AC_LIBOBJ invocations to module description.
11176         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
11177         * modules/readutmp (configure.ac): ... to here.
11178
11179 2011-05-21  Bruno Haible  <bruno@clisp.org>
11180
11181         readlinkat: Move AC_LIBOBJ invocations to module description.
11182         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
11183         here...
11184         * modules/readlinkat (configure.ac): ... to here.
11185
11186 2011-05-21  Bruno Haible  <bruno@clisp.org>
11187
11188         readlink: Move AC_LIBOBJ invocations to module description.
11189         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
11190         gl_PREREQ_READLINK invocations from here...
11191         * modules/readlink (configure.ac): ... to here.
11192
11193 2011-05-21  Bruno Haible  <bruno@clisp.org>
11194
11195         readline: Move AC_LIBOBJ invocations to module description.
11196         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
11197         gl_PREREQ_READLINE invocations from here...
11198         * modules/readline (configure.ac): ... to here.
11199
11200 2011-05-21  Bruno Haible  <bruno@clisp.org>
11201
11202         read: Move AC_LIBOBJ invocations to module description.
11203         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
11204         * modules/read (configure.ac): ... to here.
11205
11206 2011-05-21  Bruno Haible  <bruno@clisp.org>
11207
11208         rawmemchr: Move AC_LIBOBJ invocations to module description.
11209         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
11210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
11211         from here...
11212         * modules/rawmemchr (configure.ac): ... to here.
11213
11214 2011-05-21  Bruno Haible  <bruno@clisp.org>
11215
11216         random_r: Move AC_LIBOBJ invocations to module description.
11217         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
11218         gl_PREREQ_RANDOM_R invocations from here...
11219         * modules/random_r (configure.ac): ... to here.
11220
11221 2011-05-21  Bruno Haible  <bruno@clisp.org>
11222
11223         pwrite: Move AC_LIBOBJ invocations to module description.
11224         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11225         * modules/pwrite (configure.ac): ... to here.
11226
11227 2011-05-21  Bruno Haible  <bruno@clisp.org>
11228
11229         putenv: Move AC_LIBOBJ invocations to module description.
11230         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11231         * modules/putenv (configure.ac): ... to here.
11232
11233 2011-05-21  Bruno Haible  <bruno@clisp.org>
11234
11235         login_tty: Move AC_LIBOBJ invocations to module description.
11236         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11237         * modules/login_tty (configure.ac): ... to here.
11238
11239 2011-05-21  Bruno Haible  <bruno@clisp.org>
11240
11241         openpty: Move AC_LIBOBJ invocations to module description.
11242         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11243         * modules/openpty (configure.ac): ... to here.
11244
11245 2011-05-21  Bruno Haible  <bruno@clisp.org>
11246
11247         forkpty: Move AC_LIBOBJ invocations to module description.
11248         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11249         * modules/forkpty (configure.ac): ... to here.
11250
11251 2011-05-21  Bruno Haible  <bruno@clisp.org>
11252
11253         ptsname: Move AC_LIBOBJ invocations to module description.
11254         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11255         invocations from here...
11256         * modules/ptsname (configure.ac): ... to here.
11257
11258 2011-05-21  Bruno Haible  <bruno@clisp.org>
11259
11260         pread: Move AC_LIBOBJ invocations to module description.
11261         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11262         * modules/pread (configure.ac): ... to here.
11263
11264 2011-05-21  Bruno Haible  <bruno@clisp.org>
11265
11266         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11267         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11268         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11269         * modules/posix_spawn (configure.ac): ... to here.
11270         * modules/posix_spawnp (configure.ac): ... and here.
11271
11272 2011-05-21  Bruno Haible  <bruno@clisp.org>
11273
11274         popen: Move AC_LIBOBJ invocations to module description.
11275         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11276         invocations from here...
11277         * modules/popen (configure.ac): ... to here.
11278
11279 2011-05-21  Bruno Haible  <bruno@clisp.org>
11280
11281         poll: Move AC_LIBOBJ invocations to module description.
11282         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11283         invocations from here...
11284         * modules/poll (configure.ac): ... to here.
11285
11286 2011-05-21  Bruno Haible  <bruno@clisp.org>
11287
11288         pipe-posix: Move AC_LIBOBJ invocations to module description.
11289         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11290         * modules/pipe-posix (configure.ac): ... to here.
11291
11292 2011-05-21  Bruno Haible  <bruno@clisp.org>
11293
11294         openat: Respect rules for use of AC_LIBOBJ.
11295         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11296         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11297         * modules/openat (configure.ac): ... to here.
11298
11299 2011-05-21  Bruno Haible  <bruno@clisp.org>
11300
11301         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11302         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11303         invocation from here...
11304         * modules/obstack-printf (configure.ac): ... to here.
11305         * modules/obstack-printf-posix (configure.ac): ... and here.
11306
11307 2011-05-21  Bruno Haible  <bruno@clisp.org>
11308
11309         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11310         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11311         from here...
11312         * modules/nl_langinfo (configure.ac): ... to here.
11313
11314 2011-05-21  Bruno Haible  <bruno@clisp.org>
11315
11316         nanosleep: Move AC_LIBOBJ invocations to module description.
11317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11318         gl_PREREQ_NANOSLEEP invocations from here...
11319         * modules/nanosleep (configure.ac): ... to here.
11320
11321 2011-05-21  Bruno Haible  <bruno@clisp.org>
11322
11323         mountlist: Move AC_LIBOBJ invocations to module description.
11324         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11325         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11326         * modules/mountlist (configure.ac): ... to here.
11327
11328 2011-05-21  Bruno Haible  <bruno@clisp.org>
11329
11330         mktime: Respect rules for use of AC_LIBOBJ.
11331         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11332         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11333         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11334         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11335         * modules/mktime (configure.ac): ... to here.
11336         * modules/mktime-internal (configure.ac): ... and here.
11337         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11338
11339 2011-05-21  Bruno Haible  <bruno@clisp.org>
11340
11341         mkstemps: Move AC_LIBOBJ invocations to module description.
11342         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11343         here...
11344         * modules/mkstemps (configure.ac): ... to here.
11345
11346 2011-05-21  Bruno Haible  <bruno@clisp.org>
11347
11348         mkstemp: Move AC_LIBOBJ invocations to module description.
11349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11350         gl_PREREQ_MKSTEMP invocations from here...
11351         * modules/mkstemp (configure.ac): ... to here.
11352
11353 2011-05-21  Bruno Haible  <bruno@clisp.org>
11354
11355         mkostemps: Move AC_LIBOBJ invocations to module description.
11356         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11357         here...
11358         * modules/mkostemps (configure.ac): ... to here.
11359
11360 2011-05-21  Bruno Haible  <bruno@clisp.org>
11361
11362         mkostemp: Move AC_LIBOBJ invocations to module description.
11363         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11364         gl_PREREQ_MKOSTEMP invocations from here...
11365         * modules/mkostemp (configure.ac): ... to here.
11366
11367 2011-05-21  Bruno Haible  <bruno@clisp.org>
11368
11369         mknod: Move AC_LIBOBJ invocations to module description.
11370         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11371         * modules/mknod (configure.ac): ... to here.
11372
11373 2011-05-21  Bruno Haible  <bruno@clisp.org>
11374
11375         mkfifoat: Move AC_LIBOBJ invocations to module description.
11376         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11377         here...
11378         * modules/mkfifoat (configure.ac): ... to here.
11379
11380 2011-05-21  Bruno Haible  <bruno@clisp.org>
11381
11382         mkfifo: Respect rules for use of AC_LIBOBJ.
11383         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11384         here...
11385         * modules/mkfifo (configure.ac): ... to here.
11386
11387 2011-05-21  Bruno Haible  <bruno@clisp.org>
11388
11389         mkdtemp: Move AC_LIBOBJ invocations to module description.
11390         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11391         invocations from here...
11392         * modules/mkdtemp (configure.ac): ... to here.
11393
11394 2011-05-21  Bruno Haible  <bruno@clisp.org>
11395
11396         mkdir: Move AC_LIBOBJ invocations to module description.
11397         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11398         * modules/mkdir (configure.ac): ... to here.
11399
11400 2011-05-21  Bruno Haible  <bruno@clisp.org>
11401
11402         memset: Move AC_LIBOBJ invocations to module description.
11403         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11404         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11405         here...
11406         * modules/memset (configure.ac): ... to here.
11407
11408 2011-05-21  Bruno Haible  <bruno@clisp.org>
11409
11410         memrchr: Move AC_LIBOBJ invocations to module description.
11411         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11412         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11413         here...
11414         * modules/memrchr (configure.ac): ... to here.
11415
11416 2011-05-21  Bruno Haible  <bruno@clisp.org>
11417
11418         mempcpy: Move AC_LIBOBJ invocations to module description.
11419         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11421         here...
11422         * modules/mempcpy (configure.ac): ... to here.
11423
11424 2011-05-21  Bruno Haible  <bruno@clisp.org>
11425
11426         memmove: Move AC_LIBOBJ invocations to module description.
11427         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11429         here...
11430         * modules/memmove (configure.ac): ... to here.
11431
11432 2011-05-21  Bruno Haible  <bruno@clisp.org>
11433
11434         memmem*: Move AC_LIBOBJ invocations to module description.
11435         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11436         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11437         here...
11438         (gl_FUNC_MEMMEM): ... and here...
11439         * modules/memmem-simple (configure.ac): ... to here.
11440         * modules/memmem (configure.ac): ... and here.
11441
11442 2011-05-21  Bruno Haible  <bruno@clisp.org>
11443
11444         memcpy: Move AC_LIBOBJ invocations to module description.
11445         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11447         here...
11448         * modules/memcpy (configure.ac): ... to here.
11449
11450 2011-05-21  Bruno Haible  <bruno@clisp.org>
11451
11452         memcmp: Simplify autoconf macro.
11453         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11454         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11455         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11456
11457 2011-05-21  Bruno Haible  <bruno@clisp.org>
11458
11459         memcmp: Move AC_LIBOBJ invocations to module description.
11460         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11461         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11462         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11463         * modules/memcmp (configure.ac): ... to here.
11464         (Depends-on): Update conditions.
11465
11466 2011-05-21  Bruno Haible  <bruno@clisp.org>
11467
11468         memchr: Respect rules for use of AC_LIBOBJ.
11469         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11470         invocations from here...
11471         * modules/memchr (configure.ac): ... to here.
11472
11473 2011-05-21  Bruno Haible  <bruno@clisp.org>
11474
11475         mbtowc: Move AC_LIBOBJ invocations to module description.
11476         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11477         invocations from here...
11478         * modules/mbtowc (configure.ac): ... to here.
11479
11480 2011-05-21  Bruno Haible  <bruno@clisp.org>
11481
11482         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11484         gl_PREREQ_MBSRTOWCS invocations from here...
11485         * modules/mbsrtowcs (configure.ac): ... to here.
11486
11487 2011-05-21  Bruno Haible  <bruno@clisp.org>
11488
11489         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11490         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11491         gl_PREREQ_MBSNRTOWCS invocations from here...
11492         * modules/mbsnrtowcs (configure.ac): ... to here.
11493
11494 2011-05-21  Bruno Haible  <bruno@clisp.org>
11495
11496         mbsinit: Move AC_LIBOBJ invocations to module description.
11497         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11498         invocations from here...
11499         * modules/mbsinit (configure.ac): ... to here.
11500
11501 2011-05-21  Bruno Haible  <bruno@clisp.org>
11502
11503         mbrlen: Move AC_LIBOBJ invocations to module description.
11504         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11505         invocations from here...
11506         * modules/mbrlen (configure.ac): ... to here.
11507
11508 2011-05-21  Bruno Haible  <bruno@clisp.org>
11509
11510         mbrtowc: Respect rules for use of AC_LIBOBJ.
11511         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11512         invocations from here...
11513         * modules/mbrtowc (configure.ac): ... to here.
11514
11515 2011-05-21  Bruno Haible  <bruno@clisp.org>
11516
11517         malloc-*: Move AC_LIBOBJ invocations to module description.
11518         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11519         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11520         AC_LIBOBJ invocations from here...
11521         * modules/malloc-gnu (configure.ac): ... to here.
11522         * modules/malloc-posix (configure.ac): ... and here.
11523
11524 2011-05-21  Bruno Haible  <bruno@clisp.org>
11525
11526         lstat, openat: Respect rules for use of AC_LIBOBJ.
11527         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11528         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11529         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11530         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11531         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11532         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11533         here.
11534         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11535
11536 2011-05-21  Bruno Haible  <bruno@clisp.org>
11537
11538         lseek: Move AC_LIBOBJ invocations to module description.
11539         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11540         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11541         * modules/lseek (configure.ac): ... to here.
11542
11543 2011-05-21  Bruno Haible  <bruno@clisp.org>
11544
11545         linkat: Move AC_LIBOBJ invocations to module description.
11546         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11547         here...
11548         * modules/linkat (configure.ac): ... to here.
11549
11550 2011-05-21  Bruno Haible  <bruno@clisp.org>
11551
11552         link: Respect rules for use of AC_LIBOBJ.
11553         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11554         * modules/link (configure.ac): ... to here.
11555
11556 2011-05-21  Bruno Haible  <bruno@clisp.org>
11557
11558         lchown: Move AC_LIBOBJ invocations to module description.
11559         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11560         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11561         * modules/lchown (configure.ac): ... to here.
11562
11563 2011-05-21  Bruno Haible  <bruno@clisp.org>
11564
11565         iswctype: Move AC_LIBOBJ invocations to module description.
11566         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11567         here...
11568         * modules/iswctype (configure.ac): ... to here.
11569
11570 2011-05-21  Bruno Haible  <bruno@clisp.org>
11571
11572         iswblank: Move AC_LIBOBJ invocations to module description.
11573         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11574         here...
11575         * modules/iswblank (configure.ac): ... to here.
11576
11577 2011-05-21  Bruno Haible  <bruno@clisp.org>
11578
11579         atanl: Move AC_LIBOBJ invocations to module description.
11580         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11581         * modules/atanl (configure.ac): ... to here.
11582
11583 2011-05-21  Bruno Haible  <bruno@clisp.org>
11584
11585         acosl: Move AC_LIBOBJ invocations to module description.
11586         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11587         * modules/acosl (configure.ac): ... to here.
11588
11589 2011-05-21  Bruno Haible  <bruno@clisp.org>
11590
11591         asinl: Respect rules for use of AC_LIBOBJ.
11592         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11593         * modules/asinl (configure.ac): ... to here.
11594
11595 2011-05-21  Bruno Haible  <bruno@clisp.org>
11596
11597         tanl: Move AC_LIBOBJ invocations to module description.
11598         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11599         * modules/tanl (configure.ac): ... to here.
11600
11601 2011-05-21  Bruno Haible  <bruno@clisp.org>
11602
11603         cosl: Move AC_LIBOBJ invocations to module description.
11604         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11605         * modules/cosl (configure.ac): ... to here.
11606
11607 2011-05-21  Bruno Haible  <bruno@clisp.org>
11608
11609         sinl: Move AC_LIBOBJ invocations to module description.
11610         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11611         * modules/sinl (configure.ac): ... to here.
11612
11613 2011-05-21  Bruno Haible  <bruno@clisp.org>
11614
11615         logl: Move AC_LIBOBJ invocations to module description.
11616         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11617         * modules/logl (configure.ac): ... to here.
11618
11619 2011-05-21  Bruno Haible  <bruno@clisp.org>
11620
11621         expl: Move AC_LIBOBJ invocations to module description.
11622         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11623         * modules/expl (configure.ac): ... to here.
11624
11625 2011-05-21  Bruno Haible  <bruno@clisp.org>
11626
11627         roundl: Move AC_LIBOBJ invocations to module description.
11628         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11629         * modules/roundl (configure.ac): ... to here.
11630
11631 2011-05-21  Bruno Haible  <bruno@clisp.org>
11632
11633         round: Move AC_LIBOBJ invocations to module description.
11634         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11635         * modules/round (configure.ac): ... to here.
11636
11637 2011-05-21  Bruno Haible  <bruno@clisp.org>
11638
11639         roundf: Move AC_LIBOBJ invocations to module description.
11640         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11641         * modules/roundf (configure.ac): ... to here.
11642
11643 2011-05-21  Bruno Haible  <bruno@clisp.org>
11644
11645         truncl: Move AC_LIBOBJ invocations to module description.
11646         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11647         * modules/truncl (configure.ac): ... to here.
11648
11649 2011-05-21  Bruno Haible  <bruno@clisp.org>
11650
11651         trunc: Move AC_LIBOBJ invocations to module description.
11652         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11653         * modules/trunc (configure.ac): ... to here.
11654
11655 2011-05-21  Bruno Haible  <bruno@clisp.org>
11656
11657         truncf: Move AC_LIBOBJ invocations to module description.
11658         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11659         * modules/truncf (configure.ac): ... to here.
11660
11661 2011-05-21  Bruno Haible  <bruno@clisp.org>
11662
11663         ceill: Move AC_LIBOBJ invocations to module description.
11664         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11665         * modules/ceill (configure.ac): ... to here.
11666
11667 2011-05-21  Bruno Haible  <bruno@clisp.org>
11668
11669         ceil: Move AC_LIBOBJ invocations to module description.
11670         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11671         * modules/ceil (configure.ac): ... to here.
11672
11673 2011-05-21  Bruno Haible  <bruno@clisp.org>
11674
11675         ceilf: Move AC_LIBOBJ invocations to module description.
11676         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11677         * modules/ceilf (configure.ac): ... to here.
11678
11679 2011-05-21  Bruno Haible  <bruno@clisp.org>
11680
11681         floorl: Respect rules for use of AC_LIBOBJ.
11682         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11683         * modules/floorl (configure.ac): ... to here.
11684
11685 2011-05-21  Bruno Haible  <bruno@clisp.org>
11686
11687         floor: Respect rules for use of AC_LIBOBJ.
11688         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11689         * modules/floor (configure.ac): ... to here.
11690
11691 2011-05-21  Bruno Haible  <bruno@clisp.org>
11692
11693         floorf: Move AC_LIBOBJ invocations to module description.
11694         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11695         * modules/floorf (configure.ac): ... to here.
11696
11697 2011-05-20  Bruno Haible  <bruno@clisp.org>
11698
11699         sqrtl: Respect rules for use of AC_LIBOBJ.
11700         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11701         * modules/sqrtl (configure.ac): ... to here.
11702
11703 2011-05-20  Bruno Haible  <bruno@clisp.org>
11704
11705         ldexpl: Respect rules for use of AC_LIBOBJ.
11706         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11707         * modules/ldexpl (configure.ac): ... to here.
11708
11709 2011-05-20  Bruno Haible  <bruno@clisp.org>
11710
11711         frexpl*: Respect rules for use of AC_LIBOBJ.
11712         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11713         invocation from here...
11714         * modules/frexpl (configure.ac): ... to here.
11715         * modules/frexpl-nolibm (configure.ac): ... and here.
11716
11717 2011-05-20  Bruno Haible  <bruno@clisp.org>
11718
11719         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11720         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11721         invocation from here...
11722         * modules/frexp (configure.ac): ... to here.
11723         * modules/frexp-nolibm (configure.ac): ... and here.
11724
11725 2011-05-20  Bruno Haible  <bruno@clisp.org>
11726
11727         isnan: Respect rules for use of AC_LIBOBJ.
11728         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11729         invocations here.
11730         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11731         REPLACE_ISNAN.
11732         * modules/isnand (configure.ac): Likewise.
11733         * modules/isnanl (configure.ac): Likewise.
11734
11735 2011-05-20  Bruno Haible  <bruno@clisp.org>
11736
11737         isnanl*: Respect rules for use of AC_LIBOBJ.
11738         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11739         invocation from here...
11740         * modules/isnanl (configure.ac): ... to here.
11741         * modules/isnanl-nolibm (configure.ac): ... and here.
11742
11743 2011-05-20  Bruno Haible  <bruno@clisp.org>
11744
11745         isnand*: Move AC_LIBOBJ invocations to module description.
11746         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11747         invocation from here...
11748         * modules/isnand (configure.ac): ... to here.
11749         * modules/isnand-nolibm (configure.ac): ... and here.
11750
11751 2011-05-20  Bruno Haible  <bruno@clisp.org>
11752
11753         isnanf*: Move AC_LIBOBJ invocations to module description.
11754         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11755         invocation from here...
11756         * modules/isnanf (configure.ac): ... to here.
11757         * modules/isnanf-nolibm (configure.ac): ... and here.
11758
11759 2011-05-20  Bruno Haible  <bruno@clisp.org>
11760
11761         isnan*: Separate the AC_LIBOBJ invocations.
11762         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11763         AC_LIBOBJ invocation.
11764         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11765         here.
11766         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11767         AC_LIBOBJ invocation.
11768         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11769         here.
11770         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11771         AC_LIBOBJ invocation.
11772         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11773         here.
11774         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11775
11776 2011-05-08  Bruno Haible  <bruno@clisp.org>
11777
11778         isinf: Move AC_LIBOBJ invocations to module description.
11779         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11780         * modules/isinf (configure.ac): ... to here.
11781
11782 2011-05-08  Bruno Haible  <bruno@clisp.org>
11783
11784         isfinite: Move AC_LIBOBJ invocations to module description.
11785         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11786         * modules/isfinite (configure.ac): ... to here.
11787
11788 2011-05-08  Bruno Haible  <bruno@clisp.org>
11789
11790         isblank: Move AC_LIBOBJ invocations to module description.
11791         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11792         here...
11793         * modules/isblank (configure.ac): ... to here.
11794
11795 2011-05-08  Bruno Haible  <bruno@clisp.org>
11796
11797         isapipe: Move AC_LIBOBJ invocations to module description.
11798         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11799         gl_PREREQ_ISAPIPE invocations from here...
11800         * modules/isapipe (configure.ac): ... to here.
11801         (Depends-on): Update condition.
11802
11803 2011-05-08  Bruno Haible  <bruno@clisp.org>
11804
11805         ioctl: Move AC_LIBOBJ invocations to module description.
11806         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11807         invocations from here...
11808         * modules/ioctl (configure.ac): ... to here.
11809         (Depends-on): Update condition.
11810
11811 2011-05-08  Bruno Haible  <bruno@clisp.org>
11812
11813         imaxdiv: Move AC_LIBOBJ invocations to module description.
11814         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11815         invocations from here...
11816         * modules/imaxdiv (configure.ac): ... to here.
11817
11818 2011-05-08  Bruno Haible  <bruno@clisp.org>
11819
11820         imaxabs: Move AC_LIBOBJ invocations to module description.
11821         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11822         invocations from here...
11823         * modules/imaxabs (configure.ac): ... to here.
11824
11825 2011-05-08  Bruno Haible  <bruno@clisp.org>
11826
11827         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11829         AC_LIBOBJ invocations from here...
11830         * modules/getaddrinfo (configure.ac): ... to here.
11831         (Depends-on): Add conditions.
11832
11833 2011-05-08  Bruno Haible  <bruno@clisp.org>
11834
11835         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11836         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11837         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11838         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11839         (gl_PREREQ_INET_PTON): ... from here.
11840         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11841         gl_PREREQ_INET_PTON here.
11842         (Depends-on): Update condition.
11843
11844 2011-05-08  Bruno Haible  <bruno@clisp.org>
11845
11846         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11847         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11848         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11849         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11850         (gl_PREREQ_INET_NTOP): ... from here.
11851         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11852         gl_PREREQ_INET_NTOP here.
11853         (Depends-on): Update condition.
11854
11855 2011-05-08  Bruno Haible  <bruno@clisp.org>
11856
11857         iconv_open: Move AC_LIBOBJ invocations to module description.
11858         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11859         AC_LIBOBJ invocations from here...
11860         * modules/iconv_open (configure.ac): ... to here.
11861
11862 2011-05-08  Bruno Haible  <bruno@clisp.org>
11863
11864         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11865         If module 'iconv_open' is among the main modules and module
11866         'iconv_open-utf' is among the tests dependencies, then
11867         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11868         return the special iconv_t values. Therefore iconv() and iconv_close()
11869         must support these special iconv_t values, already in lib, not only in
11870         tests.
11871         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11872         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11873         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11874         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11875         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11876         (Depends-on): Add the dependencies of iconv_open-utf.
11877         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11878         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11879         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11880
11881 2011-05-08  Bruno Haible  <bruno@clisp.org>
11882
11883         group-member: Move AC_LIBOBJ invocations to module description.
11884         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11885         gl_PREREQ_GROUP_MEMBER invocations from here...
11886         * modules/group-member (configure.ac): ... to here.
11887
11888 2011-05-08  Bruno Haible  <bruno@clisp.org>
11889
11890         grantpt: Move AC_LIBOBJ invocations to module description.
11891         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11892         invocations from here...
11893         * modules/grantpt (configure.ac): ... to here.
11894
11895 2011-05-08  Bruno Haible  <bruno@clisp.org>
11896
11897         glob: Move AC_LIBOBJ invocations to module description.
11898         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11899         from here...
11900         * modules/glob (configure.ac): ... to here.
11901
11902 2011-05-08  Bruno Haible  <bruno@clisp.org>
11903
11904         getusershell: Move AC_LIBOBJ invocations to module description.
11905         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11906         Move AC_LIBOBJ invocation from here...
11907         * modules/getusershell (configure.ac): ... to here.
11908         (Depends-on): Update condition.
11909
11910 2011-05-08  Bruno Haible  <bruno@clisp.org>
11911
11912         gettimeofday: Move AC_LIBOBJ invocations to module description.
11913         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11914         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11915         gl_PREREQ_GETTIMEOFDAY invocations from here...
11916         * modules/gettimeofday (configure.ac): ... to here.
11917
11918 2011-05-08  Bruno Haible  <bruno@clisp.org>
11919
11920         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11921         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11922         just gl_FUNC_TZSET.
11923         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11924         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11926         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11927
11928 2011-05-08  Bruno Haible  <bruno@clisp.org>
11929
11930         getsubopt: Move AC_LIBOBJ invocations to module description.
11931         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11932         gl_PREREQ_GETSUBOPT invocations from here...
11933         * modules/getsubopt (configure.ac): ... to here.
11934
11935 2011-05-08  Bruno Haible  <bruno@clisp.org>
11936
11937         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11938         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11939         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11940         * modules/getpass-gnu (configure.ac): ... to here.
11941
11942 2011-05-08  Bruno Haible  <bruno@clisp.org>
11943
11944         getpass: Move AC_LIBOBJ invocations to module description.
11945         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11946         gl_PREREQ_GETPASS invocations from here...
11947         * modules/getpass (configure.ac): ... to here.
11948
11949 2011-05-08  Bruno Haible  <bruno@clisp.org>
11950
11951         getpagesize: Move AC_LIBOBJ invocations to module description.
11952         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11953         from here...
11954         * modules/getpagesize (configure.ac): ... to here.
11955
11956 2011-05-08  Bruno Haible  <bruno@clisp.org>
11957
11958         getopt: Move AC_LIBOBJ invocations to module description.
11959         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11960         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11961         invocations from here...
11962         * modules/getopt-gnu (configure.ac): ... to here.
11963         * modules/getopt-posix (configure.ac): ... and here.
11964         (Depends-on): Update condition.
11965
11966 2011-05-08  Bruno Haible  <bruno@clisp.org>
11967
11968         getopt, argp: Respect rules for use of AC_LIBOBJ.
11969         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11970         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11971         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11972         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11973
11974 2011-05-08  Bruno Haible  <bruno@clisp.org>
11975
11976         getlogin_r: Move AC_LIBOBJ invocations to module description.
11977         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11978         gl_PREREQ_GETLOGIN_R invocations from here...
11979         * modules/getlogin_r (configure.ac): ... to here.
11980
11981 2011-05-08  Bruno Haible  <bruno@clisp.org>
11982
11983         getlogin: Move AC_LIBOBJ invocations to module description.
11984         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11985         here...
11986         * modules/getlogin (configure.ac): ... to here.
11987
11988 2011-05-08  Bruno Haible  <bruno@clisp.org>
11989
11990         getloadavg: Move AC_LIBOBJ invocations to module description.
11991         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11992         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11993         * modules/getloadavg (configure.ac): ... to here.
11994
11995 2011-05-08  Bruno Haible  <bruno@clisp.org>
11996
11997         gethrxtime: Move AC_LIBOBJ invocations to module description.
11998         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11999         LIB_GETHRXTIME from here...
12000         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
12001         invocations from here...
12002         * modules/gethrxtime (configure.ac): ... to here.
12003
12004 2011-05-08  Bruno Haible  <bruno@clisp.org>
12005
12006         gethostname: Move AC_LIBOBJ invocations to module description.
12007         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
12008         gl_PREREQ_GETHOSTNAME invocations from here...
12009         * modules/gethostname (configure.ac): ... to here.
12010
12011 2011-05-08  Bruno Haible  <bruno@clisp.org>
12012
12013         getgroups: Move AC_LIBOBJ invocations to module description.
12014         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
12015         here...
12016         * modules/getgroups (configure.ac): ... to here.
12017
12018 2011-05-08  Bruno Haible  <bruno@clisp.org>
12019
12020         getdtablesize: Move AC_LIBOBJ invocations to module description.
12021         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
12022         invocation from here...
12023         * modules/getdtablesize (configure.ac): ... to here.
12024
12025 2011-05-08  Bruno Haible  <bruno@clisp.org>
12026
12027         getdomainname: Move AC_LIBOBJ invocations to module description.
12028         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
12029         gl_PREREQ_GETDOMAINNAME invocations from here...
12030         * modules/getdomainname (configure.ac): ... to here.
12031
12032 2011-05-08  Bruno Haible  <bruno@clisp.org>
12033
12034         getline: Move AC_LIBOBJ invocations to module description.
12035         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
12036         invocations from here...
12037         * modules/getline (configure.ac): ... to here.
12038
12039 2011-05-08  Bruno Haible  <bruno@clisp.org>
12040
12041         getline: Simplify.
12042         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
12043         It's already handled through the module dependency.
12044
12045 2011-05-08  Bruno Haible  <bruno@clisp.org>
12046
12047         getdelim: Move AC_LIBOBJ invocations to module description.
12048         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
12049         and gl_PREREQ_GETDELIM invocations from here...
12050         * modules/getdelim (configure.ac): ... to here.
12051         (Depends-on): Fix condition.
12052
12053 2011-05-08  Bruno Haible  <bruno@clisp.org>
12054
12055         getcwd: Move AC_LIBOBJ invocations to module description.
12056         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
12057         invocations from here...
12058         * modules/getcwd (configure.ac): ... to here.
12059
12060 2011-05-08  Bruno Haible  <bruno@clisp.org>
12061
12062         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
12063         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
12064         here...
12065         * modules/getcwd-lgpl (configure.ac): ... to here.
12066
12067 2011-05-07  Bruno Haible  <bruno@clisp.org>
12068
12069         crypto/gc: Move AC_LIBOBJ invocations to module description.
12070         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
12071         * modules/crypto/gc (configure.ac): ... to here.
12072
12073 2011-05-07  Bruno Haible  <bruno@clisp.org>
12074
12075         fwriting: Move AC_LIBOBJ invocations to module description.
12076         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
12077         here...
12078         * modules/fwriting (configure.ac): ... to here.
12079
12080 2011-05-07  Bruno Haible  <bruno@clisp.org>
12081
12082         fwritable: Move AC_LIBOBJ invocations to module description.
12083         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12084         here...
12085         * modules/fwritable (configure.ac): ... to here.
12086
12087 2011-05-07  Bruno Haible  <bruno@clisp.org>
12088
12089         futimens: Move AC_LIBOBJ invocations to module description.
12090         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
12091         here...
12092         * modules/futimens (configure.ac): ... to here.
12093
12094 2011-05-07  Bruno Haible  <bruno@clisp.org>
12095
12096         ftruncate: Move AC_LIBOBJ invocations to module description.
12097         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
12098         gl_PREREQ_FTRUNCATE invocations from here...
12099         * modules/ftruncate (configure.ac): ... to here.
12100
12101 2011-05-07  Bruno Haible  <bruno@clisp.org>
12102
12103         fsync: Move AC_LIBOBJ invocations to module description.
12104         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
12105         invocations from here...
12106         * modules/fsync (configure.ac): ... to here.
12107
12108 2011-05-07  Bruno Haible  <bruno@clisp.org>
12109
12110         fsusage: Move AC_LIBOBJ invocations to module description.
12111         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
12112         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
12113         * modules/fsusage (configure.ac): ... to here.
12114
12115 2011-05-07  Bruno Haible  <bruno@clisp.org>
12116
12117         freopen: Move AC_LIBOBJ invocations to module description.
12118         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
12119         invocations from here...
12120         * modules/freopen (configure.ac): ... to here.
12121
12122 2011-05-07  Bruno Haible  <bruno@clisp.org>
12123
12124         free: Move AC_LIBOBJ invocations to module description.
12125         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
12126         invocations from here...
12127         * modules/free (configure.ac): ... to here.
12128
12129 2011-05-07  Bruno Haible  <bruno@clisp.org>
12130
12131         freadable: Move AC_LIBOBJ invocations to module description.
12132         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
12133         here...
12134         * modules/freadable (configure.ac): ... to here.
12135
12136 2011-05-07  Bruno Haible  <bruno@clisp.org>
12137
12138         fpurge: Move AC_LIBOBJ invocations to module description.
12139         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
12140         invocations from here...
12141         * modules/fpurge (configure.ac): ... to here.
12142
12143 2011-05-07  Bruno Haible  <bruno@clisp.org>
12144
12145         fpending: Move AC_LIBOBJ invocations to module description.
12146         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12147         gl_FUNC_FPENDING.
12148         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
12149         invocations from here...
12150         * modules/fpending (configure.ac): ... to here.
12151
12152 2011-05-07  Bruno Haible  <bruno@clisp.org>
12153
12154         fopen: Move AC_LIBOBJ invocations to module description.
12155         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
12156         invocations from here...
12157         * modules/fopen (configure.ac): ... to here.
12158
12159 2011-05-07  Bruno Haible  <bruno@clisp.org>
12160
12161         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
12162         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
12163         gl_FUNC_FNMATCH_POSIX.
12164         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
12165         invocations from here...
12166         * modules/fnmatch (configure.ac): ... to here.
12167         * modules/fnmatch-gnu (configure.ac): ... and here.
12168
12169 2011-05-07  Bruno Haible  <bruno@clisp.org>
12170
12171         flock: Move AC_LIBOBJ invocations to module description.
12172         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
12173         invocations from here...
12174         * modules/flock (configure.ac): ... to here.
12175
12176 2011-05-07  Bruno Haible  <bruno@clisp.org>
12177
12178         fileblocks: Move AC_LIBOBJ invocations to module description.
12179         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12180         gl_PREREQ_FILEBLOCKS invocations from here...
12181         * modules/fileblocks (configure.ac): ... to here.
12182
12183 2011-05-06  Bruno Haible  <bruno@clisp.org>
12184
12185         fflush: Move AC_LIBOBJ invocations to module description.
12186         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
12187         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
12188         invocations from here...
12189         * modules/fflush (configure.ac): ... to here.
12190
12191 2011-05-06  Bruno Haible  <bruno@clisp.org>
12192
12193         fdopendir: Move AC_LIBOBJ invocations to module description.
12194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
12195         here...
12196         * modules/fdopendir (configure.ac): ... to here.
12197         (Depends-on): Improve conditions.
12198
12199 2011-05-06  Bruno Haible  <bruno@clisp.org>
12200
12201         _Exit: Move AC_LIBOBJ invocations to module description.
12202         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
12203         invocations from here...
12204         * modules/_Exit (configure.ac): ... to here.
12205
12206 2011-05-21  Bruno Haible  <bruno@clisp.org>
12207
12208         euidaccess: Respect rules for use of AC_LIBOBJ.
12209         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
12211         from here...
12212         * modules/euidaccess (configure.ac): ... to here.
12213
12214 2011-05-06  Bruno Haible  <bruno@clisp.org>
12215
12216         error: Move AC_LIBOBJ invocations to module description.
12217         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
12218         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
12219         invocations from here...
12220         * modules/error (configure.ac): ... to here.
12221
12222 2011-05-06  Bruno Haible  <bruno@clisp.org>
12223
12224         duplocale: Move AC_LIBOBJ invocations to module description.
12225         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12226         gl_PREREQ_DUPLOCALE invocations from here...
12227         * modules/duplocale (configure.ac): ... to here.
12228
12229 2011-05-05  Bruno Haible  <bruno@clisp.org>
12230
12231         dirfd: Move AC_LIBOBJ invocations to module description.
12232         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12233         gl_FUNC_DIRFD.
12234         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12235         here...
12236         * modules/dirfd (configure.ac): ... to here.
12237         (Depends-on): Fix condition.
12238
12239 2011-05-05  Bruno Haible  <bruno@clisp.org>
12240
12241         chown: Respect rules for use of AC_LIBOBJ.
12242         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12243         * modules/chown (configure.ac): ... to here.
12244
12245 2011-05-05  Bruno Haible  <bruno@clisp.org>
12246
12247         chdir-long: Move AC_LIBOBJ invocations to module description.
12248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12249         gl_PREREQ_CHDIR_LONG invocations from here...
12250         * modules/chdir-long (configure.ac): ... to here.
12251
12252 2011-05-05  Bruno Haible  <bruno@clisp.org>
12253
12254         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12255         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12256         from here...
12257         * modules/canonicalize-lgpl (configure.ac): ... to here.
12258
12259 2011-05-05  Bruno Haible  <bruno@clisp.org>
12260
12261         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12262         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12263         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12264         REPLACE_CALLOC.
12265         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12266         * modules/calloc-gnu (configure.ac): Likewise.
12267
12268 2011-05-05  Bruno Haible  <bruno@clisp.org>
12269
12270         btowc: Move AC_LIBOBJ invocations to module description.
12271         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12272         invocations from here...
12273         * modules/btowc (configure.ac): ... to here.
12274
12275 2011-05-21  Bruno Haible  <bruno@clisp.org>
12276
12277         atexit: Move AC_LIBOBJ invocations to module description.
12278         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12280         here...
12281         * modules/atexit (configure.ac): ... to here.
12282
12283 2011-05-05  Bruno Haible  <bruno@clisp.org>
12284
12285         atoll: Move AC_LIBOBJ invocations to module description.
12286         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12287         invocations from here...
12288         * modules/atoll (configure.ac): ... to here.
12289
12290 2011-05-05  Bruno Haible  <bruno@clisp.org>
12291
12292         argz: Move AC_LIBOBJ invocations to module description.
12293         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12294         * modules/argz (configure.ac): ... to here.
12295
12296 2011-05-05  Bruno Haible  <bruno@clisp.org>
12297
12298         alphasort: Move AC_LIBOBJ invocations to module description.
12299         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12300         gl_PREREQ_ALPHASORT invocations from here...
12301         * modules/alphasort (configure.ac): ... to here.
12302
12303 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12304
12305         verify: new macro verify_expr; verify_true deprecated
12306         * NEWS: Mention this.
12307         * doc/verify.texi (Compile-time Assertions): Document this.
12308         * lib/verify.h (verify_true): Deprecate.
12309         (verify_expr): New macro.
12310         * tests/test-verify.c (function): Test verify_expr.
12311
12312 2011-06-14  Jim Meyering  <meyering@redhat.com>
12313
12314         init.sh: give more portable redirection-related advice in a comment
12315         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12316         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12317         for lots of discussion.  Stefano Lattarini suggested the solution
12318         of putting "9>&2" after the command.  Reported by Bruno Haible.
12319
12320 2011-06-13  Bruno Haible  <bruno@clisp.org>
12321
12322         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12323         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12324         'none'.
12325
12326 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12327
12328         ftoastr: use strtof only if HAVE_STRTOF
12329         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12331         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12332         * modules/ftoastr (configure.ac): Check for strtof.
12333
12334 2011-06-13  Bruno Haible  <bruno@clisp.org>
12335
12336         gnulib-tool: Addendum to 2011-06-08 commit.
12337         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12338         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12339
12340 2011-06-13  Bruno Haible  <bruno@clisp.org>
12341
12342         fseeko: Provide a non-inline replacement of fseek().
12343         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12344         * modules/fseeko (Depends-on): Add fseek.
12345         * modules/fseek (License): Change to LGPLv2+.
12346
12347 2011-06-13  Bruno Haible  <bruno@clisp.org>
12348
12349         ftello: Provide a non-inline replacement of ftell().
12350         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12351         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12352         not have ftello() (such as on mingw).
12353         * modules/ftello (Depends-on): Add ftell.
12354         * modules/ftell (License): Change to LGPLv2+.
12355
12356 2011-05-07  Bruno Haible  <bruno@clisp.org>
12357
12358         ftell: Move AC_LIBOBJ invocations to module description.
12359         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12360         * modules/ftell (configure.ac): ... to here.
12361
12362 2011-05-07  Bruno Haible  <bruno@clisp.org>
12363
12364         ftello: Respect rules for use of AC_LIBOBJ.
12365         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12366         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12367         here...
12368         * modules/ftello (configure.ac): ... to here.
12369
12370 2011-05-07  Bruno Haible  <bruno@clisp.org>
12371
12372         fseeko: Simplify.
12373         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12374         (gl_FUNC_FSEEKO): Inline it here.
12375
12376 2011-05-07  Bruno Haible  <bruno@clisp.org>
12377
12378         fseek: Move AC_LIBOBJ invocations to module description.
12379         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12380         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12381         * modules/fseek (configure.ac): ... to here.
12382
12383 2011-05-07  Bruno Haible  <bruno@clisp.org>
12384
12385         fseek: Respect rules for use of AC_LIBOBJ.
12386         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12387         here...
12388         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12389
12390 2011-05-07  Bruno Haible  <bruno@clisp.org>
12391
12392         fseeko: Respect rules for use of AC_LIBOBJ.
12393         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12394         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12395         here...
12396         * modules/fseeko (configure.ac): ... to here.
12397
12398 2011-06-13  Bruno Haible  <bruno@clisp.org>
12399
12400         gnulib-tool: Allow comments in the 'Depends-on' section.
12401         * doc/gnulib.texi (Module description): Mention comment syntax in the
12402         Depends-on section.
12403         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12404
12405 2011-06-13  Bruno Haible  <bruno@clisp.org>
12406
12407         file-set.h: guard __attibute__ use, now that it's not always defined
12408         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12409         versions that support it.  This fixes a coreutils build failure with
12410         the vendor cc on HP-UX 11.31.
12411
12412 2011-06-12  Bruno Haible  <bruno@clisp.org>
12413
12414         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12415         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12416         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12417         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12418         (acl, aclsort): New declarations.
12419         (aclv_nontrivial): New declaration.
12420         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12421         (file_has_acl): Read also the second kind of HP-UX ACLs.
12422         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12423         kind of HP-UX ACLs if the first kind fails.
12424         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12425         second kind of HP-UX ACLs.
12426         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12427         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12428         agree.
12429         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12430         hpuxjfs.
12431         Handle hpuxjfs.
12432         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12433         hpuxjfs.
12434         Handle hpuxjfs.
12435         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12436         (func_test_same_acls): Use both lsacl and getacl.
12437         Handle hpuxjfs.
12438         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12439         (func_test_same_acls): Use both lsacl and getacl.
12440         Handle hpuxjfs.
12441
12442 2011-06-12  Bruno Haible  <bruno@clisp.org>
12443
12444         acl: Complete the 2010-08-10 fix.
12445         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12446         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12447         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12448         explicitly.
12449         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12450         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12451
12452 2011-06-12  Bruno Haible  <bruno@clisp.org>
12453
12454         spawn-pipe tests: Comments.
12455         * tests/test-spawn-pipe-child.c (main): Update comment.
12456         Reported by James Youngman <jay@gnu.org>.
12457
12458 2011-06-11  James Youngman  <jay@gnu.org>
12459
12460         New module 'stat-size'.
12461         * modules/stat-size: New module.  Provides macros for accessing
12462         file size information in instances of struct stat.  Depends on the
12463         fileblocks module because it calls st_blocks.
12464         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12465         * doc/gnulib.texi: Include stat-size.texi.
12466         * doc/stat-size.texi: Documentation for this module.
12467         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12468         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12469         AC_STRUCT_ST_BLOCKS.
12470
12471 2011-06-09  Bruno Haible  <bruno@clisp.org>
12472
12473         thread: Support pthreads-win32.
12474         * lib/glthread/thread.h (gl_thread_self): Define differently on
12475         pthreads-win32.
12476         (gl_null_thread): New declaration.
12477         (gl_thread_self_pointer): New macro.
12478         * lib/glthread/thread.c (gl_null_thread): New constant.
12479         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12480         gl_thread_self.
12481         * tests/test-tls.c: Likewise.
12482         Suggested by Paul Eggert. Reported by Eric Blake.
12483
12484 2011-06-09  Bruno Haible  <bruno@clisp.org>
12485
12486         thread: Fix confusion between NULL and 0.
12487         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12488         Reported by Paul Eggert.
12489
12490 2011-06-09  Bruno Haible  <bruno@clisp.org>
12491
12492         spawn-pipe tests: Avoid test failure on HP-UX 11.
12493         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12494         is closed.
12495
12496 2011-06-09  Bruno Haible  <bruno@clisp.org>
12497
12498         acl tests: Fix compilation error on HP-UX 11.
12499         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12500
12501 2011-06-09  Bruno Haible  <bruno@clisp.org>
12502
12503         rmdir: Avoid test failure on HP-UX 10.20.
12504         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12505         EEXIST.
12506
12507 2011-06-08  Eric Blake  <eblake@redhat.com>
12508
12509         perror: fix test on mingw
12510         * modules/perror-tests (Depends-on): Add dup2.
12511
12512         strerror_r-posix: fix on MacOS
12513         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12515         logic bug.
12516         * lib/strerror_r.c (strerror_r): Fix the bug.
12517         * lib/strerror.c (strerror): Likewise.
12518         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12519         problem.
12520         * doc/posix-functions/strerror.texi (strerror): Likewise.
12521         * doc/posix-functions/perror.texi (perror): Likewise.
12522         * tests/test-strerror.c (main): Enhance test.
12523         * tests/test-strerror_r.c (main): Likewise.
12524
12525 2011-06-08  Bruno Haible  <bruno@clisp.org>
12526
12527         gnulib-tool: Better isolation between different gnulib-tool invocations.
12528         * gnulib-tool: New option --witness-c-macro.
12529         (witness_c_macro): New variable.
12530         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12531         AM_CPPFLAGS define it as a C macro.
12532         (func_emit_tests_Makefile_am): Likewise.
12533         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12534         read it from there.
12535         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12536         m4_define, not AC_DEFUN.
12537         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12538         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12539         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12540         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12541         s|...|...|, to substitute the values of the GNULIB_* module indicator
12542         variables.
12543         * modules/dirent (Makefile.am): Likewise.
12544         * modules/fcntl-h (Makefile.am): Likewise.
12545         * modules/iconv-h (Makefile.am): Likewise.
12546         * modules/langinfo (Makefile.am): Likewise.
12547         * modules/locale (Makefile.am): Likewise.
12548         * modules/math (Makefile.am): Likewise.
12549         * modules/netdb (Makefile.am): Likewise.
12550         * modules/poll-h (Makefile.am): Likewise.
12551         * modules/pty (Makefile.am): Likewise.
12552         * modules/search (Makefile.am): Likewise.
12553         * modules/signal (Makefile.am): Likewise.
12554         * modules/spawn (Makefile.am): Likewise.
12555         * modules/stdio (Makefile.am): Likewise.
12556         * modules/stdlib (Makefile.am): Likewise.
12557         * modules/string (Makefile.am): Likewise.
12558         * modules/sys_ioctl (Makefile.am): Likewise.
12559         * modules/sys_select (Makefile.am): Likewise.
12560         * modules/sys_socket (Makefile.am): Likewise.
12561         * modules/sys_stat (Makefile.am): Likewise.
12562         * modules/sys_times (Makefile.am): Likewise.
12563         * modules/sys_utsname (Makefile.am): Likewise.
12564         * modules/sys_wait (Makefile.am): Likewise.
12565         * modules/termios (Makefile.am): Likewise.
12566         * modules/time (Makefile.am): Likewise.
12567         * modules/unistd (Makefile.am): Likewise.
12568         * modules/wchar (Makefile.am): Likewise.
12569
12570 2011-06-08  Eric Blake  <eblake@redhat.com>
12571
12572         strerror: simplify replacement
12573         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12574         * modules/strerror (configure.ac): No prereqs needed here...
12575         * modules/strerror-override (configure.ac): ...but this needs it.
12576         (Files): Add file for needed prereq macro.
12577
12578 2011-06-08  Bruno Haible  <bruno@clisp.org>
12579
12580         strerror_r-posix: Tweaks.
12581         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12582         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12584         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12585         (gl_FUNC_STRERROR_R): ... to here.
12586         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12587
12588 2011-06-07  Eric Blake  <eblake@redhat.com>
12589
12590         perror: document fixed bugs
12591         * doc/posix-functions/perror.texi (perror): Document recent
12592         patches.
12593
12594 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12595
12596         stat-time: get_stat_birthtime failure is better-defined
12597         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12598         return a timestamp whose tv_sec and tv_nsec values are both -1.
12599         Previously, the spec said only that the tv_nsec value was negative.
12600         This upward-compatible change simplifies GNU tar a bit.
12601
12602 2011-06-07  Eric Blake  <eblake@redhat.com>
12603
12604         strerror_r-posix: work around cygwin 1.7.9
12605         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12606         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12607         bug without replacing strerror_r.
12608         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12609         strerror_r is buggy, but without requiring strerror_r compilation.
12610         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12611
12612         test-perror: relax test to ignore cygwin bug
12613         * tests/test-perror2.c (main): Relax test on requiring detection
12614         of stream errors, and use unbuffered stream.
12615         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12616         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12617         * doc/posix-functions/fputc.texi (fputc): Likewise.
12618         * doc/posix-functions/fputs.texi (fputs): Likewise.
12619         * doc/posix-functions/fputws.texi (fputws): Likewise.
12620         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12621         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12622         * doc/posix-functions/getopt.texi (getopt): Likewise.
12623         * doc/posix-functions/perror.texi (perror): Likewise.
12624         * doc/posix-functions/printf.texi (printf): Likewise.
12625         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12626         * doc/posix-functions/psignal.texi (psignal): Likewise.
12627         * doc/posix-functions/putc.texi (putc): Likewise.
12628         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12629         Likewise.
12630         * doc/posix-functions/putchar.texi (putchar): Likewise.
12631         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12632         Likewise.
12633         * doc/posix-functions/puts.texi (puts): Likewise.
12634         * doc/posix-functions/putwc.texi (putwc): Likewise.
12635         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12636         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12637         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12638         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12639         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12640         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12641         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12642         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12643
12644 2011-05-22  Bruno Haible  <bruno@clisp.org>
12645
12646         strerror: Move AC_LIBOBJ invocations to module description.
12647         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12648         gl_PREREQ_STRERROR invocations from here...
12649         * modules/strerror (configure.ac): ... to here.
12650
12651 2011-05-21  Bruno Haible  <bruno@clisp.org>
12652
12653         perror: Use common idiom.
12654         * modules/perror (configure.ac): Reorder statements.
12655
12656 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12657
12658         tests: fix usage message in 'mktempd_'
12659         * tests/init.sh (mktempd_): In the usage message, use literal
12660         'mktempd_', not '$ME' (which is even undefined), as the name of
12661         the subroutine.
12662
12663 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12664
12665         tests init: new function 'fatal_', for hard errors
12666         Before this patch, the only way offered by tests/init.sh to
12667         properly signal a hard error was the `framework_failure_'
12668         function.  But the error message issued by that function,
12669         as its name would suggest, refers to a set-up failure in the
12670         testsuite, while hard errors can obviously also be due to
12671         other reasons.  The best way to fix this inconsistency is to
12672         introduce a new function with a more general error message.
12673         * tests/init.sh (fatal_): New function.
12674
12675 2011-06-06  Eric Blake  <eblake@redhat.com>
12676
12677         canonicalize-lgpl: use common idiom
12678         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12679         over newer POSIX -Rf.
12680         Reported by Bruno Haible.
12681
12682         canonicalize-lgpl: work around AIX realpath bug
12683         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12684         * doc/posix-functions/realpath.texi (realpath): Document it.
12685         Reported by Bruno Haible.
12686
12687         strerror: work around FreeBSD bug
12688         * lib/strerror.c (strerror): Special case 0.
12689         Reported by Bruno Haible.
12690
12691         strerror-override: avoid bloating errno module
12692         * modules/errno (Files, configure.ac): Move replacement strings...
12693         * modules/strerror-override: ...to new module.
12694         * modules/strerror (Depends-on): Add strerror-override.
12695         * modules/strerror_r-posix (Depends-on): Likewise.
12696         * MODULES.html.sh: Document new module.
12697         Reported by Bruno Haible.
12698
12699 2011-06-06  Bruno Haible  <bruno@clisp.org>
12700
12701         spawn-pipe tests: Rename program.
12702         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12703         * tests/test-spawn-pipe-child.c: Update comment.
12704         * tests/test-spawn-pipe.sh: Update.
12705         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12706
12707         spawn-pipe tests: Link the child program only against libc.
12708         * tests/test-spawn-pipe-child.c: New file, extracted from
12709         tests/test-spawn-pipe.c.
12710         (main): Expect only one argument.
12711         (is_open): New function, copied from tests/test-pipe.c.
12712         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12713         (child_main): Remove function.
12714         (test_pipe): Pass only one argument to the child program.
12715         (main): Remove child process code. Expect the child program's name as
12716         first argument.
12717         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12718         argument.
12719         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12720         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12721         test-spawn-pipe-child against no libraries.
12722
12723 2011-06-06  Bruno Haible  <bruno@clisp.org>
12724
12725         careadlinkat: Avoid mismatch between ssize_t and int.
12726         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12727         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12728
12729 2011-06-06  Jim Meyering  <meyering@redhat.com>
12730
12731         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12732         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12733         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12734
12735 2011-06-05  Bruno Haible  <bruno@clisp.org>
12736
12737         ansi-c++-opt: Interoperability with libtool.
12738         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12739         set the variable to "no", not to ":".
12740         * NEWS: Mention the change.
12741
12742 2011-06-05  Bruno Haible  <bruno@clisp.org>
12743
12744         acl: Fix test failure on AIX 7.
12745         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12746         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12747
12748 2011-06-05  Bruno Haible  <bruno@clisp.org>
12749
12750         pipe-filter-ii: Fix test failure on AIX and IRIX.
12751         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12752         with EAGAIN, retry with a smaller buffer size.
12753
12754 2011-06-05  Bruno Haible  <bruno@clisp.org>
12755
12756         localename: Fix link dependencies.
12757         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12758         * modules/localename-tests (Makefile.am): Link test-localename with
12759         $(LIBTHREAD).
12760
12761 2011-06-05  Bruno Haible  <bruno@clisp.org>
12762
12763         error: Avoid gcc warning.
12764         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12765
12766 2011-06-05  Bruno Haible  <bruno@clisp.org>
12767
12768         unsetenv: Avoid gcc warning.
12769         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12770
12771 2011-06-05  Bruno Haible  <bruno@clisp.org>
12772
12773         setenv: Avoid gcc warning.
12774         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12775
12776 2011-06-05  Bruno Haible  <bruno@clisp.org>
12777
12778         sys_select: Ensure memset is declared also on AIX 7.
12779         * lib/sys_select.in.h: Include <string.h> also on AIX.
12780         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12781         self-contained also on AIX 7.1.
12782
12783 2011-06-04  Jim Meyering  <meyering@redhat.com>
12784
12785         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12786         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12787         function name, "error".
12788         (_gl_translatable_diag_func_re): New configurable variable.
12789
12790 2011-06-04  Bruno Haible  <bruno@clisp.org>
12791
12792         getopt: Avoid gcc warning.
12793         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12794
12795 2011-06-04  Bruno Haible  <bruno@clisp.org>
12796
12797         strerror_r: Fix comments.
12798         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12799         commit.
12800
12801 2011-06-04  Bruno Haible  <bruno@clisp.org>
12802
12803         perror: Fix compilation error.
12804         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12805         Undefine fprintf, not sprintf.
12806         * modules/perror (Depends-on): Remove intprops, verify.
12807
12808 2011-06-04  Bruno Haible  <bruno@clisp.org>
12809
12810         setlocale: Enable replacement on Cygwin 1.5.
12811         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12812         Cygwin 1.5.x.
12813         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12814         LC_CTYPE category also exists on Cygwin 1.5.x.
12815
12816 2011-06-04  Bruno Haible  <bruno@clisp.org>
12817
12818         strerror-override: Don't disable symbol renamings.
12819         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12820         * lib/strerror-override.c: Include config.h.
12821         (strerror_override): Don't undefine.
12822
12823 2011-06-03  Bruno Haible  <bruno@clisp.org>
12824
12825         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12826         * lib/localename.h: Update copyright header.
12827         * lib/localename.c: Likewise.
12828         * lib/relocatable.h: Likewise.
12829         * lib/relocatable.c: Likewise.
12830
12831 2011-06-02  Bruno Haible  <bruno@clisp.org>
12832
12833         doc: Fix a module name.
12834         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12835
12836 2011-06-02  Bruno Haible  <bruno@clisp.org>
12837
12838         pipe2: Remove dependency on 'nonblocking' module.
12839         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12840         O_NONBLOCK is defined by gnulib.
12841         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12842         is zero.
12843         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12844         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12845         defined by gnulib.
12846         (get_nonblocking_flag): New function.
12847         (main): Test O_NONBLOCK flag only if it is nonzero.
12848         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12849
12850 2011-06-03  Jim Meyering  <meyering@redhat.com>
12851
12852         maint: three new prohibit-header-without-use rules
12853         Prohibit use of cloexec.h, posixver.h, same.h without use.
12854         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12855         (sc_prohibit_posixver_without_use): Likewise.
12856         (sc_prohibit_same_without_use): Likewise.
12857
12858 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12859
12860         allocator: 'die' routine is now given requested size
12861         * lib/allocator.h (struct allocator.die): New size arg.
12862         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12863         If the actual problem is an ssize_t limitation, not a size_t or
12864         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12865
12866 2011-06-01  Eric Blake  <eblake@redhat.com>
12867
12868         strerror: drop strerror_r dependency
12869         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12870         * lib/strerror-override.c (strerror_override): ...to new file.
12871         * lib/strerror-override.h: Add prototype.
12872         * lib/strerror-impl.h: Delete.
12873         * lib/strerror.c (strerror): New implementation.
12874         * modules/errno (Files): Add new files.
12875         (configure.ac): Compile new file as appropriate.
12876         * modules/strerror (Files): Drop unused file.
12877         (Depends-on): Drop strerror_r-posix.
12878         * MODULES.html.sh: Document strerror_r-posix.
12879         Requested by Sam Steingold.
12880
12881         perror: call strerror_r directly
12882         * modules/perror (Files): Drop strerror-impl.h.
12883         * lib/perror.c (perror): Use our own stack buffer, rather than
12884         calling a wrapper that uses static storage.
12885         * doc/posix-functions/perror.texi (perror): Document a limitation
12886         of our replacement.
12887
12888         strerror_r: fix includes for FreeBSD
12889         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12890         since we use abort on some platforms.
12891         Reported by Matthias Bolte.
12892
12893 2011-05-31  Bruno Haible  <bruno@clisp.org>
12894
12895         Fix link errors in tests: openat-die uses gettext-h.
12896         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12897         against $(LIBINTL).
12898         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12899         against $(LIBINTL).
12900         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12901         $(LIBINTL).
12902         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12903         against $(LIBINTL).
12904         * modules/linkat-tests (Makefile.am): Link test-linkat against
12905         $(LIBINTL).
12906         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12907         $(LIBINTL).
12908         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12909         against $(LIBINTL).
12910         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12911         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12912         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12913         $(LIBINTL).
12914         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12915         $(LIBINTL).
12916         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12917         $(LIBINTL).
12918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12919
12920 2011-05-31  Bruno Haible  <bruno@clisp.org>
12921
12922         Fix link errors in tests: wait-process uses gettext-h.
12923         * modules/nonblocking-pipe-tests (Makefile.am): Set
12924         test_nonblocking_pipe_main_LDADD.
12925         * modules/nonblocking-socket-tests (Makefile.am): Link
12926         test-nonblocking-socket-main against $(LIBINTL).
12927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12928
12929 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12930
12931         assert-h: work around 'verify' incompatibility
12932         * lib/verify.h: Use @...@ directives, not ifdef.
12933         * modules/assert-h (assert.h): Implement the directives.
12934         (assert.h): Substitute the symbol-prefix more consistently.
12935
12936 2011-05-29  Jim Meyering  <meyering@redhat.com>
12937
12938         trim: remove three superfluous assignments
12939         * lib/trim.c (trim2): Remove three superfluous assignments
12940         and correct brace positioning.
12941
12942 2011-05-29  Bruno Haible  <bruno@clisp.org>
12943
12944         wctype-h: Avoid namespace pollution on Solaris 2.6.
12945         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12946         identifiers.
12947         * doc/posix-headers/wctype.texi: Mention the problem.
12948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12949
12950 2011-05-28  Jim Meyering  <meyering@redhat.com>
12951
12952         parse-datetime.y: accommodate -Wstrict-overflow
12953         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12954         placate -Wstrict-overflow.
12955
12956         trim: avoid a warning from -O2 -Wstrict-overflow
12957         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12958
12959 2011-05-29  Bruno Haible  <bruno@clisp.org>
12960
12961         gnulib-tool: Fix bug in yesterday's commit.
12962         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12963         twice.
12964
12965 2011-05-29  Bruno Haible  <bruno@clisp.org>
12966
12967         Allow multiple gnulib generated include files to be combined.
12968         * gnulib-tool (func_compute_include_guard_prefix): New function.
12969         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12970         ${gl_include_guard_prefix} references.
12971         (func_import, func_create_testdir): Invoke
12972         func_compute_include_guard_prefix.
12973         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12974         * lib/ctype.in.h: Likewise.
12975         * lib/dirent.in.h: Likewise.
12976         * lib/errno.in.h: Likewise.
12977         * lib/fcntl.in.h: Likewise.
12978         * lib/float.in.h: Likewise.
12979         * lib/getopt.in.h: Likewise.
12980         * lib/iconv.in.h: Likewise.
12981         * lib/langinfo.in.h: Likewise.
12982         * lib/locale.in.h: Likewise.
12983         * lib/math.in.h: Likewise.
12984         * lib/netdb.in.h: Likewise.
12985         * lib/netinet_in.in.h: Likewise.
12986         * lib/poll.in.h: Likewise.
12987         * lib/pthread.in.h: Likewise.
12988         * lib/pty.in.h: Likewise.
12989         * lib/sched.in.h: Likewise.
12990         * lib/se-selinux.in.h: Likewise.
12991         * lib/search.in.h: Likewise.
12992         * lib/signal.in.h: Likewise.
12993         * lib/spawn.in.h: Likewise.
12994         * lib/stdarg.in.h: Likewise.
12995         * lib/stddef.in.h: Likewise.
12996         * lib/stdint.in.h: Likewise.
12997         * lib/stdio.in.h: Likewise.
12998         * lib/stdlib.in.h: Likewise.
12999         * lib/string.in.h: Likewise.
13000         * lib/strings.in.h: Likewise.
13001         * lib/sys_file.in.h: Likewise.
13002         * lib/sys_ioctl.in.h: Likewise.
13003         * lib/sys_select.in.h: Likewise.
13004         * lib/sys_socket.in.h: Likewise.
13005         * lib/sys_stat.in.h: Likewise.
13006         * lib/sys_time.in.h: Likewise.
13007         * lib/sys_times.in.h: Likewise.
13008         * lib/sys_uio.in.h: Likewise.
13009         * lib/sys_utsname.in.h: Likewise.
13010         * lib/sys_wait.in.h: Likewise.
13011         * lib/sysexits.in.h: Likewise.
13012         * lib/termios.in.h: Likewise.
13013         * lib/time.in.h: Likewise.
13014         * lib/unistd.in.h: Likewise.
13015         * lib/wchar.in.h: Likewise.
13016         * lib/wctype.in.h: Likewise.
13017         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
13018         * modules/ctype (Makefile.am): Likewise.
13019         * modules/dirent (Makefile.am): Likewise.
13020         * modules/errno (Makefile.am): Likewise.
13021         * modules/fcntl-h (Makefile.am): Likewise.
13022         * modules/float (Makefile.am): Likewise.
13023         * modules/getopt-posix (Makefile.am): Likewise.
13024         * modules/iconv-h (Makefile.am): Likewise.
13025         * modules/langinfo (Makefile.am): Likewise.
13026         * modules/locale (Makefile.am): Likewise.
13027         * modules/math (Makefile.am): Likewise.
13028         * modules/netdb (Makefile.am): Likewise.
13029         * modules/netinet_in (Makefile.am): Likewise.
13030         * modules/poll-h (Makefile.am): Likewise.
13031         * modules/pthread (Makefile.am): Likewise.
13032         * modules/pty (Makefile.am): Likewise.
13033         * modules/sched (Makefile.am): Likewise.
13034         * modules/search (Makefile.am): Likewise.
13035         * modules/selinux-h (Makefile.am): Likewise.
13036         * modules/signal (Makefile.am): Likewise.
13037         * modules/spawn (Makefile.am): Likewise.
13038         * modules/stdarg (Makefile.am): Likewise.
13039         * modules/stddef (Makefile.am): Likewise.
13040         * modules/stdint (Makefile.am): Likewise.
13041         * modules/stdio (Makefile.am): Likewise.
13042         * modules/stdlib (Makefile.am): Likewise.
13043         * modules/string (Makefile.am): Likewise.
13044         * modules/strings (Makefile.am): Likewise.
13045         * modules/sys_file (Makefile.am): Likewise.
13046         * modules/sys_ioctl (Makefile.am): Likewise.
13047         * modules/sys_select (Makefile.am): Likewise.
13048         * modules/sys_socket (Makefile.am): Likewise.
13049         * modules/sys_stat (Makefile.am): Likewise.
13050         * modules/sys_time (Makefile.am): Likewise.
13051         * modules/sys_times (Makefile.am): Likewise.
13052         * modules/sys_uio (Makefile.am): Likewise.
13053         * modules/sys_utsname (Makefile.am): Likewise.
13054         * modules/sys_wait (Makefile.am): Likewise.
13055         * modules/sysexits (Makefile.am): Likewise.
13056         * modules/termios (Makefile.am): Likewise.
13057         * modules/time (Makefile.am): Likewise.
13058         * modules/unistd (Makefile.am): Likewise.
13059         * modules/wchar (Makefile.am): Likewise.
13060         * modules/wctype-h (Makefile.am): Likewise.
13061         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
13062
13063 2011-05-29  Bruno Haible  <bruno@clisp.org>
13064
13065         assert-h: Allow multiple gnulib generated replacements to coexist.
13066         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
13067
13068 2011-05-29  Bruno Haible  <bruno@clisp.org>
13069
13070         argp: Allow coexistence with strerror_r-posix module.
13071         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
13072         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
13073         by gnulib's <string.h> replacement), assume it has the POSIX signature,
13074         not the glibc signature.
13075
13076 2011-05-28  Bruno Haible  <bruno@clisp.org>
13077
13078         gnulib-tool: Alternative structure of testdirs, similar to --import.
13079         * gnulib-tool: New option --single-configure.
13080         (func_usage): Document it.
13081         (single_configure): New variable.
13082         (func_modules_transitive_closure_separately,
13083         func_modules_transitive_closure_separately,
13084         func_determine_use_libtests, func_modules_add_dummy_separately,
13085         func_modules_to_filelist_separately): New functions, extracted from
13086         func_import.
13087         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
13088         (func_import): Use the new functions.
13089         (func_create_testdir): Set final_modules. Handle $single_configure =
13090         true case.
13091
13092 2011-05-28  Bruno Haible  <bruno@clisp.org>
13093
13094         getloadavg: Remove an unreliable safety check.
13095         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
13096         getloadavg.c is in place.
13097         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
13098         Reported by Sam Steingold <sds@gnu.org>.
13099
13100 2011-05-28  Bruno Haible  <bruno@clisp.org>
13101
13102         doc: Cleanup yet another file produced by texinfo.tex.
13103         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
13104
13105 2011-05-28  Bruno Haible  <bruno@clisp.org>
13106
13107         Finish the conditional dependencies mechanism.
13108         * gnulib-tool: New option --no-conditional-dependencies.
13109         (func_usage): Document it. Don't mark --conditional-dependencies as
13110         experimental.
13111         (cond_dependencies): The possible values can now be true, false, empty.
13112         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
13113         (func_import): Store setting in gnulib-cache.m4 and read it from there.
13114         * doc/gnulib-tool.texi (Conditional dependencies): New section.
13115
13116 2011-05-28  Bruno Haible  <bruno@clisp.org>
13117
13118         doc: Use a recent texinfo.tex.
13119         * doc/Makefile (tex_opts): New variable.
13120         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
13121
13122 2011-05-28  Jim Meyering  <meyering@redhat.com>
13123
13124         intprops.h: adjust comment to match code change
13125         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
13126         only once, it *may* have side effects.  Also fix an unrelated typo.
13127         (_GL_INT_SIGNED): Likewise.
13128
13129 2011-05-26  Simon Josefsson  <simon@josefsson.org>
13130
13131         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
13132
13133 2011-05-26  Bruno Haible  <bruno@clisp.org>
13134
13135         mbsrchr: Avoid collision with system function on Interix.
13136         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
13137         Reported by Markus Duft <mduft@gentoo.org>.
13138
13139 2011-05-15  James Youngman  <jay@gnu.org>
13140
13141         getopt: for ambiguous options, enumerate the possibilities.
13142         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
13143         the ambiguous options when an ambiguous prefix is given. This was
13144         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
13145         glibc change was
13146         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
13147
13148 2011-05-25  Eric Blake  <eblake@redhat.com>
13149
13150         getcwd: work around mingw bug
13151         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
13152         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13153         Reported by Matthias Bolte.
13154
13155 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13156
13157         test-intprops: disable -Wtype-limits diagnostics
13158         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
13159         diagnostics.  Otherwise, the integer overflow macros generate many
13160         diagnostics.  Reported by Jim Meyering in
13161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13162
13163         intprops: shorten, to pacify gcc -Woverlength-strings
13164         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
13165         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
13166         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13167         likely to run afoul of C compiler limits for string constant lengths.
13168         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13169
13170 2011-05-24  Eric Blake  <eblake@redhat.com>
13171
13172         docs: document recently fixed glibc printf bug
13173         * doc/posix-functions/fprintf.texi (fprintf): Document it.
13174         * doc/posix-functions/printf.texi (printf): Likewise.
13175         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13176         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13177
13178         closein-tests: convert to init.sh
13179         * modules/closein-tests (Files): Add init.sh
13180         * tests/test-closein.sh Use it.
13181
13182         yesno-tests: convert to init.sh
13183         * modules/yesno-tests (Files): Add init.sh.
13184         * tests/test-yesno.sh: Use it.
13185
13186         atexit-tests: ensure reliable exit status
13187         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
13188         Reported by Bruno Haible.
13189
13190 2011-05-24  Bruno Haible  <bruno@clisp.org>
13191
13192         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
13193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
13194         gl_PREREQ_STRERROR_R invocations from here...
13195         * modules/strerror_r-posix (configure.ac): ... to here.
13196
13197 2011-05-24  Eric Blake  <eblake@redhat.com>
13198
13199         strerror_r: fix missing header
13200         * lib/strerror_r.c: Avoid compiler warning about snprintf.
13201
13202         strerror_r: fix AIX test failures
13203         * lib/strerror_r.c (strerror_r): Convert silent truncation to
13204         ERANGE failure.
13205
13206         strerror_r: fix Solaris test failures
13207         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
13208         failures.
13209         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13210
13211         strerror_r: enforce POSIX recommendations
13212         * lib/strerror_r.c (safe_copy): New helper method.
13213         (strerror_r): Guarantee a non-empty string.
13214         * tests/test-strerror_r.c (main): Enhance tests to incorporate
13215         recent POSIX rulings and to match our strerror guarantees.
13216         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13217
13218 2011-05-24  Jim Meyering  <meyering@redhat.com>
13219
13220         test-perror2.c: avoid warning about unused variable
13221         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13222
13223 2011-05-24  Eric Blake  <eblake@redhat.com>
13224
13225         perror: avoid spurious test failure on HP-UX
13226         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13227
13228         tests: fix logic bug in init.sh
13229         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13230         shell.
13231
13232 2011-05-24  Jim Meyering  <meyering@redhat.com>
13233
13234         utimensat: do not reference an out-of-scope buffer
13235         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13236         declared in an inner scope, yet "times" would be dereferenced outside
13237         the scope in which "ts" was valid.
13238         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13239         of ts[2] "out/up", so that the use of aliased "times" (via
13240         "times = ts;") does not end up referencing an out-of-scope "ts"
13241
13242         opendir-safer.c: don't clobber errno; don't close negative FD
13243         * lib/opendir-safer.c (opendir_safer):
13244         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13245         file descriptor, and more importantly, don't clobber the
13246         offending errno value with EINVAL.  Before, upon failure
13247         of dup_safer, we would pass the negative file descriptor to
13248         fdopendir, which would clobber errno.
13249
13250 2011-05-23  Bruno Haible  <bruno@clisp.org>
13251
13252         idcache: Fix module description.
13253         * modules/idcache (Include): Set to "idcache.h".
13254
13255 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13256
13257         gnulib-tool: fix portability problem with MacOS sed
13258         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13259         before the "}".  Problem reported by Leo in
13260         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13261         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13262         sed_extract_condition1, sed_extract_condition2.
13263
13264 2011-05-23  Bruno Haible  <bruno@clisp.org>
13265
13266         hash: Simplify autoconf macro.
13267         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13268
13269 2011-05-23  Bruno Haible  <bruno@clisp.org>
13270
13271         getugroups: Fix module description.
13272         * modules/getugroups (Include): Set to "getugroups.h".
13273
13274 2011-05-23  Bruno Haible  <bruno@clisp.org>
13275
13276         linkat: Simplify autoconf macro.
13277         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13278
13279 2011-05-23  Bruno Haible  <bruno@clisp.org>
13280             Eric Blake  <eblake@redhat.com>
13281
13282         linkat, renameat: Update dependencies.
13283         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13284         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13285         symlinkat.
13286
13287 2011-05-23  Jim Meyering  <meyering@redhat.com>
13288
13289         maint.mk: more tight_scope improvements
13290         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13291         (_gl_TS_headers): Define only in if-0'd block.
13292         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13293         sometimes we must *not* use it.  Adjust uses accordingly.
13294         (sc_tight_scope): Use much simpler grep-based test to determine
13295         whether we skip this rule.
13296
13297         maint.mk: generalize/improve the tight-scope rule
13298         * top/maint.mk: Emit a warning when the test is skipped.
13299         (_gl_TS_dir): Add $(srcdir)/ prefix.
13300         (_gl_TS_function_match): Simplify, rather than trying
13301         to enumerate common types.  Otherwise, it would fail to match an
13302         "extern unsigned char const *" declaration in idutils.
13303         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13304         a way to support use of that type of macro.
13305         (_gl_TS_var_match): Simplify regexp.
13306         (_gl_TS_obj_files): New configurable variable.
13307         (_gl_TS_headers): Likewise.
13308
13309 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13310
13311         verify: fix bug when gnulib <assert.h> is also included
13312         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13313         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13314         Perhaps there's a better way, but this fixes the immediate problem.
13315         Problem reported by Bruno Haible in
13316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13317
13318 2011-05-22  Bruno Haible  <bruno@clisp.org>
13319
13320         xgetcwd: Simplify autoconf macro.
13321         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13322
13323 2011-05-22  Bruno Haible  <bruno@clisp.org>
13324
13325         New module 'mktime-internal'.
13326         * modules/mktime-internal: New file.
13327         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13328         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13329         mktime_internal as a C macro if libc has __mktime_internal.
13330         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13331         conditions.
13332         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13333
13334 2011-05-22  Bruno Haible  <bruno@clisp.org>
13335
13336         timegm: Correct mktime replacement statements.
13337         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13338         defining mktime as a C macro. This completes a 2009-07-28 commit.
13339
13340 2011-05-22  Bruno Haible  <bruno@clisp.org>
13341
13342         timegm: Simplify autoconf macro.
13343         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13344
13345 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13346
13347         clock-time: change to LGPLv2+.
13348         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13349         BSD-like but we have no mark for that; this is good enough for now.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         strerror_r: Fix comments.
13354         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13355
13356 2011-05-21  Bruno Haible  <bruno@clisp.org>
13357
13358         relocatable-prog-wrapper: Fix possible link error.
13359         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13360         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13361         (gl_FUNC_SETENV): ... to here.
13362         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13363         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13364
13365 2011-05-21  Bruno Haible  <bruno@clisp.org>
13366
13367         relocatable-prog-wrapper: Assume strerror() exists.
13368         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13369         m4/strerror.m4.
13370         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13371         * lib/relocwrapper.c: Remove mention of strerror module.
13372         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13373         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13374         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13375         C macro.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         select: Simplify replacement idiom.
13380         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13381         Win32 platforms.
13382         * lib/sys_select.in.h (select): Simplify accordingly.
13383         * modules/select (Depends-on): Likewise.
13384
13385 2011-05-21  Bruno Haible  <bruno@clisp.org>
13386
13387         mkdir-p: Simplify autoconf macro.
13388         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13389         gl_FUNC_LCHOWN.
13390
13391 2011-05-21  Eric Blake  <eblake@redhat.com>
13392
13393         strerror_r: avoid clobbering strerror on cygwin
13394         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13395         fall back instead to sys_errlist.
13396         * modules/strerror (configure.ac): Add witness.
13397         * tests/test-strerror_r.c (main): Enhance test.
13398         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13399         * tests/test-perror2.c (main): Free memory before exit.
13400
13401 2011-05-21  Bruno Haible  <bruno@clisp.org>
13402
13403         mkdtemp: Use gnulib naming conventions.
13404         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13405         * modules/mkdtemp (configure.ac): Update.
13406
13407 2011-05-20  Eric Blake  <eblake@redhat.com>
13408
13409         strerror_r: avoid corrupting errno on Solaris
13410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13411         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13412
13413         strerror_r: avoid compiler warning
13414         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13415
13416         strerror_r: simplify AIX code
13417         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13418
13419         test-perror: avoid spurious failure on FreeBSD
13420         * modules/perror-tests (Depends-on): Add strerror, now that
13421         strerror_r no longer pulls it in.
13422
13423 2011-05-20  Bruno Haible  <bruno@clisp.org>
13424
13425         strerror_r-posix: Remove unused dependencies.
13426         * modules/strerror_r-posix (Depends-on): Remove strerror.
13427         Reported by Eric Blake.
13428
13429 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13430
13431         intprops: remove assumption about A|B representation
13432         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13433         is a valid integer if both A and B are.  Although this is true for
13434         all known practical hosts, the C standard doesn't guarantee it,
13435         and the code need not assume it.  Also, this change may work around
13436         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13438
13439 2011-05-20  Eric Blake  <eblake@redhat.com>
13440
13441         perror: work around FreeBSD bug
13442         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13443         is broken.  Move AC_LIBOBJ...
13444         * modules/perror (configure.ac): Here.
13445         * doc/posix-functions/perror.texi (perror): Document this.
13446         * tests/test-perror2.c (main): Enhance test.
13447
13448         test-perror: check for strerror interactions
13449         * tests/macros.h (STREQ): Add macro.
13450         * modules/perror-tests (Files): Add second test.
13451         * tests/test-perror2.c (main): New file.
13452         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13453
13454         test-perror: rewrite to use init script
13455         * modules/perror-tests (Files): Add init.sh.
13456         * tests/test-perror.sh: Use temporary directory.
13457
13458 2011-05-20  Jim Meyering  <meyering@redhat.com>
13459
13460         maint: replace misused "a" with "an"
13461         * doc/intprops.texi: "a integer"
13462         * doc/regex.texi: "a explanation"
13463         * lib/alignof.h: "a object"
13464         * lib/argmatch.h: "a explanation"
13465         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13466         * lib/stdint.in.h: "a integer"
13467         * lib/userspec.c: "a owner"
13468         * doc/gnulib.texi: Fix "a idea", and reword.
13469
13470 2011-05-19  Jim Meyering  <meyering@redhat.com>
13471
13472         maint: correct misuse of "a" and "an"
13473         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13474         * lib/argp-help.c: "an docum...": s/an/a/
13475         * lib/argp-parse.c: "An vector": s/An/A/
13476         * lib/execute.c: "an native": s/an/a/
13477         * lib/spawn-pipe.c: Likewise.
13478         * lib/gc.h: "an Gc_rc": s/an/a/
13479         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13480         * lib/fts.c: "an stat.st_dev": s/an/a/
13481
13482 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13483
13484         intprops-tests: work around HP-UX 11.23 cc bug with constants
13485         * tests/test-intprops.c (VERIFY): New macro.
13486         (main): Use it, instead of verify, to work around the compiler bug; see
13487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13488
13489         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13490         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13491         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13492         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13493         (_GL_REMAINDER_OVERFLOW): Use it.
13494
13495         intprops-tests: revert unsigned part of previous change
13496         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13497         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13498         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13500
13501 2011-05-19  Bruno Haible  <bruno@clisp.org>
13502
13503         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13504         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13505         strerror_r() returned without filling the buffer.
13506         Reported by Eric Blake.
13507
13508 2011-05-19  Eric Blake  <eblake@redhat.com>
13509
13510         strerror_r: guarantee unchanged errno
13511         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13512         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13513         failure.
13514         * tests/test-strerror_r.c (main): Enhance test.
13515
13516 2011-05-19  Bruno Haible  <bruno@clisp.org>
13517
13518         strerror_r: Reorder #if blocks.
13519         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13520         for consistency with the previous commit.
13521
13522 2011-05-19  Bruno Haible  <bruno@clisp.org>
13523
13524         perror: Avoid clobbering the strerror buffer when possible.
13525         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13526         * lib/strerror.c: Include it.
13527         * modules/strerror (Files): Add lib/strerror-impl.h.
13528         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13529         (my_strerror): New function, defined through lib/strerror-impl.h.
13530         (perror): Use it instead of strerror.
13531         * modules/perror (Files): Add lib/strerror-impl.h.
13532         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13533
13534 2011-05-19  Eric Blake  <eblake@redhat.com>
13535
13536         strerror_r: fix on newer cygwin
13537         * lib/strerror_r.c (strerror_r): Cygwin now has
13538         __xpg_strerror_r, use it.
13539
13540 2011-05-19  Bruno Haible  <bruno@clisp.org>
13541
13542         strerror_r: Avoid clobbering the strerror buffer when possible.
13543         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13544         (sys_nerr, sys_errlist): New declarations.
13545         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13546         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13547         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13548
13549 2011-05-19  Bruno Haible  <bruno@clisp.org>
13550
13551         strerror_r: Fix test failure on mingw.
13552         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13553         EXTEND_STRERROR_R.
13554         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13555         macros from errno.in.h instead.
13556
13557 2011-05-19  Eric Blake  <eblake@redhat.com>
13558
13559         strerror: relax test for Solaris
13560         * tests/test-strerror.c (main): Permit Solaris behavior.
13561         * tests/test-strerror_r.c (main): Likewise.
13562
13563         strerror: enforce POSIX ruling on strerror(0)
13564         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13566         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13567         * doc/posix-functions/strerror.texi (strerror): Document it.
13568         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13569         * tests/test-strerror.c (main): Strengthen test.
13570         * tests/test-strerror_r.c (main): Likewise.
13571
13572 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13573
13574         intprop-tests: port to older and more-pedantic compilers
13575         * modules/intprops-tests (Files): Add tests/macros.h.
13576         * tests/test-intprops.c: Include macros.h.
13577         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13578         it's no longer documented to expand to an integer constant expression.
13579         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13580         argument is floating point, as it's no longer documented to expand
13581         to an integer constant expression in that case.
13582         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13583         compiler bugs reported by Bruno Haible.  See
13584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13585         (U0, U1): New constants, to work around the same bugs.  Also,
13586         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13587
13588         intprops: work around C compiler bugs
13589         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13590         bug in Sun C 5.11 2010/08/13 and other compilers; see
13591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13592
13593         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13594         * doc/intprops.texi (Integer Type Determination): Fix
13595         documentation for TYPE_IS_INTEGER: it returns an constant
13596         expression, not an integer constant expression.  Fix doc for
13597         TYPE_SIGNED: it returns an integer constant expression only if its
13598         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13599         hardly worth documented that way....)
13600
13601 2011-05-18  Bruno Haible  <bruno@clisp.org>
13602
13603         strerror_r: Avoid clobbering the strerror buffer when possible.
13604         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13605         Handle gnulib defined errno values here. When strerror() returns NULL
13606         or an empty string, return EINVAL.
13607         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13608         gnulib defined errno values here.
13609         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13610
13611 2011-05-18  Eric Blake  <eblake@redhat.com>
13612
13613         fnmatch: avoid compiler warning
13614         * lib/fnmatch_loop.c (FCT): Use correct type.
13615         Reported by Matthias Bolte.
13616
13617 2011-05-13  Jim Meyering  <meyering@redhat.com>
13618
13619         maint.mk: three new prohibit_<HDR>_without_use rules
13620         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13621         (sc_prohibit_stdio-safer_without_use): Likewise.
13622         (sc_prohibit_xfreopen_without_use): Likewise.
13623
13624 2011-05-17  Jim Meyering  <meyering@redhat.com>
13625
13626         announce-gen: fail if the NEWS delta is empty
13627         If there's nothing noteworthy in NEWS, then either you forgot
13628         or you shouldn't be releasing.
13629         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13630
13631 2011-05-17  Pádraig Brady <P@draigBrady.com>
13632
13633         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13634         reserved symbols starting with double underscore from the check.
13635
13636 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         intprops: add doc
13639         * doc/intprops.texi: New file, documenting intprops.
13640         * doc/gnulib.texi (Particular Modules): Include it.
13641
13642         verify: add doc to gnulib manual and fix example
13643         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13644         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13645         (Compile-time Assertions): Fix example so it can't overflow.
13646
13647 2011-05-17  Jim Meyering  <meyering@redhat.com>
13648
13649         warnings.m4: don't usurp save_CPPFLAGS variable name
13650         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13651
13652         doc: fix typo
13653         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13654
13655 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13656             Bruno Haible  <bruno@clisp.org>
13657
13658         doc: Tweak recent change.
13659         * README (Portability guidelines): Tweak new text.
13660         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13661         Interix 6.1.
13662
13663 2011-05-16  Eric Blake  <eblake@redhat.com>
13664
13665         inttypes: avoid autoconf warning
13666         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13667         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13668
13669 2011-05-16  Sam Steingold <sds@gnu.org>
13670         and Eric Blake  <eblake@redhat.com>
13671
13672         vc-list-files: accept multiple directory operands
13673         * build-aux/vc-list-files: Iterate over all remaining operands.
13674
13675 2011-05-16  Bruno Haible  <bruno@clisp.org>
13676
13677         Fix confusion regarding deprecated modules.
13678         * modules/calloc (Status, Notice): Mark module as deprecated, not
13679         obsolete.
13680         * modules/fnmatch-posix (Status, Notice): Likewise.
13681         * modules/getdate (Status, Notice): Likewise.
13682         * modules/getopt (Status, Notice): Likewise.
13683         * modules/malloc (Status, Notice): Likewise.
13684         * modules/pipe (Status, Notice): Likewise.
13685         * modules/realloc (Status, Notice): Likewise.
13686         * modules/rename-dest-slash (Status, Notice): Likewise.
13687         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13688         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13689         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13690         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13691         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13692
13693 2011-05-16  Bruno Haible  <bruno@clisp.org>
13694
13695         doc: List the target platforms.
13696         * doc/gnulib-intro.texi (Target Platforms): New section.
13697         * doc/gnulib.texi (Introduction): Update menu.
13698         * README (Portability guidelines): Refer to the new section. Update
13699         statement about oldest supported environment. Remove rationale why
13700         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13701         unportable C89 function.
13702         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13703         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13704
13705 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13706
13707         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13708
13709 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13710
13711         intprops-tests: new module
13712         * modules/intprops-tests, tests/test-intprops.c: New files.
13713
13714         intprops: add safe, portable integer overflow checking
13715         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13716         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13717         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13718         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13719         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13720         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13721         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13722         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13723         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13724         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13725         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13726
13727 2011-05-12  James Youngman  <jay@gnu.org>
13728
13729         Add a test for glibc's Bugzilla bug #12378.
13730         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13731         doesn't allow the literal matching of a lone "[" (which is
13732         required by POSIX).
13733         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13734
13735 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13736
13737         Sync glibc change fixing Bugzilla bug #12378.
13738         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13739         beginning and fall back to matching as normal character if the
13740         string ends before the matching ']' is found.  This is what POSIX
13741         requires.
13742
13743 2011-05-13  Eric Blake  <eblake@redhat.com>
13744
13745         getcwd-lgpl: relax test for FreeBSD
13746         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13747         issue.
13748         * tests/test-getcwd-lgpl.c (main): Relax test.
13749         Reported by Matthias Bolte.
13750
13751 2011-05-11  Eric Blake  <eblake@redhat.com>
13752
13753         test-fflush: silence compiler warning
13754         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13755
13756 2011-05-11  Bruno Haible  <bruno@clisp.org>
13757
13758         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13759         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13760         * modules/canonicalize (Depends-on): Add 'nocrash'.
13761         * modules/canonicalize-lgpl (Depends-on): Likewise.
13762         * doc/posix-functions/realpath.texi: Update platforms list.
13763         Reported by Ryan Schmidt <ryandesign@macports.org>.
13764
13765 2011-05-11  Bruno Haible  <bruno@clisp.org>
13766
13767         group-member: Declare function in <unistd.h>.
13768         * lib/unistd.in.h (group_member): New declaration.
13769         * lib/group-member.h: Remove file.
13770         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13771         * tests/test-unistd-c++.cc: Check signature of group_member.
13772         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13773         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13774         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13775         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13776         HAVE_GROUP_MEMBER.
13777         * modules/group-member (Files): Remove lib/group-member.h.
13778         (Depends-on): Add unistd. Specify conditions.
13779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13780         (Include): Change to <unistd.h>.
13781         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13782         HAVE_GROUP_MEMBER.
13783         * NEWS: Mention the change.
13784         * lib/euidaccess.c: Don't include group-member.h.
13785
13786 2011-05-11  Bruno Haible  <bruno@clisp.org>
13787
13788         group-member: Document module.
13789         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13790         module.
13791
13792 2011-05-11  Bruno Haible  <bruno@clisp.org>
13793
13794         fclose: Fix mistake earlier today.
13795         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13796
13797 2011-05-11  Eric Blake  <eblake@redhat.com>
13798
13799         fclose: preserve fflush errors
13800         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13801         Reported by Jim Meyering.
13802
13803         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13804         * build-aux/bootstrap (check_versions): When no specific version
13805         is required, merely check that the app produces an exit status
13806         that indicates its existence.
13807
13808         maint.mk: drop redundant check
13809         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13810         the same but better.
13811
13812 2011-05-11  Bruno Haible  <bruno@clisp.org>
13813
13814         fclose: Fix possible link error.
13815         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13816         unregister_shadow_fd. Improve comments.
13817         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13818         Eric Blake.
13819
13820 2011-05-11  Jim Meyering  <meyering@redhat.com>
13821
13822         maint.mk: improve "can not" detection and generalize rule name
13823         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13824         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13825         Use the same technique as in sc_prohibit_doubled_word, so that
13826         we recognize "can not" also when the words are separated by a newline.
13827         Suggested by Eric Blake.
13828         (perl_filename_lineno_text_): Define.  Factored out of...
13829         (prohibit_doubled_word_): ...here.  Use the new definition.
13830         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13831         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13832         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13833
13834 2011-05-10  Eric Blake  <eblake@redhat.com>
13835
13836         fclose: avoid double close race when possible
13837         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13838         all but WINDOWS_SOCKETS.
13839
13840 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13841
13842         openat: correct new comment
13843         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13844
13845 2011-05-10  Jim Meyering  <meyering@redhat.com>
13846
13847         openat: add comments
13848         * lib/openat-proc.c (openat_proc_name): Add comments,
13849         mostly from Eric Blake.
13850
13851 2011-05-09  Eric Blake  <eblake@redhat.com>
13852
13853         openat: reduce syscalls in first probe of /proc
13854         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13855         be a directory.  Simplify the probe for .. bugs.
13856         * modules/openat (Depends-on): Drop same-inode.
13857         Reported by Bastien ROUCARIES.
13858
13859 2011-05-09  Jim Meyering  <meyering@redhat.com>
13860
13861         maint.mk: change semantics/name of tight_scope variables
13862         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13863         Rename variables to align with semantics that make them more useful.
13864
13865         maint.mk: tweak new rule's name not to impinge
13866         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13867         (sc_tight_scope): Use new rule name rather than $@-0.
13868
13869         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13870         * top/maint.mk (sc_tight_scope): New rule.
13871         (sc_tight_scope-0): New rule, ifdef'd out.
13872         (_gl_TS_dir): Default.
13873         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13874         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13875
13876 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13877
13878         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13879         Haible <bruno@clisp.org>.
13880
13881 2011-05-08  Bruno Haible  <bruno@clisp.org>
13882
13883         Comments.
13884         * m4/isnanf.m4: Add comment.
13885         * m4/isnanl.m4: Likewise.
13886
13887 2011-05-08  Bruno Haible  <bruno@clisp.org>
13888
13889         glob: Remove obsolete macro.
13890         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13891
13892 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13893
13894         intprops: Sun C 5.11 supports __typeof__
13895         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13896         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13897         which is new.
13898         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13899
13900         intprops: switch to usual gnulib indenting and naming
13901         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13902         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13903
13904         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13905
13906 2011-05-08  Jim Meyering  <meyering@redhat.com>
13907
13908         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13909         * top/maint.mk (release-prep): Use make's --no-print-directory
13910         option when generating the announcement.  This eliminates the
13911         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13912         generated announcement template.
13913
13914 2011-05-08  Bruno Haible  <bruno@clisp.org>
13915
13916         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13917         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13918         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13919
13920 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13921
13922         ignore-value, verify: Omit include files from lib_SOURCES.
13923         * modules/ignore-value, modules/verify (Makefile.am):
13924         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13925         that leads Automake to duplicate use of am__objects_... variables
13926         in Makefile.in.  See
13927         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13928
13929 2011-05-07  Bruno Haible  <bruno@clisp.org>
13930
13931         fclose: Simplify autoconf macro.
13932         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13933         defined.
13934
13935 2011-05-07  Bruno Haible  <bruno@clisp.org>
13936
13937         canonicalize-lgpl: Fix autoconf macro ordering bug.
13938         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13939         gl_STDLIB_H_DEFAULTS.
13940
13941 2011-05-06  Eric Blake  <eblake@redhat.com>
13942
13943         maintainer-makefile: make sc_po_check easier to tune
13944         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13945         to probe for strings, such as an alternate location for gnulib.
13946
13947         fclose: guarantee behavior on seekable stdin
13948         * modules/fclose (Depends-on): Add fflush.
13949         * doc/posix-functions/fclose.texi (fclose): Document this.
13950         * tests/test-fclose.c (main): Make test for this unconditional.
13951
13952 2011-05-06  Bruno Haible  <bruno@clisp.org>
13953
13954         fflush, fpurge: Relicense under LGPLv2+.
13955         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13956         * modules/fpurge (License): Likewise.
13957         With permission from Eric Blake and Jim Meyering.
13958         Suggested by Eric Blake.
13959
13960 2011-05-06  Karl Berry  <karl@gnu.org>
13961
13962         * MODULES.html.sh (func_all_modules): remove exit.
13963
13964 2011-05-06  Jim Meyering  <meyering@redhat.com>
13965
13966         maint.mk: use info-gnu@ as the default only for a stable release
13967         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13968         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13969         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13970         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13971
13972 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         assert-h: new module, which supports C1X-style static_assert
13975         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13976         * lib/verify.h: Revamp so that this can be copied into assert.h,
13977         while retaining the ability to use it standalone as before.
13978         Rename private identifiers so as not to encroach on the
13979         standard C namespace, since this is now used by assert.h.
13980         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13981         the old verify_true.
13982         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13983         the old verify_true.  Use _GL_VERIFY_TYPE.
13984         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13985         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13986         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13987         defined when this file is copied into the replacement assert.h.
13988         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13989         and _Static_assert is not built in.
13990         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13991         defined, and use the new macros mentioned above.
13992         * doc/posix-headers/assert.texi: Document this.
13993
13994 2011-05-05  Bruno Haible  <bruno@clisp.org>
13995
13996         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13997         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13998         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13999         gl_REPLACE_FCLOSE here.
14000         * modules/fflush (Depends-on): Remove fclose.
14001         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
14002         combination with module 'fclose'.
14003
14004 2011-05-05  Bruno Haible  <bruno@clisp.org>
14005
14006         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
14007         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
14008         gl_FUNC_FFLUSH.
14009         (gl_FUNC_FFLUSH): Use it.
14010         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
14011         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
14012         gl_REPLACE_FSEEKO here.
14013
14014 2011-05-05  Bruno Haible  <bruno@clisp.org>
14015
14016         tzset: Relicense under LGPL.
14017         * modules/tzset (License): Change to LGPL.
14018         No agreement needed; it's a no-op.
14019
14020         strtoimax, strtoumax: Relicense under LGPL.
14021         * modules/strtoimax (License): Change to LGPL.
14022         * modules/strtoumax (License): Likewise.
14023         With permission from Jim Meyering, Paul Eggert:
14024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
14025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
14026
14027         getgroups: Relicense under LGPL.
14028         * modules/getgroups (License): Change to LGPL.
14029         With permission from Jim Meyering, Paul Eggert, Eric Blake:
14030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14033
14034         nanosleep: Relicense under LGPL.
14035         * modules/nanosleep (License): Change to LGPL.
14036         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
14037         Haible:
14038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14042
14043         futimens: Relicense under LGPL.
14044         * modules/futimens (License): Change to LGPL.
14045         With permission from Eric Blake:
14046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14047
14048         fflush: Relicense under LGPL.
14049         * modules/fflush (License): Change to LGPL.
14050         With permission from Eric Blake, Bruno Haible, Jim Meyering:
14051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
14054
14055         tmpfile: Relicense under LGPL.
14056         * modules/tmpfile (License): Change to LGPL.
14057         With permission from Ben Pfaff:
14058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14059
14060         isfinite: Relicense under LGPL.
14061         * modules/isfinite (License): Change to LGPL.
14062         With permission from Ben Pfaff, Bruno Haible:
14063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
14065
14066         acosl..tanl: Relicense under LGPL.
14067         * modules/acosl (License): Change to LGPL.
14068         * modules/asinl (License): Likewise.
14069         * modules/atanl (License): Likewise.
14070         * modules/cosl (License): Likewise.
14071         * modules/expl (License): Likewise.
14072         * modules/logl (License): Likewise.
14073         * modules/sinl (License): Likewise.
14074         * modules/sqrtl (License): Likewise.
14075         * modules/tanl (License): Likewise.
14076         Source code originally from glibc and Paolo Bonzini. Agreements:
14077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
14078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
14079
14080 2011-05-05  Bruno Haible  <bruno@clisp.org>
14081
14082         signal: Define sighandler_t.
14083         * lib/signal.in.h (sighandler_t): New type.
14084         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
14085         whether sighandler_t is defined.
14086         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
14087         * modules/signal (Depends-on): Add extensions.
14088         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
14089         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
14090         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
14091
14092 2011-05-05  Eric Blake  <eblake@redhat.com>
14093
14094         maint: remove useless REPLACE_*_H macros
14095         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
14096         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14097         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14098         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
14099         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14100         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14101         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
14102         * m4/btowc.m4: Update callers.
14103         * m4/dirfd.m4: Likewise.
14104         * m4/duplocale.m4: Likewise.
14105         * m4/fchdir.m4: Likewise.
14106         * m4/fdopendir.m4: Likewise.
14107         * m4/inet_ntop.m4: Likewise.
14108         * m4/inet_pton.m4: Likewise.
14109         * m4/ioctl.m4: Likewise.
14110         * m4/mbrlen.m4: Likewise.
14111         * m4/mbrtowc.m4: Likewise.
14112         * m4/mbsinit.m4: Likewise.
14113         * m4/mbsnrtowcs.m4: Likewise.
14114         * m4/mbsrtowcs.m4: Likewise.
14115         * m4/poll.m4: Likewise.
14116         * m4/setlocale.m4: Likewise.
14117         * m4/wcrtomb.m4: Likewise.
14118         * m4/wcsnrtombs.m4: Likewise.
14119         * m4/wcsrtombs.m4: Likewise.
14120         * m4/wctob.m4: Likewise.
14121         * m4/wcwidth.m4: Likewise.
14122         * modules/posix_spawn: Likewise.
14123         * modules/posix_spawn_file_actions_addclose: Likewise.
14124         * modules/posix_spawn_file_actions_adddup2: Likewise.
14125         * modules/posix_spawn_file_actions_addopen: Likewise.
14126         * modules/posix_spawn_file_actions_destroy: Likewise.
14127         * modules/posix_spawn_file_actions_init: Likewise.
14128         * modules/posix_spawnattr_destroy: Likewise.
14129         * modules/posix_spawnattr_getflags: Likewise.
14130         * modules/posix_spawnattr_getpgroup: Likewise.
14131         * modules/posix_spawnattr_getschedparam: Likewise.
14132         * modules/posix_spawnattr_getschedpolicy: Likewise.
14133         * modules/posix_spawnattr_getsigdefault: Likewise.
14134         * modules/posix_spawnattr_getsigmask: Likewise.
14135         * modules/posix_spawnattr_init: Likewise.
14136         * modules/posix_spawnattr_setflags: Likewise.
14137         * modules/posix_spawnattr_setpgroup: Likewise.
14138         * modules/posix_spawnattr_setschedparam: Likewise.
14139         * modules/posix_spawnattr_setschedpolicy: Likewise.
14140         * modules/posix_spawnattr_setsigdefault: Likewise.
14141         * modules/posix_spawnattr_setsigmask: Likewise.
14142         * modules/posix_spawnp: Likewise.
14143
14144 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
14145
14146         Add option to do-release-commit-and-tag to specify branch.
14147         * build-aux/do-release-commit-and-tag: Add --branch.
14148
14149 2011-05-03  Bruno Haible  <bruno@clisp.org>
14150
14151         Avoid unnecessary compilation units, through conditional dependencies.
14152         * modules/accept (Depends-on): Add conditions to the dependencies.
14153         * modules/acosl (Depends-on): Likewise.
14154         * modules/argz (Depends-on): Likewise.
14155         * modules/asinl (Depends-on): Likewise.
14156         * modules/atanl (Depends-on): Likewise.
14157         * modules/atoll (Depends-on): Likewise.
14158         * modules/bind (Depends-on): Likewise.
14159         * modules/btowc (Depends-on): Likewise.
14160         * modules/canonicalize-lgpl (Depends-on): Likewise.
14161         * modules/ceil (Depends-on): Likewise.
14162         * modules/ceilf (Depends-on): Likewise.
14163         * modules/ceill (Depends-on): Likewise.
14164         * modules/chdir-long (Depends-on): Likewise.
14165         * modules/chown (Depends-on): Likewise.
14166         * modules/close (Depends-on): Likewise.
14167         * modules/connect (Depends-on): Likewise.
14168         * modules/cosl (Depends-on): Likewise.
14169         * modules/dirfd (Depends-on): Likewise.
14170         * modules/dprintf (Depends-on): Likewise.
14171         * modules/dprintf-posix (Depends-on): Likewise.
14172         * modules/error (Depends-on): Likewise.
14173         * modules/euidaccess (Depends-on): Likewise.
14174         * modules/expl (Depends-on): Likewise.
14175         * modules/faccessat (Depends-on): Likewise.
14176         * modules/fchdir (Depends-on): Likewise.
14177         * modules/fclose (Depends-on): Likewise.
14178         * modules/fcntl (Depends-on): Likewise.
14179         * modules/fdopendir (Depends-on): Likewise.
14180         * modules/fflush (Depends-on): Likewise.
14181         * modules/floor (Depends-on): Likewise.
14182         * modules/floorf (Depends-on): Likewise.
14183         * modules/floorl (Depends-on): Likewise.
14184         * modules/fnmatch (Depends-on): Likewise.
14185         * modules/fopen (Depends-on): Likewise.
14186         * modules/fprintf-posix (Depends-on): Likewise.
14187         * modules/frexp (Depends-on): Likewise.
14188         * modules/frexp-nolibm (Depends-on): Likewise.
14189         * modules/frexpl (Depends-on): Likewise.
14190         * modules/frexpl-nolibm (Depends-on): Likewise.
14191         * modules/fseek (Depends-on): Likewise.
14192         * modules/fsusage (Depends-on): Likewise.
14193         * modules/ftell (Depends-on): Likewise.
14194         * modules/ftello (Depends-on): Likewise.
14195         * modules/futimens (Depends-on): Likewise.
14196         * modules/getcwd (Depends-on): Likewise.
14197         * modules/getcwd-lgpl (Depends-on): Likewise.
14198         * modules/getdelim (Depends-on): Likewise.
14199         * modules/getdomainname (Depends-on): Likewise.
14200         * modules/getgroups (Depends-on): Likewise.
14201         * modules/gethostname (Depends-on): Likewise.
14202         * modules/getline (Depends-on): Likewise.
14203         * modules/getlogin_r (Depends-on): Likewise.
14204         * modules/getopt-posix (Depends-on): Likewise.
14205         * modules/getpeername (Depends-on): Likewise.
14206         * modules/getsockname (Depends-on): Likewise.
14207         * modules/getsockopt (Depends-on): Likewise.
14208         * modules/getsubopt (Depends-on): Likewise.
14209         * modules/getusershell (Depends-on): Likewise.
14210         * modules/glob (Depends-on): Likewise.
14211         * modules/grantpt (Depends-on): Likewise.
14212         * modules/iconv_open (Depends-on): Likewise.
14213         * modules/iconv_open-utf (Depends-on): Likewise.
14214         * modules/inet_ntop (Depends-on): Likewise.
14215         * modules/inet_pton (Depends-on): Likewise.
14216         * modules/ioctl (Depends-on): Likewise.
14217         * modules/isapipe (Depends-on): Likewise.
14218         * modules/isfinite (Depends-on): Likewise.
14219         * modules/isinf (Depends-on): Likewise.
14220         * modules/lchown (Depends-on): Likewise.
14221         * modules/ldexpl (Depends-on): Likewise.
14222         * modules/link (Depends-on): Likewise.
14223         * modules/linkat (Depends-on): Likewise.
14224         * modules/listen (Depends-on): Likewise.
14225         * modules/logl (Depends-on): Likewise.
14226         * modules/lstat (Depends-on): Likewise.
14227         * modules/mbrlen (Depends-on): Likewise.
14228         * modules/mbrtowc (Depends-on): Likewise.
14229         * modules/mbsinit (Depends-on): Likewise.
14230         * modules/mbsnrtowcs (Depends-on): Likewise.
14231         * modules/mbsrtowcs (Depends-on): Likewise.
14232         * modules/mbtowc (Depends-on): Likewise.
14233         * modules/memcmp (Depends-on): Likewise.
14234         * modules/mkdir (Depends-on): Likewise.
14235         * modules/mkdtemp (Depends-on): Likewise.
14236         * modules/mkfifo (Depends-on): Likewise.
14237         * modules/mkfifoat (Depends-on): Likewise.
14238         * modules/mknod (Depends-on): Likewise.
14239         * modules/mkostemp (Depends-on): Likewise.
14240         * modules/mkostemps (Depends-on): Likewise.
14241         * modules/mkstemp (Depends-on): Likewise.
14242         * modules/mkstemps (Depends-on): Likewise.
14243         * modules/mktime (Depends-on): Likewise.
14244         * modules/nanosleep (Depends-on): Likewise.
14245         * modules/open (Depends-on): Likewise.
14246         * modules/openat (Depends-on): Likewise.
14247         * modules/perror (Depends-on): Likewise.
14248         * modules/poll (Depends-on): Likewise.
14249         * modules/popen (Depends-on): Likewise.
14250         * modules/posix_spawn (Depends-on): Likewise.
14251         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14252         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14253         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14254         * modules/posix_spawnp (Depends-on): Likewise.
14255         * modules/pread (Depends-on): Likewise.
14256         * modules/printf-posix (Depends-on): Likewise.
14257         * modules/ptsname (Depends-on): Likewise.
14258         * modules/putenv (Depends-on): Likewise.
14259         * modules/pwrite (Depends-on): Likewise.
14260         * modules/readline (Depends-on): Likewise.
14261         * modules/readlink (Depends-on): Likewise.
14262         * modules/readlinkat (Depends-on): Likewise.
14263         * modules/recv (Depends-on): Likewise.
14264         * modules/recvfrom (Depends-on): Likewise.
14265         * modules/regex (Depends-on): Likewise.
14266         * modules/remove (Depends-on): Likewise.
14267         * modules/rename (Depends-on): Likewise.
14268         * modules/renameat (Depends-on): Likewise.
14269         * modules/rmdir (Depends-on): Likewise.
14270         * modules/round (Depends-on): Likewise.
14271         * modules/roundf (Depends-on): Likewise.
14272         * modules/roundl (Depends-on): Likewise.
14273         * modules/rpmatch (Depends-on): Likewise.
14274         * modules/select (Depends-on): Likewise.
14275         * modules/send (Depends-on): Likewise.
14276         * modules/sendto (Depends-on): Likewise.
14277         * modules/setenv (Depends-on): Likewise.
14278         * modules/setlocale (Depends-on): Likewise.
14279         * modules/setsockopt (Depends-on): Likewise.
14280         * modules/shutdown (Depends-on): Likewise.
14281         * modules/sigaction (Depends-on): Likewise.
14282         * modules/signbit (Depends-on): Likewise.
14283         * modules/sigprocmask (Depends-on): Likewise.
14284         * modules/sinl (Depends-on): Likewise.
14285         * modules/sleep (Depends-on): Likewise.
14286         * modules/snprintf (Depends-on): Likewise.
14287         * modules/snprintf-posix (Depends-on): Likewise.
14288         * modules/socket (Depends-on): Likewise.
14289         * modules/sprintf-posix (Depends-on): Likewise.
14290         * modules/sqrtl (Depends-on): Likewise.
14291         * modules/stat (Depends-on): Likewise.
14292         * modules/strchrnul (Depends-on): Likewise.
14293         * modules/strdup-posix (Depends-on): Likewise.
14294         * modules/strerror (Depends-on): Likewise.
14295         * modules/strerror_r-posix (Depends-on): Likewise.
14296         * modules/strndup (Depends-on): Likewise.
14297         * modules/strnlen (Depends-on): Likewise.
14298         * modules/strptime (Depends-on): Likewise.
14299         * modules/strsep (Depends-on): Likewise.
14300         * modules/strsignal (Depends-on): Likewise.
14301         * modules/strstr-simple (Depends-on): Likewise.
14302         * modules/strtod (Depends-on): Likewise.
14303         * modules/strtoimax (Depends-on): Likewise.
14304         * modules/strtok_r (Depends-on): Likewise.
14305         * modules/strtoumax (Depends-on): Likewise.
14306         * modules/symlink (Depends-on): Likewise.
14307         * modules/symlinkat (Depends-on): Likewise.
14308         * modules/tanl (Depends-on): Likewise.
14309         * modules/tcgetsid (Depends-on): Likewise.
14310         * modules/tmpfile (Depends-on): Likewise.
14311         * modules/trunc (Depends-on): Likewise.
14312         * modules/truncf (Depends-on): Likewise.
14313         * modules/truncl (Depends-on): Likewise.
14314         * modules/uname (Depends-on): Likewise.
14315         * modules/unlink (Depends-on): Likewise.
14316         * modules/unlockpt (Depends-on): Likewise.
14317         * modules/unsetenv (Depends-on): Likewise.
14318         * modules/usleep (Depends-on): Likewise.
14319         * modules/utimensat (Depends-on): Likewise.
14320         * modules/vasprintf (Depends-on): Likewise.
14321         * modules/vdprintf (Depends-on): Likewise.
14322         * modules/vdprintf-posix (Depends-on): Likewise.
14323         * modules/vfprintf-posix (Depends-on): Likewise.
14324         * modules/vprintf-posix (Depends-on): Likewise.
14325         * modules/vsnprintf (Depends-on): Likewise.
14326         * modules/vsnprintf-posix (Depends-on): Likewise.
14327         * modules/vsprintf-posix (Depends-on): Likewise.
14328         * modules/wcrtomb (Depends-on): Likewise.
14329         * modules/wcscasecmp (Depends-on): Likewise.
14330         * modules/wcscspn (Depends-on): Likewise.
14331         * modules/wcsdup (Depends-on): Likewise.
14332         * modules/wcsncasecmp (Depends-on): Likewise.
14333         * modules/wcsnrtombs (Depends-on): Likewise.
14334         * modules/wcspbrk (Depends-on): Likewise.
14335         * modules/wcsrtombs (Depends-on): Likewise.
14336         * modules/wcsspn (Depends-on): Likewise.
14337         * modules/wcsstr (Depends-on): Likewise.
14338         * modules/wcstok (Depends-on): Likewise.
14339         * modules/wcswidth (Depends-on): Likewise.
14340         * modules/wctob (Depends-on): Likewise.
14341         * modules/wctomb (Depends-on): Likewise.
14342         * modules/wctype (Depends-on): Likewise.
14343         * modules/wcwidth (Depends-on): Likewise.
14344         * modules/write (Depends-on): Likewise.
14345
14346 2011-05-03  Bruno Haible  <bruno@clisp.org>
14347
14348         Support for conditional dependencies.
14349         * doc/gnulib.texi (Module description): Document the syntax of
14350         conditional dependencies.
14351         * gnulib-tool: New option --conditional-dependencies.
14352         (func_usage): Document it.
14353         (cond_dependencies): New variable.
14354         (func_get_automake_snippet_conditional,
14355         func_get_automake_snippet_unconditional): New functions, extracted from
14356         func_get_automake_snippet.
14357         (func_get_automake_snippet): Use them.
14358         (sed_first_32_chars): New variable.
14359         (func_module_shellfunc_name): New function.
14360         (func_module_shellvar_name): New function.
14361         (func_module_conditional_name): New function.
14362         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14363         func_cond_module_condition): New functions.
14364         (func_modules_transitive_closure): Add support for conditional
14365         dependencies.
14366         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14367         conditional automake snippet in an automake conditional.
14368         (func_emit_autoconf_snippets): Emit shell functions that contain the
14369         code for conditional modules.
14370         (func_import, func_create_testdir): Update specification.
14371
14372 2011-05-03  Eric Blake  <eblake@redhat.com>
14373
14374         test-getaddrinfo: report error information
14375         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14376
14377 2011-05-03  Jim Meyering  <meyering@redhat.com>
14378
14379         bootstrap: avoid build failure when $GZIP is set
14380         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14381         program name.  If defined at all, it is supposed to list gzip options.
14382         Reported by Alan Curry in http://debbugs.gnu.org/8609
14383
14384 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14385
14386         readme-release: new module with release instructions
14387         * modules/readme-release: New module.
14388         * top/README-release: New file, from coreutils, grep, diffutils.
14389         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14390
14391 2011-05-02  Eric Blake  <eblake@redhat.com>
14392
14393         fflush: also replace fclose when fixing fflush
14394         * modules/fflush (Depends-on): Add fclose.
14395         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14396         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14397         memstreams with no backing fd.
14398         * doc/posix-functions/fclose.texi (fclose): Document the use of
14399         fflush module to fix the bug.
14400         * tests/test-fclose.c (main): Relax test when fclose is used in
14401         isolation.
14402
14403         fclose: add some tests
14404         * modules/fclose-tests: New test module.
14405         * tests/test-fclose.c: New file.
14406         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14407
14408         fclose: reduced dependencies
14409         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14410         simpler lseek.
14411         * lib/fclose.c (rpl_fclose): Likewise.
14412         Reported by Simon Josefsson.
14413
14414         exit: drop remaining clients
14415         * modules/argmatch (Depends-on): Replace exit with stdlib.
14416         * modules/copy-file (Depends-on): Likewise.
14417         * modules/execute (Depends-on): Likewise.
14418         * modules/exitfail (Depends-on): Likewise.
14419         * modules/obstack (Depends-on): Likewise.
14420         * modules/pagealign_alloc (Depends-on): Likewise.
14421         * modules/pipe-filter-gi (Depends-on): Likewise.
14422         * modules/pipe-filter-ii (Depends-on): Likewise.
14423         * modules/savewd (Depends-on): Likewise.
14424         * modules/spawn-pipe (Depends-on): Likewise.
14425         * modules/wait-process (Depends-on): Likewise.
14426         * modules/xsetenv (Depends-on): Likewise.
14427         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14428         * modules/git-merge-changelog (Depends-on): Likewise.
14429         * modules/long-options (Depends-on): Likewise.
14430         * modules/pt_chown (Depends-on): Likewise.
14431         * modules/sysexits (Depends-on): Likewise.
14432
14433         freading: relax license from LGPLv3+ to LGPLv2+
14434         * modules/freading (License): Relax LGPL version.
14435
14436 2011-05-02  Bruno Haible  <bruno@clisp.org>
14437
14438         fchdir: Remove unused dependencies.
14439         * modules/fchdir (Depends-on): Remove include_next.
14440
14441 2011-05-02  Bruno Haible  <bruno@clisp.org>
14442
14443         gnulib-tool: Refactor.
14444         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14445         from func_emit_autoconf_snippets.
14446         (func_emit_autoconf_snippets): Use it.
14447
14448 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14449
14450         * NEWS: Document removal of 'exit'.
14451         * modules/exit: Remove file.
14452
14453 2011-05-01  Bruno Haible  <bruno@clisp.org>
14454
14455         Update DEPENDENCIES.
14456         * DEPENDENCIES (gettext): Recommend the newest release.
14457         Reported by Simon Josefsson.
14458
14459 2011-05-01  Bruno Haible  <bruno@clisp.org>
14460
14461         gnulib-tool: Reduce code duplication.
14462         * gnulib-tool (func_emit_autoconf_snippets): New function.
14463         (func_import, func_create_testdir): Use it.
14464
14465 2011-04-30  Eric Blake  <eblake@redhat.com>
14466
14467         fclose: don't fail on non-seekable input stream
14468         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14469         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14470         since fflush is allowed to fail in that case.
14471
14472 2011-04-30  Bruno Haible  <bruno@clisp.org>
14473
14474         dup3: cleanup
14475         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14476
14477 2011-04-30  Bruno Haible  <bruno@clisp.org>
14478
14479         netdb: Make it work in C++ mode.
14480         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14481         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14482         module.
14483         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14484         gl_MODULE_INDICATOR_FOR_TESTS.
14485         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14486         * modules/netdb-c++-tests: New file.
14487         * tests/test-netdb-c++.cc: New file.
14488
14489 2011-04-30  Bruno Haible  <bruno@clisp.org>
14490
14491         New modules 'vfscanf', 'vscanf'.
14492         * modules/vfscanf: New file.
14493         * modules/vscanf: New file.
14494         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14495         here.
14496         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14497         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14498
14499 2011-04-30  Bruno Haible  <bruno@clisp.org>
14500
14501         passfd: Add comments.
14502         * lib/passfd.c: Add comments about platforms.
14503
14504 2011-04-30  Bruno Haible  <bruno@clisp.org>
14505
14506         sys_uio: Make <sys/uio.h> self-contained.
14507         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14508         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14509
14510 2011-04-30  Bruno Haible  <bruno@clisp.org>
14511
14512         sys_socket: Ensure 'struct iovec' definition.
14513         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14514         <sys/socket.h>.
14515         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14516
14517 2011-04-30  Bruno Haible  <bruno@clisp.org>
14518
14519         sys_uio: Protect definition of 'struct iovec'.
14520         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14521         it as a C struct.
14522
14523 2011-04-30  Bruno Haible  <bruno@clisp.org>
14524
14525         manywarnings: fix indentation
14526         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14527
14528 2011-04-30  Pádraig Brady <P@draigBrady.com>
14529
14530         manywarnings: add -Wno-missing-field-initializers if needed.
14531         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14532         option if it's needed to allow initialization with { 0, }
14533
14534 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14535
14536         announce-gen: cosmetic improvement
14537         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14538
14539 2011-04-29  Jim Meyering  <meyering@redhat.com>
14540
14541         vc-list-files: indent with spaces, not TABs
14542         * build-aux/vc-list-files: Convert leading TABs to spaces,
14543         to match the style of most other files in gnulib.
14544
14545         announce-gen: indent with spaces, not TABs
14546         * build-aux/announce-gen: Convert all TABs to spaces, to match
14547         the style of most other files in gnulib.
14548
14549 2011-04-29  Eric Blake  <eblake@redhat.com>
14550
14551         quotearg: avoid uninitialized variable use
14552         * lib/quotearg.c (quoting_options_from_style): Initialize
14553         remaining fields, and ensure that custom styles are only used via
14554         quoting_options rather than quoting_style.
14555
14556 2011-04-29  Jim Meyering  <meyering@redhat.com>
14557
14558         maint.mk: remove unused VC-tag variable
14559         * top/maint.mk (VC-tag): Remove unused variable.
14560
14561 2011-04-29  Bruno Haible  <bruno@clisp.org>
14562
14563         netdb: fix gai_strerror replacements
14564         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14565         * modules/netdb: Substitute it.
14566
14567 2011-04-29  Jim Meyering  <meyering@redhat.com>
14568
14569         test-getcwd.c: avoid new set-but-not-used warning
14570         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14571         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14572         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14573         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14574
14575         test-hash.c: avoid a new shadowing warning
14576         * tests/test-hash.c (main): Don't shadow "dup".
14577
14578 2011-04-28  Eric Blake  <eblake@redhat.com>
14579
14580         getaddrinfo: fix gai_strerror signature
14581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14582         and work around mingw with UNICODE defined.
14583         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14584         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14585         * modules/netdb (Makefile.am): Substitute it.
14586         * lib/netdb.in.h (gai_strerror): Declare replacement.
14587         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14588         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14589         the fix.
14590
14591         getsockopt: avoid compiler warning
14592         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14593         Reported by Matthias Bolte.
14594
14595         tests: drop unused link dependency
14596         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14597         * modules/dirent-safer-tests (Makefile.am): Likewise.
14598         * modules/fdopendir-tests (Makefile.am): Likewise.
14599         * modules/mkfifoat-tests (Makefile.am): Likewise.
14600         * modules/openat-safer-tests (Makefile.am): Likewise.
14601         * modules/openat-tests (Makefile.am): Likewise.
14602         * modules/readlinkat-tests (Makefile.am): Likewise.
14603         * modules/symlinkat-tests (Makefile.am): Likewise.
14604         * modules/linkat-tests (Makefile.am): Likewise.
14605         (Depends-on): Switch to filenamecat-lgpl.
14606         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14607         LIBINTL.
14608         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14609         * tests/test-linkat.c (main): Don't require xalloc.
14610
14611         hash, mgetgroups: drop xalloc dependency
14612         * lib/hash.c (includes): Adjust includes.
14613         * lib/mgetgroups.c (includes): Likewise.
14614         (xgetgroups): Move...
14615         * lib/xgetgroups.c: ...to new file.
14616         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14617         * modules/xgetgroups: New file, split from...
14618         * modules/mgetgroups: ...here.
14619         (Depends-on): Add xalloc-oversized.
14620         * modules/hash (Depends-on): Likewise.
14621         * modules/hash-tests (Depends-on): Drop xalloc.
14622         (test_hash_LDADD): Drop unused library.
14623         * tests/test-hash.c (main): Break xalloc dependency.
14624         (includes): Drop unused include.
14625
14626         xalloc-oversized: new module
14627         * modules/xalloc-oversized: New module.
14628         * modules/xalloc (Depends-on): Add it.
14629         * lib/xalloc.h (xalloc_oversized): Move...
14630         * lib/xalloc-oversized.h: ...into new file.
14631
14632         utimecmp: drop dependency on xmalloc
14633         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14634         due to memory pressure.
14635         * modules/utimecmp (Depends-on): Drop xalloc.
14636
14637 2011-04-27  Eric Blake  <eblake@redhat.com>
14638
14639         getcwd: fix mingw bugs
14640         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14641         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14642         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14643
14644 2011-04-27  Bruno Haible  <bruno@clisp.org>
14645
14646         mkstemps: Ensure declaration on MacOS X 10.5.
14647         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14648         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14649         MacOS X.
14650
14651 2011-04-27  Bruno Haible  <bruno@clisp.org>
14652
14653         mkstemp: More documentation.
14654         * doc/posix-functions/mkstemp.texi: Document header file problem on
14655         MacOS X.
14656
14657 2011-04-27  Bruno Haible  <bruno@clisp.org>
14658
14659         mkstemp: Tweak configure message when cross-compiling.
14660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14661         result as a guess.
14662
14663 2011-04-27  Bruno Haible  <bruno@clisp.org>
14664
14665         clean-temp: Clarify what it does.
14666         * lib/clean-temp.h: Add more comments.
14667         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14668         module.
14669         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14670         * doc/glibc-functions/mkstemps.texi: Likewise.
14671         * doc/glibc-functions/mkostemps.texi: Likewise.
14672
14673 2011-04-27  Eric Blake  <eblake@redhat.com>
14674
14675         fchdir: avoid extra chdir and fix test
14676         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14677         getcwd-lgpl.
14678         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14679         have to be canonical.
14680         (canonicalize_file_name): Drop unused macro.
14681         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14682
14683         filenamecat-lgpl: fix licence
14684         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14685         when it was first created.
14686
14687         linkat, renameat: add missing dependency
14688         * modules/linkat (Depends-on): Require getcwd-lgpl.
14689         * modules/renameat (Depends-on): Likewise.
14690
14691         tests: reduce dependencies
14692         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14693         * tests/test-renameat.c (main): Likewise.
14694         * modules/linkat-tests (Depends-on): Relax dependency.
14695         * modules/renameat-tests (Depends-on): Likewise.
14696         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14697         dependency explicit.
14698
14699         save-cwd: reduce default dependency
14700         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14701         * lib/save-cwd.c: Update comments.
14702         * NEWS: Document the semantic change.
14703
14704         getcwd: enhance tests
14705         * tests/test-getcwd-lgpl.c: New file, taken from...
14706         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14707         repeat long path stress tests from m4 probe.
14708         * modules/getcwd-lgpl-tests: New module.
14709         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14710         * m4/getcwd-abort-bug.m4: Update comment.
14711         * m4/getcwd-path-max.m4: Likewise.
14712
14713         getcwd-lgpl: new module
14714         * modules/getcwd-lgpl: New module.
14715         * lib/getcwd-lgpl.c: New file.
14716         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14717         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14718         * modules/getcwd (configure.ac): Set C witness.
14719         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14720
14721         getcwd: tweak comments
14722         * m4/getcwd-abort-bug.m4: Fix comments.
14723         * m4/getcwd-path-max.m4: Likewise.
14724         * m4/getcwd.m4: Likewise.
14725
14726 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14727         and Eric Blake  <eblake@redhat.com>
14728
14729         mkstemp: replace if system version uses wrong permissions
14730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14731         read/write mode bits set in file created by mkstemp.
14732         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14733
14734 2011-04-27  Eric Blake  <eblake@redhat.com>
14735
14736         passfd: avoid compiler warning
14737         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14738         Reported by Laine Stump.
14739
14740 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14741
14742         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14743         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14744
14745 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14746         and Eric Blake  <eblake@redhat.com>
14747
14748         mkstemp: mention clean-temp module
14749         * lib/mkstemp.c: Add comment.
14750         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14751
14752 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         inttypes: also provide default values for 32-bit tests
14755         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14756         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14757
14758 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14759
14760         strtoumax: remove dependency on strtoimax
14761         This is like the strtoull change of yesterday.
14762         * modules/strtoumax (Files): Add lib/strtoimax.c.
14763         (Depends-on): Remove strtoimax and add verify.
14764
14765         inttypes-incomplete: new module
14766         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14767         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14768         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14769         of gl_INTTYPES_H.
14770         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14771         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14772         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14773         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14774         * modules/strtoumax, modules/xstrtol (Depends-on):
14775         Depend on inttypes-incomplete, not inttypes.
14776         * modules/inttypes-incomplete: New module, containing the contents
14777         of the old modules/inttypes module, except that the Files: section
14778         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14779         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14780         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14781         (Depends-on): Depend only on inttypes-incomplete.
14782         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14783
14784         inttypes: omit now-redundant strtoimax and strtoumax work
14785         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14786         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14787
14788         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14789         This supports apps that need pointers to strtoimax and strtoumax,
14790         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14791         nonexistent functions.  See
14792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14793         et seq.
14794         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14795         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14796         a macro.
14797         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14798
14799 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14800
14801         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14802
14803 2011-04-25  Bruno Haible  <bruno@clisp.org>
14804
14805         strtol, strtoul: Mark modules as obsolete.
14806         * modules/strtol (Status, Notice): New sections.
14807         * modules/strtoul (Status, Notice): New sections.
14808
14809 2011-04-25  Bruno Haible  <bruno@clisp.org>
14810
14811         strtod: Remove check for strtod, unless supporting old platforms.
14812         * modules/strtod-obsolete: New file.
14813         * m4/strtod-obsolete.m4: New file.
14814         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14815         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14816         * modules/strtod (Depends-on): Add strtod-obsolete.
14817         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14818
14819 2011-04-25  Bruno Haible  <bruno@clisp.org>
14820
14821         strcase: Make module obsolete.
14822         * modules/strcase (Status, Notice): New sections.
14823
14824 2011-04-25  Bruno Haible  <bruno@clisp.org>
14825
14826         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14827         * modules/dup2-obsolete: New file.
14828         * m4/dup2-obsolete.m4: New file.
14829         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14830         gl_FUNC_DUP2_OBSOLETE is not also defined.
14831         * modules/dup2 (Depends-on): Add dup2-obsolete.
14832         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14833
14834 2011-04-25  Bruno Haible  <bruno@clisp.org>
14835
14836         strnlen: Avoid memchr related link error on old obsolete platforms.
14837         * modules/memchr-obsolete: New file.
14838         * m4/memchr-obsolete.m4: New file.
14839         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14840         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14841         * modules/memchr (Depends-on): Add memchr-obsolete.
14842         * modules/strnlen (Depends-on): Likewise.
14843         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14844
14845 2011-04-25  Jim Meyering  <meyering@redhat.com>
14846
14847         maint.mk: makefile_at_at_check extend and clean up
14848         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14849         in addition to */Makefile.am.
14850         Exempt legitimate uses of @VAR@ notation, e.g.,
14851         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14852         Remove obsolete coreutils-specific comment.
14853         Prompted by discussion here:
14854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14855
14856 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14857
14858         strtoul: remove dependency on strtol
14859         This is so that 'configure' need not check for strtol merely because
14860         the application needs strtoul.
14861         * modules/strtoul (Files): Add lib/strtol.c.
14862         (Depends-on): Remove strtol.
14863
14864         strtoull: remove dependency on strtoul
14865         This is like the strtoll change.
14866         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14867         (Depends-on): Remove strtoul.
14868
14869         strtoll: remove dependency on strtol
14870         This is so that 'configure' need not check for strtol merely because
14871         the application needs strtoll.
14872         * modules/strtoll (Files): Add lib/strtol.c.
14873         (Depends-on): Remove strtol.
14874
14875 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14876
14877         inttypes: Move some configure check to module 'imaxdiv'.
14878         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14879         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14880         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14881
14882 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14883
14884         inttypes: Move some configure check to module 'imaxabs'.
14885         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14886         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14887         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14888
14889 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14890
14891         inttypes: Remove configure tests that are not needed since 2009-12-31.
14892         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14893         gl_cv_header_working_inttypes_h.
14894
14895 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14896
14897         * modules/strnlen (Depends-on): Remove memchr.
14898         The strnlen implementation doesn't need the memchr module's fixes; see
14899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14900
14901         strtol: remove dependency on wchar
14902         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14903         * modules/strtol (Depends-on): Remove wchar.
14904
14905 2011-04-21  Eric Blake  <eblake@redhat.com>
14906
14907         passfd: fix test regression on Linux
14908         * modules/passfd-tests (configure.ac): Correct socketpair check.
14909
14910         passfd: speed up configure and drop unused code
14911         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14912         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14913         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14914         Instead of probing at configure for unix_scm_rights_bsd44_way,
14915         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14916         check to a struct member probe.
14917         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14918         (sendfd, recvfd): Update preprocessor checks.
14919         * modules/passfd (Files): Reflect rename, and drop unused file.
14920         (Depends-on): Drop unused dependency.
14921
14922         passfd: allow compilation on mingw
14923         * modules/sys_socket (Depends-on): Add sys_uio.
14924         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14925         iovec and a minimal struct msghdr.
14926         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14927         * tests/test-sys_socket.c (main): Enhance test.
14928         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14929         guaranteed to provide what we need.
14930         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14931         * modules/passfd-tests (Depends-on): Add sys_wait.
14932         * tests/test-passfd.c (main): Skip test on mingw, for now.
14933         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14934         partial 'struct msghdr' implementation.
14935
14936         sys_uio: new module
14937         * modules/sys_uio: New module.
14938         * modules/sys_uio-tests: Likewise.
14939         * lib/sys_uio.in.h: New file.
14940         * m4/sys_uio_h.m4: Likewise.
14941         * tests/test-sys_uio.c: Likewise.
14942         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14943         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14944
14945 2011-04-20  Jim Meyering  <meyering@redhat.com>
14946
14947         useless-if-before-free: avoid false-positive
14948         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14949         disjunct so that it too requires a terminating ";".  Without that,
14950         this script would identify as useless one statement from gcc that
14951         was not:
14952           if (aligned_ptr)
14953             free (((void **) aligned_ptr) [-1]);
14954
14955 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14956
14957         doc: update users.txt.
14958         * users.txt: Add barcode.
14959
14960 2011-04-19  Bruno Haible  <bruno@clisp.org>
14961
14962         ioctl: Remove link dependency on native Windows.
14963         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14964         (gl_close_fn, gl_ioctl_fn): New types.
14965         (struct fd_hook): Renamed from struct close_hook. Change type of
14966         private_close_fn field. Add private_ioctl_fn field.
14967         (close_hook_fn): Add parameter for primary close method.
14968         (execute_close_hooks, execute_all_close_hooks): Likewise.
14969         (ioctl_hook_fn): New type.
14970         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14971         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14972         argument.
14973         (unregister_fd_hook): Renamed from unregister_close_hook.
14974         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14975         Don't include <unistd.h>.
14976         (close): Remove undef.
14977         (anchor): Update.
14978         (execute_close_hooks): Add argument for primary close method.
14979         (execute_all_close_hooks): Likewise.
14980         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14981         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14982         argument. Allow each argument to be NULL.
14983         (unregister_fd_hook): Renamed from unregister_close_hook.
14984         * lib/close.c (rpl_close): Pass 'close' function pointer to
14985         execute_all_close_hooks.
14986         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14987         (primary_ioctl): New function.
14988         (ioctl): Don't call ioctlsocket here. Instead, call
14989         execute_all_ioctl_hooks.
14990         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14991         close method.
14992         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14993         (fd_sockets_hook): Renamed from close_sockets_hook.
14994         (gl_sockets_startup, gl_sockets_cleanup): Update.
14995         * modules/fd-hook: Renamed from modules/close-hook. Update.
14996         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14997         * modules/sockets (Depends-on): Likewise.
14998         * modules/ioctl (Depends-on): Add fd-hook.
14999         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
15000         GNULIB_SOCKET.
15001
15002 2011-04-19  Bruno Haible  <bruno@clisp.org>
15003
15004         Move the support of O_NONBLOCK in open() to the 'open' module.
15005         * modules/nonblocking (Depends-on): Remove 'open'.
15006         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
15007         gl_cv_have_open_O_NONBLOCK.
15008         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
15009         O_NONBLOCK support.
15010         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
15011
15012 2011-04-17  Bruno Haible  <bruno@clisp.org>
15013
15014         pipe2: Simplify code.
15015         * lib/pipe2.c (pipe2): Reduce code duplication.
15016
15017 2011-04-17  Bruno Haible  <bruno@clisp.org>
15018
15019         nonblocking: Add comment.
15020         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
15021
15022 2011-04-17  Bruno Haible  <bruno@clisp.org>
15023
15024         nonblocking: Add tests for sockets.
15025         * tests/test-nonblocking-socket.sh: New file.
15026         * tests/test-nonblocking-socket-main.c: New file.
15027         * tests/test-nonblocking-socket-child.c: New file.
15028         * tests/test-nonblocking-socket.h: New file.
15029         * tests/socket-server.h: New file.
15030         * tests/socket-client.h: New file.
15031         * modules/nonblocking-socket-tests: New file.
15032         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
15033
15034 2011-04-17  Bruno Haible  <bruno@clisp.org>
15035
15036         nonblocking: Add tests for pipes.
15037         * tests/test-nonblocking-pipe.sh: New file.
15038         * tests/test-nonblocking-pipe-main.c: New file.
15039         * tests/test-nonblocking-pipe-child.c: New file.
15040         * tests/test-nonblocking-pipe.h: New file.
15041         * tests/test-nonblocking-writer.h: New file.
15042         * tests/test-nonblocking-reader.h: New file.
15043         * tests/test-nonblocking-misc.h: New file.
15044         * modules/nonblocking-pipe-tests: New file.
15045         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
15046
15047 2011-04-16  Bruno Haible  <bruno@clisp.org>
15048
15049         gettext: Clarify the needed programmer actions.
15050         * modules/gettext (Notice): New field.
15051         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15052
15053 2011-04-16  Bruno Haible  <bruno@clisp.org>
15054
15055         strchrnul: Tweak last commit.
15056         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
15057         bug.
15058         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
15059         as in _GL_FUNCDECL_SYS.
15060         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
15061         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
15062
15063 2011-04-15  Eric Blake  <eblake@redhat.com>
15064
15065         strchrnul: work around cygwin bug
15066         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
15067         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
15068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
15069         * modules/string (Makefile.am): Substitute it.
15070         * lib/string.in.h (strchrnul): Use it.
15071
15072 2011-04-15  Bruno Haible  <bruno@clisp.org>
15073
15074         Don't require lib/stdio-write.c when only module 'stdio' is used.
15075         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
15076         invocation.
15077         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
15078
15079 2011-04-14  Bruno Haible  <bruno@clisp.org>
15080
15081         Support non-blocking pipe I/O in read() on native Windows.
15082         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
15083         (read): New declaration.
15084         * lib/read.c: New file.
15085         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
15086         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
15087         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
15088         vscanf): New declarations.
15089         * lib/stdio-read.c: New file.
15090         * m4/read.m4: New file.
15091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
15092         REPLACE_READ.
15093         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
15094         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15095         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
15096         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
15097         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
15098         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15099         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15100         * modules/read: New file.
15101         * modules/nonblocking (Files): Add lib/stdio-read.c.
15102         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
15103         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
15104         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15105         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15106         * modules/pread (Depends-on): Add read.
15107         * modules/safe-read (Depends-on): Likewise.
15108         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
15109         gets, scanf, vfscanf, vscanf): Verify signatures.
15110         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
15111         problem with non-blocking pipes.
15112         * doc/posix-functions/fgetc.texi: Likewise.
15113         * doc/posix-functions/fgets.texi: Likewise.
15114         * doc/posix-functions/fread.texi: Likewise.
15115         * doc/posix-functions/fscanf.texi: Likewise.
15116         * doc/posix-functions/getc.texi: Likewise.
15117         * doc/posix-functions/getchar.texi: Likewise.
15118         * doc/posix-functions/gets.texi: Likewise.
15119         * doc/posix-functions/scanf.texi: Likewise.
15120         * doc/posix-functions/vfscanf.texi: Likewise.
15121         * doc/posix-functions/vscanf.texi: Likewise.
15122
15123 2011-04-14  Bruno Haible  <bruno@clisp.org>
15124
15125         Support non-blocking pipe I/O in write() on native Windows.
15126         * lib/write.c (rpl_write): Split a write request that failed merely
15127         because the byte count was larger than the pipe buffer's size.
15128         * doc/posix-functions/write.texi: Mention the problem with large byte
15129         counts.
15130
15131 2011-04-14  Bruno Haible  <bruno@clisp.org>
15132
15133         wchar: Ensure that wchar_t gets defined on uClibc.
15134         * lib/wchar.in.h: On uClibc, include <stddef.h>.
15135         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
15136
15137 2011-04-13  Bruno Haible  <bruno@clisp.org>
15138
15139         safe-write, full-read: Avoid unnecessary compilation units.
15140         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
15141         (Depends-on): Remove safe-read. Add ssize_t.
15142         * modules/full-read (Files): Add lib/full-write.c.
15143         (Depends-on): Add full-write.
15144
15145 2011-04-13  Bruno Haible  <bruno@clisp.org>
15146
15147         Support non-blocking pipe I/O and SIGPIPE in pwrite().
15148         * modules/pwrite (Depends-on): Add 'write'.
15149
15150 2011-04-13  Bruno Haible  <bruno@clisp.org>
15151
15152         Support non-blocking pipe I/O in write() on native Windows.
15153         * lib/unistd.in.h (write): Enable replacement also if
15154         GNULIB_UNISTD_H_NONBLOCKING is 1.
15155         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
15156         (rpl_write): When failing to write on a non-blocking pipe, change
15157         errno from ENOSPC to EAGAIN.
15158         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
15159         putchar, puts, vfprintf, vprintf): Enable replacement also if
15160         GNULIB_STDIO_H_NONBLOCKING is 1.
15161         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
15162         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
15163         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
15164         CALL_WITH_SIGPIPE_EMULATION.
15165         (CALL_WITH_SIGPIPE_EMULATION): Use them.
15166         * m4/nonblocking.m4: New file.
15167         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
15168         for non-blocking I/O support.
15169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15170         GNULIB_UNISTD_H_NONBLOCKING.
15171         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
15172         required for non-blocking I/O support.
15173         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
15174         * modules/nonblocking (Files): Add m4/nonblocking.m4,
15175         lib/stdio-write.c, m4/asm-underscore.m4.
15176         (Depends-on): Add stdio, unistd.
15177         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
15178         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
15179         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
15180         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
15181         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
15182         problem with non-blocking pipes.
15183         * doc/posix-functions/fputc.texi: Likewise.
15184         * doc/posix-functions/fputs.texi: Likewise.
15185         * doc/posix-functions/fwrite.texi: Likewise.
15186         * doc/posix-functions/printf.texi: Likewise.
15187         * doc/posix-functions/putc.texi: Likewise.
15188         * doc/posix-functions/putchar.texi: Likewise.
15189         * doc/posix-functions/puts.texi: Likewise.
15190         * doc/posix-functions/vfprintf.texi: Likewise.
15191         * doc/posix-functions/vprintf.texi: Likewise.
15192         * doc/posix-functions/write.texi: Likewise.
15193
15194 2011-04-10  Jim Meyering  <meyering@redhat.com>
15195
15196         maint.mk: prohibit doubled words
15197         Detect them also when they're separated by a newline.
15198         There are 3 ways to customize it:
15199           - disable the test on a per file basis, as usual with rules using
15200             $(VC_LIST_EXCEPT)
15201           - replace the default doubled-word-selecting regexp (affects all files)
15202           - ignore a particular file-vs-doubled-word match
15203         I nearly used that last one to ignore the "is is" match in
15204         coreutils' NEWS file, since the text was "ls -is is ..."
15205         To do that, I would have added this line to cfg.mk:
15206           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
15207         but it would have ignored any "is is" match in NEWS.
15208         Low probability, but still...
15209         Instead, I changed the text, slightly:
15210           -  ls -is is now consistent with ls -lis in ignoring values returned
15211           +  "ls -is" is now consistent with ls -lis in ignoring values returned
15212         * top/maint.mk (prohibit_double_word_RE_): Provide default.
15213         (prohibit_doubled_word_): Define.
15214         (sc_prohibit_doubled_word): New rule.
15215         (sc_prohibit_the_the): Remove.  Subsumed by the above.
15216
15217 2011-04-10  Jim Meyering  <meyering@redhat.com>
15218
15219         maint: fix doubled-word typo in comment
15220         * m4/gethostname.m4: s/is is/it is/
15221         * m4/getdomainname.m4: Likewise.
15222
15223 2011-04-10  Jim Meyering  <meyering@redhat.com>
15224
15225         maint: remove doubled word: s/it it/it/
15226         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15227
15228 2011-04-10  Jim Meyering  <meyering@redhat.com>
15229
15230         maint.mk: remove useless semicolon and backslash
15231         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15232         semicolon and backslash.
15233
15234 2011-04-10  Bruno Haible  <bruno@clisp.org>
15235
15236         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15237         * modules/stdint-tests (Depends-on): Add wchar.
15238
15239 2011-04-10  Jim Meyering  <meyering@redhat.com>
15240
15241         maint: remove doubled words in comments, e.g., s/a a/a/
15242         * lib/strptime.c (day_of_the_week): s/the the/the/
15243         * tests/test-chown.h (test_chown): s/a a/a/
15244
15245         test-chown.h: correct a cast
15246         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15247         when the destination is a stat.st_gid.
15248
15249 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15250
15251         getaddrinfo: Fix test for sa_len member.
15252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15253         include <sys/types.h> before <sys/socket.h>.
15254
15255 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         maint: change "can not" to "cannot"
15258         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15259         boundaries.
15260
15261 2011-04-09  Jim Meyering  <meyering@redhat.com>
15262
15263         maint: change "a a" to "a"
15264         * tests/test-lchown.h (test_lchown): s/a a/a/
15265
15266         maint.mk: prohibit \<the the\>
15267         * top/maint.mk (sc_prohibit_the_the): New rule.
15268
15269         maint: fix "the the" in comment
15270         * lib/count-one-bits.h: s/the the/the/
15271
15272         maint: change "can not" to "cannot"
15273         But do not change the occurrences in maintain.texi or in
15274         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15275         * doc/gnulib-tool.texi: s/can not/cannot/
15276         * doc/posix-functions/accept.texi (accept): Likewise.
15277         * doc/posix-functions/socket.texi (socket): Likewise.
15278         * lib/mbrtowc.c: Likewise.
15279
15280         maint.mk: prohibit use of "can not"
15281         * top/maint.mk (sc_prohibit_can_not): New rule.
15282         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15283
15284 2011-04-09  Bruno Haible  <bruno@clisp.org>
15285
15286         careadlinkat: Guard against misuse of careadlinkatcwd.
15287         * lib/careadlinkat.c: Include <stdlib.h>.
15288         (careadlinkatcwd): Check that the fd argument is as expected.
15289
15290 2011-04-09  Bruno Haible  <bruno@clisp.org>
15291
15292         careadlinkat: Use common coding style.
15293         * lib/careadlinkat.c: Move gnulib includes after system includes.
15294
15295 2011-04-09  Bruno Haible  <bruno@clisp.org>
15296
15297         careadlinkat: Clarify specification.
15298         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15299         (careadlinkatcwd): Add comment.
15300         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15301
15302 2011-04-09  Bruno Haible  <bruno@clisp.org>
15303
15304         areadlinkat: Avoid link error on many platforms.
15305         * modules/areadlinkat (Depends-on): Add areadlink.
15306
15307 2011-04-09  Bruno Haible  <bruno@clisp.org>
15308
15309         allocator, careadlinkat: Fix double-inclusion guard.
15310         * lib/allocator.h: Fix double-inclusion guard.
15311         * lib/careadlinkat.h: Likewise.
15312
15313 2011-04-09  Bruno Haible  <bruno@clisp.org>
15314
15315         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15316         * lib/relocwrapper.c: Update dependencies hierarchy.
15317         * build-aux/install-reloc: Update list of files to be compiled.
15318         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15319         lib/allocator.[hc].
15320
15321 2011-04-08  Eric Blake  <eblake@redhat.com>
15322
15323         strftime: silence gnulib-tool warning
15324         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15325
15326 2011-04-08  Bruno Haible  <bruno@clisp.org>
15327
15328         verify: Fix syntax error with GCC 4.6 in C++ mode.
15329         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15330         (HAVE_STATIC_ASSERT): New macro.
15331         (verify_true, verify): Use 'static_assert' if it is supported and
15332         '_Static_assert' is not supported.
15333
15334 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15335
15336         allocator: New module.
15337         * modules/allocator, lib/allocator.c: New files.
15338         * lib/allocator.h (stdlib_allocator): New decl.
15339         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15340         Remove.  Do not include <stdlib.h>.
15341         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15342         * modules/careadlinkat (Files): Remove lib/allocator.h.
15343         (Depends-on): Add allocator.
15344
15345         stdlib: let modules use system malloc, realloc
15346         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15347         if !_GL_USE_STDLIB_ALLOC.
15348         (malloc, realloc): Limit this change to a smaller scope.
15349
15350         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15351         (malloc, realloc): Don't #undef; no longer needed.
15352         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15353         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15354         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15355         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15356         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15357         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15358         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15359         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15360
15361         careadlinkat: rename members to avoid problem
15362         * lib/allocator.h (struct allocator): Rename members from
15363         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15364         and realloc are #define'd.  Reported by Eric Blake in
15365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15366         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15367
15368 2011-04-08  Eric Blake  <eblake@redhat.com>
15369
15370         nonblocking: reduce dependency
15371         * tests/test-nonblocking.c: Only test sockets when in use.
15372         * modules/nonblocking-tests (Depends-on): Drop socket.
15373         (Makefile.am): Link even if sockets are not present.
15374         * modules/pipe2-tests (Makefile.am): Likewise.
15375         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15376
15377         pipe2: fix O_NONBLOCK support on mingw
15378         * modules/pipe2 (Depends-on): Add nonblocking.
15379         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15380         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15381         * tests/test-nonblocking.c (main): Likewise.
15382         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15383
15384         fcntl-h: fix O_ACCMODE on cygwin
15385         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15386         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15387
15388         pipe-filter: drop O_NONBLOCK workarounds
15389         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15390         * modules/pipe-filter-ii (Depends-on): Likewise.
15391         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15392
15393         nonblocking: provide O_NONBLOCK for mingw
15394         * modules/nonblocking (Depends-on): Add open.
15395         (configure.ac): Set new witness macro.
15396         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15397         * modules/fcntl-h (Makefile.am): Substitute it.
15398         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15399         nonblocking module is in use.
15400         * lib/nonblocking.c: Adjust portability test.
15401         * lib/open.c (open): Don't let native open see gnulib flag.
15402         * tests/test-fcntl-h.c (main): Enhance test.
15403         * tests/test-open.h (test_open): Likewise.
15404         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15405
15406         careadlinkat: fix compilation error on mingw
15407         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15408         within struct allocator.
15409
15410 2011-04-06  Eric Blake  <eblake@redhat.com>
15411
15412         binary-io: relicense under LGPLv2+
15413         * modules/binary-io (License): Relax to LGPLv2+.
15414         Requested for libvirt, and required by pipe2.
15415
15416 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15417
15418         verify: use _Static_assert if available
15419         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15420         (verify_true, verify): Use it if available.  This generates better
15421         diagnostics with GCC 4.6.0 and later.
15422
15423 2011-04-05  Bruno Haible  <bruno@clisp.org>
15424
15425         Remove leftover generated .h files after config.status changed.
15426
15427         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15428         GL_GENERATE_ALLOCA_H.
15429         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15430         GL_GENERATE_ALLOCA_H evaluates to false.
15431
15432         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15433         GL_GENERATE_ARGZ_H.
15434         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15435         evaluates to false.
15436
15437         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15438         GL_GENERATE_BYTESWAP_H.
15439         * modules/byteswap (Makefile.am): Remove byteswap.h if
15440         GL_GENERATE_BYTESWAP_H evaluates to false.
15441
15442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15443         GL_GENERATE_ERRNO_H.
15444         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15445         evaluates to false.
15446
15447         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15448         GL_GENERATE_FLOAT_H.
15449         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15450         evaluates to false.
15451
15452         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15453         GL_GENERATE_FNMATCH_H.
15454         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15455         GL_GENERATE_FNMATCH_H evaluates to false.
15456
15457         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15458         GL_GENERATE_GLOB_H.
15459         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15460         evaluates to false.
15461
15462         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15463         automake conditional GL_GENERATE_ICONV_H.
15464         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15465         evaluates to false.
15466
15467         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15468         GL_GENERATE_NETINET_IN_H.
15469         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15470         GL_GENERATE_NETINET_IN_H evaluates to false.
15471
15472         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15473         conditional GL_GENERATE_PTHREAD_H.
15474         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15475         * modules/pthread (Makefile.am): Remove pthread.h if
15476         GL_GENERATE_PTHREAD_H evaluates to false.
15477
15478         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15479         GL_GENERATE_SCHED_H.
15480         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15481         evaluates to false.
15482
15483         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15484         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15485         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15486         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15487
15488         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15489         GL_GENERATE_STDARG_H.
15490         * modules/stdarg (Makefile.am): Remove stdarg.h if
15491         GL_GENERATE_STDARG_H evaluates to false.
15492
15493         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15494         GL_GENERATE_STDBOOL_H.
15495         * modules/stdbool (Makefile.am): Remove stdbool.h if
15496         GL_GENERATE_STDBOOL_H evaluates to false.
15497
15498         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15499         conditional GL_GENERATE_STDDEF_H.
15500         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15501         * modules/stddef (Makefile.am): Remove stddef.h if
15502         GL_GENERATE_STDDEF_H evaluates to false.
15503
15504         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15505         GL_GENERATE_STDINT_H.
15506         * modules/stdint (Makefile.am): Remove stdint.h if
15507         GL_GENERATE_STDINT_H evaluates to false.
15508
15509         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15510         GL_GENERATE_SYSEXITS_H.
15511         * modules/sysexits (Makefile.am): Remove sysexits.h if
15512         GL_GENERATE_SYSEXITS_H evaluates to false.
15513
15514         Reported by Karl Berry and Ralf Wildenhues.
15515
15516 2011-04-05  Bruno Haible  <bruno@clisp.org>
15517
15518         Ensure to rebuild generated .h files when config.status has changed.
15519         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15520         config.status.
15521         * modules/ctype (Makefile.am): Likewise.
15522         * modules/dirent (Makefile.am): Likewise.
15523         * modules/errno (Makefile.am): Likewise.
15524         * modules/fcntl-h (Makefile.am): Likewise.
15525         * modules/float (Makefile.am): Likewise.
15526         * modules/getopt-posix (Makefile.am): Likewise.
15527         * modules/glob (Makefile.am): Likewise.
15528         * modules/iconv-h (Makefile.am): Likewise.
15529         * modules/inttypes (Makefile.am): Likewise.
15530         * modules/langinfo (Makefile.am): Likewise.
15531         * modules/locale (Makefile.am): Likewise.
15532         * modules/math (Makefile.am): Likewise.
15533         * modules/netdb (Makefile.am): Likewise.
15534         * modules/netinet_in (Makefile.am): Likewise.
15535         * modules/poll-h (Makefile.am): Likewise.
15536         * modules/pthread (Makefile.am): Likewise.
15537         * modules/pty (Makefile.am): Likewise.
15538         * modules/sched (Makefile.am): Likewise.
15539         * modules/search (Makefile.am): Likewise.
15540         * modules/selinux-h (Makefile.am): Likewise.
15541         * modules/signal (Makefile.am): Likewise.
15542         * modules/spawn (Makefile.am): Likewise.
15543         * modules/stdarg (Makefile.am): Likewise.
15544         * modules/stdbool (Makefile.am): Likewise.
15545         * modules/stddef (Makefile.am): Likewise.
15546         * modules/stdint (Makefile.am): Likewise.
15547         * modules/stdio (Makefile.am): Likewise.
15548         * modules/stdlib (Makefile.am): Likewise.
15549         * modules/string (Makefile.am): Likewise.
15550         * modules/strings (Makefile.am): Likewise.
15551         * modules/sys_file (Makefile.am): Likewise.
15552         * modules/sys_ioctl (Makefile.am): Likewise.
15553         * modules/sys_select (Makefile.am): Likewise.
15554         * modules/sys_socket (Makefile.am): Likewise.
15555         * modules/sys_stat (Makefile.am): Likewise.
15556         * modules/sys_time (Makefile.am): Likewise.
15557         * modules/sys_times (Makefile.am): Likewise.
15558         * modules/sys_utsname (Makefile.am): Likewise.
15559         * modules/sys_wait (Makefile.am): Likewise.
15560         * modules/sysexits (Makefile.am): Likewise.
15561         * modules/termios (Makefile.am): Likewise.
15562         * modules/time (Makefile.am): Likewise.
15563         * modules/unistd (Makefile.am): Likewise.
15564         * modules/wchar (Makefile.am): Likewise.
15565         * modules/wctype-h (Makefile.am): Likewise.
15566         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15567
15568 2011-04-05  Bruno Haible  <bruno@clisp.org>
15569
15570         pipe2: Relicense under LGPLv2+.
15571         * modules/pipe2 (License): Change to LGPLv2+.
15572         Requested by Eric Blake, for libvirt.
15573
15574 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15575
15576         bootstrap: compute gnulib_extra_files after updating build_aux
15577         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15578         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15579
15580 2011-04-05  Eric Blake  <eblake@redhat.com>
15581
15582         bootstrap: preserve git whitelist item sorting
15583         * build-aux/bootstrap (sort_patterns): New function.
15584         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15585
15586 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15587
15588         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15589         sc_space_tab check.
15590
15591 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         areadlink, areadlinkat: rewrite in terms of careadlinkat
15594         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15595         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15596         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15597         (malloc, realloc): Remove #undefs.
15598         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15599         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15600         readlink, ssize_t, stdint, unistd.
15601         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15602         areadlink, stdint.
15603
15604         careadlinkat: new module
15605         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15606         * modules/careadlinkat: New files, written by me with
15607         a review and feedback from Ben Pfaff in
15608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15609
15610 2011-04-01  Bruno Haible  <bruno@clisp.org>
15611
15612         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15613         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15614         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15615         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15616         Reported by Bruce Korb <bruce.korb@gmail.com>.
15617
15618 2011-04-01  Bruno Haible  <bruno@clisp.org>
15619
15620         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15621         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15622         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15623         * modules/wcpcpy (Depends-on): Add extensions.
15624         * modules/wcpncpy (Depends-on): Likewise.
15625         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15626         systems.
15627         * doc/posix-functions/wcpncpy.texi: Likewise.
15628         * doc/posix-functions/wcwidth.texi: Likewise.
15629
15630 2011-03-31  Eric Blake  <eblake@redhat.com>
15631
15632         nonblocking: fix mingw test failures
15633         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15634         non-blocking flag on regular file.
15635         (get_nonblocking_flag): Set errno on invalid fd.
15636         * tests/test-nonblocking.c (main): Avoid test failure on
15637         directories if fchdir is not active.
15638         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15639
15640 2011-03-31  Bruno Haible  <bruno@clisp.org>
15641
15642         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15643         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15644         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15645         Reported by Simon Josefsson <simon@josefsson.org>.
15646
15647 2011-03-31  Bruno Haible  <bruno@clisp.org>
15648         and Eric Blake  <eblake@redhat.com>
15649
15650         nonblocking: new module
15651         * modules/nonblocking: New module.
15652         * modules/nonblocking-tests: Likewise.
15653         * lib/nonblocking.h: New file.
15654         * lib/nonblocking.c: Likewise.
15655         * tests/test-nonblocking.c: New test.
15656         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15657
15658 2011-03-30  Bruno Haible  <bruno@clisp.org>
15659
15660         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15661         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15662         instead of 'printf' format for GCC >= 4.4.
15663         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15664         (fprintf, printf, vfprintf, vprintf): Declare with
15665         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15666         the system's vfprintf() function.
15667         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15668
15669 2011-03-30  Eric Blake  <eblake@redhat.com>
15670
15671         passfd: fix scoping bug
15672         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15673         before sendmsg/recvmsg.
15674
15675         passfd: standardize coding conventions
15676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15677         can be learned at compile time.
15678         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15679         ifdefs.
15680         (sendfd, recvfd): Follow gnulib code conventions.
15681
15682         passfd: fix incorrect sendmsg arguments
15683         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15684         incorrect msg_controllen value.
15685         * modules/passfd-tests (Depends-on): Check for alarm.
15686         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15687         Reported by Bastien ROUCARIES.
15688
15689 2011-03-30  Bruno Haible  <bruno@clisp.org>
15690
15691         c-strcasestr: Relicense under LGPLv2+.
15692         * modules/c-strcasestr (License): Change to LGPLv2+.
15693         Requested by Eric Blake, for libvirt.
15694
15695 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15696
15697         * users.txt: Add libidn2.  Fix libtasn1 link.
15698
15699 2011-03-30  Jim Meyering  <meyering@redhat.com>
15700
15701         tests: readlink* ("",... fails with EINVAL on newer kernels
15702         readlink and readlinkat have typically failed with ENOENT for
15703         the invalid, empty file name,  "".  However, with the advent
15704         of linux-2.6.39, they fail with EINVAL.
15705         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15706         when operating on the empty file name.
15707         * tests/test-readlink.h (test_readlink): Likewise.
15708
15709 2011-03-29  Bruno Haible  <bruno@clisp.org>
15710
15711         Relicense some modules under LGPLv2+, for libidn2.
15712         * modules/array-mergesort (License): Change to LGPLv2+.
15713         * modules/c-strcaseeq (License): Likewise.
15714         * modules/striconveh (License): Likewise.
15715         * modules/striconveha (License): Likewise.
15716         * modules/uniconv/base (License): Likewise.
15717         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15718         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15719         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15720         * modules/unictype/base (License): Likewise.
15721         * modules/unictype/bidiclass-of (License): Likewise.
15722         * modules/unictype/category-M (License): Likewise.
15723         * modules/unictype/category-none (License): Likewise.
15724         * modules/unictype/category-of (License): Likewise.
15725         * modules/unictype/category-test (License): Likewise.
15726         * modules/unictype/category-test-withtable (License): Likewise.
15727         * modules/unictype/combining-class (License): Likewise.
15728         * modules/unictype/joiningtype-of (License): Likewise.
15729         * modules/unictype/scripts (License): Likewise.
15730         * modules/uninorm/base (License): Likewise.
15731         * modules/uninorm/canonical-decomposition (License): Likewise.
15732         * modules/uninorm/composition (License): Likewise.
15733         * modules/uninorm/decompose-internal (License): Likewise.
15734         * modules/uninorm/decomposition-table (License): Likewise.
15735         * modules/uninorm/nfc (License): Likewise.
15736         * modules/uninorm/nfd (License): Likewise.
15737         * modules/uninorm/u32-normalize (License): Likewise.
15738         * modules/unistr/base (License): Likewise.
15739         * modules/unistr/u32-cpy (License): Likewise.
15740         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15741         * modules/unistr/u32-to-u8 (License): Likewise.
15742         * modules/unistr/u32-uctomb (License): Likewise.
15743         * modules/unistr/u8-check (License): Likewise.
15744         * modules/unistr/u8-mblen (License): Likewise.
15745         * modules/unistr/u8-mbtouc (License): Likewise.
15746         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15747         * modules/unistr/u8-mbtoucr (License): Likewise.
15748         * modules/unistr/u8-prev (License): Likewise.
15749         * modules/unistr/u8-strlen (License): Likewise.
15750         * modules/unistr/u8-to-u32 (License): Likewise.
15751         * modules/unistr/u8-uctomb (License): Likewise.
15752         * modules/unitypes (License): Likewise.
15753         Requested by Simon Josefsson.
15754
15755 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15756
15757         lib-symbol-visibility: Add a notice.
15758         * modules/lib-symbol-visibility (Notice): New field.
15759
15760 2011-03-29  Bruno Haible  <bruno@clisp.org>
15761
15762         getaddrinfo: Doc fix.
15763         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15764         section "fixed in Gnulib".
15765
15766 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15767
15768         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15769         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15770
15771 2011-03-26  Bruno Haible  <bruno@clisp.org>
15772
15773         unictype/property-byname: Reduce the number of load-time relocations.
15774         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15775         (UC_PROPERTY_INDEX_*): New enumeration values.
15776         (uc_property_byname): Convert an index from the lookup table to an
15777         uc_property_t.
15778         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15779         values.
15780
15781 2011-03-26  Bruno Haible  <bruno@clisp.org>
15782
15783         unictype/property-byname: Allow omitted word separators and aliases.
15784         * lib/unictype/pr_byname.gperf: Add property names without word
15785         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15786         for 'space'.
15787
15788 2011-03-26  Bruno Haible  <bruno@clisp.org>
15789
15790         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15791         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15792         also hyphens to space.
15793         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15794         without spaces.
15795         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15796
15797 2011-03-26  Bruno Haible  <bruno@clisp.org>
15798
15799         unictype/joiningtype-byname: Recognize long names as well.
15800         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15801         a long name.
15802         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15803         unictype/joiningtype_byname.h.
15804         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15805         * lib/unictype/joiningtype_byname.gperf: New file.
15806         * modules/unictype/joiningtype-byname (Files): Add
15807         lib/unictype/joiningtype_byname.gperf.
15808         (Depends-on): Add gperf.
15809         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15810         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15811         long names.
15812
15813         Tests for module 'unictype/joiningtype-longname'.
15814         * modules/unictype/joiningtype-longname-tests: New file.
15815         * tests/unictype/test-joiningtype_longname.c: New file.
15816
15817         New module 'unictype/joiningtype-longname'.
15818         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15819         * lib/unictype/joiningtype_longname.c: New file.
15820         * modules/unictype/joiningtype-longname: New file.
15821         * modules/unictype/joiningtype-all (Depends-on): Add
15822         unictype/joiningtype-longname.
15823
15824 2011-03-26  Bruno Haible  <bruno@clisp.org>
15825
15826         unictype/bidiclass-byname: Recognize long names as well.
15827         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15828         name.
15829         * lib/unictype/bidi_byname.c: Include <string.h>,
15830         unictype/bidi_byname.h.
15831         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15832         * lib/unictype/bidi_byname.gperf: New file.
15833         * modules/unictype/bidiclass-byname (Files): Add
15834         lib/unictype/bidi_byname.gperf.
15835         (Depends-on): Add gperf.
15836         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15837         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15838         long names.
15839
15840         Tests for module 'unictype/bidiclass-longname'.
15841         * modules/unictype/bidiclass-longname-tests: New file.
15842         * tests/unictype/test-bidi_longname.c: New file.
15843
15844         New module 'unictype/bidiclass-longname'.
15845         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15846         * lib/unictype/bidi_longname.c: New file.
15847         * modules/unictype/bidiclass-longname: New file.
15848         * modules/unictype/bidiclass-all (Depends-on): Add
15849         unictype/bidiclass-longname.
15850
15851 2011-03-26  Bruno Haible  <bruno@clisp.org>
15852
15853         unictype/bidi*: Rename modules.
15854         * modules/unictype/bidiclass-all: Renamed from
15855         modules/unictype/bidicategory-all.
15856         * modules/unictype/bidiclass-name: Renamed from
15857         modules/unictype/bidiclass-name.
15858         (Description): Update.
15859         * modules/unictype/bidiclass-name-tests: Renamed from
15860         modules/unictype/bidicategory-name-tests.
15861         * modules/unictype/bidiclass-byname: Renamed from
15862         modules/unictype/bidicategory-byname.
15863         (Description): Update.
15864         * modules/unictype/bidiclass-byname-tests: Renamed from
15865         modules/unictype/bidicategory-byname-tests.
15866         * modules/unictype/bidiclass-of: Renamed from
15867         modules/unictype/bidicategory-of.
15868         (Description): Update.
15869         * modules/unictype/bidiclass-of-tests: Renamed from
15870         modules/unictype/bidicategory-of-tests.
15871         * modules/unictype/bidiclass-test: Renamed from
15872         modules/unictype/bidicategory-test.
15873         (Description): Update.
15874         * modules/unictype/bidiclass-test-tests: Renamed from
15875         modules/unictype/bidicategory-test-tests.
15876         * modules/unictype/bidicategory-all: New file, a simple redirection.
15877         * modules/unictype/bidicategory-name: Likewise.
15878         * modules/unictype/bidicategory-byname: Likewise.
15879         * modules/unictype/bidicategory-of: Likewise.
15880         * modules/unictype/bidicategory-test: Likewise.
15881         * modules/unictype/property-bidi-* (Dependencies): Update.
15882         * lib/unictype/bidi_*.c: Update comment.
15883
15884 2011-03-26  Bruno Haible  <bruno@clisp.org>
15885
15886         unictype/bidi*: Rename functions, part 2.
15887         * modules/unictype/bidicategory-name (configure.ac): Update required
15888         libunistring version.
15889         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15890
15891 2011-03-25  Bruno Haible  <bruno@clisp.org>
15892
15893         New module 'unictype/combining-class-all'.
15894         * modules/unictype/combining-class-all: New file.
15895
15896         Tests for module 'unictype/combining-class-byname'.
15897         * modules/unictype/combining-class-byname-tests: New file.
15898         * tests/unictype/test-combiningclass_byname.c: New file.
15899
15900         New module 'unictype/combining-class-byname'.
15901         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15902         * lib/unictype/combiningclass_byname.c: New file.
15903         * lib/unictype/combiningclass_byname.gperf: New file.
15904         * modules/unictype/combining-class-byname: New file.
15905
15906         Tests for module 'unictype/combining-class-longname'.
15907         * modules/unictype/combining-class-longname-tests: New file.
15908         * tests/unictype/test-combiningclass_longname.c: New file.
15909
15910         New module 'unictype/combining-class-longname'.
15911         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15912         * lib/unictype/combiningclass_longname.c: New file.
15913         * modules/unictype/combining-class-longname: New file.
15914
15915         Tests for module 'unictype/combining-class-name'.
15916         * modules/unictype/combining-class-name-tests: New file.
15917         * tests/unictype/test-combiningclass_name.c: New file.
15918
15919         New module 'unictype/combining-class-name'.
15920         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15921         * lib/unictype/combiningclass_name.c: New file.
15922         * modules/unictype/combining-class-name: New file.
15923
15924 2011-03-25  Bruno Haible  <bruno@clisp.org>
15925
15926         unictype/combining-class: Rename source files.
15927         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15928         of unictype/combining.h.
15929         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15930         Update.
15931         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15932         * modules/unictype/combining-class (Description): Fix.
15933         (Files, Makefile.am): Update.
15934         * tests/unictype/test-combiningclass.c: Renamed from
15935         tests/unictype/test-combining.c.
15936         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15937
15938 2011-03-25  Bruno Haible  <bruno@clisp.org>
15939
15940         unictype: Update list of canonical combining classes.
15941         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15942
15943 2011-03-25  Bruno Haible  <bruno@clisp.org>
15944
15945         unictype/category-byname: Recognize long names as well.
15946         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15947         a long name.
15948         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15949         unictype/categ_byname.h.
15950         (UC_CATEGORY_INDEX_*): New enumeration values.
15951         (uc_general_category_byname): Use uc_general_category_lookup and
15952         convert from index to value.
15953         * lib/unictype/categ_byname.gperf: New file.
15954         * modules/unictype/category-byname (Files): Add
15955         lib/unictype/categ_byname.gperf.
15956         (Depends-on): Add gperf.
15957         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15958         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15959         long names.
15960
15961         Tests for module 'unictype/category-longname'.
15962         * modules/unictype/category-longname-tests: New file.
15963         * tests/unictype/test-categ_longname.c: New file.
15964
15965         New module 'unictype/category-longname'.
15966         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15967         * lib/unictype/categ_longname.c: New file.
15968         * modules/unictype/category-longname: New file.
15969         * modules/unictype/category-all (Depends-on): Add it.
15970
15971 2011-03-25  Bruno Haible  <bruno@clisp.org>
15972
15973         Tests for module 'unictype/category-LC'.
15974         * modules/unictype/category-LC-tests: New file.
15975         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15976
15977         New module 'unictype/category-LC'.
15978         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15979         (UC_CATEGORY_LC): New declaration.
15980         (UC_CASED_LETTER): New macro.
15981         * lib/gen-uni-tables.c (is_category_LC): New function.
15982         (output_categories): Also handle category LC.
15983         (UC_CATEGORY_MASK_LC): New enumeration value.
15984         (general_category_byname): Also handle category LC.
15985         * lib/unictype/categ_LC.c: New file.
15986         * lib/unictype/categ_LC.h: New file, automatically generated.
15987         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15988         category LC.
15989         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15990         * modules/unictype/category-LC: New file.
15991         * modules/unictype/category-byname (Depends-on): Add
15992         unictype/category-LC.
15993         * modules/unictype/category-all (Depends-on): Likewise.
15994
15995 2011-03-25  Eric Blake  <eblake@redhat.com>
15996
15997         xmalloc: revert yesterday's regression
15998         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15999         realloc's underlying behavior (allowing allocation of zero-size
16000         objects, especially if malloc-gnu is also in use).
16001
16002 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
16003
16004         maint.mk: add missing version to VC-tag
16005         * top/maint.mk: git tag was missing actual tag name; add it.
16006
16007         valgrind: do leak checking, and exit with code 1 on error (not 0)
16008         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
16009         to VALGRIND.
16010
16011 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
16012
16013         posix-modules: say what it does.
16014         * posix-modules: Add a line to the --help output saying what it does.
16015
16016 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
16017
16018         xmalloc: Do not leak if underlying realloc is C99 compatible.
16019         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
16020         This avoids a leak on C99-based systems.  See
16021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
16022
16023 2011-03-24  Eric Blake  <eblake@redhat.com>
16024
16025         realloc: document portability problem
16026         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
16027         passing 0 size to realloc.
16028
16029 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
16030
16031         doc: update users.txt
16032         * users.txt: Add cvsps, tmpwatch
16033
16034 2011-03-23  Matt Rice  <ratmice@gmail.com>
16035
16036         doc: update users.txt
16037         * users.txt: Add gdb.
16038
16039 2011-03-23  Jim Meyering  <meyering@redhat.com>
16040
16041         doc: update users.txt
16042         Looking through matches up to the following URL (there are still
16043         several more pages), I found several projects that use gnulib:
16044         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
16045         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
16046         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
16047
16048 2011-03-22  Bruno Haible  <bruno@clisp.org>
16049
16050         unictype/bidi*: Rename functions.
16051         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
16052         uc_bidi_class, uc_is_bidi_class): New declarations.
16053         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
16054         uc_bidi_category_byname.
16055         (uc_bidi_category_byname): New function.
16056         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
16057         u_bidi_category_name.
16058         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
16059         (uc_bidi_category_name): New function.
16060         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
16061         uc_bidi_category.
16062         (uc_bidi_category): New function.
16063         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
16064         uc_is_bidi_category. Invoke uc_bidi_class.
16065         (uc_is_bidi_category): New function.
16066         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
16067         instead of uc_bidi_category_byname.
16068         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
16069         instead of uc_bidi_category_name.
16070         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
16071         uc_bidi_category.
16072         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
16073         instead of uc_is_bidi_category.
16074
16075 2011-03-21  Bruno Haible  <bruno@clisp.org>
16076
16077         New module 'unictype/joininggroup-all'.
16078         * modules/unictype/joininggroup-all: New file.
16079
16080         Tests for module 'unictype/joininggroup-of'.
16081         * modules/unictype/joininggroup-of-tests: New file.
16082         * tests/unictype/test-joininggroup_of.c: New file.
16083         * tests/unictype/test-joininggroup_of.h: New file, automatically
16084         generated by gen-uni-tables.
16085
16086         New module 'unictype/joininggroup-of'.
16087         * modules/unictype/joininggroup-of: New file.
16088         * lib/unictype/joininggroup_of.c: New file.
16089         * lib/unictype/joininggroup_of.h: New file, automatically generated by
16090         gen-uni-tables.
16091
16092         Tests for module 'unictype/joininggroup-byname'.
16093         * modules/unictype/joininggroup-byname-tests: New file.
16094         * tests/unictype/test-joininggroup_byname.c: New file.
16095
16096         New module 'unictype/joininggroup-byname'.
16097         * modules/unictype/joininggroup-byname: New file.
16098         * lib/unictype/joininggroup_byname.c: New file.
16099         * lib/unictype/joininggroup_byname.gperf: New file.
16100
16101         Tests for module 'unictype/joininggroup-name'.
16102         * modules/unictype/joininggroup-name-tests: New file.
16103         * tests/unictype/test-joininggroup_name.c: New file.
16104
16105         New module 'unictype/joininggroup-name'.
16106         * modules/unictype/joininggroup-name: New file.
16107         * lib/unictype/joininggroup_name.c: New file.
16108         * lib/unictype/joininggroup_name.h: New file.
16109
16110         New module 'unictype/joiningtype-all'.
16111         * modules/unictype/joiningtype-all: New file.
16112
16113         Tests for module 'unictype/joiningtype-of'.
16114         * modules/unictype/joiningtype-of-tests: New file.
16115         * tests/unictype/test-joiningtype_of.c: New file.
16116         * tests/unictype/test-joiningtype_of.h: New file, automatically
16117         generated by gen-uni-tables.
16118
16119         New module 'unictype/joiningtype-of'.
16120         * modules/unictype/joiningtype-of: New file.
16121         * lib/unictype/joiningtype_of.c: New file.
16122         * lib/unictype/joiningtype_of.h: New file, automatically generated by
16123         gen-uni-tables.
16124
16125         Tests for module 'unictype/joiningtype-byname'.
16126         * modules/unictype/joiningtype-byname-tests: New file.
16127         * tests/unictype/test-joiningtype_byname.c: New file.
16128
16129         New module 'unictype/joiningtype-byname'.
16130         * modules/unictype/joiningtype-byname: New file.
16131         * lib/unictype/joiningtype_byname.c: New file.
16132
16133         Tests for module 'unictype/joiningtype-name'.
16134         * modules/unictype/joiningtype-name-tests: New file.
16135         * tests/unictype/test-joiningtype_name.c: New file.
16136
16137         New module 'unictype/joiningtype-name'.
16138         * modules/unictype/joiningtype-name: New file.
16139         * lib/unictype/joiningtype_name.c: New file.
16140
16141         unictype: Add support for Arabic shaping properties.
16142         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
16143         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
16144         declarations.
16145         (UC_JOINING_GROUP_*): New enumeration values.
16146         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
16147         declarations.
16148         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
16149         (unicode_joining_type): New variable.
16150         (UC_JOINING_GROUP_*): New enumeration values.
16151         (unicode_joining_group): New variable.
16152         (fill_arabicshaping, joining_type_as_c_identifier,
16153         output_joining_type_test, output_joining_type,
16154         joining_group_as_c_identifier, output_joining_group_test,
16155         output_joining_group): New functions.
16156         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
16157         fill_arabicshaping and output_joining_type_test, output_joining_type,
16158         output_joining_group_test, output_joining_group.
16159         Reported by Simon Josefsson.
16160
16161 2011-03-21  Jim Meyering  <meyering@redhat.com>
16162
16163         strftime: fix a bug in yesterday's change
16164         * lib/strftime.c (add): Accommodate width's initial value of -1.
16165         Otherwise, nstrftime would copy uninitialized data into
16166         the result buffer.
16167
16168 2011-03-21  Jim Meyering  <meyering@redhat.com>
16169
16170         tests: add strftime-tests module
16171         * tests/test-strftime.c: New file.
16172         * modules/strftime-tests: New module.
16173
16174 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         strftime: don't assume a byte count fits in 'int'
16177         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
16178         found this problem by static analysis, using gcc -Wstrict-overflow
16179         (GCC 4.5.2, x86-64).  This reported an optimization that depended
16180         on an integer overflow having undefined behavior, but it turns out
16181         that the argument is a size, which might not fit in 'int' anyway,
16182
16183 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16184
16185         stdio: don't require ignore_value around fwrite
16186
16187         This patch works around libc bug 11959
16188         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
16189         Without this patch, applications must often write
16190         ignore_value (fwrite (...)) even though the ignore_value is
16191         not helpful here.  It's common to write many objects, using
16192         fwrite/printf/etc., and then use ferror to detect output error.
16193
16194         I considered making this patch optional, but decided against it,
16195         because libc is obviously being inconsistent here: there is no
16196         reason libc should insist that user code must inspect fwrite
16197         return's value without also insisting that it inspect printf's,
16198         putchar's, etc.  If user code wants to have a strict style where
16199         all these functions' values are checked (so that ferror need not
16200         be checked), we could add support for that style in a new gnulib
16201         module, but in the meantime it's better to be consistent and to
16202         support common usage.
16203
16204         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
16205         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
16206         that we are compiling in checking mode, and if not C++, and
16207         if not already wrapping fwrite for some other reason.
16208         (fwrite): #define to rpl_fwrite if the latter is defined.
16209
16210 2011-03-20  Bruno Haible  <bruno@clisp.org>
16211
16212         verror: Fix compilation error introduced on 2011-02-13.
16213         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
16214         instead of __attribute__.
16215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16216
16217 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16218             Bruno Haible  <bruno@clisp.org>
16219
16220         socklen: do not depend on sys_socket
16221         While trying to modify Emacs to use gnulib's socklen module,
16222         I discovered a circular dependency: socklen depends on sys_socket
16223         and vice versa.  Emacs can use socklen, but it does not need
16224         sys_socket because it has its own substitute for sys/socket.h.
16225         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16226         gl_TYPE_SOCKLEN_T.
16227         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16228         gl_PREREQ_SYS_H_SOCKET.
16229         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16230         gl_PREREQ_SYS_H_SOCKET.
16231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16232         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16233         * modules/socklen (Depends-on): Do not depend on sys_socket.
16234         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16235
16236 2011-03-20  Jim Meyering  <meyering@redhat.com>
16237
16238         maint.mk: sort file names *after* new transformation
16239         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16240         prefix would have led to an unwarranted failure in GNU parted.
16241         Sort after that transformation.
16242
16243 2011-03-19  Jim Meyering  <meyering@redhat.com>
16244
16245         maint.mk: fix po-file syntax-check rule
16246         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16247         Patch by Bruno Haible.
16248
16249 2011-03-19  Bruno Haible  <bruno@clisp.org>
16250
16251         socklen: Update comment.
16252         * m4/socklen.m4: Update comment about platforms.
16253
16254 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16255             Bruno Haible  <bruno@clisp.org>
16256
16257         inet_ntop, inet_pton: Simplify.
16258         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16259         documented to provide socklen_t and we already depend on sys_socket.
16260         * modules/inet_pton (Depends-on): Likewise.
16261         * lib/arpa_inet.in.h: Adjust comment.
16262
16263 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16264             Bruno Haible  <bruno@clisp.org>
16265
16266         netdb: Simplify.
16267         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16268         documented to provide socklen_t and we already depend on sys_socket.
16269         * lib/netdb.in.h: Adjust comment.
16270
16271 2011-03-19  Bruno Haible  <bruno@clisp.org>
16272
16273         sys_socket, netdb: Document problem with socklen_t.
16274         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16275         platforms.
16276         * doc/posix-headers/netdb.texi: Likewise.
16277
16278 2011-03-18  Eric Blake  <eblake@redhat.com>
16279
16280         maint.mk: let po check work in VPATH build
16281         * top/maint.mk (po_file): Allow cfg.mk override.
16282         (sc_po_check): Allow VPATH use.
16283         Reported by Jiri Denemark.
16284
16285 2011-03-16  Jim Meyering  <meyering@redhat.com>
16286
16287         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16288         Before, you would have had to create one .x-sc_ file per rule in order
16289         to exempt offending files.  Now, you may instead use a Make variable --
16290         usually defined in cfg.mk -- whose name identifies the affected rule.
16291         * top/maint.mk (_sc_excl): Define.
16292         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16293         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16294
16295 2011-03-13  Bruno Haible  <bruno@clisp.org>
16296
16297         ignore-value tests: Avoid warnings.
16298         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16299         empty for gcc < 3.4.
16300
16301 2011-03-13  Bruno Haible  <bruno@clisp.org>
16302
16303         passfd: Fix link error on Solaris.
16304         * modules/passfd (Description): Correct.
16305         (Depends-on): Add socketlib.
16306         (Link): New section.
16307         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16308
16309 2011-03-13  Bruno Haible  <bruno@clisp.org>
16310
16311         passfd: Fix link error on AIX 5.2.
16312         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16313
16314 2011-03-13  Bruno Haible  <bruno@clisp.org>
16315
16316         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16317         * lib/sys_socket.in.h: Include <stddef.h>.
16318         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16319         CMSG_FIRSTHDR. Remove unused variable.
16320
16321 2011-03-13  Bruno Haible  <bruno@clisp.org>
16322
16323         passfd: Fix compilation error on OpenBSD.
16324         * lib/passfd.c: Include <sys/uio.h>.
16325
16326 2011-03-13  Bruno Haible  <bruno@clisp.org>
16327
16328         passfd test: Fix warnings.
16329         * tests/test-passfd.c: Include <sys/wait.h>.
16330         (main): Fix typo.
16331
16332 2011-03-13  Bruno Haible  <bruno@clisp.org>
16333
16334         passfd module, part 4, tweaks.
16335         * tests/test-passfd.c: Reorder includes.
16336         (main): Fix perror and printf calls.
16337
16338 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16339
16340         passfd module, part 4.
16341         * modules/passfd-tests: New file.
16342         * tests/test-passfd.c: New file.
16343
16344 2011-03-13  Jim Meyering  <meyering@redhat.com>
16345
16346         Makefile: rely on GNU make; derive syntax-check rule names
16347         Rather than requiring that each sc_ rule be listed as a dependent
16348         of "check", use features of GNU make to derive the list.
16349         * Makefile (syntax-check-rules): Define.
16350         (check): Depend on the new variable, not the hard-coded list.
16351
16352 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16353             Bruno Haible  <bruno@clisp.org>
16354
16355         passfd module, part 3.
16356         * lib/passfd.h (recvfd): Add a flags argument.
16357         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16358         (recvfd): Add a flags argument.
16359         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16360         exists.
16361         * modules/passfd (Depends-on): Add cloexec.
16362         Suggested by Eric Blake.
16363
16364 2011-03-13  Bruno Haible  <bruno@clisp.org>
16365
16366         passfd module, part 2, tweaks.
16367         * modules/passfd (Files): Reorder.
16368         (Depends-on): Remove errno.
16369         (Include): Remove <sys/socket.h>, <sys/un.h>.
16370         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16371         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16372         specification header. Include <sys/socket.h> always. Don't include
16373         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16374         (sendfd): Clarify that it sets errno when it fails.
16375         (recvfd): Fix specification.
16376
16377 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16378
16379         passfd module, part 2.
16380         * modules/passfd: New file.
16381         * lib/passfd.h: New file.
16382         * lib/passfd.c: New file.
16383
16384 2011-03-12  Bruno Haible  <bruno@clisp.org>
16385
16386         wcswidth, mbswidth: Avoid integer overflow.
16387         * lib/wcswidth.c: Include <limits.h>.
16388         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16389         * lib/mbswidth.c: Include <limits.h>.
16390         (mbsnwidth): Avoid 'int' overflow.
16391         Reported by Jim Meyering.
16392
16393 2011-03-12  Bruno Haible  <bruno@clisp.org>
16394
16395         futimens, utimensat: Avoid endless recursion on Solaris 10.
16396         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16397         Solaris.
16398         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16399         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16400
16401 2011-03-11  Jim Meyering  <meyering@redhat.com>
16402
16403         maint.mk: relax a regexp to accommodate other formatting styles
16404         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16405         between "ngettext" and the following "(".
16406
16407 2011-03-11  Pádraig Brady <P@draigBrady.com>
16408
16409         maint.mk: suppress a false positive warning
16410         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16411         diagnostics are marked with ngettext.
16412
16413 2011-03-10  Eric Blake  <eblake@redhat.com>
16414
16415         wchar: add explicit dependencies, for Tru64
16416         * modules/mbmemcasecoll (Depends-on): Add wchar.
16417         * modules/mbtowc (Depends-on): Likewise.
16418         * modules/vasnprintf (Depends-on): Likewise.
16419         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16420         * modules/wctomb (Depends-on): Likewise.
16421         Reported by Peter O'Gorman.
16422
16423 2011-03-08  Bruno Haible  <bruno@clisp.org>
16424
16425         passfd module, part 1, tweaks.
16426         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16427         Improve indentation. Improve AC_MSG_CHECKING messages.
16428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16429         gl_SOCKET_FAMILIES.
16430
16431 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16432
16433         passfd module, part 1.
16434         * m4/afunix.m4: New file.
16435         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16436         sockets.
16437
16438 2011-03-08  Bruno Haible  <bruno@clisp.org>
16439
16440         regex-quote: New API.
16441         * lib/regex-quote.h: Include <stdbool.h>.
16442         (struct regex_quote_spec): New type.
16443         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16444         New declarations.
16445         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16446         'const struct regex_quote_spec *' argument.
16447         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16448         (pcre_special): New constant.
16449         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16450         New functions.
16451         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16452         'const struct regex_quote_spec *' argument.
16453         * modules/regex-quote (Depends-on): Add stdbool.
16454         * tests/test-regex-quote.c (check): Update for new API. Add test for
16455         anchored results.
16456         * NEWS: Mention the API change.
16457         Reported by Reuben Thomas and Eric Blake.
16458
16459 2011-03-06  Bruno Haible  <bruno@clisp.org>
16460
16461         regex-quote: Fix creation of POSIX extended regular expressions.
16462         * lib/regex-quote.c (ere_special): Add grouping and alternation
16463         operators.
16464
16465 2011-03-05  Bruno Haible  <bruno@clisp.org>
16466
16467         doc: Improve doc regarding autopoint vs. gnulib.
16468         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16469         disable autopoint while running autoreconf.
16470         Suggested by Ralf Wildenhues.
16471
16472 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16473
16474         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16475         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16476
16477 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16478
16479         parse-duration: remove xalloc.h dependency
16480         * lib/parse-duration.c (parse_period): handle NULL return from
16481         strdup instead of calling xstrdup().
16482         * modules/parse-duration: remove "xalloc" dependency
16483
16484 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16485
16486         bootstrap: honor m4_base when running aclocal
16487         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16488
16489 2011-03-02  Jim Meyering  <meyering@redhat.com>
16490
16491         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16492         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16493         on request from Matt Booth.
16494
16495 2011-03-01  Eric Blake  <eblake@redhat.com>
16496
16497         test-link: work on Hurd
16498         * tests/test-link.h (test_link): Hurd rejects linking directories
16499         with EISDIR instead of the POSIX-mandated EPERM.
16500
16501 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16502
16503         stdio: simplify by moving files to printf-posix, sigpipe
16504         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16505         since this symbol is needed only if printf is replaced.
16506         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16507         Require gl_ASM_SYMBOL_PREFIX.
16508         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16509         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16510         (Depends-on): Add 'raise'.
16511         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16512         * modules/stdio (Files): Remove lib/stdio-write.c,
16513         m4/asm-underscore.m4.
16514         (Depends-on): Remove 'raise'.
16515
16516         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16517         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16518         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16519         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16520
16521 2011-02-28  Bruno Haible  <bruno@clisp.org>
16522
16523         localcharset: Assume ANSI C behaviour of free().
16524         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16525         calling free().
16526         Suggested by Simon Josefsson <simon@josefsson.org>.
16527
16528 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16529             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16530             Bruno Haible  <bruno@clisp.org>  (tiny change)
16531
16532         On Cygwin, use /proc file system instead of win32 API.
16533         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16534         Win32 file names.
16535         (DllMain): Simplify by removing Cygwin specific code.
16536         (find_shared_library_fullname): Use Linux specific implementation also
16537         for Cygwin.
16538         (get_shared_library_fullname): Update accordingly.
16539         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16540         Win32 file names.
16541         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16542         Cygwin specific code.
16543
16544 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16545             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16546
16547         Fix OpenMP flag detection for various Fortran compilers.
16548         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16549         OpenMP-conditional compilation construct, to force compile
16550         failure with missing OpenMP flag.
16551         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16552
16553 2011-02-25  Eric Blake  <eblake@redhat.com>
16554
16555         strstr: expand test coverage
16556         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16557         compilation.
16558         * tests/test-memmem.c (main): Duplicate tests.
16559         * tests/test-strcasestr.c (main): Likewise.
16560         * tests/test-c-strcasestr.c (main): Likewise.
16561
16562 2011-02-25  Jim Meyering  <meyering@redhat.com>
16563
16564         maint.mk: detect missing-NL-at-EOF, too
16565         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16566         it also detects when a file lacks a newline at EOF.
16567         (require_exactly_one_NL_at_EOF_): Renamed from
16568         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16569         since people may well have .x-sc_... file names tied to the
16570         existing name.  Suggested by Eric Blake.
16571
16572 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         dirname: move m4/dos.m4 functionality into lib/dosname.h
16575
16576         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16577         extracts symbols from it, puts them into config.h; but it's much
16578         easier to use the symbols directly.  filename.h already does this,
16579         but it disagrees with dos.m4 in some respects.  This patch
16580         introduces a different include file dosname.h that packages up
16581         dos.m4, and then later we can work on merging filename.h and
16582         dosname.h.  Applications that need only the easy-to-configure
16583         symbols should consider including dosname.h rather than dirname.h.
16584         * NEWS: Mention incompatible changes.
16585         * m4/dos.m4: Remove.
16586         * lib/dosname.h, modules/dosname: New files.
16587         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16588         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16589         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16590         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16591         Include dosname.h, not dirname.h.
16592         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16593         Include dosname.h, for definitions of symbols like ISSLASH
16594         that used to be in config.h.
16595         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16596         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16597         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16598         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16599         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16600         * modules/rmdir (Files): Likewise.
16601         * modules/stat (Files): Likewise.
16602         * modules/unlink (Files): Likewise.
16603         * modules/dirname-lgpl (Depends-on): Add dosname.
16604         * modules/lstat (Depends-on): Likewise.
16605         * modules/openat (Depends-on): Likewise.
16606         * modules/rmdir (Depends-on): Likewise.
16607         * modules/savewd (Depends-on): Likewise.
16608         * modules/stat (Depends-on): Likewise.
16609         * modules/unlink (Depends-on): Likewise.
16610         * modules/openat (Depends-on): Remove dirname-lgpl.
16611         * modules/savewd (Depends-on): Likewise.
16612         * tests/test-dirname.c: Do not use removed symbols like
16613         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16614         the remaining symbols, e.g., ISSLASH ('\\').
16615
16616 2011-02-25  Eric Blake  <eblake@redhat.com>
16617
16618         strstr: revert patches that introduced bug and pessimization
16619         * lib/str-two-way.h: Add another reference.
16620         (two_way_short_needle, two_way_long_needle): Revert changes from
16621         2011-02-24; they pessimize search speed.
16622         (critical_factorization): Partially revert changes from
16623         2010-06-22; they violate the requirement that the left half of the
16624         needle be smaller than the period of the needle.
16625
16626 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         filenamecat: remove unnecessary dependency on dirname-lgpl
16629         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16630         is no direct dependency, just an indirect one via filenamecat-lgpl.
16631
16632         remove: remove unnecessary use of m4/dos.m4
16633         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16634         * modules/remove (FILES): Remove m4/dos.m4.
16635
16636         * lib/openat-proc.c: Don't include dirname.h; not needed.
16637
16638         backupfile: remove unnecessary use of m4/dos.m4
16639         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16640         of its symbols are used by the backupfile code.  backupfile.c does
16641         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16642         for the rare case of programs that want all their backup file
16643         names to live within 8+3 limits, and dos.m4 doesn't address that.
16644         * modules/backupfile (Files): Remove m4/dos.m4.
16645
16646 2011-02-24  Jim Meyering  <meyering@redhat.com>
16647
16648         strstr: fix a bug whereby strstr would mistakenly return NULL
16649         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16650         in period calculation.
16651         (two_way_long_needle): Likewise.
16652         The original problem was reported by Mike Stump in
16653         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16654         Ralf Wildenhues provided the short needle and haystack.
16655         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16656         Add a more involved test to trigger the bug in two_way_long_needle.
16657
16658 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16659
16660         gnulib-tool: remove use of bold display in help screen
16661         * gnulib-tool (func_usage): Do not use bold display anymore in the
16662         help screen.  That was just meant to be a temporary emphasis for a
16663         backward-incompatible change.
16664
16665 2011-02-23  Bruno Haible  <bruno@clisp.org>
16666
16667         Fix misindentation of preprocessor directives.
16668         * lib/argp-namefrob.h: Reindent preprocessor directives.
16669         * lib/getopt_int.h (struct _getopt_data): Likewise.
16670         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16671         * lib/vasnprintf.c (decode_long_double): Likewise.
16672         * tests/test-argmatch.c: Insert blank lines, for clarity.
16673         * tests/test-exclude.c: Likewise.
16674
16675 2011-02-22  Bruno Haible  <bruno@clisp.org>
16676
16677         ioctl: Fix for MacOS X in 64-bit mode.
16678         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16679         value.
16680         Suggested by Eric Blake.
16681         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16682
16683 2011-02-22  Jim Meyering  <meyering@redhat.com>
16684
16685         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16686         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16687         in lib/.
16688
16689 2011-02-22  Eric Blake  <eblake@redhat.com>
16690
16691         maint: avoid any CDPATH issue
16692         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16693
16694         maint: adjust cpp indentation for my modules, as well
16695         * Makefile (sc_cpp_indent_check): Add my name.
16696         * lib/fbufmode.c: Filter through cppi.
16697         * lib/fpurge.c: Likewise.
16698         * lib/freadable.c: Likewise.
16699         * lib/freading.c: Likewise.
16700         * lib/fwritable.c: Likewise.
16701         * lib/fwriting.c: Likewise.
16702         * lib/sigaction.c: Likewise.
16703
16704 2011-02-22  Jim Meyering  <meyering@redhat.com>
16705
16706         maint: adjust cpp indentation to reflect nesting depth
16707         I.e., in a block of code that begins with an unnested "#if",
16708         put one space between the "#" in column 1 and following token.
16709         For example,
16710         -#include <sys/vfs.h>
16711         +# include <sys/vfs.h>
16712         Do this only in .c files that are part of a module I maintain.
16713         * lib/linkat.c: Filter through cppi.
16714         * lib/nanosleep.c: Likewise.
16715         * lib/openat.c: Likewise.
16716         * lib/openat-die.c: Likewise.
16717         * lib/dup3.c: Likewise.
16718         * lib/fchownat.c: Likewise.
16719         * lib/flock.c: Likewise.
16720         * lib/fsync.c: Likewise.
16721         * lib/fts.c: Likewise.
16722         * lib/getpass.c: Likewise.
16723         * lib/gettimeofday.c: Likewise.
16724         * lib/userspec.c: Likewise.
16725         * Makefile (sc_cpp_indent_check): New rule, to check this.
16726
16727 2011-02-22  Bruno Haible  <bruno@clisp.org>
16728
16729         New module 'wctomb'.
16730         * lib/stdlib.in.h (wctomb): New declaration.
16731         * lib/wctomb.c: New file.
16732         * lib/wctomb-impl.h: New file.
16733         * m4/wctomb.m4: New file.
16734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16735         REPLACE_WCTOMB.
16736         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16737         REPLACE_WCTOMB.
16738         * modules/wctomb: New file.
16739         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16740         * doc/posix-functions/wctomb.texi: Mention the new module.
16741         * modules/wctob (Depends-on): Add wctomb.
16742
16743 2011-02-22  Bruno Haible  <bruno@clisp.org>
16744
16745         New module 'mbtowc'.
16746         * lib/stdlib.in.h (mbtowc): New declaration.
16747         * lib/mbtowc.c: New file.
16748         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16749         * m4/mbtowc.m4: New file.
16750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16751         REPLACE_MBTOWC.
16752         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16753         REPLACE_MBTOWC.
16754         * modules/mbtowc: New file.
16755         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16756         * doc/posix-functions/mbtowc.texi: Mention the new module.
16757         * modules/btowc (Depends-on): Add mbtowc.
16758
16759 2011-02-22  Bruno Haible  <bruno@clisp.org>
16760
16761         wcrtomb: Add more tests for native Windows platforms.
16762         * tests/test-wcrtomb-w32-1.sh: New file.
16763         * tests/test-wcrtomb-w32-2.sh: New file.
16764         * tests/test-wcrtomb-w32-3.sh: New file.
16765         * tests/test-wcrtomb-w32-4.sh: New file.
16766         * tests/test-wcrtomb-w32-5.sh: New file.
16767         * tests/test-wcrtomb-w32.c: New file.
16768         * modules/wcrtomb-tests (Files): Add them.
16769         (Makefile.am): Arrange to run these tests.
16770         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16771         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16772
16773 2011-02-20  Bruno Haible  <bruno@clisp.org>
16774
16775         wcrtomb: Enhance test.
16776         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16777
16778 2011-02-20  Bruno Haible  <bruno@clisp.org>
16779
16780         mbrtowc: Tiny optimization.
16781         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16782
16783 2011-02-20  Jim Meyering  <meyering@redhat.com>
16784
16785         test-exclude.c: remove unmatched #endif
16786         * tests/test-exclude.c: Remove stray #endif, left over from
16787         the change of a week ago.
16788
16789 2011-02-19  Jim Meyering  <meyering@redhat.com>
16790
16791         git-version-gen: skip "-dirty" check when appropriate
16792         * build-aux/git-version-gen: Don't run any git commands when the
16793         version string comes from .tarball-version.  Prior to this, we
16794         would run git update-index --refresh even from a just-unpacked
16795         tarball directory, and that could affect a .git/ directory in a
16796         parent of the build directory.  Reported by Mike Frysinger.
16797
16798 2011-02-19  Bruno Haible  <bruno@clisp.org>
16799
16800         unictype/property-byname: Reduce the size of the 'data' segment.
16801         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16802
16803 2011-02-19  Bruno Haible  <bruno@clisp.org>
16804
16805         unictype/scripts: Reduce the size of the 'data' segment.
16806         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16807         '%pic'.
16808         * lib/unictype/scripts_byname.gperf: Regenerated.
16809
16810 2011-02-19  Bruno Haible  <bruno@clisp.org>
16811
16812         stdint: Update documentation.
16813         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16814
16815 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         stdint: omit redundant check for wchar.h
16818         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16819         always tests whether wchar.h exists, so remove the now-redundant test.
16820
16821 2011-02-18  Bruno Haible  <bruno@clisp.org>
16822
16823         stdint: Cut dependency to module 'wchar'.
16824         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16825         include the necessary prerequisites.
16826         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16827         * modules/stdint (Depends-on): Remove wchar.
16828         (Makefile.am): Substitute HAVE_WCHAR_H.
16829         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16830
16831 2011-02-18  Eric Blake  <eblake@redhat.com>
16832
16833         longlong: skip, rather than fail, on cross-compilation
16834         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16835         when cross-compiling; regression from 2011-02-16.
16836
16837 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         * NEWS: Mention 2011-02-08 change to stdlib.
16840
16841 2011-02-17  Bruno Haible  <bruno@clisp.org>
16842
16843         getloadavg: Add comments about platforms.
16844         * m4/getloadavg.m4: Add comment.
16845         * lib/getloadavg.c: Likewise.
16846
16847 2011-02-17  Bruno Haible  <bruno@clisp.org>
16848
16849         getloadavg: Fix link error on Solaris 2.6.
16850         * modules/getloadavg (Link): New section.
16851         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16852         linking test-getloadavg.
16853         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16854         getloadavg.
16855
16856 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16859         It was 'int', but this doesn't match the IRIX 6.5 manual.
16860         Suggested by Bruno Haible in
16861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16862
16863 2011-02-17  Bruno Haible  <bruno@clisp.org>
16864
16865         havelib: Fix comments.
16866         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16867         change.
16868
16869 2011-02-17  Bruno Haible  <bruno@clisp.org>
16870
16871         havelib: Update config.rpath.
16872         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16873
16874 2011-02-17  Bruno Haible  <bruno@clisp.org>
16875
16876         getloadavg test: Add some plausibility checks.
16877         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16878         is improbable.
16879
16880 2011-02-16  Eric Blake  <eblake@redhat.com>
16881
16882         maintainer-makefile: make syntax-check a no-op from tarballs
16883         * top/maint.mk (no-vc-detected): New rule.
16884         (local-checks-available): Use it to avoid hanging if someone tries
16885         'make syntax-check' from a tarball.  Also append to any non-syntax
16886         checks already defined in cfg.mk.
16887
16888 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         longlong: tune, particularly for common case of c99
16891
16892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16893         or running anything if c99, or if unsigned long long int does not
16894         work.  In either case, we know the answer without further tests.
16895         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16896         it at most once, and use its results for both long long int and
16897         unsigned long long int.  This is more likely to be efficient in
16898         the common case where the program wants to check for both long
16899         long int and unsigned long long int.
16900         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16901         since the answer is already known.
16902
16903 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16904
16905         getloadavg: set errno
16906         * lib/getloadavg.c: Set errno when returning -1.  If no other
16907         error number looks appropriate, set it to ENOSYS if the getloadavg
16908         looks like it can't possibly ever work, ENOTSUP otherwise.
16909         Suggested by Bruno Haible in
16910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16911
16912         getloadavg: trim unused parts and speed up 'configure'
16913         * NEWS: Document this.
16914         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16915         always compiled if getloadavg is absent.
16916         Move test code to ...
16917         * tests/test-getloadavg.c: New file, containing previous
16918         contents of test from lib/getloadavg.c.  It also contains
16919         suggestions by Bruno Haible in
16920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16921         * modules/getloadavg-tests: New file.
16922         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16923         Do tests in the same order as they're needed for getloadavg.c.
16924         Omit setgid-related tests that generate symbols KMEM_GROUP,
16925         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16926         Do only the tests that are needed to see whether the system has
16927         getloadavg, moving the other tests into ...
16928         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16929         NLIST_NAME_UNION; nobody should be using it.  Do not define
16930         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16931         relevant, as the user of this module shouldn't care how getloadavg
16932         is implemented.
16933
16934         getloadavg: omit unused var
16935         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16936
16937 2011-02-15  Jim Meyering  <meyering@redhat.com>
16938
16939         doc: update users.txt
16940         * users.txt: Update iwhd's URL.
16941
16942 2011-02-13  Bruno Haible  <bruno@clisp.org>
16943
16944         Consistent macro naming for macros that use GCC __attribute__.
16945         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16946         _ATTRIBUTE_NONNULL_.
16947         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16948         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16949         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16950         ATTRIBUTE_DEPRECATED.
16951         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16952         ATTRIBUTE_NORETURN.
16953         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16954         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16955         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16956         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16957         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16958         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16959         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16960         ATTRIBUTE_SENTINEL.
16961         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16962         ATTRIBUTE_RETURN_CHECK.
16963         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16964         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16965         ATTRIBUTE_NORETURN.
16966         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16967         Reported by Paul Eggert.
16968
16969 2011-02-13  Bruno Haible  <bruno@clisp.org>
16970
16971         Don't interfere with a program's definition of __attribute__.
16972         * lib/argp.h (__attribute__): Remove definition.
16973         (_GL_ATTRIBUTE_FORMAT): New macro.
16974         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16975         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16976         (_GL_ATTRIBUTE_FORMAT): New macro.
16977         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16978         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16979         GCC 3 or newer.
16980         * lib/error.h (__attribute__): Remove definition.
16981         (_GL_ATTRIBUTE_FORMAT): New macro.
16982         (error, error_at_line): Use it.
16983         * lib/hash.h (__attribute__): Remove definition.
16984         (ATTRIBUTE_WUR): Update definition. Define always.
16985         * lib/openat.h (__attribute__): Remove definition.
16986         (ATTRIBUTE_NORETURN): Update definition. Define always.
16987         * lib/sigpipe-die.h (__attribute__): Remove definition.
16988         (ATTRIBUTE_NORETURN): Update definition. Define always.
16989         * lib/vasnprintf.h (__attribute__): Remove definition.
16990         (_GL_ATTRIBUTE_FORMAT): New macro.
16991         (asnprintf, vasnprintf): Use it.
16992         * lib/xalloc.h (__attribute__): Remove definition.
16993         (ATTRIBUTE_NORETURN): Update definition. Define always.
16994         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16995         * lib/xmemdup0.h (__attribute__): Remove definition.
16996         (ATTRIBUTE_NORETURN): Update definition. Define always.
16997         * lib/xprintf.h (__attribute__): Remove definition.
16998         (_GL_ATTRIBUTE_FORMAT): New macro.
16999         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
17000         * lib/xstrtol.h (__attribute__): Remove definition.
17001         (ATTRIBUTE_NORETURN): Update definition. Define always.
17002         * lib/xvasprintf.h (__attribute__): Remove definition.
17003         (_GL_ATTRIBUTE_FORMAT): New macro.
17004         (xasprintf, xvasprintf): Use it.
17005         * tests/test-argmatch.c (__attribute__): Remove definition.
17006         (ATTRIBUTE_NORETURN): Update definition. Define always.
17007         * tests/test-exclude.c (__attribute__): Remove definition.
17008         (ATTRIBUTE_NORETURN): Update definition. Define always.
17009         Reported by Paul Eggert.
17010
17011 2011-02-13  Bruno Haible  <bruno@clisp.org>
17012
17013         mbrtowc: Add more tests for native Windows platforms.
17014         * tests/test-mbrtowc-w32-1.sh: New file.
17015         * tests/test-mbrtowc-w32-2.sh: New file.
17016         * tests/test-mbrtowc-w32-3.sh: New file.
17017         * tests/test-mbrtowc-w32-4.sh: New file.
17018         * tests/test-mbrtowc-w32-5.sh: New file.
17019         * tests/test-mbrtowc-w32.c: New file.
17020         * modules/mbrtowc-tests (Files): Add them.
17021         (Makefile.am): Arrange to run these tests.
17022         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
17023         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
17024
17025 2011-02-13  Bruno Haible  <bruno@clisp.org>
17026
17027         mbrtowc: Work around native Windows bug.
17028         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
17029         guess when no suitable locale for testing was found.
17030         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
17031
17032 2011-02-13  Bruno Haible  <bruno@clisp.org>
17033
17034         mbsinit: Work around mingw bug.
17035         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
17036         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
17037         Windows.
17038         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
17039
17040 2011-02-13  Bruno Haible  <bruno@clisp.org>
17041
17042         mbsinit: Don't crash for a NULL argument.
17043         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
17044         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
17045
17046 2011-02-13  Bruno Haible  <bruno@clisp.org>
17047
17048         Don't interfere with a program's definition of __attribute__.
17049         * lib/stdio.in.h (__attribute__): Remove definition.
17050         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
17051         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
17052         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
17053         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
17054         * lib/string.in.h (__attribute__): Remove definition.
17055         Reported by Paul Eggert.
17056
17057 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17058
17059         stdlib: don't get in the way of non-GCC __attribute__
17060         See thread starting at
17061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
17062         Revert previous stdlib change, installing the following instead:
17063         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
17064         to get in the way of a non-GCC compiler that supports __attribute__.
17065         (_GL_ATTRIBUTE_RETURN): New macro.
17066         (_Exit): Use it instead of __attribute__.
17067
17068 2011-02-12  Bruno Haible  <bruno@clisp.org>
17069
17070         quotearg test: Avoid test failure on mingw.
17071         * tests/test-quotearg.sh: Convert the locale identifier from native
17072         Windows syntax to Unix syntax.
17073
17074 2011-02-12  Bruno Haible  <bruno@clisp.org>
17075
17076         setlocale: Prefer gnulib's override over libintl's override.
17077         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
17078         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
17079         GNULIB_defined_setlocale is set.
17080
17081 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17082
17083         stdlib: support non-GCC __attribute__
17084
17085         Fix a serious and tricky problem encountered when attempting to
17086         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
17087         5.5, but it crashed due to memory corruption on Solaris 10 with
17088         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
17089         bits that are otherwise zero.  This tagging is optional inside
17090         Emacs but is preferred and is used when __attribute__ ((__aligned
17091         (8))) works, as it does with both recent-enough GCC and with Sun C
17092         5.11.  However, Sun C 5.11 is not GCC and does not #define
17093         __GNUC__ and __GNUC_MINOR__.
17094
17095         When I added the getloadavg module to Emacs, it brought in
17096         stdlib.in.h, which contained this fragment:
17097
17098            #ifndef __attribute__
17099            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
17100            #  define __attribute__(Spec)   /* empty */
17101            # endif
17102            #endif
17103
17104         When files that include <stdlib.h> were compiled with Sun C 5.11,
17105         the above code disabled __attribute__ ((__aligned (8))), which
17106         caused variables to not be properly aligned, which eventually led
17107         to the pointer corruption mentioned above.  (This was a bit hard
17108         to diagnose, unfortunately.)
17109
17110         Several "#define __attribute__(X) /* empty */" code snippets need
17111         to be eradicated from Gnulib to work with non-GCC compilers that
17112         support __attribute__.  The Autoconf way to do this is to test for
17113         each kind of attribute that we want support for, and selectively
17114         enable that in source code.
17115
17116         Fix this problem just for stdlib.h, by adding a test for the
17117         __noreturn__ attribute, and change stdlib.in.h to use that test
17118         when needed.  This technique can be easily generalized to the
17119         other *.in.h files and attributes, and a similar technique can be
17120         used for *.h and *.c files.  This patch is enough to solve the
17121         problem for Emacs + getloadavg, and I thought I'd publish it for
17122         feedback before undertaking further, similar fixes in other
17123         modules.
17124
17125         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
17126         because it's not needed for stdlib.h.  It merely substitutes the
17127         value directly into stdlib.h.  We may well need to #define it, or
17128         similar symbols, for other modules, but it's nice to also have an
17129         option to not #define it for applications like Emacs that do not
17130         need it.
17131
17132         * lib/stdlib.in.h (__attribute__): Do not #define.
17133         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
17134         be defined only if the _Exit module is also used.
17135         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
17136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
17137         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
17138         platforms.
17139         * modules/_Exit (Files): Add m4/attribute.m4.
17140         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
17141         * m4/attribute.m4: New file.
17142
17143 2011-02-12  Bruno Haible  <bruno@clisp.org>
17144
17145         wcsrtombs: Work around bug on native Windows.
17146         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
17147         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
17148         instead of len.
17149         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
17150
17151 2011-02-12  Bruno Haible  <bruno@clisp.org>
17152
17153         mbsrtowcs: Work around bug on native Windows.
17154         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
17155         against mingw bug.
17156         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
17157
17158 2011-02-12  Bruno Haible  <bruno@clisp.org>
17159
17160         Avoid setlocale bugs in tests.
17161         * modules/btowc (Dependencies): Add setlocale.
17162         * modules/c-strcase (Dependencies): Likewise.
17163         * modules/mbmemcasecmp (Dependencies): Likewise.
17164         * modules/mbmemcasecoll (Dependencies): Likewise.
17165         * modules/mbrtowc (Dependencies): Likewise.
17166         * modules/mbscasecmp (Dependencies): Likewise.
17167         * modules/mbscasestr (Dependencies): Likewise.
17168         * modules/mbschr (Dependencies): Likewise.
17169         * modules/mbscspn (Dependencies): Likewise.
17170         * modules/mbsinit (Dependencies): Likewise.
17171         * modules/mbsncasecmp (Dependencies): Likewise.
17172         * modules/mbsnrtowcs (Dependencies): Likewise.
17173         * modules/mbspbrk (Dependencies): Likewise.
17174         * modules/mbspcasecmp (Dependencies): Likewise.
17175         * modules/mbsrchr (Dependencies): Likewise.
17176         * modules/mbsrtowcs (Dependencies): Likewise.
17177         * modules/mbsspn (Dependencies): Likewise.
17178         * modules/mbsstr (Dependencies): Likewise.
17179         * modules/nl_langinfo (Dependencies): Likewise.
17180         * modules/quotearg (Dependencies): Likewise.
17181         * modules/unicase/locale-language (Dependencies): Likewise.
17182         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
17183         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
17184         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
17185         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
17186         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
17187         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
17188         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
17189         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
17190         * modules/vasnprintf-posix (Dependencies): Likewise.
17191         * modules/wcrtomb (Dependencies): Likewise.
17192         * modules/wcsnrtombs (Dependencies): Likewise.
17193         * modules/wcsrtombs (Dependencies): Likewise.
17194
17195 2011-02-12  Bruno Haible  <bruno@clisp.org>
17196
17197         setlocale: Workaround native Windows bug.
17198         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
17199         succeeds but sets LC_CTYPE to "C", report a failure.
17200         * tests/test-setlocale2.sh: New file.
17201         * tests/test-setlocale2.c: New file.
17202         * modules/setlocale-tests (Files): Add the new files.
17203         (Makefile.am): Enable test-setlocale2.sh test.
17204         * doc/posix-functions/setlocale.texi: Mention workaround.
17205
17206 2011-02-11  Bruno Haible  <bruno@clisp.org>
17207
17208         Tests for module 'setlocale'.
17209         * modules/setlocale-tests: New file.
17210         * tests/test-setlocale1.sh: New file.
17211         * tests/test-setlocale1.c: New file.
17212
17213         New module 'setlocale'.
17214         * lib/locale.in.h (setlocale): New declaration.
17215         * lib/setlocale.c: New file, based on
17216         gettext/gettext-runtime/intl/setlocale.c.
17217         * m4/setlocale.m4: New file.
17218         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
17219         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
17220         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
17221         REPLACE_SETLOCALE.
17222         * modules/setlocale: New file.
17223         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17224         * doc/posix-functions/setlocale.texi: Mention the new module.
17225
17226 2011-02-11  Bruno Haible  <bruno@clisp.org>
17227
17228         Prepare for locale dependent tests on mingw.
17229         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17230         because it has the wrong locale encoding.
17231         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17232         French_France.1252 instead of "fr".
17233         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17234         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17235         because it has the wrong locale encoding.
17236         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17237         native Windows, try Turkish_Turkey.65001.
17238         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17239         Chinese_China.54936.
17240
17241         Prepare for locale dependent tests on mingw.
17242         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17243         differently.
17244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17245         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17246         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17248
17249 2011-02-11  Eric Blake  <eblake@redhat.com>
17250
17251         strptime: avoid compiler warnings
17252         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17253         compiler warnings about dead code.
17254         Reported by Daniel P. Berrange.
17255
17256 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17257
17258         doc: update users.txt
17259         * users.txt: Add rcs.
17260
17261 2011-02-10  John W. Eaton  <jwe@gnu.org>
17262
17263         doc: update users.txt
17264         * users.txt: Add octave.
17265
17266 2011-02-10  Jim Meyering  <meyering@redhat.com>
17267
17268         doc: update users.txt
17269         * users.txt: Add iwhd.
17270
17271 2011-02-09  Bruno Haible  <bruno@clisp.org>
17272
17273         gnulib-tool: Make copyright notice adjustment more robust.
17274         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17275         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17276         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17277         License".
17278         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17279
17280 2011-02-06  Bruno Haible  <bruno@clisp.org>
17281
17282         New module 'towctrans'.
17283         * modules/towctrans: New file.
17284         * lib/wctype.in.h (towctrans): New declaration.
17285         * lib/towctrans.c: New file.
17286         * lib/towctrans-impl.h: New file.
17287         * m4/towctrans.m4: New file.
17288         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17289         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17290         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17291         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17292         * doc/posix-functions/towctrans.texi: Mention the new module.
17293
17294 2011-02-06  Bruno Haible  <bruno@clisp.org>
17295
17296         New module 'wctrans'.
17297         * modules/wctrans: New file.
17298         * lib/wctype.in.h (wctrans): New declaration.
17299         * lib/wctrans.c: New file.
17300         * lib/wctrans-impl.h: New file.
17301         * m4/wctrans.m4: New file.
17302         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17303         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17304         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17305         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17306         * doc/posix-functions/wctrans.texi: Mention the new module.
17307
17308 2011-02-06  Bruno Haible  <bruno@clisp.org>
17309
17310         New module 'iswctype'.
17311         * modules/iswctype: New file.
17312         * lib/wctype.in.h (iswctype): New declaration.
17313         * lib/iswctype.c: New file.
17314         * lib/iswctype-impl.h: New file.
17315         * m4/iswctype.m4: New file.
17316         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17317         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17318         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17319         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17320         * doc/posix-functions/iswctype.texi: Mention the new module and the
17321         HP-UX 11.00 problem.
17322
17323 2011-02-06  Bruno Haible  <bruno@clisp.org>
17324
17325         New module 'wctype'.
17326         * modules/wctype: Change to represent the wctype() substitute.
17327         * lib/wctype.in.h (wctype): New declaration.
17328         * lib/wctype.c: New file.
17329         * lib/wctype-impl.h: New file.
17330         * m4/wctype.m4: New file.
17331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17332         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17333         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17334         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17335         * doc/posix-functions/wctype.texi: Mention the new module and the
17336         HP-UX 11.00 problem.
17337
17338 2011-02-06  Bruno Haible  <bruno@clisp.org>
17339
17340         wctype-h: Ensure wctype_t and wctrans_t are defined.
17341         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17342         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17343         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17344         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17345         HAVE_WCTRANS_T.
17346         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17347
17348 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17349
17350         flock: fix license typo
17351
17352         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17353         omitted.
17354
17355 2011-02-08  Bruno Haible  <bruno@clisp.org>
17356
17357         Split large sed scripts, for HP-UX sed.
17358         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17359         to avoid HP-UX limit of 99 commands, in the near future.
17360         * modules/stdlib (Makefile.am): Likewise.
17361         * modules/unistd (Makefile.am): Likewise.
17362         * modules/wchar (Makefile.am): Likewise.
17363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17364         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17365         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17366
17367 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17368             Bruno Haible  <bruno@clisp.org>
17369
17370         stdlib: improve random_r modularization
17371         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17372         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17373         you also need the random_r module to get this material right.
17374         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17375         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17376         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17377
17378 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17379
17380         stdlib: don't depend on stdint
17381         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17382         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17383         be independent of whether stdint.h is needed.
17384         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17385         here, instead of ...
17386         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17387         struct random_data should be using the random_r module, not just
17388         the stdlib module (which wouldn't make sense: what package needs
17389         just struct random_data without also needing random_r?).
17390         * modules/stdlib (Depends-on): Remove stdint.
17391
17392         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17393         See the thread rooted at
17394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17395         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17396         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17397         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17398         __VMS)); previously it was always included (via fcntl--.h).
17399         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17400         hand; this is good enough for load averages.  Also, do not use
17401         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17402         flags directly if available and don't bother otherwise.  (Packages
17403         that need the extra reliability should use the modules that define
17404         these flags on older platforms that lack them.)
17405         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17406         fcntl-safer.
17407
17408 2011-02-08  Jim Meyering  <meyering@redhat.com>
17409
17410         di-set.h, ino-map.h: add multiple-inclusion guard
17411         Technically, the guard is required only for ino-map.h, due to its
17412         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17413         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17414         * lib/ino-map.h: Likewise.
17415
17416 2011-02-06  Bruno Haible  <bruno@clisp.org>
17417
17418         iswblank: Ensure declaration on glibc systems.
17419         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17420         * modules/iswblank (Dependencies): Add 'extensions'.
17421         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17422
17423 2011-02-06  Bruno Haible  <bruno@clisp.org>
17424
17425         New module 'iswblank'.
17426         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17427         * modules/iswblank: New file.
17428         * modules/wctype-h (Files): Remove lib/iswblank.c.
17429         (Makefile.am): Substitute GNULIB_ISWBLANK.
17430         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17431         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17432         (gl_WCTYPE_H_DEFAULTS): New macro.
17433         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17434         * modules/iswblank-tests: New file.
17435         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17436         * tests/test-wctype-h.c (main): Remove iswblank tests.
17437         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17438         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17439         of 'wctype-h'.
17440         * NEWS: Mention the change.
17441         * modules/mbchar (Depends-on): Add iswblank.
17442
17443 2011-02-08  Bruno Haible  <bruno@clisp.org>
17444
17445         di-set tests: Refactor.
17446         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17447         unnecessary includes.
17448         (ASSERT): Remove macro.
17449         (main): Make C90 compliant by avoiding variable declaration after
17450         statement.
17451         * modules/di-set-tests (Files): Add tests/macros.h.
17452
17453 2011-02-08  Bruno Haible  <bruno@clisp.org>
17454
17455         ino-map tests: Refactor.
17456         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17457         unnecessary includes.
17458         (ASSERT): Remove macro.
17459         (main): Make C90 compliant by avoiding variable declaration after
17460         statement.
17461         * modules/ino-map-tests (Files): Add tests/macros.h.
17462
17463 2011-02-08  Jim Meyering  <meyering@redhat.com>
17464
17465         di-set: add "const" to a cast
17466         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17467         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17468
17469 2011-02-06  Bruno Haible  <bruno@clisp.org>
17470
17471         Rename module 'wctype' to 'wctype-h'.
17472         * modules/wctype-h: Renamed from modules/wctype.
17473         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17474         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17475         (Files, Depends-on, Makefile.am): Update.
17476         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17477         (Files, Makefile.am): Update.
17478         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17479         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17480         * doc/posix-headers/wctype.texi: Update.
17481         * doc/posix-functions/iswalnum.texi: Update.
17482         * doc/posix-functions/iswalpha.texi: Update.
17483         * doc/posix-functions/iswblank.texi: Update.
17484         * doc/posix-functions/iswcntrl.texi: Update.
17485         * doc/posix-functions/iswdigit.texi: Update.
17486         * doc/posix-functions/iswgraph.texi: Update.
17487         * doc/posix-functions/iswlower.texi: Update.
17488         * doc/posix-functions/iswprint.texi: Update.
17489         * doc/posix-functions/iswpunct.texi: Update.
17490         * doc/posix-functions/iswspace.texi: Update.
17491         * doc/posix-functions/iswupper.texi: Update.
17492         * doc/posix-functions/iswxdigit.texi: Update.
17493         * doc/posix-functions/towlower.texi: Update.
17494         * doc/posix-functions/towupper.texi: Update.
17495         * NEWS: Mention the change.
17496         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17497         * modules/mbchar (Dependencies): Likewise.
17498         * modules/mbswidth (Dependencies): Likewise.
17499         * modules/quotearg (Dependencies): Likewise.
17500         * modules/regex (Dependencies): Likewise.
17501         * modules/wcscasecmp (Dependencies): Likewise.
17502         * modules/wcsncasecmp (Dependencies): Likewise.
17503         * modules/wcwidth (Dependencies): Likewise.
17504
17505 2011-02-06  Bruno Haible  <bruno@clisp.org>
17506
17507         New module 'wcswidth'.
17508         * modules/wcswidth: New file.
17509         * lib/wchar.in.h (wcswidth): New declaration.
17510         * lib/wcswidth.c: New file.
17511         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17512         * m4/wcswidth.m4: New file.
17513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17515         REPLACE_WCSWIDTH.
17516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17517         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17518         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17519         * doc/posix-functions/wcswidth.texi: Mention the new module.
17520
17521 2011-02-06  Bruno Haible  <bruno@clisp.org>
17522
17523         New module 'wcstok'.
17524         * modules/wcstok: New file.
17525         * lib/wchar.in.h (wcstok): New declaration.
17526         * lib/wcstok.c: New file.
17527         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17528         * m4/wcstok.m4: New file.
17529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17532         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17533         * doc/posix-functions/wcstok.texi: Mention the new module.
17534
17535 2011-02-06  Bruno Haible  <bruno@clisp.org>
17536
17537         New module 'wcsstr'.
17538         * modules/wcsstr: New file.
17539         * lib/wchar.in.h (wcsstr): New declaration.
17540         * lib/wcsstr.c: New file.
17541         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17542         * m4/wcsstr.m4: New file.
17543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17546         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17547         * doc/posix-functions/wcsstr.texi: Mention the new module.
17548
17549 2011-02-06  Bruno Haible  <bruno@clisp.org>
17550
17551         New module 'wcspbrk'.
17552         * modules/wcspbrk: New file.
17553         * lib/wchar.in.h (wcspbrk): New declaration.
17554         * lib/wcspbrk.c: New file.
17555         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17556         * m4/wcspbrk.m4: New file.
17557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17560         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17561         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17562
17563 2011-02-06  Bruno Haible  <bruno@clisp.org>
17564
17565         New module 'wcsspn'.
17566         * modules/wcsspn: New file.
17567         * lib/wchar.in.h (wcsspn): New declaration.
17568         * lib/wcsspn.c: New file.
17569         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17570         * m4/wcsspn.m4: New file.
17571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17574         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17575         * doc/posix-functions/wcsspn.texi: Mention the new module.
17576
17577 2011-02-06  Bruno Haible  <bruno@clisp.org>
17578
17579         New module 'wcscspn'.
17580         * modules/wcscspn: New file.
17581         * lib/wchar.in.h (wcscspn): New declaration.
17582         * lib/wcscspn.c: New file.
17583         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17584         * m4/wcscspn.m4: New file.
17585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17588         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17589         * doc/posix-functions/wcscspn.texi: Mention the new module.
17590
17591 2011-02-06  Bruno Haible  <bruno@clisp.org>
17592
17593         New module 'wcsrchr'.
17594         * modules/wcsrchr: New file.
17595         * lib/wchar.in.h (wcsrchr): New declaration.
17596         * lib/wcsrchr.c: New file.
17597         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17598         * m4/wcsrchr.m4: New file.
17599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17602         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17603         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17604
17605 2011-02-06  Bruno Haible  <bruno@clisp.org>
17606
17607         New module 'wcschr'.
17608         * modules/wcschr: New file.
17609         * lib/wchar.in.h (wcschr): New declaration.
17610         * lib/wcschr.c: New file.
17611         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17612         * m4/wcschr.m4: New file.
17613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17616         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17617         * doc/posix-functions/wcschr.texi: Mention the new module.
17618
17619 2011-02-06  Bruno Haible  <bruno@clisp.org>
17620
17621         New module 'wcsdup'.
17622         * modules/wcsdup: New file.
17623         * lib/wchar.in.h (wcsdup): New declaration.
17624         * lib/wcsdup.c: New file.
17625         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17626         * m4/wcsdup.m4: New file.
17627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17630         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17631         * doc/posix-functions/wcsdup.texi: Mention the new module.
17632
17633 2011-02-06  Bruno Haible  <bruno@clisp.org>
17634
17635         New module 'wcsxfrm'.
17636         * modules/wcsxfrm: New file.
17637         * lib/wchar.in.h (wcsxfrm): New declaration.
17638         * lib/wcsxfrm.c: New file.
17639         * lib/wcsxfrm-impl.h: New file.
17640         * m4/wcsxfrm.m4: New file.
17641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17644         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17645         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17646
17647 2011-02-06  Bruno Haible  <bruno@clisp.org>
17648
17649         New module 'wcscoll'.
17650         * modules/wcscoll: New file.
17651         * lib/wchar.in.h (wcscoll): New declaration.
17652         * lib/wcscoll.c: New file.
17653         * lib/wcscoll-impl.h: New file.
17654         * m4/wcscoll.m4: New file.
17655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17658         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17659         * doc/posix-functions/wcscoll.texi: Mention the new module.
17660
17661 2011-02-06  Bruno Haible  <bruno@clisp.org>
17662
17663         New module 'wcsncasecmp'.
17664         * modules/wcsncasecmp: New file.
17665         * lib/wchar.in.h (wcsncasecmp): New declaration.
17666         * lib/wcsncasecmp.c: New file.
17667         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17668         * m4/wcsncasecmp.m4: New file.
17669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17672         HAVE_WCSNCASECMP.
17673         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17674         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17675
17676 2011-02-06  Bruno Haible  <bruno@clisp.org>
17677
17678         New module 'wcscasecmp'.
17679         * modules/wcscasecmp: New file.
17680         * lib/wchar.in.h (wcscasecmp): New declaration.
17681         * lib/wcscasecmp.c: New file.
17682         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17683         * m4/wcscasecmp.m4: New file.
17684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17687         HAVE_WCSCASECMP.
17688         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17689         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17690
17691 2011-02-05  Bruno Haible  <bruno@clisp.org>
17692
17693         New module 'wcsncmp'.
17694         * modules/wcsncmp: New file.
17695         * lib/wchar.in.h (wcsncmp): New declaration.
17696         * lib/wcsncmp.c: New file.
17697         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17698         * m4/wcsncmp.m4: New file.
17699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17702         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17703         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17704
17705 2011-02-05  Bruno Haible  <bruno@clisp.org>
17706
17707         New module 'wcscmp'.
17708         * modules/wcscmp: New file.
17709         * lib/wchar.in.h (wcscmp): New declaration.
17710         * lib/wcscmp.c: New file.
17711         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17712         * m4/wcscmp.m4: New file.
17713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17716         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17717         * doc/posix-functions/wcscmp.texi: Mention the new module.
17718
17719 2011-02-05  Bruno Haible  <bruno@clisp.org>
17720
17721         New module 'wcsncat'.
17722         * modules/wcsncat: New file.
17723         * lib/wchar.in.h (wcsncat): New declaration.
17724         * lib/wcsncat.c: New file.
17725         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17726         * m4/wcsncat.m4: New file.
17727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17730         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17731         * doc/posix-functions/wcsncat.texi: Mention the new module.
17732
17733 2011-02-05  Bruno Haible  <bruno@clisp.org>
17734
17735         New module 'wcscat'.
17736         * modules/wcscat: New file.
17737         * lib/wchar.in.h (wcscat): New declaration.
17738         * lib/wcscat.c: New file.
17739         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17740         * m4/wcscat.m4: New file.
17741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17744         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17745         * doc/posix-functions/wcscat.texi: Mention the new module.
17746
17747 2011-02-05  Bruno Haible  <bruno@clisp.org>
17748
17749         New module 'wcpncpy'.
17750         * modules/wcpncpy: New file.
17751         * lib/wchar.in.h (wcpncpy): New declaration.
17752         * lib/wcpncpy.c: New file.
17753         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17754         * m4/wcpncpy.m4: New file.
17755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17757         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17758         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17759         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17760
17761 2011-02-05  Bruno Haible  <bruno@clisp.org>
17762
17763         New module 'wcsncpy'.
17764         * modules/wcsncpy: New file.
17765         * lib/wchar.in.h (wcsncpy): New declaration.
17766         * lib/wcsncpy.c: New file.
17767         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17768         * m4/wcsncpy.m4: New file.
17769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17772         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17773         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17774
17775 2011-02-05  Bruno Haible  <bruno@clisp.org>
17776
17777         New module 'wcpcpy'.
17778         * modules/wcpcpy: New file.
17779         * lib/wchar.in.h (wcpcpy): New declaration.
17780         * lib/wcpcpy.c: New file.
17781         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17782         * m4/wcpcpy.m4: New file.
17783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17785         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17786         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17787         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17788
17789 2011-02-05  Bruno Haible  <bruno@clisp.org>
17790
17791         New module 'wcscpy'.
17792         * modules/wcscpy: New file.
17793         * lib/wchar.in.h (wcscpy): New declaration.
17794         * lib/wcscpy.c: New file.
17795         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17796         * m4/wcscpy.m4: New file.
17797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17800         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17801         * doc/posix-functions/wcscpy.texi: Mention the new module.
17802
17803 2011-02-05  Bruno Haible  <bruno@clisp.org>
17804
17805         New module 'wcsnlen'.
17806         * modules/wcsnlen: New file.
17807         * lib/wchar.in.h (wcsnlen): New declaration.
17808         * lib/wcsnlen.c: New file.
17809         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17810         * m4/wcsnlen.m4: New file.
17811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17814         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17815         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17816
17817 2011-02-05  Bruno Haible  <bruno@clisp.org>
17818
17819         New module 'wcslen'.
17820         * modules/wcslen: New file.
17821         * lib/wchar.in.h (wcslen): New declaration.
17822         * lib/wcslen.c: New file.
17823         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17824         * m4/wcslen.m4: New file.
17825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17828         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17829         * doc/posix-functions/wcslen.texi: Mention the new module.
17830
17831 2011-02-05  Bruno Haible  <bruno@clisp.org>
17832
17833         New module 'wmemset'.
17834         * modules/wmemset: New file.
17835         * lib/wchar.in.h (wmemset): New declaration.
17836         * lib/wmemset.c: New file.
17837         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17838         * m4/wmemset.m4: New file.
17839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17841         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17842         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17843         * doc/posix-functions/wmemset.texi: Mention the new module.
17844
17845 2011-02-05  Bruno Haible  <bruno@clisp.org>
17846
17847         New module 'wmemmove'.
17848         * modules/wmemmove: New file.
17849         * lib/wchar.in.h (wmemmove): New declaration.
17850         * lib/wmemmove.c: New file.
17851         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17852         * m4/wmemmove.m4: New file.
17853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17855         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17856         HAVE_WMEMMOVE.
17857         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17858         * doc/posix-functions/wmemmove.texi: Mention the new module.
17859
17860 2011-02-05  Bruno Haible  <bruno@clisp.org>
17861
17862         New module 'wmemcpy'.
17863         * modules/wmemcpy: New file.
17864         * lib/wchar.in.h (wmemcpy): New declaration.
17865         * lib/wmemcpy.c: New file.
17866         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17867         * m4/wmemcpy.m4: New file.
17868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17870         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17871         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17872         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17873
17874 2011-02-05  Bruno Haible  <bruno@clisp.org>
17875
17876         New module 'wmemcmp'.
17877         * modules/wmemcmp: New file.
17878         * lib/wchar.in.h (wmemcmp): New declaration.
17879         * lib/wmemcmp.c: New file.
17880         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17881         * m4/wmemcmp.m4: New file.
17882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17884         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17885         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17886         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17887
17888 2011-02-07  Jim Meyering  <meyering@redhat.com>
17889
17890         di-set, ino-map: new modules, from coreutils
17891         * lib/di-set.c: New file.
17892         * lib/di-set.h: Likewise.
17893         * lib/ino-map.c: Likewise.
17894         * lib/ino-map.h: Likewise.
17895         * modules/di-set: Likewise.
17896         * modules/di-set-tests: Likewise.
17897         * modules/ino-map: Likewise.
17898         * modules/ino-map-tests: Likewise.
17899         * tests/test-di-set.c: Likewise.
17900         * tests/test-ino-map.c: Likewise.
17901
17902 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         getloadavg: merge minor changes from Emacs
17905
17906         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17907         (getloadavg): Use memset, not bzero.
17908
17909         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17910         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17911         clash (bug#86).
17912
17913 2010-11-14  Bruno Haible  <bruno@clisp.org>
17914
17915         Allow multiple gnulib generated replacements to coexist.
17916         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17917         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17918         * lib/langinfo.in.h (nl_item): Likewise.
17919         * lib/math.in.h (_NaN, NAN): Likewise.
17920         * lib/netdb.in.h (struct addrinfo): Likewise.
17921         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17922         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17923         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17924         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17925         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17926         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17927         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17928         pthread_mutexattr_init, pthread_mutexattr_settype,
17929         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17930         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17931         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17932         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17933         * lib/sched.in.h (struct sched_param): Likewise.
17934         * lib/se-selinux.in.h (security_class_t, security_context_t,
17935         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17936         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17937         lsetfilecon, fsetfilecon, security_check_context,
17938         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17939         Likewise.
17940         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17941         Likewise.
17942         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17943         _gl_function_taking_int_returning_void_t, union sigval,
17944         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17945         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17946         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17947         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17948         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17949         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17950         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17951         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17952         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17953         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17954         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17955         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17956         socklen_t, rpl_fd_isset): Likewise.
17957         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17958         * lib/sys_time.in.h (struct timeval): Likewise.
17959         * lib/sys_times.in.h (struct tms): Likewise.
17960         * lib/sys_utsname.in.h (struct utsname):
17961         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17962         * lib/unistd.in.h (getpagesize): Likewise.
17963         * lib/wchar.in.h (mbstate_t): Likewise.
17964         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17965         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17966         towlower, towupper): Likewise.
17967         Reported by Sam Steingold <sds@gnu.org>.
17968
17969 2011-02-05  Eric Blake  <eblake@redhat.com>
17970
17971         unsetenv: work around Haiku issues
17972         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17973         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17974
17975 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17976
17977         libposix: avoid calling error() within libposix
17978         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17979         is defined.
17980
17981 2011-02-05  Eric Blake  <eblake@redhat.com>
17982
17983         strerror_r-posix: port to cygwin
17984         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17985         implementation.
17986         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17987         * tests/test-strerror_r.c (main): Fix test.
17988         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17989         issue.
17990
17991 2011-02-05  Bruno Haible  <bruno@clisp.org>
17992
17993         New module 'wmemchr'.
17994         * modules/wmemchr: New file.
17995         * lib/wchar.in.h (wmemchr): New declaration.
17996         * lib/wmemchr.c: New file.
17997         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17998         * m4/wmemchr.m4: New file.
17999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
18000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
18001         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
18002         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
18003         * doc/posix-functions/wmemchr.texi: Mention the new module.
18004
18005 2011-02-04  Eric Blake  <eblake@redhat.com>
18006
18007         fdopendir: detect FreeBSD bug
18008         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
18009         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
18010
18011 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18012
18013         stdbool: do not define HAVE_STDBOOL_H
18014         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
18015         AC_HEADER_STDBOOL.  All uses changed.  Do not define
18016         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
18017         imported from the latest Autoconf git.  It was motivated by Emacs,
18018         which uses gnulib but does not need HAVE_STDBOOL_H.
18019
18020 2011-02-04  Bruno Haible  <bruno@clisp.org>
18021
18022         wcsnrtombs: Prepare for new module wwcsnrtombs.
18023         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
18024         * lib/wcsnrtombs.c: Include it.
18025         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
18026
18027         wcsrtombs: Prepare for new module wwcsrtombs.
18028         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
18029         * lib/wcsrtombs.c: Include it.
18030         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
18031
18032         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
18033         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
18034         * lib/mbsnrtowcs.c: Include it.
18035         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
18036
18037         mbsrtowcs: Prepare for new module mbsrtowwcs.
18038         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
18039         * lib/mbsrtowcs.c: Include it.
18040         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
18041
18042 2011-02-04  Bruno Haible  <bruno@clisp.org>
18043
18044         vasnprintf: Reduce use of malloc for small format strings.
18045         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
18046         (arguments): Add room for the first 7 arguments.
18047         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
18048         (char_directives, u8_directives, u16_directives, u32_directives): Add
18049         room for the first 7 directives.
18050         * lib/printf-parse.c: Include <string.h>.
18051         (PRINTF_PARSE): Change memory handling code so that it uses the first
18052         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
18053         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
18054         Reported by Pádraig Brady <P@draigbrady.com>.
18055
18056 2011-01-31  Eric Blake  <eblake@redhat.com>
18057
18058         dup2: work around Haiku bug
18059         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
18060         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
18061         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18062         * tests/test-dup2.c (main): Enhance test.
18063
18064 2011-01-31  Simon Josefsson  <simon@josefsson.org>
18065
18066         doc: off_t is not available in eglibc 2.11.2 stdio.h.
18067         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
18068         declared by eglibc 2.11.2.
18069         * lib/stdio.in.h: Likewise.
18070
18071 2011-01-31  Eric Blake  <eblake@redhat.com>
18072
18073         ignore-value: add missing test dependency
18074         * tests/test-ignore-value.c: Revert previous change; stdio.h
18075         provides off_t.
18076         * modules/ignore-value-tests (Depends-on): Add missing dependency.
18077
18078 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         mktime: clarify long_int width checking
18081         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
18082         the top level, to make it clearer that the assumption about
18083         long_int width is being checked.  See
18084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
18085
18086 2011-01-30  Simon Josefsson  <simon@josefsson.org>
18087
18088         ignore-value: Fix self-test.
18089         * tests/test-ignore-value.c: Include sys/types.h for off_t.
18090
18091 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18092
18093         TYPE_MAXIMUM: avoid theoretically undefined behavior
18094         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
18095         negative number, which the C Standard says has undefined behavior.
18096         In practice this is not a problem, but might as well do it by the book.
18097         Reported by Rich Felker and Eric Blake; see
18098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
18099         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
18100         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18102         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18103         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18104         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
18105
18106         mktime: #undef mktime before #defining it
18107         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
18108
18109         mktime: systematically normalize tm_isdst comparisons
18110         * lib/mktime.c (isdst_differ): New function.
18111         (__mktime_internal): Use it systematically for all isdst comparisons.
18112         This completes the fix for libc BZ #6723, and removes the need for
18113         normalizing tm_isdst.  See
18114         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
18115         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
18116
18117         mktime: fix some integer overflow issues and sidestep the rest
18118
18119         This was prompted by a bug report by Benjamin Lindner for MinGW
18120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
18121         His bug is due to signed integer overflow (0 - INT_MIN), and I
18122         I scanned through mktime.c looking for other integer overflow
18123         problems, fixing all the bugs I found.
18124
18125         Although the C Standard says the resulting code is still not safe
18126         in the presence of integer overflow, in practice it should be good
18127         enough for all real-world two's-complement implementations, except
18128         for debugging environments that deliberately trap on integer
18129         overflow (e.g., gcc -ftrapv).
18130
18131         * lib/mktime.c (WRAPV): New macro.
18132         (SHR): Also check that long_int and time_t shift right in the
18133         usual way, before using the fast-but-unportable method.
18134         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
18135         used.  The code already assumed two's complement, so there's
18136         no need to test for alternatives.  All uses removed.
18137         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
18138         the C standard.  Problem reported by Rich Felker in
18139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
18140         (twos_complement_arithmetic): Also check long_int and time_t.
18141         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
18142         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
18143         (__mktime_internal): Avoid integer overflow with unary subtraction
18144         in two instances where -1 - X is an adequate replacement for -X,
18145         since the calculations are approximate.
18146
18147 2011-01-29  Eric Blake  <eblake@redhat.com>
18148
18149         mktime: avoid infinite loop
18150         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
18151         type; behavior is still undefined but portable to all known targets.
18152         Reported by Rich Felker.
18153
18154 2011-01-29  Simon Josefsson  <simon@josefsson.org>
18155
18156         rename, unlink, same-inode: Relicense.
18157         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
18158         * modules/unlink (License): Likewise.
18159         * modules/same-inode (License): Likewise.
18160
18161 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18162
18163         mktime: avoid problems on NetBSD 5 / i386
18164         * lib/mktime.c (long_int): New type.  This works around a problem
18165         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
18166         but time_t is 64 bits, and where I expect the existing code is
18167         wrong in some cases.
18168         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
18169         (ydhms_diff): Bring back the compile-time check for wide-enough
18170         year and yday.
18171
18172         mktime: fix misspelling in comment
18173         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
18174         This merges all recent glibc changes of importance.
18175
18176 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18177
18178         move-if-change: cope with concurrent mv of identical file.
18179         * build-aux/move-if-change (CMPPROG): Accept environment
18180         variable as an override for `cmp'.
18181         (usage): Document CMPPROG.
18182         Adjust comparison to drop stdout.  Cope with failure of mv if
18183         the target file exists and is identical to the source, for
18184         parallel builds.
18185         Report from H.J. Lu against binutils in PR binutils/12283.
18186
18187 2011-01-28  Bruce Korb  <bkorb@gnu.org>
18188
18189         * users.txt: Mention sharutils.
18190
18191 2011-01-28  Simon Josefsson  <simon@josefsson.org>
18192
18193         * users.txt: Mention OATH Toolkit.
18194
18195 2011-01-27  Bruno Haible  <bruno@clisp.org>
18196
18197         Prepare for supporting FreeBSD 10.
18198         * build-aux/config.libpath: Remove handling of freebsd1*.
18199
18200 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
18201
18202         Prepare for supporting FreeBSD 10.
18203         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
18204         match FreeBSD 10.0.
18205
18206 2011-01-27  Bruno Haible  <bruno@clisp.org>
18207
18208         vma-iter, get-rusage-as: Add OpenBSD support.
18209         * modules/vma-iter (configure.ac): Test for mquery.
18210         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
18211         * lib/vma-iter.c: Include <sys/mman.h>.
18212         (vma_iterate): Add an implementation based on mquery().
18213         * lib/resource-ext.h (get_rusage_as): Update comments.
18214         * lib/get-rusage-as.c: Likewise.
18215         * lib/get-rusage-data.c: Likewise.
18216
18217 2011-01-26  Karl Berry  <karl@gnu.org>
18218
18219         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
18220         variables to make it easier to override the makeinfo program used.
18221
18222 2011-01-26  Eric Blake  <eblake@redhat.com>
18223
18224         fcntl: work around Haiku F_DUPFD bugs
18225         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18226         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18227         cloexec bit on duplication.
18228         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18229
18230 2011-01-26  Bruno Haible  <bruno@clisp.org>
18231
18232         Enable memory leak tests on AIX.
18233         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18234         * tests/test-fprintf-posix3.c (main): Likewise.
18235
18236 2011-01-26  Bruno Haible  <bruno@clisp.org>
18237
18238         Tests for module 'get-rusage-data'.
18239         * modules/get-rusage-data-tests: New file.
18240         * tests/test-get-rusage-data.c: New file.
18241
18242         New module 'get-rusage-data'.
18243         * lib/resource-ext.h (get_rusage_data): New declaration.
18244         * lib/get-rusage-data.c: New file.
18245         * modules/get-rusage-data: New file.
18246
18247 2011-01-25  Bruno Haible  <bruno@clisp.org>
18248
18249         get-rusage-as: Allow for easier testing.
18250         * lib/resource-ext.h (get_rusage_as): Add comment.
18251         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18252         (main): New function for interactive testing.
18253
18254 2011-01-25  Bruno Haible  <bruno@clisp.org>
18255
18256         vma-iter: Treat Haiku like BeOS.
18257         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18258         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18259
18260 2011-01-25  Eric Blake  <eblake@redhat.com>
18261
18262         c-stack: fix regression on cygwin when libsigsegv is present
18263         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18264
18265 2011-01-24  Bruno Haible  <bruno@clisp.org>
18266
18267         vma-iter: Avoid empty intervals.
18268         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18269         on an empty interval.
18270
18271 2011-01-24  Jim Meyering  <meyering@redhat.com>
18272
18273         u64: remove unnecessary #include
18274         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18275
18276 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18279         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18280
18281 2011-01-23  Bruno Haible  <bruno@clisp.org>
18282
18283         New module 'vma-iter'.
18284         * lib/vma-iter.h: New file.
18285         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18286         * modules/vma-iter: New file.
18287         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18288         for get_rusage_as_via_iterator.
18289         (vma_iterate_callback): New function.
18290         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18291         * modules/get-rusage-as (Depends-on): Add vma-iter.
18292
18293 2011-01-23  Bruno Haible  <bruno@clisp.org>
18294
18295         uninorm: Tweak includes.
18296         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18297         Reported by Jim Meyering.
18298
18299 2011-01-23  Bruno Haible  <bruno@clisp.org>
18300
18301         get-rusage-as: Improve on NetBSD.
18302         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18303         /proc, like on FreeBSD.
18304
18305 2011-01-23  Jim Meyering  <meyering@redhat.com>
18306
18307         xreadlink.h: remove unnecessary #include
18308         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18309
18310         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18311         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18312
18313 2011-01-23  Bruno Haible  <bruno@clisp.org>
18314
18315         get-rusage-as: Fix bug.
18316         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18317         original limit when aborting the first loop.
18318
18319 2011-01-23  Bruno Haible  <bruno@clisp.org>
18320
18321         wctype: Ensure valid C syntax.
18322         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18323         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18324
18325 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18326
18327         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18329         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18330         as they are needed only for configure's test case.
18331         This removes two unnecessary symbols from config.h.
18332
18333         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18334         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18336         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18337         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18338         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18340         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18341         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18342         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18343         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18345         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18347         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18348         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18349         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18350         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18351
18352 2011-01-21  Eric Blake  <eblake@redhat.com>
18353
18354         maintainer-makefile: work with older git for submodule check
18355         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18356         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18357         Reported by Matthias Bolte.
18358
18359         bootstrap: minor portability fixes
18360         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18361         (usage): Omit leading capital and trailing . on help phrases, per
18362         GNU Coding Standards.
18363         (check_versions, top level): Prefix messages with script name.
18364
18365 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18366
18367         bootstrap: support --no-git option
18368         * build-aux/bootstrap: Add --no-git option, to be used when
18369         --gnulib-srcdir points to the exact desired checkout.
18370
18371 2011-01-21  Eric Blake  <eblake@redhat.com>
18372
18373         strerror_r-posix: work with glibc 2.13
18374         * lib/strerror_r.c (strerror_r): Fix return type.
18375
18376 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18377             Bruno Haible  <bruno@clisp.org>
18378
18379         uN_strstr: New unit tests.
18380         * modules/unistr/u8-strstr-tests: New file.
18381         * modules/unistr/u16-strstr-tests: New file.
18382         * modules/unistr/u32-strstr-tests: New file.
18383         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18384         * tests/unistr/test-u8-strstr.c: New file.
18385         * tests/unistr/test-u16-strstr.c: New file.
18386         * tests/unistr/test-u32-strstr.c: New file.
18387
18388 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18389             Bruno Haible  <bruno@clisp.org>
18390
18391         Make uN_strstr functions O(n) worst-case.
18392         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18393         16-bit and 32-bit unit cases, use the unibyte algorithm from
18394         lib/mbsstr.c.
18395         * lib/unistr/u8-strstr.c: Include <string.h>.
18396         (UNIT_IS_UINT8_T): New macro.
18397         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18398         (U_STRLEN, U_STRNLEN): New macros.
18399         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18400         (U_STRLEN, U_STRNLEN): New macros.
18401         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18402         (configure.ac): Update required libunistring version.
18403         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18404         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18405         malloca.
18406         (configure.ac): Update required libunistring version.
18407         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18408         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18409         malloca.
18410         (configure.ac): Update required libunistring version.
18411
18412 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18413             Bruno Haible  <bruno@clisp.org>
18414
18415         Prepare for faster uN_strstr functions.
18416         * lib/str-kmp.h: Support definable UNITs.
18417         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18418         needle_len argument.
18419         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18420         * lib/mbscasestr.c (mbscasestr): Likewise.
18421
18422 2011-01-21  Pádraig Brady <P@draigBrady.com>
18423
18424         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18425         * tests/test-malloca.c (main): Unset the environment variable
18426         to greatly speed up the test.
18427         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18428         * modules/malloca-tests: Depend on unsetenv.
18429
18430 2011-01-21  Pádraig Brady <P@draigBrady.com>
18431
18432         ignore-value: remove stdint dependency
18433         * lib/ignore-value.h: Remove <stdint.h>
18434         * modules/ignore-value: Remove stdint dependency.
18435
18436 2011-01-21  Jim Meyering  <meyering@redhat.com>
18437
18438         maint.mk: adjust variable name to be consistent with other gl_ vars
18439         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18440         to be lower case.
18441
18442 2011-01-20  Jim Meyering  <meyering@redhat.com>
18443
18444         maint.mk: make "check" depend on public-submodule-commit by default
18445         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18446
18447 2011-01-20  Bruno Haible  <bruno@clisp.org>
18448
18449         mbfile, mbiter: Complete change from 2008-12-21.
18450         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18451         * m4/mbiter.m4 (gl_MBITER): Likewise.
18452
18453 2011-01-20  Jim Meyering  <meyering@redhat.com>
18454
18455         init.sh: insert space between each function name and "()"
18456         * tests/init.sh: Make it a little easier to see that a function's
18457         name is "warn_", and not "warn" when looking at the first part of
18458         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18459
18460 2011-01-20  Jim Meyering  <meyering@redhat.com>
18461
18462         mountlist: clean up code formatting
18463         * lib/mountlist.c (read_file_system_list): Split a long line,
18464         correct bracing style, use NULL in place of "(struct statfs *)0",
18465         don't parenthesize return value, add spaces around "=" and after
18466         ";-in-for-stmt".
18467
18468 2011-01-14  Markus Duft <mduft@gentoo.org>
18469
18470         mountlist: add support for Interix
18471         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18472         Apply statvfs to all entries of /dev/fs.
18473         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18474         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18475
18476 2011-01-20  Jim Meyering  <meyering@redhat.com>
18477
18478         maint.mk: improve the public-submodule-commit rule
18479         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18480         to suppress printing of its commands... unless V=1.
18481         Add git submodule's --quiet option to suppress printing of e.g.,
18482         "Entering gnulib" output.
18483         "cd" into $(srcdir) before running git submodule.
18484
18485 2011-01-20  Bruno Haible  <bruno@clisp.org>
18486
18487         include_next: Fix bug introduced on 2011-01-18.
18488         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18489         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18490         ac_cv_header_... variable if the second argument is not 'check'.
18491         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18492         gl_NEXT_HEADERS_INTERNAL.
18493
18494 2011-01-20  Bruno Haible  <bruno@clisp.org>
18495
18496         Allow the user to avoid the GNULIB_TEST_* macros.
18497         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18498         Suggested by Paul Eggert.
18499
18500 2011-01-14  Jim Meyering  <meyering@redhat.com>
18501
18502         bootstrap: avoid failure when there is no .gitmodules file
18503         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18504         has been assigned to, even when its value is the empty string.
18505         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18506         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18507         Reported by John W. Eaton <jwe@gnu.org>.
18508
18509 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18510
18511         assume <ctype.h>, ..., <time.h> exist
18512         For years gnulib has been assuming the existence of the headers
18513         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18514         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18515         them, since they don't appear to be needed.
18516         * README (Portability guidelines): Document this.
18517         * lib/flock.c: Assume <fcntl.h> exists.
18518         * lib/regex_internal.h: Assume <locale.h> exists.
18519         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18521         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18522         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18523         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18524         * m4/regex.m4 (gl_REGEX): Likewise.
18525         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18526         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18527         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18528         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18529         * tests/test-argp.c: Likewise.
18530         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18531
18532         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18533         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18534         AA_APPLE_UNIVERSAL_BUILD.  See
18535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18536         * NEWS: Document this.
18537
18538 2011-01-19  Eric Blake  <eblake@redhat.com>
18539
18540         c-stack: assume stack overflow if SA_SIGINFO unsupported
18541         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18542         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18543         sigaction will work.
18544         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18545         behavior match Linux.
18546         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18547
18548         stdbool-tests: accomodate Haiku
18549         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18550
18551         binary-io: fix O_TEXT on Haiku
18552         * modules/binary-io (Depends-on): Add fcntl-h.
18553         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18554         than blindly undefining O_TEXT.
18555         Reported by Scott McCreary.
18556
18557 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         include_next: do not check for standard headers like stddef.h
18560
18561         I found this problem when modifying Emacs to use gnulib.
18562         I noticed that it added HAVE_STDDEF_H to config.h, even though
18563         gnulib always assumes <stddef.h> exists as per README and this
18564         symbol is unnecessary.
18565         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18566         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18567         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18568         faster for headers like stddef.h that are known to exist.
18569         (gl_CHECK_NEXT_HEADERS): Use it.
18570         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18571         rather than gl_CHECK_NEXT_HEADERS.
18572         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18573         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18574
18575 2011-01-18  Eric Blake  <eblake@redhat.com>
18576
18577         ansi-c++-opt: skip C++ dependency style if C++ is unused
18578         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18579         tests when we know C++ compilation is not desired.
18580         Reported by Scott McCreary.
18581
18582 2011-01-18  Bruno Haible  <bruno@clisp.org>
18583
18584         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18585         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18586         (main): Perform test also when getrlimit and setrlimit don't exist or
18587         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18588         limiting the address space size using setrlimit, compare the address
18589         space size before and after the the test.
18590         * tests/test-dprintf-posix2.c: Likewise.
18591         * tests/test-fprintf-posix3.sh: Update skip messages.
18592         * tests/test-dprintf-posix2.sh: Likewise.
18593         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18594         * modules/dprintf-posix-tests (Depends-on): Likewise.
18595         Reported by Bruce Korb <bkorb@gnu.org> and
18596         Gary V. Vaughan <gary@gnu.org>.
18597
18598 2011-01-18  Bruno Haible  <bruno@clisp.org>
18599
18600         get-rusage-as: Improvement for Cygwin.
18601         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18602         areas that are merely reserved.
18603
18604 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18605
18606         strftime: remove dependencies on multibyte modules
18607
18608         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18609         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18610         only if __osf__ is defined, and I suspect OSF doesn't need these
18611         other modules.  If my guess is wrong, we'll need to come up with a
18612         variant of strftime that doesn't need the multibyte modules.
18613
18614         I discovered this problem when attempting modify Emacs to use the
18615         strftime module.  With the previous gnulib, this caused Emacs to
18616         need 31 new files, ranging from lib/config.charset to
18617         m4/wint_t.m4.  This was overkill and I expect would be offputting
18618         to the Emacs maintainers.  After this change, only 6 new files are
18619         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18620         stdbool.m4, and tm_gmtoff.m4.
18621
18622         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18623         Suggested by Bruno Haible in
18624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18626         and do not check for wchar.h.
18627         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18628         (Depends-on): Remove mbrlen, mbsinit, wchar.
18629
18630 2011-01-18  Bruno Haible  <bruno@clisp.org>
18631
18632         Tests for module 'get-rusage-as'.
18633         * modules/get-rusage-as-tests: New file.
18634         * tests/test-get-rusage-as.c: New file.
18635
18636         New module 'get-rusage-as'.
18637         * modules/get-rusage-as: New file.
18638         * lib/resource-ext.h: New file.
18639         * lib/get-rusage-as.c: New file.
18640
18641 2011-01-17  Eric Blake  <eblake@redhat.com>
18642
18643         sigaction: relax license from LGPLv3+ to LGPLv2+
18644         * modules/sigaction (License): Relax to LGPLv2+.
18645
18646 2011-01-14  Bruno Haible  <bruno@clisp.org>
18647
18648         filemode: Make function declarations usable in C++ mode.
18649         * lib/filemode.h: Enclose function declarations in extern "C" block.
18650         Reported by John W. Eaton <jwe@gnu.org>.
18651
18652 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18653
18654         save-cwd: no longer include "xgetcwd.h"
18655         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18656         This avoids a compilation failure in projects that use save-cwd
18657         without also using the xgetcwd module.
18658
18659 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18662         This is so that a program like Emacs, which needs only dtoastr,
18663         does not have to bother with distributing and compiling ftoastr
18664         and ldtoastr.
18665         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18666         * modules/dtoastr, modules/ldtoastr: New files.
18667         * modules/ftoastr: Now works just for 'float'.
18668         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18669         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18670         dtoastr.c, ldtoastr.c.
18671
18672 2011-01-11  Jim Meyering  <meyering@redhat.com>
18673
18674         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18675         There is no need to work around the lack of the fchdir function,
18676         since gnulib can now provide a replacement when required.
18677         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18678         * modules/save-cwd (Depends-on): Add fchdir.
18679
18680 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         openat, save-cwd: avoid xmalloc
18683
18684         This removes a direct (but undocumented) dependency of openat on
18685         xalloc, along with an indirect dependency via save-cwd.  It also
18686         removes a dependency of save-cwd on xgetcwd, and thereby
18687         indirectly on xalloc.  This change causes the openat substitute
18688         to fall back on save_cwd when memory is tight, and for save_cwd to
18689         fail instead of dying when memory is tight, but that's good enough.
18690         Problem and initial idea for fix reported by Bastien Roucaries in
18691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18692
18693         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18694         xalloc.h (for xmalloc).
18695         (openat_proc_name): Use malloc, not xmalloc.
18696         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18697         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18698
18699         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18700         This avoids heap allocation for file names whose lengths are in
18701         the range 512..1023, with the upper bound increasing to at most
18702         4031 depending on the platform's PATH_MAX.  (We do not want
18703         pathmax.h here as it might supply a non-constant PATH_MAX.)
18704         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18705         Perhaps they should be moved to malloca.h?
18706         (OPENAT_BUFFER_SIZE): Use them.
18707
18708 2011-01-10  Bruno Haible  <bruno@clisp.org>
18709
18710         doc: Update users.txt.
18711         * users.txt: Add recutils.
18712
18713 2011-01-09  Karl Berry  <karl@gnu.org>
18714
18715         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18716
18717         * doc/configmake.texi: New file.
18718         * doc/gnulib.texi: Include it.
18719         * modules/configmake: Move documentation from here.
18720
18721 2011-01-09  Bruno Haible  <bruno@clisp.org>
18722
18723         Update to Unicode 6.0.0.
18724         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18725         (get_lbp): Update for Unicode 6.0.0.
18726         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18727         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18728         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18729         U+11001, U+11038..U+11046. Remove U+06DE.
18730         (uc_width): Fix bounds of planes.
18731         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18732         lib/uniwidth/width.c.
18733         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18734         trailing whitespace removed.
18735         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18736         without comments, but with the original copyright notice.
18737         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18738         * lib/unicase/ignorable.h: Likewise.
18739         * lib/unicase/tocasefold.h: Likewise.
18740         * lib/unicase/tolower.h: Likewise.
18741         * lib/unicase/totitle.h: Likewise.
18742         * lib/unicase/toupper.h: Likewise.
18743         * lib/unictype/bidi_of.h: Likewise.
18744         * lib/unictype/blocks.h: Likewise.
18745         * lib/unictype/categ_C.h: Likewise.
18746         * lib/unictype/categ_Cn.h: Likewise.
18747         * lib/unictype/categ_L.h: Likewise.
18748         * lib/unictype/categ_Ll.h: Likewise.
18749         * lib/unictype/categ_Lm.h: Likewise.
18750         * lib/unictype/categ_Lo.h: Likewise.
18751         * lib/unictype/categ_Lu.h: Likewise.
18752         * lib/unictype/categ_M.h: Likewise.
18753         * lib/unictype/categ_Mc.h: Likewise.
18754         * lib/unictype/categ_Me.h: Likewise.
18755         * lib/unictype/categ_Mn.h: Likewise.
18756         * lib/unictype/categ_N.h: Likewise.
18757         * lib/unictype/categ_Nd.h: Likewise.
18758         * lib/unictype/categ_No.h: Likewise.
18759         * lib/unictype/categ_P.h: Likewise.
18760         * lib/unictype/categ_Po.h: Likewise.
18761         * lib/unictype/categ_S.h: Likewise.
18762         * lib/unictype/categ_Sc.h: Likewise.
18763         * lib/unictype/categ_Sk.h: Likewise.
18764         * lib/unictype/categ_Sm.h: Likewise.
18765         * lib/unictype/categ_So.h: Likewise.
18766         * lib/unictype/categ_of.h: Likewise.
18767         * lib/unictype/combining.h: Likewise.
18768         * lib/unictype/ctype_alnum.h: Likewise.
18769         * lib/unictype/ctype_alpha.h: Likewise.
18770         * lib/unictype/ctype_graph.h: Likewise.
18771         * lib/unictype/ctype_lower.h: Likewise.
18772         * lib/unictype/ctype_print.h: Likewise.
18773         * lib/unictype/ctype_punct.h: Likewise.
18774         * lib/unictype/ctype_upper.h: Likewise.
18775         * lib/unictype/decdigit.h: Likewise.
18776         * lib/unictype/digit.h: Likewise.
18777         * lib/unictype/numeric.h: Likewise.
18778         * lib/unictype/pr_alphabetic.h: Likewise.
18779         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18780         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18781         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18782         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18783         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18784         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18785         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18786         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18787         * lib/unictype/pr_case_ignorable.h: Likewise.
18788         * lib/unictype/pr_cased.h: Likewise.
18789         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18790         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18791         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18792         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18793         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18794         * lib/unictype/pr_combining.h: Likewise.
18795         * lib/unictype/pr_composite.h: Likewise.
18796         * lib/unictype/pr_currency_symbol.h: Likewise.
18797         * lib/unictype/pr_decimal_digit.h: Likewise.
18798         * lib/unictype/pr_deprecated.h: Likewise.
18799         * lib/unictype/pr_format_control.h: Likewise.
18800         * lib/unictype/pr_grapheme_base.h: Likewise.
18801         * lib/unictype/pr_grapheme_extend.h: Likewise.
18802         * lib/unictype/pr_grapheme_link.h: Likewise.
18803         * lib/unictype/pr_id_continue.h: Likewise.
18804         * lib/unictype/pr_id_start.h: Likewise.
18805         * lib/unictype/pr_ideographic.h: Likewise.
18806         * lib/unictype/pr_lowercase.h: Likewise.
18807         * lib/unictype/pr_math.h: Likewise.
18808         * lib/unictype/pr_numeric.h: Likewise.
18809         * lib/unictype/pr_other_alphabetic.h: Likewise.
18810         * lib/unictype/pr_other_id_continue.h: Likewise.
18811         * lib/unictype/pr_other_math.h: Likewise.
18812         * lib/unictype/pr_punctuation.h: Likewise.
18813         * lib/unictype/pr_sentence_terminal.h: Likewise.
18814         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18815         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18816         * lib/unictype/pr_unified_ideograph.h: Likewise.
18817         * lib/unictype/pr_uppercase.h: Likewise.
18818         * lib/unictype/pr_xid_continue.h: Likewise.
18819         * lib/unictype/pr_xid_start.h: Likewise.
18820         * lib/unictype/scripts.h: Likewise.
18821         * lib/unictype/scripts_byname.gperf: Likewise.
18822         * lib/unictype/sy_java_ident.h: Likewise.
18823         * lib/unigbrk/gbrkprop.h: Likewise.
18824         * lib/unilbrk/lbrkprop1.h: Likewise.
18825         * lib/unilbrk/lbrkprop2.h: Likewise.
18826         * lib/uninorm/decomposition-table2.h: Likewise.
18827         * lib/uniwbrk/wbrkprop.h: Likewise.
18828         * tests/unicase/test-cased.c: Likewise.
18829         * tests/unicase/test-ignorable.c: Likewise.
18830         * tests/unicase/test-uc_tolower.c: Likewise.
18831         * tests/unicase/test-uc_totitle.c: Likewise.
18832         * tests/unicase/test-uc_toupper.c: Likewise.
18833         * tests/unictype/test-categ_C.c: Likewise.
18834         * tests/unictype/test-categ_Cn.c: Likewise.
18835         * tests/unictype/test-categ_L.c: Likewise.
18836         * tests/unictype/test-categ_Ll.c: Likewise.
18837         * tests/unictype/test-categ_Lm.c: Likewise.
18838         * tests/unictype/test-categ_Lo.c: Likewise.
18839         * tests/unictype/test-categ_Lu.c: Likewise.
18840         * tests/unictype/test-categ_M.c: Likewise.
18841         * tests/unictype/test-categ_Mc.c: Likewise.
18842         * tests/unictype/test-categ_Me.c: Likewise.
18843         * tests/unictype/test-categ_Mn.c: Likewise.
18844         * tests/unictype/test-categ_N.c: Likewise.
18845         * tests/unictype/test-categ_Nd.c: Likewise.
18846         * tests/unictype/test-categ_No.c: Likewise.
18847         * tests/unictype/test-categ_P.c: Likewise.
18848         * tests/unictype/test-categ_Po.c: Likewise.
18849         * tests/unictype/test-categ_S.c: Likewise.
18850         * tests/unictype/test-categ_Sc.c: Likewise.
18851         * tests/unictype/test-categ_Sk.c: Likewise.
18852         * tests/unictype/test-categ_Sm.c: Likewise.
18853         * tests/unictype/test-categ_So.c: Likewise.
18854         * tests/unictype/test-ctype_alnum.c: Likewise.
18855         * tests/unictype/test-ctype_alpha.c: Likewise.
18856         * tests/unictype/test-ctype_graph.c: Likewise.
18857         * tests/unictype/test-ctype_lower.c: Likewise.
18858         * tests/unictype/test-ctype_print.c: Likewise.
18859         * tests/unictype/test-ctype_punct.c: Likewise.
18860         * tests/unictype/test-ctype_upper.c: Likewise.
18861         * tests/unictype/test-decdigit.h: Likewise.
18862         * tests/unictype/test-digit.h: Likewise.
18863         * tests/unictype/test-numeric.h: Likewise.
18864         * tests/unictype/test-pr_alphabetic.c: Likewise.
18865         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18866         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18867         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18868         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18869         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18870         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18871         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18872         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18873         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18874         * tests/unictype/test-pr_cased.c: Likewise.
18875         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18876         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18877         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18878         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18879         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18880         * tests/unictype/test-pr_combining.c: Likewise.
18881         * tests/unictype/test-pr_composite.c: Likewise.
18882         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18883         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18884         * tests/unictype/test-pr_deprecated.c: Likewise.
18885         * tests/unictype/test-pr_format_control.c: Likewise.
18886         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18887         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18888         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18889         * tests/unictype/test-pr_id_continue.c: Likewise.
18890         * tests/unictype/test-pr_id_start.c: Likewise.
18891         * tests/unictype/test-pr_ideographic.c: Likewise.
18892         * tests/unictype/test-pr_lowercase.c: Likewise.
18893         * tests/unictype/test-pr_math.c: Likewise.
18894         * tests/unictype/test-pr_numeric.c: Likewise.
18895         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18896         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18897         * tests/unictype/test-pr_other_math.c: Likewise.
18898         * tests/unictype/test-pr_punctuation.c: Likewise.
18899         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18900         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18901         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18902         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18903         * tests/unictype/test-pr_uppercase.c: Likewise.
18904         * tests/unictype/test-pr_xid_continue.c: Likewise.
18905         * tests/unictype/test-pr_xid_start.c: Likewise.
18906         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18907         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18908         changes.
18909         * lib/unictype/categ_Cc.h: Likewise.
18910         * lib/unictype/categ_Cf.h: Likewise.
18911         * lib/unictype/categ_Co.h: Likewise.
18912         * lib/unictype/categ_Cs.h: Likewise.
18913         * lib/unictype/categ_Lt.h: Likewise.
18914         * lib/unictype/categ_Nl.h: Likewise.
18915         * lib/unictype/categ_Pc.h: Likewise.
18916         * lib/unictype/categ_Pd.h: Likewise.
18917         * lib/unictype/categ_Pe.h: Likewise.
18918         * lib/unictype/categ_Pf.h: Likewise.
18919         * lib/unictype/categ_Pi.h: Likewise.
18920         * lib/unictype/categ_Ps.h: Likewise.
18921         * lib/unictype/categ_Z.h: Likewise.
18922         * lib/unictype/categ_Zl.h: Likewise.
18923         * lib/unictype/categ_Zp.h: Likewise.
18924         * lib/unictype/categ_Zs.h: Likewise.
18925         * lib/unictype/ctype_blank.h: Likewise.
18926         * lib/unictype/ctype_cntrl.h: Likewise.
18927         * lib/unictype/ctype_digit.h: Likewise.
18928         * lib/unictype/ctype_space.h: Likewise.
18929         * lib/unictype/ctype_xdigit.h: Likewise.
18930         * lib/unictype/mirror.h: Likewise.
18931         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18932         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18933         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18934         * lib/unictype/pr_bidi_control.h: Likewise.
18935         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18936         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18937         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18938         * lib/unictype/pr_bidi_pdf.h: Likewise.
18939         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18940         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18941         * lib/unictype/pr_dash.h: Likewise.
18942         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18943         * lib/unictype/pr_diacritic.h: Likewise.
18944         * lib/unictype/pr_extender.h: Likewise.
18945         * lib/unictype/pr_hex_digit.h: Likewise.
18946         * lib/unictype/pr_hyphen.h: Likewise.
18947         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18948         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18949         * lib/unictype/pr_ignorable_control.h: Likewise.
18950         * lib/unictype/pr_iso_control.h: Likewise.
18951         * lib/unictype/pr_join_control.h: Likewise.
18952         * lib/unictype/pr_left_of_pair.h: Likewise.
18953         * lib/unictype/pr_line_separator.h: Likewise.
18954         * lib/unictype/pr_logical_order_exception.h: Likewise.
18955         * lib/unictype/pr_non_break.h: Likewise.
18956         * lib/unictype/pr_not_a_character.h: Likewise.
18957         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18958         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18959         * lib/unictype/pr_other_id_start.h: Likewise.
18960         * lib/unictype/pr_other_lowercase.h: Likewise.
18961         * lib/unictype/pr_other_uppercase.h: Likewise.
18962         * lib/unictype/pr_paired_punctuation.h: Likewise.
18963         * lib/unictype/pr_paragraph_separator.h: Likewise.
18964         * lib/unictype/pr_pattern_syntax.h: Likewise.
18965         * lib/unictype/pr_pattern_white_space.h: Likewise.
18966         * lib/unictype/pr_private_use.h: Likewise.
18967         * lib/unictype/pr_quotation_mark.h: Likewise.
18968         * lib/unictype/pr_radical.h: Likewise.
18969         * lib/unictype/pr_soft_dotted.h: Likewise.
18970         * lib/unictype/pr_space.h: Likewise.
18971         * lib/unictype/pr_titlecase.h: Likewise.
18972         * lib/unictype/pr_variation_selector.h: Likewise.
18973         * lib/unictype/pr_white_space.h: Likewise.
18974         * lib/unictype/pr_zero_width.h: Likewise.
18975         * lib/unictype/sy_c_ident.h: Likewise.
18976         * lib/unictype/sy_c_whitespace.h: Likewise.
18977         * lib/unictype/sy_java_whitespace.h: Likewise.
18978         * lib/uninorm/composition-table.gperf: Likewise.
18979         * lib/uninorm/decomposition-table1.h: Likewise.
18980         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18981         LB8.
18982         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18983         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18984         * modules/unictype/*: Bump version number of expected libunistring
18985         version.
18986
18987 2011-01-09  Bruno Haible  <bruno@clisp.org>
18988
18989         Update to Unicode 5.2.0.
18990         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18991         trailing whitespace removed.
18992
18993 2011-01-09  Bruno Haible  <bruno@clisp.org>
18994
18995         New Unicode character properties, from Unicode 5.2.0.
18996         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18997         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18998         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18999         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
19000         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
19001         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
19002         uc_is_property_cased, uc_is_property_case_ignorable,
19003         uc_is_property_changes_when_lowercased,
19004         uc_is_property_changes_when_uppercased,
19005         uc_is_property_changes_when_titlecased,
19006         uc_is_property_changes_when_casefolded,
19007         uc_is_property_changes_when_casemapped): New declarations.
19008         * lib/unictype/pr_byname.gperf: Add the new properties.
19009         * modules/unictype/property-byname (Depends-on): Depend on the new
19010         properties modules.
19011         * modules/unictype/property-all (Depends-on): Likewise.
19012         * MODULES.html.sh (Unicode string functions): Add
19013         unictype/property-case-ignorable, unictype/property-cased,
19014         unictype/property-changes-when-casefolded,
19015         unictype/property-changes-when-casemapped,
19016         unictype/property-changes-when-lowercased,
19017         unictype/property-changes-when-titlecased,
19018         unictype/property-changes-when-uppercased.
19019
19020         New module 'unictype/property-changes-when-casemapped'.
19021         * modules/unictype/property-changes-when-casemapped: New file.
19022         * lib/unictype/pr_changes_when_casemapped.c: New file.
19023         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
19024         generated by gen-uni-tables.
19025         * modules/unictype/property-changes-when-casemapped-tests: New file.
19026         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
19027         automatically generated by gen-uni-tables.
19028
19029         New module 'unictype/property-changes-when-casefolded'.
19030         * modules/unictype/property-changes-when-casefolded: New file.
19031         * lib/unictype/pr_changes_when_casefolded.c: New file.
19032         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
19033         generated by gen-uni-tables.
19034         * modules/unictype/property-changes-when-casefolded-tests: New file.
19035         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
19036         automatically generated by gen-uni-tables.
19037
19038         New module 'unictype/property-changes-when-titlecased'.
19039         * modules/unictype/property-changes-when-titlecased: New file.
19040         * lib/unictype/pr_changes_when_titlecased.c: New file.
19041         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
19042         generated by gen-uni-tables.
19043         * modules/unictype/property-changes-when-titlecased-tests: New file.
19044         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
19045         automatically generated by gen-uni-tables.
19046
19047         New module 'unictype/property-changes-when-uppercased'.
19048         * modules/unictype/property-changes-when-uppercased: New file.
19049         * lib/unictype/pr_changes_when_uppercased.c: New file.
19050         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
19051         generated by gen-uni-tables.
19052         * modules/unictype/property-changes-when-uppercased-tests: New file.
19053         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
19054         automatically generated by gen-uni-tables.
19055
19056         New module 'unictype/property-changes-when-lowercased'.
19057         * modules/unictype/property-changes-when-lowercased: New file.
19058         * lib/unictype/pr_changes_when_lowercased.c: New file.
19059         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
19060         generated by gen-uni-tables.
19061         * modules/unictype/property-changes-when-lowercased-tests: New file.
19062         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
19063         automatically generated by gen-uni-tables.
19064
19065         New module 'unictype/property-case-ignorable'.
19066         * modules/unictype/property-case-ignorable: New file.
19067         * lib/unictype/pr_case_ignorable.c: New file.
19068         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
19069         by gen-uni-tables.
19070         * modules/unictype/property-case-ignorable-tests: New file.
19071         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
19072         generated by gen-uni-tables.
19073
19074         New module 'unictype/property-cased'.
19075         * modules/unictype/property-cased: New file.
19076         * lib/unictype/pr_cased.c: New file.
19077         * lib/unictype/pr_cased.h: New file, automatically generated by
19078         gen-uni-tables.
19079         * modules/unictype/property-cased-tests: New file.
19080         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19081         gen-uni-tables.
19082
19083 2011-01-09  Bruno Haible  <bruno@clisp.org>
19084
19085         Update to Unicode 5.2.0.
19086         * lib/gen-uni-tables.c (output_predicate, output_category,
19087         output_combclass, output_bidi_category, output_decimal_digit_test,
19088         output_decimal_digit, output_digit_test, output_digit,
19089         output_numeric_test, output_numeric, output_mirror, output_scripts,
19090         output_scripts_byname, output_blocks, output_ident_category): Fix
19091         comment header.
19092         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
19093         get_wbp.
19094         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
19095         items.
19096         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
19097         Changes_When_Lowercased, Changes_When_Uppercased,
19098         Changes_When_Titlecased, Changes_When_Casefolded,
19099         Changes_When_Casemapped.
19100         (is_property_alphabetic, is_property_default_ignorable_code_point):
19101         Update for Unicode 5.2.0.
19102         (is_property_cased, is_property_case_ignorable,
19103         is_property_changes_when_lowercased,
19104         is_property_changes_when_uppercased,
19105         is_property_changes_when_titlecased,
19106         is_property_changes_when_casefolded,
19107         is_property_changes_when_casemapped): New functions.
19108         (output_properties): Output also the properties cased, case_ignorable,
19109         changes_when_lowercased, changes_when_uppercased,
19110         changes_when_titlecased, changes_when_casefolded,
19111         changes_when_casemapped.
19112         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
19113         Unicode TR#11 revision 17 -> 19.
19114         (LBP_CP): New enumeration value.
19115         (LBP_*): Adjust values accordingly.
19116         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19117         TR#14 revision 22 -> 24.
19118         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
19119         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
19120         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19121         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
19122         is_WBP_MIDLETTER.
19123         (output_composition_tables): Allow for 24 bits instead of 16 bits in
19124         the code1 and code2 of each composition rule.
19125         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
19126         * lib/unicase/ignorable.h: Likewise.
19127         * lib/unicase/tocasefold.h: Likewise.
19128         * lib/unicase/tolower.h: Likewise.
19129         * lib/unicase/totitle.h: Likewise.
19130         * lib/unicase/toupper.h: Likewise.
19131         * lib/unictype/bidi_of.h: Likewise.
19132         * lib/unictype/blocks.h: Likewise.
19133         * lib/unictype/categ_C.h: Likewise.
19134         * lib/unictype/categ_Cf.h: Likewise.
19135         * lib/unictype/categ_Cn.h: Likewise.
19136         * lib/unictype/categ_L.h: Likewise.
19137         * lib/unictype/categ_Ll.h: Likewise.
19138         * lib/unictype/categ_Lm.h: Likewise.
19139         * lib/unictype/categ_Lo.h: Likewise.
19140         * lib/unictype/categ_Lu.h: Likewise.
19141         * lib/unictype/categ_M.h: Likewise.
19142         * lib/unictype/categ_Mc.h: Likewise.
19143         * lib/unictype/categ_Mn.h: Likewise.
19144         * lib/unictype/categ_N.h: Likewise.
19145         * lib/unictype/categ_Nd.h: Likewise.
19146         * lib/unictype/categ_Nl.h: Likewise.
19147         * lib/unictype/categ_No.h: Likewise.
19148         * lib/unictype/categ_P.h: Likewise.
19149         * lib/unictype/categ_Pd.h: Likewise.
19150         * lib/unictype/categ_Po.h: Likewise.
19151         * lib/unictype/categ_S.h: Likewise.
19152         * lib/unictype/categ_Sc.h: Likewise.
19153         * lib/unictype/categ_So.h: Likewise.
19154         * lib/unictype/categ_of.h: Likewise.
19155         * lib/unictype/combining.h: Likewise.
19156         * lib/unictype/ctype_alnum.h: Likewise.
19157         * lib/unictype/ctype_alpha.h: Likewise.
19158         * lib/unictype/ctype_graph.h: Likewise.
19159         * lib/unictype/ctype_lower.h: Likewise.
19160         * lib/unictype/ctype_print.h: Likewise.
19161         * lib/unictype/ctype_punct.h: Likewise.
19162         * lib/unictype/ctype_upper.h: Likewise.
19163         * lib/unictype/decdigit.h: Likewise.
19164         * lib/unictype/digit.h: Likewise.
19165         * lib/unictype/numeric.h: Likewise.
19166         * lib/unictype/pr_alphabetic.h: Likewise.
19167         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19168         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19169         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19170         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19171         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19172         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19173         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19174         * lib/unictype/pr_combining.h: Likewise.
19175         * lib/unictype/pr_composite.h: Likewise.
19176         * lib/unictype/pr_currency_symbol.h: Likewise.
19177         * lib/unictype/pr_dash.h: Likewise.
19178         * lib/unictype/pr_decimal_digit.h: Likewise.
19179         * lib/unictype/pr_deprecated.h: Likewise.
19180         * lib/unictype/pr_diacritic.h: Likewise.
19181         * lib/unictype/pr_extender.h: Likewise.
19182         * lib/unictype/pr_grapheme_base.h: Likewise.
19183         * lib/unictype/pr_grapheme_extend.h: Likewise.
19184         * lib/unictype/pr_grapheme_link.h: Likewise.
19185         * lib/unictype/pr_id_continue.h: Likewise.
19186         * lib/unictype/pr_id_start.h: Likewise.
19187         * lib/unictype/pr_ideographic.h: Likewise.
19188         * lib/unictype/pr_ignorable_control.h: Likewise.
19189         * lib/unictype/pr_logical_order_exception.h: Likewise.
19190         * lib/unictype/pr_lowercase.h: Likewise.
19191         * lib/unictype/pr_numeric.h: Likewise.
19192         * lib/unictype/pr_other_alphabetic.h: Likewise.
19193         * lib/unictype/pr_punctuation.h: Likewise.
19194         * lib/unictype/pr_sentence_terminal.h: Likewise.
19195         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19196         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19197         * lib/unictype/pr_unified_ideograph.h: Likewise.
19198         * lib/unictype/pr_uppercase.h: Likewise.
19199         * lib/unictype/pr_xid_continue.h: Likewise.
19200         * lib/unictype/pr_xid_start.h: Likewise.
19201         * lib/unictype/pr_zero_width.h: Likewise.
19202         * lib/unictype/scripts.h: Likewise.
19203         * lib/unictype/scripts_byname.gperf: Likewise.
19204         * lib/unictype/sy_java_ident.h: Likewise.
19205         * lib/unigbrk/gbrkprop.h: Likewise.
19206         * lib/unilbrk/lbrkprop1.h: Likewise.
19207         * lib/unilbrk/lbrkprop2.h: Likewise.
19208         * lib/unilbrk/lbrktables.h: Likewise.
19209         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
19210         LBP_CP. Implement rule LB30.
19211         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
19212         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
19213         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
19214         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
19215         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
19216         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
19217         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
19218         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
19219         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
19220         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
19221         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19222         bits instead of 16 bits in the code1 and code2 of each composition
19223         rule.
19224         (uc_composition): Update for Unicode 5.2.0.
19225         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19226         * lib/uninorm/decomposition-table2.h: Likewise.
19227         * lib/uniwbrk/wbrkprop.h: Likewise.
19228         * tests/unicase/test-cased.c: Likewise.
19229         * tests/unicase/test-ignorable.c: Likewise.
19230         * tests/unicase/test-uc_tolower.c: Likewise.
19231         * tests/unicase/test-uc_totitle.c: Likewise.
19232         * tests/unicase/test-uc_toupper.c: Likewise.
19233         * tests/unictype/test-categ_C.c: Likewise.
19234         * tests/unictype/test-categ_Cf.c: Likewise.
19235         * tests/unictype/test-categ_Cn.c: Likewise.
19236         * tests/unictype/test-categ_L.c: Likewise.
19237         * tests/unictype/test-categ_Ll.c: Likewise.
19238         * tests/unictype/test-categ_Lm.c: Likewise.
19239         * tests/unictype/test-categ_Lo.c: Likewise.
19240         * tests/unictype/test-categ_Lu.c: Likewise.
19241         * tests/unictype/test-categ_M.c: Likewise.
19242         * tests/unictype/test-categ_Mc.c: Likewise.
19243         * tests/unictype/test-categ_Mn.c: Likewise.
19244         * tests/unictype/test-categ_N.c: Likewise.
19245         * tests/unictype/test-categ_Nd.c: Likewise.
19246         * tests/unictype/test-categ_Nl.c: Likewise.
19247         * tests/unictype/test-categ_No.c: Likewise.
19248         * tests/unictype/test-categ_P.c: Likewise.
19249         * tests/unictype/test-categ_Pd.c: Likewise.
19250         * tests/unictype/test-categ_Po.c: Likewise.
19251         * tests/unictype/test-categ_S.c: Likewise.
19252         * tests/unictype/test-categ_Sc.c: Likewise.
19253         * tests/unictype/test-categ_So.c: Likewise.
19254         * tests/unictype/test-ctype_alnum.c: Likewise.
19255         * tests/unictype/test-ctype_alpha.c: Likewise.
19256         * tests/unictype/test-ctype_graph.c: Likewise.
19257         * tests/unictype/test-ctype_lower.c: Likewise.
19258         * tests/unictype/test-ctype_print.c: Likewise.
19259         * tests/unictype/test-ctype_punct.c: Likewise.
19260         * tests/unictype/test-ctype_upper.c: Likewise.
19261         * tests/unictype/test-decdigit.h: Likewise.
19262         * tests/unictype/test-digit.h: Likewise.
19263         * tests/unictype/test-numeric.h: Likewise.
19264         * tests/unictype/test-pr_alphabetic.c: Likewise.
19265         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19266         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19267         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19268         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19269         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19270         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19271         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19272         * tests/unictype/test-pr_combining.c: Likewise.
19273         * tests/unictype/test-pr_composite.c: Likewise.
19274         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19275         * tests/unictype/test-pr_dash.c: Likewise.
19276         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19277         * tests/unictype/test-pr_deprecated.c: Likewise.
19278         * tests/unictype/test-pr_diacritic.c: Likewise.
19279         * tests/unictype/test-pr_extender.c: Likewise.
19280         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19281         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19282         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19283         * tests/unictype/test-pr_id_continue.c: Likewise.
19284         * tests/unictype/test-pr_id_start.c: Likewise.
19285         * tests/unictype/test-pr_ideographic.c: Likewise.
19286         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19287         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19288         * tests/unictype/test-pr_lowercase.c: Likewise.
19289         * tests/unictype/test-pr_numeric.c: Likewise.
19290         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19291         * tests/unictype/test-pr_punctuation.c: Likewise.
19292         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19293         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19294         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19295         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19296         * tests/unictype/test-pr_uppercase.c: Likewise.
19297         * tests/unictype/test-pr_xid_continue.c: Likewise.
19298         * tests/unictype/test-pr_xid_start.c: Likewise.
19299         * tests/unictype/test-pr_zero_width.c: Likewise.
19300         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19301         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19302         changed behaviour: line breaking is now disallowed between a letter
19303         or '=' and '('.
19304         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19305         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19306         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19307         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19308         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19309         lib/uniwidth/width.c.
19310         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19311         without comments, but with the original copyright notice.
19312         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19313         changes.
19314         * lib/unictype/categ_Cc.h: Likewise.
19315         * lib/unictype/categ_Co.h: Likewise.
19316         * lib/unictype/categ_Cs.h: Likewise.
19317         * lib/unictype/categ_Lt.h: Likewise.
19318         * lib/unictype/categ_Me.h: Likewise.
19319         * lib/unictype/categ_Pc.h: Likewise.
19320         * lib/unictype/categ_Pe.h: Likewise.
19321         * lib/unictype/categ_Pf.h: Likewise.
19322         * lib/unictype/categ_Pi.h: Likewise.
19323         * lib/unictype/categ_Ps.h: Likewise.
19324         * lib/unictype/categ_Sk.h: Likewise.
19325         * lib/unictype/categ_Sm.h: Likewise.
19326         * lib/unictype/categ_Z.h: Likewise.
19327         * lib/unictype/categ_Zl.h: Likewise.
19328         * lib/unictype/categ_Zp.h: Likewise.
19329         * lib/unictype/categ_Zs.h: Likewise.
19330         * lib/unictype/ctype_blank.h: Likewise.
19331         * lib/unictype/ctype_cntrl.h: Likewise.
19332         * lib/unictype/ctype_digit.h: Likewise.
19333         * lib/unictype/ctype_space.h: Likewise.
19334         * lib/unictype/ctype_xdigit.h: Likewise.
19335         * lib/unictype/mirror.h: Likewise.
19336         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19337         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19338         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19339         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19340         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19341         * lib/unictype/pr_bidi_control.h: Likewise.
19342         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19343         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19344         * lib/unictype/pr_bidi_pdf.h: Likewise.
19345         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19346         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19347         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19348         * lib/unictype/pr_format_control.h: Likewise.
19349         * lib/unictype/pr_hex_digit.h: Likewise.
19350         * lib/unictype/pr_hyphen.h: Likewise.
19351         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19352         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19353         * lib/unictype/pr_iso_control.h: Likewise.
19354         * lib/unictype/pr_join_control.h: Likewise.
19355         * lib/unictype/pr_left_of_pair.h: Likewise.
19356         * lib/unictype/pr_line_separator.h: Likewise.
19357         * lib/unictype/pr_math.h: Likewise.
19358         * lib/unictype/pr_non_break.h: Likewise.
19359         * lib/unictype/pr_not_a_character.h: Likewise.
19360         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19361         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19362         * lib/unictype/pr_other_id_continue.h: Likewise.
19363         * lib/unictype/pr_other_id_start.h: Likewise.
19364         * lib/unictype/pr_other_lowercase.h: Likewise.
19365         * lib/unictype/pr_other_math.h: Likewise.
19366         * lib/unictype/pr_other_uppercase.h: Likewise.
19367         * lib/unictype/pr_paired_punctuation.h: Likewise.
19368         * lib/unictype/pr_paragraph_separator.h: Likewise.
19369         * lib/unictype/pr_pattern_syntax.h: Likewise.
19370         * lib/unictype/pr_pattern_white_space.h: Likewise.
19371         * lib/unictype/pr_private_use.h: Likewise.
19372         * lib/unictype/pr_quotation_mark.h: Likewise.
19373         * lib/unictype/pr_radical.h: Likewise.
19374         * lib/unictype/pr_soft_dotted.h: Likewise.
19375         * lib/unictype/pr_space.h: Likewise.
19376         * lib/unictype/pr_titlecase.h: Likewise.
19377         * lib/unictype/pr_variation_selector.h: Likewise.
19378         * lib/unictype/pr_white_space.h: Likewise.
19379         * lib/unictype/sy_c_ident.h: Likewise.
19380         * lib/unictype/sy_c_whitespace.h: Likewise.
19381         * lib/unictype/sy_java_whitespace.h: Likewise.
19382         * modules/uni*/*: Bump version number of expected libunistring version.
19383         Reported by Simon Josefsson.
19384
19385 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19386
19387         useless-if-before-free: fix typo in --help and make the internal,
19388         automatic version date update process work once again.
19389         --help output contained a NUL character instead of the
19390         backslash-zero that was intended.  Also, the "must lie within
19391         the first 8 lines" line is on line 9, and hence not getting
19392         automatically updated.
19393         * build-aux/useless-if-before-free: Fix the former by adding a
19394         backslash, and the latter by condensing the three lines of what-it-does
19395         to a single line, leaving one line of slack for the future.
19396
19397 2011-01-09  Bruno Haible  <bruno@clisp.org>
19398
19399         uniwidth/width: Fix width of U+1D173..U+1D17A.
19400         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19401         symbolic_width, output_width_property_test): New functions.
19402         (main): Invoke output_nonspacing_property, output_width_property_test.
19403         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19404         U+1D173..U+1D17A.
19405         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19406         1.
19407         * modules/uniwidth/*: Bump version number of expected libunistring
19408         version.
19409         * modules/unilbrk/*: Likewise.
19410
19411 2011-01-08  Bruno Haible  <bruno@clisp.org>
19412
19413         uninorm tests: Preserve copyright of Unicode data file.
19414         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19415         Mention modifications.
19416
19417 2011-01-08  Bruno Haible  <bruno@clisp.org>
19418
19419         gen-uni-tables: Prepare for Unicode 5.2.0.
19420         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19421         (debug_output_lbp, output_lbp): Update.
19422
19423 2011-01-08  Bruno Haible  <bruno@clisp.org>
19424
19425         unilbrk: Clarify gen-uni-tables.c code.
19426         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19427         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19428         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19429
19430 2011-01-07  Bruno Haible  <bruno@clisp.org>
19431
19432         strtod: Restore errno when successfully parsing Infinity or NaN.
19433         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19434         restore the original errno.
19435
19436 2011-01-07  Bruno Haible  <bruno@clisp.org>
19437
19438         remove test: Avoid failure on HP-UX 11.
19439         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19440
19441 2011-01-07  Bruno Haible  <bruno@clisp.org>
19442
19443         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19444         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19445         error code.
19446
19447 2011-01-07  Pádraig Brady <P@draigBrady.com>
19448
19449         ignore-value: fixup comments, and add Eric Blake
19450         as an author since he rewrote the macros.
19451         * lib/ignore-value.h (ignore_value):  State that
19452         we now support aggregates.  Also specify exactly
19453         when the GCC warn_unused_result feature was added.
19454
19455 2011-01-06  Eric Blake  <eblake@redhat.com>
19456
19457         ignore-value: support aggregate types
19458         * lib/ignore-value.h (ignore_value): Provide separate gcc
19459         definition.
19460         * modules/ignore-value-tests: New test module.
19461         * tests/test-ignore-value.c: New test.
19462
19463         maint.mk: improve sc_prohibit_strcmp regex
19464         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19465         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19466         definition of STRNEQ.
19467
19468         signal: work around Haiku issue with SIGBUS
19469         * lib/siglist.h: Add comment.
19470         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19471         strsignal's favoring of SIGSEGV.
19472         * tests/test-signal.c (main): Avoid test failure.
19473         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19474         Reported by Scott McCreary.
19475
19476         maint.mk: add pre-release check to ensure submodule commits are public
19477         * top/maint.mk (public-submodule-commit): New rule.
19478         (submodule-checks): New variable.
19479         (alpha beta stable): Depend on the variable.
19480
19481 2011-01-05  Pádraig Brady <P@draigBrady.com>
19482         and Jim Meyering  <meyering@redhat.com>
19483
19484         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19485         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19486         (ATTRIBUTE_DEPRECATED): Define.
19487         (_ignore_case): New function.
19488         (ignore_value): New macro, to replace the old function.
19489         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19490         * modules/ignore-value (Depends-on): Add stdint.
19491
19492 2011-01-04  Eric Blake  <eblake@redhat.com>
19493
19494         doc: regenerate INSTALL
19495         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19496         @firstparagraphindent support, now that autoconf dropped it.
19497         (INSTALL_PRELUDE): Reinstate old macro.
19498         * doc/install.texi: Resync from autoconf.
19499         * doc/INSTALL: Reflect recent autoconf update.
19500         * doc/INSTALL.ISO: Likewise.
19501         * doc/INSTALL.UTF-8: Likewise.
19502         Reported by Karl Berry.
19503
19504 2011-01-04  Bruce Korb  <address@hidden>
19505
19506         git-version-gen: avoid a sub-shell
19507         * build-aux/git-version-gen: Redirect stderr in `...` via
19508         "exec 2>...", rather than via an added sub-shell.
19509
19510 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19511
19512         git-version-gen: use (...) rather than sh -c '...'
19513         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19514         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19515
19516 2011-01-03  Jim Meyering  <meyering@redhat.com>
19517
19518         git-version-gen: convert leading TABs to spaces
19519         * build-aux/git-version-gen: Expand leading TABs.
19520
19521         git-version-gen: handle failed "git rev-list"
19522         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19523         from git and proceeding as if it had succeeded but printed no SHA1
19524         checksums, suppress the diagnostic and handle the failure.
19525         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19526
19527         git-version-gen: include command name in one more diagnostic
19528         * build-aux/git-version-gen: When the required .tarball-version file
19529         was missing or unreadable, you might see the diagnostic from "cat",
19530         but no trace of the name of the invoking script.  Now, you still see
19531         the diagnostic from cat, but also get one from "git-version-gen: ".
19532         Inspired by a patch from Bruce Korb.
19533
19534         update-copyright: adjust test to match changed code
19535         * tests/test-update-copyright.sh: Change test's expected output
19536         to match new actual output.
19537
19538 2011-01-02  Bruno Haible  <bruno@clisp.org>
19539
19540         getlogin_r: Avoid test failure on HP-UX 11.
19541         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19542         ERANGE when the second argument is zero.
19543         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19544         portability problem.
19545
19546 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19547
19548         * build-aux/update-copyright: doc Simon's changes
19549
19550 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19551
19552         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19553         environment variable.
19554
19555 2011-01-02  Bruno Haible  <bruno@clisp.org>
19556
19557         unigbrk: Avoid gcc warnings.
19558         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19559         unused variable.
19560         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19561         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19562         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19563         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19564         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19565         Change type of first argument to 'const char *'.
19566         (main): Remove unused variable.
19567         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19568         type of first argument to 'const char *'.
19569         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19570         Likewise.
19571         (main): Change type of variable 's'.
19572         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19573         to 'int'.
19574
19575 2011-01-02  Bruno Haible  <bruno@clisp.org>
19576
19577         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19578         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19579         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19580         bug.
19581         * lib/pwrite.c: Undo 2010-12-31 patch.
19582         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19583
19584 2011-01-02  Bruno Haible  <bruno@clisp.org>
19585
19586         pread: Fix test whether it works.
19587         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19588
19589 2011-01-02  Bruno Haible  <bruno@clisp.org>
19590
19591         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19592         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19593         ends in "6". Don't require a specific month name. Try also the locale
19594         names found on HP-UX 11 and Solaris 7.
19595
19596 2011-01-02  Bruno Haible  <bruno@clisp.org>
19597
19598         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19599         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19600         C linkage.
19601         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19602
19603 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19604
19605         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19606         for consistency, since the "cluster" term is not used elsewhere.
19607         * lib/unigbrk.in.h: Update name.
19608         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19609         * lib/unigbrk/u16-grapheme-next.c: Update name.
19610         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19611         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19612         * lib/unigbrk/u32-grapheme-next.c: Update name.
19613         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19614         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19615         * lib/unigbrk/u8-grapheme-next.c: Update name.
19616         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19617         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19618         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19619         Suggested by Bruno Haible.
19620
19621 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19622
19623         Remove module 'u8-grapheme-len' as too redundant with
19624         'u8-grapheme-next'.
19625         * modules/unigbrk/u8-grapheme-len: Delete file.
19626         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19627         * lib/unigbrk.in.h: Remove prototype for deleted function.
19628         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19629         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19630
19631         Remove module 'u16-grapheme-len' as too redundant with
19632         'u16-grapheme-next'.
19633         * modules/unigbrk/u16-grapheme-len: Delete file.
19634         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19635         * lib/unigbrk.in.h: Remove prototype for deleted function.
19636         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19637         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19638
19639         Remove module 'u32-grapheme-len' as too redundant with
19640         'u32-grapheme-next'.
19641         * modules/unigbrk/u32-grapheme-len: Delete file.
19642         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19643         * lib/unigbrk.in.h: Remove prototype for deleted function.
19644         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19645         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19646
19647         Suggested by Bruno Haible.
19648
19649 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19650
19651         * unigbrk.in.h: Fix typo: "ben" => "been".
19652         Reported by Bruno Haible.
19653
19654 2011-01-01  Jim Meyering  <meyering@redhat.com>
19655
19656         maint: update almost all copyright ranges to include 2011
19657         Run the new "make update-copyright" rule.
19658
19659 2011-01-01  Jim Meyering  <meyering@redhat.com>
19660
19661         maint: update-copyright: exempt doc/INSTALL*
19662         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19663         since they are generated.  Suggested by Bruno Haible.
19664
19665 2011-01-01  Jim Meyering  <meyering@redhat.com>
19666
19667         maint: refine the update-copyright rule
19668         * Makefile (update-copyright): Also exclude any file that includes
19669         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19670         code that merely generates the comment.
19671
19672 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19673
19674         New module 'u8-grapheme-len'.
19675         * modules/unigbrk/u8-grapheme-len: New file.
19676         * modules/unigbrk/u8-grapheme-len-tests: New file.
19677         * lib/unigbrk.in.h: Add prototype for new function.
19678         * lib/unigbrk/u8-grapheme-len.c: New file.
19679         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19680
19681         New module 'u16-grapheme-len'.
19682         * modules/unigbrk/u16-grapheme-len: New file.
19683         * modules/unigbrk/u16-grapheme-len-tests: New file.
19684         * lib/unigbrk.in.h: Add prototype for new function.
19685         * lib/unigbrk/u16-grapheme-len.c: New file.
19686         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19687
19688         New module 'u32-grapheme-len'.
19689         * modules/unigbrk/u32-grapheme-len: New file.
19690         * modules/unigbrk/u32-grapheme-len-tests: New file.
19691         * lib/unigbrk.in.h: Add prototype for new function.
19692         * lib/unigbrk/u32-grapheme-len.c: New file.
19693         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19694
19695         New module 'u8-grapheme-next'.
19696         * modules/unigbrk/u8-grapheme-next: New file.
19697         * modules/unigbrk/u8-grapheme-next-tests: New file.
19698         * lib/unigbrk.in.h: Add prototype for new function.
19699         * lib/unigbrk/u8-grapheme-next.c: New file.
19700         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19701
19702         New module 'u16-grapheme-next'.
19703         * modules/unigbrk/u16-grapheme-next: New file.
19704         * modules/unigbrk/u16-grapheme-next-tests: New file.
19705         * lib/unigbrk.in.h: Add prototype for new function.
19706         * lib/unigbrk/u16-grapheme-next.c: New file.
19707         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19708
19709         New module 'u32-grapheme-next'.
19710         * modules/unigbrk/u32-grapheme-next: New file.
19711         * modules/unigbrk/u32-grapheme-next-tests: New file.
19712         * lib/unigbrk.in.h: Add prototype for new function.
19713         * lib/unigbrk/u32-grapheme-next.c: New file.
19714         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19715
19716         New module 'u8-grapheme-prev'.
19717         * modules/unigbrk/u8-grapheme-prev: New file.
19718         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19719         * lib/unigbrk.in.h: Add prototype for new function.
19720         * lib/unigbrk/u8-grapheme-prev.c: New file.
19721         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19722
19723         New module 'u16-grapheme-prev'.
19724         * modules/unigbrk/u16-grapheme-prev: New file.
19725         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19726         * lib/unigbrk.in.h: Add prototype for new function.
19727         * lib/unigbrk/u16-grapheme-prev.c: New file.
19728         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19729
19730         New module 'u32-grapheme-prev'.
19731         * modules/unigbrk/u32-grapheme-prev: New file.
19732         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19733         * lib/unigbrk.in.h: Add prototype for new function.
19734         * lib/unigbrk/u32-grapheme-prev.c: New file.
19735         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19736
19737         New module 'u8-grapheme-breaks'.
19738         * modules/unigbrk/u8-grapheme-breaks: New file.
19739         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19740         * lib/unigbrk.in.h: Add prototype for new function.
19741         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19742         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19743
19744         New module 'u16-grapheme-breaks'.
19745         * modules/unigbrk/u16-grapheme-breaks: New file.
19746         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19747         * lib/unigbrk.in.h: Add prototype for new function.
19748         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19749         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19750
19751         New module 'u32-grapheme-breaks'.
19752         * modules/unigbrk/u32-grapheme-breaks: New file.
19753         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19754         * lib/unigbrk.in.h: Add prototype for new function.
19755         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19756         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19757
19758         New module 'ulc-grapheme-breaks'.
19759         * modules/unigbrk/ulc-grapheme-breaks: New file.
19760         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19761         * m4/locale-ar.m4: New file.
19762         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19763         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19764         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19765
19766 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19767
19768         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19769         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19770         modified how this file was generated before I initially submitted
19771         the module, but failed to regenerate it.  This meant that several
19772         of the level2 entries were wrong.
19773         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19774         Remove the division-by-2 that is folded into the table now that
19775         gbrkprop.h has been regenerated properly.  Now -1 entries are
19776         handled correctly.
19777
19778         New module 'unigbrk/uc-gbrk-prop-tests'.
19779         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19780         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19781         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19782         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19783
19784 2011-01-01  Bruno Haible  <bruno@clisp.org>
19785
19786         Avoid use of hexadecimal escapes.
19787         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19788         instead of hexadecimal escapes.
19789
19790 2011-01-01  Jim Meyering  <meyering@redhat.com>
19791
19792         maint: new rule to update copyright year ranges
19793         * Makefile (update-copyright): New rule.
19794
19795         maint: indent with TABs in Makefile
19796         * Makefile: Expand leading sequences of spaces to TABs
19797
19798         version-etc: update the copyright year it reports
19799         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19800
19801 2010-12-31  Bruno Haible  <bruno@clisp.org>
19802
19803         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19804         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19805         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19806         zero.
19807
19808 2010-12-31  Bruno Haible  <bruno@clisp.org>
19809
19810         pwrite: Work around HP-UX 11.11 bug.
19811         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19812         works and set REPLACE_PWRITE if not.
19813         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19814         function.
19815         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19816
19817 2010-12-31  Bruno Haible  <bruno@clisp.org>
19818
19819         pread: Work around HP-UX 11 bugs.
19820         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19821         and set REPLACE_PREAD if not.
19822         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19823
19824 2010-12-31  Eric Blake  <eblake@redhat.com>
19825
19826         nl_langinfo: fix YESEXPR on Irix 6.5
19827         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19828         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19829         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19830         it.
19831
19832 2010-12-31  Bruno Haible  <bruno@clisp.org>
19833
19834         iconv: Document HP-UX 11 bug.
19835         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19836
19837 2010-12-31  Bruno Haible  <bruno@clisp.org>
19838
19839         ldexpl: Fix link error on HP-UX 11.
19840         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19841         LDEXPL_LIBM, using $ISNANL_LIBM.
19842
19843 2010-12-31  Eric Blake  <eblake@redhat.com>
19844
19845         ftello: avoid compilation failure with SunStudio c89
19846         * lib/ftello.c (ftello): Use lseek, not llseek.
19847
19848         tests: avoid failing coreutils tests on cygwin
19849         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19850         (create_exe_shims_): Return 0 when skipping.
19851
19852 2010-12-31  Bruno Haible  <bruno@clisp.org>
19853
19854         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19855         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19856
19857 2010-12-31  Bruno Haible  <bruno@clisp.org>
19858
19859         waitpid: Fix link error in C++ mode.
19860         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19861
19862 2010-12-31  Bruno Haible  <bruno@clisp.org>
19863
19864         isnan: Use GCC built-ins when possible.
19865         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19866         __builtin_isnan.
19867         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19868         (isnan): Define using GCC built-ins for GCC >= 4.0.
19869
19870 2010-12-31  Bruno Haible  <bruno@clisp.org>
19871
19872         isnand: Fix mistake.
19873         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19874         __builtin_isnand.
19875
19876 2010-12-31  Bruno Haible  <bruno@clisp.org>
19877
19878         open: Avoid C++ error on HP-UX 11.
19879         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19880
19881 2010-12-31  Bruno Haible  <bruno@clisp.org>
19882
19883         time_r: Add missing declarations on HP-UX 11.
19884         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19885         instead of HAVE_LOCALTIME_R.
19886         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19887         HAVE_LOCALTIME_R always.
19888         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19889         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19890         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19891         HAVE_LOCALTIME_R.
19892         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19893         * doc/posix-functions/localtime_r.texi: Likewise.
19894
19895 2010-12-29  Eric Blake  <eblake@redhat.com>
19896
19897         mountlist: tweak previous commit
19898         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19899         Reported by Paul Eggert.
19900
19901         mountlist: fix local drive detection on cygwin
19902         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19903         that works for cygwin.
19904
19905 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         ftoastr, snprintf: ftoastr + snprintf module
19908         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19909         since the snprintf module now should be good enough here.
19910         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19911         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19912         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19913         GNULIB_SNPRINTF only for the test directory, and the latter
19914         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19915         seems to suffice by itself.
19916
19917 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19918
19919         alloca: one step towards thread-safety
19920         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19921         need for a static variable.  All callers changed.  This does not
19922         make the alloca replacement thread-safe, but it's one step.
19923
19924         tests: minor indenting change
19925         * tests/init.sh: Sync from coreutils housekeeping patch
19926         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19927         to keep lines within 80 columns.
19928
19929 2010-12-28  Jim Meyering  <meyering@redhat.com>
19930
19931         regex: don't infloop on persistent failing calloc
19932         * lib/regexec.c (build_trtable): Return failure indication upon
19933         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19934         In glibc, this was fixed for version 2.13:
19935         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19936
19937 2010-12-28  Bruno Haible  <bruno@clisp.org>
19938             Paul Eggert <eggert@cs.ucla.edu>
19939
19940         linkat: Make implementation robust against system behaviour variations.
19941         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19942         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19943         way, and to -2 if it needs a generic runtime test.
19944         * lib/linkat.c (solaris_optimized_link_immediate,
19945         solaris_optimized_link_follow): New functions.
19946         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19947         (check_same_link): Use it.
19948
19949 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19950
19951         New module 'unigbrk/base'.
19952         * modules/unigbrk/base: New file.
19953         * lib/unigbrk.in.h: New file.
19954
19955         New module 'unigbrk/uc-gbrk-prop'.
19956         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19957         * modules/unigbrk/uc-gbrk-prop: New file.
19958         * lib/unigbrk/gbrkprop.h: New file.
19959         * lib/unigbrk/uc-gbrk-prop.c: New file.
19960
19961         New module 'unigbrk/uc-is-grapheme-break'.
19962         * modules/unigbrk/uc-is-grapheme-break: New file.
19963         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19964         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19965         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19966         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19967         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19968
19969         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19970
19971 2010-12-27  Bruno Haible  <bruno@clisp.org>
19972
19973         linkat test: Avoid failure on Solaris 11 2010-11.
19974         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19975
19976 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19977
19978         utimens: work around glibc rounding bug on more platforms
19979         * lib/utimens.c (fdutimens): Work around rounding bug even if
19980         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19982
19983 2010-12-27  Bruno Haible  <bruno@clisp.org>
19984
19985         select tests: Improve comments.
19986         * tests/test-select.c (do_select): Add comments.
19987
19988 2010-12-27  Bruno Haible  <bruno@clisp.org>
19989
19990         select tests: Safer way of handling timeout.
19991         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19992         at every invocation.
19993
19994 2010-12-27  Bruno Haible  <bruno@clisp.org>
19995
19996         select tests: Use 'bool' where appropriate.
19997         * tests/test-select.c (connect_to_socket): Change argument type to
19998         'bool'.
19999
20000 2010-12-27  Bruno Haible  <bruno@clisp.org>
20001
20002         select tests: Use existing modules.
20003         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
20004         (configure.ac): Don't test for unistd.h.
20005         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
20006         declared in <unistd.h>.
20007
20008 2010-12-27  Bruno Haible  <bruno@clisp.org>
20009
20010         mbrtowc: Work around a Solaris 7 bug.
20011         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
20012         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
20013         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
20014         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
20015         MBRTOWC_NULL_ARG1_BUG.
20016         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
20017         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
20018         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
20019         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
20020
20021 2010-12-27  Jim Meyering  <meyering@redhat.com>
20022
20023         read-file.c: tweak syntax
20024         * lib/read-file.c (fread_file): Remove space after "*" in function
20025         definitions.
20026
20027 2010-12-27  Bruno Haible  <bruno@clisp.org>
20028
20029         times test: Avoid gcc warnings on OSF/1.
20030         * tests/test-times.c (main): Cast printf arguments from clock_t to
20031         'long int'.
20032
20033 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20034
20035         utimens: work around glibc rounding bug on older Linux kernels
20036         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
20037         on Linux with a glibc whose utimes might not work, then work
20038         around a longstanding glibc bug involving rounding rather than
20039         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
20040         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20041
20042 2010-12-26  Bruno Haible  <bruno@clisp.org>
20043
20044         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
20045         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
20046         _GL_CXXALIAS_SYS.
20047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20048
20049 2010-12-26  Bruno Haible  <bruno@clisp.org>
20050
20051         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
20052         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
20053         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20054         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
20055         looking for the declaration.
20056         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20057         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
20058         problem.
20059         * doc/posix-functions/inet_pton.texi: Likewise.
20060
20061 2010-12-26  Bruno Haible  <bruno@clisp.org>
20062
20063         arpa_inet: Use the common idioms with C++ support.
20064         * lib/arpa_inet.in.h: Include c++defs.h.
20065         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
20066         support.
20067         * modules/arpa_inet (Depends-on): Add c++defs.
20068         (Makefile.am): Substitute the contents of c++defs.h.
20069         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
20070         * modules/arpa_inet-c++-tests: New file.
20071         * tests/test-arpa_inet-c++.cc: New file.
20072
20073 2010-12-25  Bruno Haible  <bruno@clisp.org>
20074
20075         Fix more C++ link errors on Solaris 8.
20076         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
20077         $(LIB_EACCESS).
20078         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
20079         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
20080         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
20081         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
20082         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
20083
20084 2010-12-25  Bruno Haible  <bruno@clisp.org>
20085
20086         printf-posix: Fix link error when a non-GCC compiler is used.
20087         * lib/stdio.in.h (printf): When not using GCC, override printf
20088         correctly.
20089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20090
20091 2010-12-25  Bruno Haible  <bruno@clisp.org>
20092
20093         strerror_r-posix: Update doc.
20094         * doc/posix-functions/strerror_r.texi: Update doc about the return
20095         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
20096
20097 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20098
20099         utimens: simplify the logic of the previous change
20100         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
20101         This should not affect whether the test succeeds or fails.
20102
20103         utimens: configure better on hosts with NFS clock skew
20104         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
20105         uses the clock of the local host.  It might use the clock of the
20106         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
20107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20108
20109 2010-12-25  Bruno Haible  <bruno@clisp.org>
20110
20111         ptsname test: Avoid failure on Solaris.
20112         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
20113         open a pseudo-terminal; don't use BSD-style ptys.
20114         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
20115
20116 2010-12-25  Bruno Haible  <bruno@clisp.org>
20117
20118         ptsname: Avoid ERANGE failure on some systems.
20119         * lib/ptsname.c (buffer): Increase size.
20120
20121 2010-12-25  Bruno Haible  <bruno@clisp.org>
20122
20123         rename, renameat: Avoid test failures at NFS mounted locations.
20124         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
20125         so that subsequent mkdir calls succeed.
20126
20127 2010-12-25  Bruno Haible  <bruno@clisp.org>
20128
20129         iswblank: Fix C++ link error on Solaris 8.
20130         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
20131         _GL_FUNCDECL_SYS.
20132
20133 2010-12-25  Bruno Haible  <bruno@clisp.org>
20134
20135         unistd: Fix C++ link error on Solaris 8.
20136         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
20137
20138 2010-12-25  Bruno Haible  <bruno@clisp.org>
20139
20140         readlink doc: Mention an old glibc bug.
20141         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
20142
20143 2010-12-25  Bruno Haible  <bruno@clisp.org>
20144
20145         fcntl-h: Fix for use of C++ on glibc systems.
20146         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20147         also on glibc systems in C++ mode.
20148         Reported by Gary V. Vaughan <gary@gnu.org>.
20149
20150 2010-12-25  Bruno Haible  <bruno@clisp.org>
20151
20152         roundl-ieee: Make it work on OSF/1 5.1 with cc.
20153         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
20154
20155 2010-12-25  Bruno Haible  <bruno@clisp.org>
20156
20157         truncl-ieee: Make it work on OSF/1 5.1 with cc.
20158         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
20159         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
20160         test whether truncl works according to ISO C 99 with IEC 60559.
20161         * m4/truncl-ieee.m4: New file.
20162         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
20163         m4/signbit.m4.
20164         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
20165
20166 2010-12-25  Bruno Haible  <bruno@clisp.org>
20167
20168         ceill-ieee: Make it work on OSF/1 5.1 with cc.
20169         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
20170         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
20171         test whether ceill works according to ISO C 99 with IEC 60559.
20172         * m4/ceill-ieee.m4: New file.
20173         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
20174         m4/signbit.m4.
20175         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
20176
20177 2010-12-25  Bruno Haible  <bruno@clisp.org>
20178
20179         Ensure all prerequisites of <wchar.h> are included.
20180         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
20181         before <wchar.h>.
20182         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20183         gl_MBRLEN_NUL_RETVAL): Likewise.
20184         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20185         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
20186         AC_FUNC_MBRTOWC): Likewise.
20187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20188         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20190         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20191         Likewise.
20192         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20193         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
20194         (gl_WCHAR_H): Improve comments.
20195         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20196
20197 2010-12-25  Bruno Haible  <bruno@clisp.org>
20198
20199         strtok_r: Fix C syntax error in autoconf macro.
20200         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
20201         characters in test program.
20202
20203 2010-12-24  Bruno Haible  <bruno@clisp.org>
20204
20205         ceil, trunc, round: Fix gcc warnings.
20206         * lib/ceil.c (MIN): Undefine before redefining.
20207         * lib/trunc.c (MIN): Likewise.
20208         * lib/round.c (MIN): Likewise.
20209         Include <math.h> first.
20210
20211 2010-12-24  Bruno Haible  <bruno@clisp.org>
20212
20213         select tests: Avoid failures on OSF/1 5.1.
20214         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
20215         failure of closing the last socket; it may fail with ECONNRESET.
20216
20217 2010-12-24  Eric Blake  <eblake@redhat.com>
20218
20219         stdint: avoid HP-UX 10.20 preprocessor bug
20220         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
20221         than #if.
20222         * tests/test-floor2.c (main): Likewise.
20223         Reported by Peter O'Gorman.
20224
20225         pipe: make obsoletion transition easier
20226         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20227         * modules/pipe (Files): Include revived file.
20228         (Include): Drop reference, to mirror getdate's behavior.
20229
20230 2010-12-24  Bruno Haible  <bruno@clisp.org>
20231
20232         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20233         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20234         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20236
20237 2010-12-24  Bruno Haible  <bruno@clisp.org>
20238
20239         gethostname: Ensure declaration on NonStop Kernel.
20240         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20241         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20242
20243 2010-12-24  Bruno Haible  <bruno@clisp.org>
20244
20245         sys_select: Ensure all necessary types on NonStop Kernel.
20246         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20247         include <sys/time.h>.
20248         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20249         NonStop Kernel.
20250         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20251
20252 2010-12-24  Bruno Haible  <bruno@clisp.org>
20253
20254         sys_select: Remove unneeded include.
20255         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20256         have <sys/select.h>.
20257
20258 2010-12-24  Bruno Haible  <bruno@clisp.org>
20259
20260         gethostname: Provide a fallback for HOST_NAME_MAX.
20261         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20262         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20263         instead.
20264         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20265
20266 2010-12-24  Bruno Haible  <bruno@clisp.org>
20267
20268         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20269         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20270         (SA_RESTART): Likewise.
20271         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20272
20273 2010-12-24  Bruno Haible  <bruno@clisp.org>
20274
20275         signal: Define NSIG.
20276         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20277         * tests/test-signal.c (nsig): New variable.
20278         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20279
20280 2010-12-24  Bruno Haible  <bruno@clisp.org>
20281
20282         rename, renameat: Avoid test failures on OSF/1 5.1.
20283         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20284         alternative error codes.
20285         * tests/test-renameat.c (main): Likewise.
20286
20287 2010-12-24  Bruno Haible  <bruno@clisp.org>
20288
20289         *printf: Detect large precisions bug on Solaris 10/SPARC.
20290         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20291         by Paul Eggert.
20292         * tests/test-snprintf-posix.h (test_function): Add this test code here
20293         too.
20294         * tests/test-sprintf-posix.h (test_function): Likewise.
20295         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20296         * tests/test-vasprintf-posix.c (test_function): Likewise.
20297         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20298         around by gnulib.
20299         * doc/posix-functions/printf.texi: Likewise.
20300         * doc/posix-functions/snprintf.texi: Likewise.
20301         * doc/posix-functions/sprintf.texi: Likewise.
20302         * doc/posix-functions/vfprintf.texi: Likewise.
20303         * doc/posix-functions/vprintf.texi: Likewise.
20304         * doc/posix-functions/vsnprintf.texi: Likewise.
20305         * doc/posix-functions/vsprintf.texi: Likewise.
20306         * doc/posix-functions/dprintf.texi: Undo last commit.
20307         * doc/posix-functions/vdprintf.texi: Likewise.
20308
20309 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20310
20311         tests: port test-fdutimensat.c to Solaris 8
20312         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20313         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20314         On Solaris 8, it fails with errno == ENOSYS, because there is no
20315         futimens (so it can't use the fd), and there is no lutimens (so it
20316         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20317
20318         vsnprintf: make more consistent with snprintf; doc fixes
20319
20320         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20321         the byte count return problem was promoted from the snprintf-posix
20322         to the snprintf module.
20323         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20324         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20325         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20326         * tests/test-snprintf.c (main): Check the byte count returned.
20327         * tests/test-vsnprintf.c (main): Likewise.
20328
20329 2010-12-23  Eric Blake  <eblake@redhat.com>
20330
20331         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20332         * modules/sigpipe (License): Relax license.
20333
20334 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20335
20336         doc: document Solaris printf bug with large float precisions
20337         * doc/posix-functions/dprintf.texi (dprintf):
20338         * doc/posix-functions/fprintf.texi (fprintf):
20339         * doc/posix-functions/printf.texi (printf):
20340         * doc/posix-functions/snprintf.texi (snprintf):
20341         * doc/posix-functions/sprintf.texi (sprintf):
20342         * doc/posix-functions/vdprintf.texi (vdprintf):
20343         * doc/posix-functions/vfprintf.texi (vfprintf):
20344         * doc/posix-functions/vprintf.texi (vprintf):
20345         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20346         * doc/posix-functions/vsprintf.texi (vsprintf):
20347         Mention that these functions mishandle large floating point
20348         precisions on Solaris 10.  The same bug is also present in Solaris
20349         8, and I assume earlier.  This causes "cd gnulib-tests; make
20350         check" to fail on Solaris 8 (and I assume, later) when building
20351         the latest coreutils, in test-vasprintf-posix's call to
20352         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20353         the wide flavors (e.g., wprintf) so this patch just updates the
20354         documentation for the narrow ones.
20355
20356         test-posixtm.c: add two tests
20357         * tests/test-posixtm.c: Add two tests, to highlight the
20358         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20359         around this bug; this is merely to document it.
20360
20361 2010-12-22  Bruno Haible  <bruno@clisp.org>
20362
20363         getlogin_r: Work around portability problem on OSF/1.
20364         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20365         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20366         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20367         test for a truncated result.
20368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20369         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20370         * modules/getlogin_r (Depends-on): Add memchr.
20371         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20372
20373 2010-12-22  Bruno Haible  <bruno@clisp.org>
20374
20375         ptsname: Avoid test failure on OSF/1 5.1.
20376         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20377         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20378         (same_slave): New function.
20379         (main): Use it to compare ptsname's result with the expected file name.
20380
20381 2010-12-22  Bruno Haible  <bruno@clisp.org>
20382
20383         Port extended stdio modules to HP NonStop Kernel.
20384         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20385         macros.
20386         * lib/fbufmode.c: Update comments.
20387         * lib/fflush.c: Likewise.
20388         * lib/fpurge.c: Likewise.
20389         * lib/freadable.c: Likewise.
20390         * lib/freadahead.c: Likewise.
20391         * lib/freading.c: Likewise.
20392         * lib/freadptr.c: Likewise.
20393         * lib/freadseek.c: Likewise.
20394         * lib/fseeko.c: Likewise.
20395         * lib/fseterr.c: Likewise.
20396         * lib/fwritable.c: Likewise.
20397         * lib/fwriting.c: Likewise.
20398         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20399
20400 2010-12-22  Bruno Haible  <bruno@clisp.org>
20401
20402         ttyname_r: Work around bug on OSF/1 5.1.
20403         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20404         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20405         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20406         present.
20407         * lib/ttyname_r.c (ttyname_r): Update comments.
20408
20409 2010-12-22  Bruno Haible  <bruno@clisp.org>
20410
20411         round: Implement result sign according to IEEE 754.
20412         * lib/round.c (MIN, MINUS_ZERO): New macros.
20413         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20414         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20415         * tests/test-round-ieee.c (main): Likewise.
20416         * tests/test-roundl-ieee.c (main): Likewise.
20417
20418         trunc: Implement result sign according to IEEE 754.
20419         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20420         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20421         * tests/test-trunc2.c: Include minus-zero.h.
20422         (MINUS_ZERO): New macro.
20423         (trunc_reference): Keep in sync with lib/trunc.c.
20424         * tests/test-truncf2.c: Include minus-zero.h.
20425         (MINUS_ZERO): New macro.
20426         (truncf_reference): Keep in sync with lib/trunc.c.
20427         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20428         * tests/test-trunc-ieee.c (main): Likewise.
20429         * tests/test-truncl-ieee.c (main): Likewise.
20430
20431         ceil: Implement result sign according to IEEE 754.
20432         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20433         (FUNC): Return -0.0 for -1 < x < 0.
20434         * tests/test-ceil2.c: Include minus-zero.h.
20435         (MINUS_ZERO): New macro.
20436         (ceil_reference): Keep in sync with lib/ceil.c.
20437         * tests/test-ceilf2.c: Include minus-zero.h.
20438         (MINUS_ZERO): New macro.
20439         (ceilf_reference): Keep in sync with lib/ceil.c.
20440         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20441         * tests/test-ceil-ieee.c (main): Likewise.
20442         * tests/test-ceill-ieee.c (main): Likewise.
20443
20444         floor: Implement result sign according to IEEE 754.
20445         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20446         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20447         * tests/test-floorf2.c (floorf_reference): Likewise.
20448         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20449         * tests/test-floor-ieee.c (main): Likewise.
20450         * tests/test-floorl-ieee.c (main): Likewise.
20451
20452 2010-12-22  Bruno Haible  <bruno@clisp.org>
20453
20454         getaddrinfo: Update doc.
20455         * doc/posix-functions/gai_strerror.texi: Return type is also different
20456         on AIX and HP-UX.
20457
20458 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20459
20460         getaddrinfo, inet_ntop: Update doc for Solaris.
20461         * doc/posix-functions/gai_strerror.texi: Return type is also an
20462         issue on Solaris 9 and earlier.
20463         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20464         on Solaris 10 and earlier.
20465
20466 2010-12-21  Bruno Haible  <bruno@clisp.org>
20467
20468         New module 'roundl-ieee'.
20469         * modules/roundl-ieee: New file.
20470         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20471         test whether roundl works according to ISO C 99 with IEC 60559.
20472         * m4/roundl-ieee.m4: New file.
20473         * modules/roundl-ieee-tests: New file.
20474         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20475         * tests/test-roundl.c (main): Remove signbit tests.
20476         * modules/roundl-tests (Depends-on): Remove signbit.
20477         * doc/posix-functions/roundl.texi: Mention the new module.
20478
20479 2010-12-21  Bruno Haible  <bruno@clisp.org>
20480
20481         New module 'truncl-ieee'.
20482         * modules/truncl-ieee: New file.
20483         * modules/truncl-ieee-tests: New file.
20484         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20485         * tests/test-truncl.c (main): Remove signbit tests.
20486         * modules/truncl-tests (Depends-on): Remove signbit.
20487         * doc/posix-functions/truncl.texi: Mention the new module.
20488
20489 2010-12-21  Bruno Haible  <bruno@clisp.org>
20490
20491         New module 'ceill-ieee'.
20492         * modules/ceill-ieee: New file.
20493         * modules/ceill-ieee-tests: New file.
20494         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20495         * tests/test-ceill.c (main): Remove signbit tests.
20496         * modules/ceill-tests (Depends-on): Remove signbit.
20497         * doc/posix-functions/ceill.texi: Mention the new module.
20498
20499 2010-12-21  Bruno Haible  <bruno@clisp.org>
20500
20501         New module 'floorl-ieee'.
20502         * modules/floorl-ieee: New file.
20503         * modules/floorl-ieee-tests: New file.
20504         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20505         * tests/test-floorl.c (main): Remove signbit tests.
20506         * modules/floorl-tests (Depends-on): Remove signbit.
20507         * doc/posix-functions/floorl.texi: Mention the new module.
20508
20509 2010-12-21  Bruno Haible  <bruno@clisp.org>
20510
20511         New module 'round-ieee'.
20512         * modules/round-ieee: New file.
20513         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20514         whether round works according to ISO C 99 with IEC 60559.
20515         * m4/round-ieee.m4: New file.
20516         * modules/round-ieee-tests: New file.
20517         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20518         * tests/test-round1.c (main): Remove signbit tests.
20519         * modules/round-tests (Depends-on): Remove 'signbit'.
20520         * doc/posix-functions/round.texi: Mention the new module.
20521
20522 2010-12-21  Bruno Haible  <bruno@clisp.org>
20523
20524         New module 'trunc-ieee'.
20525         * modules/trunc-ieee: New file.
20526         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20527         whether trunc works according to ISO C 99 with IEC 60559.
20528         * m4/trunc-ieee.m4: New file.
20529         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20531         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20532         * modules/trunc-ieee-tests: New file.
20533         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20534         * tests/test-trunc1.c (main): Remove signbit tests.
20535         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20536         * doc/posix-functions/trunc.texi: Mention the new module.
20537
20538 2010-12-21  Bruno Haible  <bruno@clisp.org>
20539
20540         New module 'ceil-ieee'.
20541         * modules/ceil-ieee: New file.
20542         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20543         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20544         ISO C 99 with IEC 60559.
20545         * m4/ceil-ieee.m4: New file.
20546         * modules/ceil (Files): Add lib/ceil.c.
20547         (Depends-on): Add 'float'.
20548         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20549         * lib/math.in.h (ceil): New declaration.
20550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20551         REPLACE_CEIL.
20552         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20553         * modules/ceil-ieee-tests: New file.
20554         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20555         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20556         * doc/posix-functions/ceil.texi: Mention the new module.
20557
20558 2010-12-21  Bruno Haible  <bruno@clisp.org>
20559
20560         New module 'floor-ieee'.
20561         * modules/floor-ieee: New file.
20562         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20563         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20564         ISO C 99 with IEC 60559.
20565         * m4/floor-ieee.m4: New file.
20566         * modules/floor (Files): Add lib/floor.c.
20567         (Depends-on): Add 'float'.
20568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20569         * lib/math.in.h (floor): New declaration.
20570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20571         REPLACE_FLOOR.
20572         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20573         * modules/floor-ieee-tests: New file.
20574         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20575         * tests/test-math-c++.cc: Check the signature of 'floor'.
20576         * doc/posix-functions/floor.texi: Mention the new module.
20577
20578 2010-12-21  Bruno Haible  <bruno@clisp.org>
20579
20580         New module 'roundf-ieee'.
20581         * modules/roundf-ieee: New file.
20582         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20583         test whether roundf works according to ISO C 99 with IEC 60559.
20584         * m4/roundf-ieee.m4: New file.
20585         * modules/roundf-ieee-tests: New file.
20586         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20587         * tests/test-roundf1.c (main): Remove signbit tests.
20588         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20589         * doc/posix-functions/roundf.texi: Mention the new module.
20590
20591 2010-12-21  Bruno Haible  <bruno@clisp.org>
20592
20593         New module 'truncf-ieee'.
20594         * modules/truncf-ieee: New file.
20595         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20596         test whether truncf works according to ISO C 99 with IEC 60559.
20597         * m4/truncf-ieee.m4: New file.
20598         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20600         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20601         * modules/truncf-ieee-tests: New file.
20602         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20603         * tests/test-truncf1.c (main): Remove signbit tests.
20604         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20605         * doc/posix-functions/truncf.texi: Mention the new module.
20606
20607 2010-12-21  Bruno Haible  <bruno@clisp.org>
20608
20609         New module 'ceilf-ieee'.
20610         * modules/ceilf-ieee: New file.
20611         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20612         test whether ceilf works according to ISO C 99 with IEC 60559.
20613         * m4/ceilf-ieee.m4: New file.
20614         * modules/ceilf-ieee-tests: New file.
20615         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20616         * tests/test-ceilf1.c (main): Remove signbit tests.
20617         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20618         * doc/posix-functions/ceilf.texi: Mention the new module.
20619
20620 2010-12-21  Bruno Haible  <bruno@clisp.org>
20621
20622         New module 'floorf-ieee'.
20623         * modules/floorf-ieee: New file.
20624         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20625         test whether floorf works according to ISO C 99 with IEC 60559.
20626         * m4/floorf-ieee.m4: New file.
20627         * modules/floorf-ieee-tests: New file.
20628         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20629         * tests/test-floorf1.c (main): Remove signbit tests.
20630         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20631         * doc/posix-functions/floorf.texi: Mention the new module.
20632
20633 2010-12-21  Bruno Haible  <bruno@clisp.org>
20634
20635         Support for minus zero in autoconf macros.
20636         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20637         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20638         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20639         * tests/minus-zero.h: Update comments.
20640
20641 2010-12-21  Bruno Haible  <bruno@clisp.org>
20642
20643         Tests for module 'ceil'.
20644         * modules/ceil-tests: New file.
20645         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20646         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20647
20648 2010-12-21  Bruno Haible  <bruno@clisp.org>
20649
20650         Tests for module 'floor'.
20651         * modules/floor-tests: New file.
20652         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20653         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20654
20655 2010-12-21  Bruno Haible  <bruno@clisp.org>
20656
20657         math: Fix indentation.
20658         * lib/math.in.h (floorf): Fix indentation.
20659
20660 2010-12-21  Bruno Haible  <bruno@clisp.org>
20661
20662         Fix cross-compilation guesses on Solaris.
20663         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20664         not match "solaris2.10".
20665         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20666         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20667         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20668
20669 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20670
20671         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20672         This fixes a problem observed with the latest coreutils snapshot
20673         that caused a test to fail on Solaris 8.  src/csplit.c's call
20674         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20675         earlier, instead of returning the number of bytes that would have
20676         been generated; this causes csplit to incorrectly report memory
20677         exhaustion.
20678         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20679         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20680         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20681         comments to match.
20682         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20683         Fix typo in matching older versions of Solaris: "solaris2.10"
20684         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20685         only for guessing while cross-compiling.
20686         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20687
20688 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20689
20690         ftoastr: fix comment again
20691         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20693         Also, simplify example a bit by using flags = 0.
20694
20695 2010-12-20  Bruno Haible  <bruno@clisp.org>
20696
20697         round*, trunc*: Update documentation regarding glibc.
20698         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20699         * doc/posix-functions/round.texi: Likewise.
20700         * doc/posix-functions/roundl.texi: Likewise.
20701         * doc/posix-functions/truncf.texi: Likewise.
20702         * doc/posix-functions/trunc.texi: Likewise.
20703         * doc/posix-functions/truncl.texi: Likewise.
20704
20705 2010-12-20  Bruno Haible  <bruno@clisp.org>
20706
20707         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20708         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20709         * doc/posix-functions/round.texi: Likewise.
20710         * doc/posix-functions/roundl.texi: Likewise.
20711
20712 2010-12-20  Bruno Haible  <bruno@clisp.org>
20713
20714         ttyname_r: Add missing declaration on HP-UX 11.
20715         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20716         HAVE_TTYNAME_R.
20717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20718         declared. Set HAVE_TTYNAME_R always.
20719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20720         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20721         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20722         HAVE_TTYNAME_R.
20723         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20724
20725 2010-12-20  Bruno Haible  <bruno@clisp.org>
20726
20727         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20728         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20729         * doc/posix-functions/getlogin_r.texi: Likewise.
20730         * tests/test-getlogin.c: Include <errno.h>.
20731         (main): Avoid test failure on HP-UX 11.11.
20732         * tests/test-getlogin_r.c (main): Likewise.
20733
20734 2010-12-20  Bruno Haible  <bruno@clisp.org>
20735
20736         getlogin_r: Add missing declaration on HP-UX 11.
20737         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20738         declared also when it exists as a function.
20739         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20740
20741 2010-12-20  Bruno Haible  <bruno@clisp.org>
20742
20743         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20744         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20745         through wcrtomb.
20746
20747 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         ftoastr: fix comment
20750         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20751         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20752
20753 2010-12-19  Bruno Haible  <bruno@clisp.org>
20754
20755         isnan: Ensure it is a macro.
20756         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20757         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20758         Solaris.
20759
20760 2010-12-19  Bruno Haible  <bruno@clisp.org>
20761
20762         ldexpl test: Fix link error on OSF/1 5.1.
20763         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20764
20765 2010-12-19  Bruno Haible  <bruno@clisp.org>
20766
20767         wctype: Make it work in C++ mode on OSF/1 5.1.
20768         * lib/wctype.in.h (iswblank): Declare but not define here.
20769         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20770         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20771         * modules/wctype (Files): Add lib/iswblank.c.
20772
20773 2010-12-19  Bruno Haible  <bruno@clisp.org>
20774
20775         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20776         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20777         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20778
20779 2010-12-19  Bruno Haible  <bruno@clisp.org>
20780
20781         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20782         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20783         _POSIX_PII_SOCKET.
20784         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20785         * doc/posix-functions/recvfrom.texi: Likewise.
20786         * doc/posix-functions/send.texi: Likewise.
20787         * doc/posix-functions/sendto.texi: Likewise.
20788
20789 2010-12-19  Bruno Haible  <bruno@clisp.org>
20790
20791         tcgetsid: Add missing declaration on OSF/1 5.1.
20792         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20793         HAVE_TCGETSID.
20794         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20795         Don't set HAVE_TCGETSID.
20796         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20797         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20798         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20799         HAVE_TCGETSID.
20800         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20801
20802 2010-12-19  Bruno Haible  <bruno@clisp.org>
20803
20804         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20805         * lib/stdio.in.h: During the include_next statement, let recursive
20806         includes of this file include only the system header file.
20807
20808 2010-12-19  Bruno Haible  <bruno@clisp.org>
20809
20810         iconv_open: Fix regression from 2010-12-04.
20811         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20812         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20813
20814 2010-12-19  Bruno Haible  <bruno@clisp.org>
20815
20816         stdbool test: Avoid a gcc warning.
20817         * tests/test-stdbool.c (main): Fail if e1 is false.
20818         Reported by Jim Meyering.
20819
20820 2010-12-19  Jim Meyering  <meyering@redhat.com>
20821
20822         setenv: restore to working order
20823         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20824         mistakenly removed.
20825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20826         HAVE_SETENV.
20827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20828         HAVE_SETENV.
20829
20830 2010-12-19  Bruno Haible  <bruno@clisp.org>
20831
20832         Document some different function declarations on OSF/1 5.1.
20833         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20834         * doc/posix-functions/inet_ntop.texi: Likewise.
20835         * doc/posix-functions/gethostname.texi: Likewise.
20836         * lib/unistd.in.h (gethostname): Update comment.
20837
20838 2010-12-19  Bruno Haible  <bruno@clisp.org>
20839
20840         doc: Mention vasprintf-posix module.
20841         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20842         the 'vasprintf-posix' module.
20843         * doc/glibc-functions/vasprintf.texi: Likewise.
20844
20845 2010-12-19  Bruno Haible  <bruno@clisp.org>
20846
20847         unsetenv: Add missing declaration on OSF/1 5.1.
20848         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20850         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20852         not HAVE_UNSETENV.
20853         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20854         HAVE_UNSETENV.
20855         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20856
20857 2010-12-19  Bruno Haible  <bruno@clisp.org>
20858
20859         setenv: Add missing declaration on OSF/1 5.1.
20860         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20862         declared. Don't set HAVE_SETENV.
20863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20864         not HAVE_SETENV.
20865         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20866         HAVE_SETENV.
20867         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20868
20869 2010-12-19  Bruno Haible  <bruno@clisp.org>
20870
20871         nl_langinfo tests: Avoid gcc warning.
20872         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20873
20874 2010-12-19  Bruno Haible  <bruno@clisp.org>
20875
20876         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20877         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20878         _GL_CXXALIAS_SYS.
20879
20880 2010-12-19  Bruno Haible  <bruno@clisp.org>
20881
20882         stdbool: Relax test.
20883         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20884         address to 'bool' work in static initializer, for compilers other than
20885         GCC.
20886
20887 2010-12-19  Bruno Haible  <bruno@clisp.org>
20888
20889         ftello: Add missing declaration on OSF/1 5.1.
20890         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20891         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20893         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20894         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20895
20896 2010-12-19  Bruno Haible  <bruno@clisp.org>
20897
20898         fseeko: Add missing declaration on OSF/1 5.1.
20899         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20902         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20903         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20904
20905 2010-12-19  Bruno Haible  <bruno@clisp.org>
20906
20907         fchdir: Add missing declaration on OSF/1 5.1.
20908         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20911         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20912         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20913
20914 2010-12-19  Bruno Haible  <bruno@clisp.org>
20915
20916         relocatable-prog-wrapper: Separate from relocatable-prog.
20917         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20918         uninstall-relocwrapper rule here.
20919         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20920         Reported by Ian Beckwith <ianb@erislabs.net>.
20921
20922 2010-12-19  Bruno Haible  <bruno@clisp.org>
20923
20924         unistr/u8-mbsnlen: Add missing dependency.
20925         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20926         Reported by Ian Beckwith <ianb@erislabs.net>.
20927
20928 2010-12-19  Bruno Haible  <bruno@clisp.org>
20929
20930         iconv: Make it possible again to use this module without 'iconv-h'.
20931         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20932         if it is not defined.
20933         Reported by Ian Beckwith <ianb@erislabs.net>.
20934
20935 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         acl: port to Solaris 8 when copying from tmpfs to ufs
20938         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20939         error number.  Problem observed on Solaris 8 with latest
20940         coreutils, with "mv A B", where A is on a tmpfs file system and B
20941         is on a ufs file system.  This caused coreutils' mv/part-symlink
20942         test to fail.
20943
20944         tests: set fail=0 at start
20945         * tests/init.sh (setup_): Move fail=0 initialization here ...
20946         (mktempd_): ... from here, so that tests can rely on fail being
20947         set to 0 initially.  This fixes a problem in coreutils; see:
20948         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20949
20950 2010-12-18  Bruno Haible  <bruno@clisp.org>
20951
20952         memmem-simple: Stylistic changes.
20953         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20954         Fix preprocessor directive indentation.
20955
20956 2010-12-15  Pádraig Brady <P@draigBrady.com>
20957
20958         memmem, memmem-simple: reorganize and expand empty needle check
20959         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20960         functional checks to memmem-simple so that one has a fully functional
20961         memmem by using just this module.
20962         Restrict the performance only check to the memmem module.
20963         Also expand the empty needle check to ensure the correct
20964         pointer is returned, not just a non NULL pointer.
20965         * doc/glibc-functions/memmem.texi: Rearrange the portability
20966         documentation to correlate with the rearranged checks.
20967         Clarify exactly how the memmem and memmem-simple modules
20968         relate to each other.
20969
20970 2010-12-15  Pádraig Brady <P@draigBrady.com>
20971             Bruno Haible  <bruno@clisp.org>
20972
20973         Improve cross-compilation guesses for uClibc.
20974         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20975         that uClibc does not have the glibc bug.
20976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20977         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20978
20979 2010-12-14  Eric Blake  <eblake@redhat.com>
20980
20981         configmake: provide fallbacks for oldest supported autotools
20982         * m4/configmake.m4: New file.
20983         * modules/configmake (Files): Ship it.
20984         (configure.ac): Use it to guarantee fallbacks.
20985
20986 2010-12-13  Pádraig Brady <P@draigBrady.com>
20987
20988         read-file: Improve handling of large files
20989         * lib/read-file.c (fread_file): Minimize realloc()s
20990         for regular files, and better manage sizes around SIZE_MAX.
20991
20992 2010-12-13  Eric Blake  <eblake@redhat.com>
20993
20994         cloexec, fcntl: relax license
20995         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20996         consent from all contributors.
20997         * modules/fcntl (License): Likewise.
20998
20999 2010-12-10  Bruno Haible  <bruno@clisp.org>
21000
21001         Tests for module 'pipe-posix'.
21002         * modules/pipe-posix-tests: New file.
21003         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
21004
21005 2010-12-10  Bruno Haible  <bruno@clisp.org>
21006
21007         pipe-posix: Make it work in C++ mode.
21008         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
21009         (pipe): Use common idiom, not a macro definition.
21010         * lib/pipe.c: New file.
21011         * m4/pipe.m4: New file.
21012         * modules/pipe-posix (Description): Enhance.
21013         (Files): Add lib/pipe.c, m4/pipe.m4.
21014         (configure.ac): Invoke gl_FUNC_PIPE.
21015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
21016         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
21017         * tests/test-unistd-c++.cc: Check the signature of pipe.
21018
21019 2010-12-10  Bruno Haible  <bruno@clisp.org>
21020
21021         Rename module 'pipe' to 'spawn-pipe'.
21022         * modules/spawn-pipe: New file, renamed from modules/pipe.
21023         (Files, configure.ac, Makefile.am): Update.
21024         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
21025         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
21026         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
21027         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
21028         "spawn-pipe.h" instead of "pipe.h".
21029         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
21030         to gl_SPAWN_PIPE.
21031         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
21032         (Files, Makefile.am): Update.
21033         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
21034         Update.
21035         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
21036         Include "spawn-pipe.h" instead of "pipe.h".
21037         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
21038         * lib/javacomp.c: Likewise.
21039         * lib/javaversion.c: Likewise.
21040         * lib/pipe-filter-gi.c: Likewise.
21041         * lib/pipe-filter-ii.c: Likewise.
21042         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
21043         * modules/javacomp (Depends-on): Likewise.
21044         * modules/javaversion (Depends-on): Likewise.
21045         * modules/pipe-filter-gi (Depends-on): Likewise.
21046         * modules/pipe-filter-ii (Depends-on): Likewise.
21047         * MODULES.html.sh (Executing programs): Update.
21048         * NEWS: Mention the change.
21049
21050 2010-12-10  Eric Blake  <eblake@redhat.com>
21051
21052         pipe-posix: new module
21053         * modules/pipe-posix: New file.
21054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
21055         (gl_UNISTD_H): Check for declaration.
21056         * modules/unistd (Makefile.am): Substitute it.
21057         * lib/unistd.in.h (pipe): Provide it for mingw.
21058         * doc/posix-functions/pipe.texi (pipe): Update documentation.
21059         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
21060
21061 2010-12-07  Bruno Haible  <bruno@clisp.org>
21062
21063         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
21064         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
21065         u8_strcmp_gnu.
21066         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
21067
21068 2010-12-06  Bruno Haible  <bruno@clisp.org>
21069
21070         Update internal documentation.
21071         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
21072
21073 2010-12-04  Bruno Haible  <bruno@clisp.org>
21074
21075         Put more information about failed tests into the test return codes.
21076         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
21077         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
21078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21079         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21080         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21081         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21082         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21083         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21084         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
21085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
21087         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21088         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21089         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21090         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
21091         returns a bit mask.
21092         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21093         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
21094         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
21095         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21096         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21100         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21101         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21102         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21103         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21104         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21105         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21106         * m4/link.m4 (gl_FUNC_LINK): Likewise.
21107         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21108         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
21109         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
21110         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21111         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
21112         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21113         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21115         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21116         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21117         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21118         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21119         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21120         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21121         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
21122         gl_PRINTF_PRECISION): Likewise.
21123         * m4/regex.m4 (gl_REGEX): Likewise.
21124         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21126         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
21127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21130         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21131         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
21132         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21133         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21134         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21135         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21136         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21137         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21138         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21139         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21140         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21141         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21143         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
21144         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
21145         enumerated value.
21146         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
21147
21148 2010-12-04  Bruno Haible  <bruno@clisp.org>
21149
21150         Update for Solaris 11 2010-11.
21151         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
21152         Express, released in November 2010.
21153
21154 2010-12-04  Bruno Haible  <bruno@clisp.org>
21155
21156         nproc: Relax license.
21157         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
21158         and Paul Eggert.
21159         Requested by Ludovic Courtès <ludo@gnu.org>.
21160
21161 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21162
21163         utimecmp: fine-grained src to nearby coarse-grained dest
21164
21165         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
21166         and the source is on a file system with higher-resolution time
21167         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21168         not work, and the time stamps are close together, the algorithm to
21169         determine the exact resolution from the read-back mtime was buggy:
21170         it had a "!=" where it should have had an "==".  This bug has been
21171         in the code ever since it was introduced to gnulib.
21172         Problem reported by Dan Jacobson in
21173         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21174
21175 2010-11-30  Bruno Haible  <bruno@clisp.org>
21176
21177         strerror_r-posix: Fix autoconf test.
21178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
21179
21180 2010-11-28  Bruno Haible  <bruno@clisp.org>
21181             Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         Tests for module 'getdomainname'.
21184         * modules/getdomainname-tests: New file.
21185         * tests/test-getdomainname.c: New file, based on
21186         tests/test-gethostname.c.
21187
21188 2010-11-28  Bruno Haible  <bruno@clisp.org>
21189             Paul Eggert  <eggert@cs.ucla.edu>
21190
21191         getdomainname: Use the system function when possible.
21192         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
21193         (getdomainname): Replace if needed. Provide the declaration if it is
21194         missing. Don't use _GL_CXXALIAS_SYS_CAST.
21195         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
21196         (getdomainname): When the system has getdomainname, call the system
21197         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
21198         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21199         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
21200         found in libnsl. Look for the declaration also in <netdb.h>. Replace
21201         the function if its second argument is of type 'int' or if it is found
21202         in libnsl.
21203         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
21204         <sys/systeminfo.h> and sysinfo().
21205         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
21206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21207         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
21208         HAVE_GETDOMAINNAME.
21209         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
21210         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
21211         * doc/glibc-functions/getdomainname.texi: Document the problems with
21212         the getdomainname declaration.
21213
21214 2010-11-28  Bruno Haible  <bruno@clisp.org>
21215
21216         sys_socket: Ensure ss_family field on AIX.
21217         * lib/sys_socket.in.h (ss_family): New macro definition.
21218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
21219         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
21220         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21221         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21222         * modules/sys_socket (Makefile.am): Substitute
21223         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21224         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21225
21226 2010-11-27  Bruno Haible  <bruno@clisp.org>
21227
21228         readline: Improve configure output.
21229         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21230         "checking for readline..." result understandable.
21231
21232 2010-11-27  Bruno Haible  <bruno@clisp.org>
21233
21234         *printf-posix: Detect a bug on Solaris 10/x86.
21235         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21236         for floating-point output.
21237         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21238         directive.
21239         * tests/test-snprintf-posix.h (test_function): Likewise.
21240         * tests/test-sprintf-posix.h (test_function): Likewise.
21241         * tests/test-vasprintf-posix.c (test_function): Likewise.
21242         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21243         * doc/posix-functions/printf.texi: Likewise.
21244         * doc/posix-functions/snprintf.texi: Likewise.
21245         * doc/posix-functions/sprintf.texi: Likewise.
21246         * doc/posix-functions/vfprintf.texi: Likewise.
21247         * doc/posix-functions/vprintf.texi: Likewise.
21248         * doc/posix-functions/vsnprintf.texi: Likewise.
21249         * doc/posix-functions/vsprintf.texi: Likewise.
21250         * doc/glibc-functions/obstack_printf.texi: Likewise.
21251         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21252
21253 2010-11-27  Bruno Haible  <bruno@clisp.org>
21254
21255         Fix link error when module libunistring-optional is in use.
21256         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21257         * modules/striconveha-tests (Makefile.am): Likewise.
21258
21259 2010-11-27  Bruno Haible  <bruno@clisp.org>
21260
21261         regex: Mention link dependencies.
21262         * modules/regex (Link): New section.
21263         * modules/rpmatch (Link): Likewise.
21264         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21265
21266 2010-11-27  Bruno Haible  <bruno@clisp.org>
21267
21268         ftoastr: Fix compilation error on Solaris.
21269         * lib/ftoastr.c: Include <config.h>.
21270
21271 2010-11-27  Bruno Haible  <bruno@clisp.org>
21272
21273         getloadavg: Update documentation.
21274         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21275
21276 2010-11-27  Bruno Haible  <bruno@clisp.org>
21277
21278         sys_socket: Fix test whether the functions are declared.
21279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21280         not <sys/select.h>.
21281
21282 2010-11-27  Bruno Haible  <bruno@clisp.org>
21283
21284         getpass: Make sure to get system declaration on some platforms.
21285         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21286         gl_USE_SYSTEM_EXTENSIONS.
21287         * modules/getpass (Depends-on): Add extensions.
21288
21289 2010-11-26  Bruno Haible  <bruno@clisp.org>
21290
21291         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21292         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21293         'iconv' module is present.
21294         (ICONV_CONST): New macro.
21295         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21296         ICONV_CONST.
21297         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21298         set ICONV_CONST.
21299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21300         here.
21301         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21302         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21303         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21304         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21305         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21306         present.
21307
21308 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         ftoastr: comment fix
21311         * lib/ftoastr.c: "little" -> "little or no" in comment
21312
21313 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21314
21315         stdint: port to GCC 4.3 + OSX + Octave
21316         On this platform, stdint.h is buggy and defines int64_t to long
21317         long int.  The replacement defined it to long int, causing
21318         problems with C++ style name mangling.  Instead, trust the system
21319         definition if INT64_MAX is defined, and likewise for the unsigned
21320         variant.   Problem reported by Jarno Rajahalme in
21321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21322         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21323         and don't mess with int64_t and INT64_MAX in this case.
21324         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21325
21326 2010-11-24  Bruno Haible  <bruno@clisp.org>
21327
21328         doc: Corrections regarding MacOS X 10.4 and 10.5.
21329         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21330         MacOS X.
21331         Reported by Simon Josefsson.
21332
21333 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21334
21335         Uninstall ".bin" files installed by relocwrapper.
21336         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21337         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21338         unless it is already there.
21339
21340 2010-11-21  Bruno Haible  <bruno@clisp.org>
21341
21342         Update for NetBSD 5.0.
21343         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21344         NetBSD; the test fails on NetBSD 5.0.
21345         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21346         about NetBSD.
21347
21348 2010-11-21  Bruno Haible  <bruno@clisp.org>
21349
21350         Update for HP-UX 11.23 and HP-UX 11.31.
21351         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21352         HP-UX.
21353
21354 2010-11-21  Bruno Haible  <bruno@clisp.org>
21355
21356         Update for MacOS X 10.5.
21357         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21358         MacOS X; the test fails on MacOS X 10.5.8.
21359         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21360         about MacOS X.
21361
21362 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21363
21364         bootstrap: add bootstrap_sync option.
21365         See discussion at
21366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21368         * build-aux/bootstrap: Accept --bootstrap-sync to update
21369         bootstrap if it is not identical to the local gnulib's
21370         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21371         enable this by default.  Accept --no-bootstrap-sync to disable
21372         it.
21373
21374 2010-11-20  Bruno Haible  <bruno@clisp.org>
21375
21376         Ensure that <features.h> is included before __GLIBC__ is tested.
21377         * lib/printf-parse.h: Include <features.h>.
21378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21379         Reported by Mike Frysinger <vapier@gentoo.org>.
21380
21381         Ensure that <features.h> is included before __GLIBC__ is tested.
21382         * lib/wchar.in.h: Include <features.h>.
21383         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21384         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21385         Reported by Mike Frysinger <vapier@gentoo.org>.
21386
21387         Ensure that <features.h> is included before __GLIBC__ is tested.
21388         * lib/arpa_inet.in.h: Include <features.h>.
21389         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21390         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21391         Reported by Mike Frysinger <vapier@gentoo.org>.
21392
21393         Ensure that <features.h> is included before __GLIBC__ is tested.
21394         * build-aux/link-warning.h: Include <features.h>.
21395         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21396         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21397         Reported by Mike Frysinger <vapier@gentoo.org>.
21398
21399         Ensure that <features.h> is included before __GLIBC__ is tested.
21400         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21401         Reported by Mike Frysinger <vapier@gentoo.org>.
21402
21403 2010-11-20  Bruno Haible  <bruno@clisp.org>
21404
21405         memmem: Fix autoconf test.
21406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21407
21408 2010-11-20  Bruno Haible  <bruno@clisp.org>
21409
21410         Port to uClibc.
21411         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21412         * lib/fcntl.in.h: Likewise.
21413         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21414         * lib/mbrtowc.c (mbrtowc): Likewise.
21415         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21416         * lib/strerror_r.c: Likewise.
21417         * lib/unistr/u8-strnlen.c: Likewise.
21418         * lib/vasnprintf.c (decimal_point_char): Likewise.
21419         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21420         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21422         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21423         * tests/test-sigaction.c (handler, main): Likewise.
21424         * lib/freading.h: Treat uClibc like a non-glibc platform.
21425         * lib/freading.c: Likewise.
21426         * lib/gettext.h: Likewise.
21427         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21428         Likewise.
21429         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21430         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21431         * lib/propername.c (proper_name_utf8): Likewise.
21432         * lib/spawn.in.h: Likewise.
21433         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21434         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21435         mem_cd_iconveh_internal): Likewise.
21436         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21437         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21438         strstr, strcasestr): Likewise.
21439         * lib/unicodeio.c (unicode_to_mb): Likewise.
21440         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21441         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21442         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21443         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21444         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21445         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21446         * lib/unistr/u8-stpncpy.c: Likewise.
21447         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21448         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21450         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21451         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21456         Likewise.
21457         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21458         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21459         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21462         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21464         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21465         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21466         * tests/test-striconveha.c (main): Likewise.
21467         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21468         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21469         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21470         * doc/posix-functions/getline.texi: Likewise.
21471         Reported by Mike Frysinger <vapier@gentoo.org>.
21472
21473 2010-11-20  Bruno Haible  <bruno@clisp.org>
21474
21475         nproc: Fix condition.
21476         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21477         HAVE_PTHREAD_AFFINITY_NP.
21478
21479 2010-11-20  Bruno Haible  <bruno@clisp.org>
21480
21481         Fix a comment.
21482         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21483
21484 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21485
21486         ftoastr: don't assume snprintf
21487         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21488         Implement a subset of snprintf here, by using sprintf safely.
21489         * modules/ftoastr (Depends-on): Remove snprintf.
21490
21491 2010-11-19  Jim Meyering  <meyering@redhat.com>
21492
21493         test-rename.h: fix compilation failure
21494         * tests/test-rename.h (test_rename): Add omitted "}".
21495
21496 2010-11-17  Jim Meyering  <meyering@redhat.com>
21497
21498         maint.mk: add a URL discussing the no-@acronym policy
21499         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21500
21501 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         ftoastr: depend on snprintf, improve comments
21504         * lib/ftoastr.c: Also mention Loitsch's draft.
21505         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21506         needed in the current implementation, but it might simplify
21507         speeding up the code later.
21508         * modules/ftoastr: Depend on snprintf; this improves portability.
21509         Suggested by Bruno Haible in the same email.
21510
21511         ftoastr: port to hosts lacking strtof and strtold
21512         Problem reported by Bruno Haible in
21513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21514         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21515         environment and strtold (and presumably strtof) are not available.
21516         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21517         (configure.ac): Require gl_C99_STRTOLD.
21518
21519 2010-11-18  Bruno Haible  <bruno@clisp.org>
21520
21521         c-strtold: Avoid link error on AIX 7.
21522         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21523         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21524         (gl_C_STRTOLD): Test whether strtold_l exists.
21525         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21526
21527 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21528
21529         intprops: new macro INT_BITS_STRLEN_BOUND
21530         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21531         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21532         not exposed.  Also, it uses a slightly tighter bound than before;
21533         though this makes no practical difference, we might as well be as
21534         tight as we easily can.
21535
21536         ftoastr: new module, for lossless conversion of floats to short strings
21537         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21538         * modules/ftoastr: New files.
21539
21540 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21541
21542         bootstrap: port to Solaris sed
21543         * build-aux/bootstrap (get_version): Port to Solaris sed.
21544         See Ralf Wildenhues's note in
21545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21546
21547 2010-11-14  Jim Meyering  <meyering@redhat.com>
21548
21549         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21550         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21551         and move definition closer to sole use.
21552
21553 2010-11-13  Jim Meyering  <meyering@redhat.com>
21554
21555         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21556         Now we require at least autoconf-2.59, which means the work-around
21557         is no longer needed.
21558         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21559         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21560         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21561         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21562         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21563
21564 2010-11-13  Bruno Haible  <bruno@clisp.org>
21565
21566         rename, renameat: Avoid test failures at NFS mounted locations.
21567         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21568         functions.
21569         (test_rename): Use assert_nonexistent.
21570         * tests/test-rename.c: Include <dirent.h>.
21571         * tests/test-renameat.c: Likewise.
21572         Reported by Gary V. Vaughan <gary@gnu.org>.
21573
21574         rename, renameat: Document Linux bug with NFS
21575         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21576         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21577         * doc/posix-functions/renameat.texi: Likewise.
21578         Suggested by Eric Blake.
21579
21580 2010-11-13  Bruno Haible  <bruno@clisp.org>
21581
21582         rename test: Add comments.
21583         * tests/test-rename.h (test_rename): Add structure and comments.
21584
21585 2010-11-13  Eric Blake  <eblake@redhat.com>
21586
21587         maintainer-makefile: cover a few more files
21588         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21589         scripts generated within C files, for libvirt.
21590
21591 2010-11-13  Bruno Haible  <bruno@clisp.org>
21592
21593         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21594         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21595         character, return the number of bytes that belong together, not always
21596         1.
21597         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21598         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21599         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21600         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21601         number of bytes of an invalid character.
21602         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21603         (main): Invoke it.
21604         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21605         results.
21606         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21607         malformed byte sequences.
21608         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21609         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21610         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21611         Reported by Ben Pfaff and Paolo Bonzini.
21612
21613 2010-11-13  Bruno Haible  <bruno@clisp.org>
21614
21615         openat: Work around glibc bug with fchownat() and empty file names.
21616         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21617         (gl_FUNC_FCHOWNAT): Invoke it.
21618         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21619         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21620         Reported by Gary V. Vaughan <gary@gnu.org>.
21621
21622 2010-11-13  Bruno Haible  <bruno@clisp.org>
21623
21624         openat: Ensure autoconf macro ordering.
21625         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21626         gl_USE_SYSTEM_EXTENSIONS.
21627         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21628
21629 2010-11-13  Bruno Haible  <bruno@clisp.org>
21630
21631         Update comments.
21632         * lib/unistr/u8-check.c: Update file name in comments.
21633         * lib/unistr/u8-mblen.c: Likewise.
21634         * lib/unistr/u8-prev.c: Likewise.
21635         * lib/unistr/u8-strmblen.c: Likewise.
21636         * lib/unistr/u8-strmbtouc.c: Likewise.
21637
21638 2010-11-13  Jim Meyering  <meyering@redhat.com>
21639
21640         tests: avoid test failure on Solaris 10 due to lack of PATH export
21641         * tests/test-update-copyright.sh: Don't forget to export PATH.
21642
21643         init.sh: ensure that IFS is defined, just in case...
21644         * tests/init.sh (setup_): Ensure that IFS is defined,
21645         so that saving and restoring it works as expected.  This
21646         appears to be useful at least for an old version of dash
21647         from a long time ago (RH 6).  See here for details:
21648         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21649
21650         maint.mk: tighten "test a == b" check
21651         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21652         test to files that contain something like #!/bin/sh.
21653         Without this, coreutils would get two false positives in
21654         the comments of C source files.
21655
21656 2010-11-12  Eric Blake  <eblake@redhat.com>
21657
21658         bootstrap: fix typo in previous attempt
21659         * build-aux/bootstrap (buildreq): Correct the grouping.
21660         Reported by Paul Eggert.
21661
21662         maintainer-makefile: prohibit test x == x
21663         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21664         Based on a report by Matthias Bolte.
21665
21666         bootstrap: allow FreeBSD gzip
21667         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21668         which has no '.' and goes to stderr.
21669         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21670         Reported by Matthias Bolte.
21671
21672         maintainer-makefile: check for i18n setup
21673         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21674         will likely work.
21675
21676 2010-11-12  Bruno Haible  <bruno@clisp.org>
21677
21678         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21679         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21680         * lib/nanosleep.c (nanosleep): Likewise.
21681
21682 2010-11-11  Bruno Haible  <bruno@clisp.org>
21683
21684         fcntl-h: Fix for use of C++ on glibc systems.
21685         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21686         also on glibc systems in C++ mode.
21687         Reported by Gary V. Vaughan <gary@gnu.org>.
21688
21689 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21690
21691         mknod: avoid false failure with dash
21692         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21693
21694 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         unlink: Fix "is it should" typo in diagnostic.
21697         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21699
21700 2010-11-11  Bruno Haible  <bruno@clisp.org>
21701
21702         Tests for module 'strerror_r-posix'.
21703         * modules/strerror_r-posix-tests: New file.
21704         * tests/test-strerror_r.c: New file.
21705         * tests/test-string-c++.cc: Check the signature of strerror_r.
21706
21707         New module 'strerror_r-posix'.
21708         * lib/string.in.h (strerror_r): New declaration.
21709         * lib/strerror_r.c: New file.
21710         * m4/strerror_r.m4: New file.
21711         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21712         of strerror_r.
21713         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21714         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21715         * modules/strerror_r-posix: New file.
21716         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21717         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21718         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21719         portability problems.
21720
21721 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21722
21723         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21724         line is also considered for output. Quoted function name in shell
21725         command, so temporary files for functions like MyClass::operator()
21726         are removed correctly without errors.
21727
21728 2010-11-09  Bruno Haible  <bruno@clisp.org>
21729
21730         * doc/posix-functions/strerror.texi: List more failing platforms.
21731
21732         * doc/posix-functions/strerror.texi: Add a comment.
21733
21734 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21735
21736         fdopendir: fix bug on MacOS X when low on file descriptors
21737
21738         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21739         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21740         All callers changed.
21741         (fdopendir): Invoke save_cwd at the top level, not after using
21742         multiple dup() calls to use up file descriptors.  Then retry
21743         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21744         less than the maximum number of open file descriptors, because
21745         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21746         on Mac OS X 10.6.4 for tar 1.24
21747         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21748         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21749         and for tar 1.25
21750         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21751
21752 2010-11-07  Bruno Haible  <bruno@clisp.org>
21753
21754         vasnprintf: Support I flag on glibc systems.
21755         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21756         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21757         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21758         snprintf function.
21759         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21760         glibc systems.
21761         * tests/test-vasnprintf-posix3.c: New file.
21762         * modules/vasnprintf-posix-tests (Files): Add it.
21763         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21764
21765 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21766
21767         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21768         * MODULES.html.sh: For compiler warnings, use name
21769         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21770
21771 2010-11-05  Eric Blake  <eblake@redhat.com>
21772
21773         ceil, floor: avoid spurious failure with icc
21774         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21775         [denormals-as-zero] when optimizing without -mieee-fp option.
21776         * tests/test-floorf2.c (floorf_reference): Likewise.
21777         * tests/test-ceilf1.c (dummy): New function.
21778         (main): Use it to outsmart icc's optimization.
21779         * tests/test-floorf1.c (dummy, main): Likewise.
21780
21781         tests: require working signbit
21782         * modules/ceilf-tests (Depends-on): Add signbit.
21783         * modules/ceill-tests (Depends-on): Likewise.
21784         * modules/floorf-tests (Depends-on): Likewise.
21785         * modules/floorl-tests (Depends-on): Likewise.
21786         * modules/round-tests (Depends-on): Likewise.
21787         * modules/roundf-tests (Depends-on): Likewise.
21788         * modules/roundl-tests (Depends-on): Likewise.
21789         * modules/trunc-tests (Depends-on): Likewise.
21790         * modules/truncf-tests (Depends-on): Likewise.
21791         * modules/truncl-tests (Depends-on): Likewise.
21792
21793         strtod: work around icc bug
21794         * lib/strtod.c (minus_zero): Define to working value.
21795         (strtod): Use it to avoid icc bug.
21796
21797         copysign: enhance tests
21798         * modules/copysign-tests (Files): Add minus-zero.h.
21799         * tests/test-copysign.c (main): Also test zeros.
21800
21801 2010-11-04  Eric Blake  <eblake@redhat.com>
21802
21803         ceil, floor, round, trunc: enhance tests of -0
21804         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21805         * tests/test-ceill.c (main): Likewise.
21806         * tests/test-floorf1.c (main): Likewise.
21807         * tests/test-floorl.c (main): Likewise.
21808         * tests/test-round1.c (main): Likewise.
21809         * tests/test-roundf1.c (main): Likewise.
21810         * tests/test-roundl.c (main): Likewise.
21811         * tests/test-trunc1.c (main): Likewise.
21812         * tests/test-truncf1.c (main): Likewise.
21813         * tests/test-truncl.c (main): Likewise.
21814
21815 2010-11-04  Eric Blake  <eblake@redhat.com>
21816
21817         frexp, tests: work around ICC bug with -zero
21818         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21819         works with more compilers.
21820         * tests/minus-zero.h: New file.
21821         * modules/ceilf-tests (Files): Include it.
21822         * modules/ceill-tests (Files): Likewise.
21823         * modules/floorf-tests (Files): Likewise.
21824         * modules/floorl-tests (Files): Likewise.
21825         * modules/frexp-nolibm-tests (Files): Likewise.
21826         * modules/frexp-tests (Files): Likewise.
21827         * modules/frexpl-nolibm-tests (Files): Likewise.
21828         * modules/frexpl-tests (Files): Likewise.
21829         * modules/isnan-tests (Files): Likewise.
21830         * modules/isnand-nolibm-tests (Files): Likewise.
21831         * modules/isnand-tests (Files): Likewise.
21832         * modules/isnanf-nolibm-tests (Files): Likewise.
21833         * modules/isnanf-tests (Files): Likewise.
21834         * modules/isnanl-nolibm-tests (Files): Likewise.
21835         * modules/isnanl-tests (Files): Likewise.
21836         * modules/round-tests (Files): Likewise.
21837         * modules/roundf-tests (Files): Likewise.
21838         * modules/roundl-tests (Files): Likewise.
21839         * modules/ldexpl-tests (Files): Likewise.
21840         * modules/signbit-tests (Files): Likewise.
21841         * modules/snprintf-posix-tests (Files): Likewise.
21842         * modules/sprintf-posix-tests (Files): Likewise.
21843         * modules/strtod-tests (Files): Likewise.
21844         * modules/trunc-tests (Files): Likewise.
21845         * modules/truncf-tests (Files): Likewise.
21846         * modules/truncl-tests (Files): Likewise.
21847         * modules/vsnprintf-posix-tests (Files): Likewise.
21848         * modules/vsprintf-posix-tests (Files): Likewise.
21849         * modules/vasnprintf-posix-tests (Files): Likewise.
21850         * modules/vasprintf-posix-tests (Files): Likewise.
21851         * tests/test-ceilf1.c (main): Use it.
21852         * tests/test-ceill.c (main): Likewise.
21853         * tests/test-floorf1.c (main): Likewise.
21854         * tests/test-floorl.c (main): Likewise.
21855         * tests/test-frexp.c (main): Likewise.
21856         * tests/test-frexpl.c (main): Likewise.
21857         * tests/test-isnan.c (main): Likewise.
21858         * tests/test-isnand.h (main): Likewise.
21859         * tests/test-isnanf.h (main): Likewise.
21860         * tests/test-isnanl.h (main): Likewise.
21861         * tests/test-ldexpl.c (main): Likewise.
21862         * tests/test-round.c (main): Likewise.
21863         * tests/test-roundf.c (main): Likewise.
21864         * tests/test-roundl.c (main): Likewise.
21865         * tests/test-signbit.c (test_signbitf, test_signbitd)
21866         (test_signbitl): Likewise.
21867         * tests/test-snprintf-posix.h (test_function): Likewise.
21868         * tests/test-sprintf-posix.h (test_function): Likewise.
21869         * tests/test-strtod.c (main): Likewise.
21870         * tests/test-trunc1.c (main): Likewise.
21871         * tests/test-truncf1.c (main): Likewise.
21872         * tests/test-truncl.c (main): Likewise.
21873
21874         isnanl: work around icc bug
21875         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21876
21877 2010-11-03  Eric Blake  <eblake@redhat.com>
21878
21879         tests: fix compiler warnings
21880         * tests/test-getopt.h (test_getopt): Fix condition.
21881         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21882         * tests/test-pipe2.c (main): Likewise.
21883         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21884
21885         utimens: fix broken m4 test
21886         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21887
21888 2010-10-28  Bruno Haible  <bruno@clisp.org>
21889
21890         posix_spawn*, getdtablesize: Relax license.
21891         * modules/posix_spawn (License): Change to LGPLv2+.
21892         * modules/posix_spawnp (License): Likewise.
21893         * modules/posix_spawn-internal (License): Likewise.
21894         * modules/posix_spawnattr_init (License): Likewise.
21895         * modules/posix_spawnattr_getflags (License): Likewise.
21896         * modules/posix_spawnattr_setflags (License): Likewise.
21897         * modules/posix_spawnattr_getpgroup (License): Likewise.
21898         * modules/posix_spawnattr_setpgroup (License): Likewise.
21899         * modules/posix_spawnattr_getschedparam (License): Likewise.
21900         * modules/posix_spawnattr_setschedparam (License): Likewise.
21901         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21902         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21903         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21904         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21905         * modules/posix_spawnattr_getsigmask (License): Likewise.
21906         * modules/posix_spawnattr_setsigmask (License): Likewise.
21907         * modules/posix_spawnattr_destroy (License): Likewise.
21908         * modules/posix_spawn_file_actions_init (License): Likewise.
21909         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21910         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21911         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21912         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21913         * modules/getdtablesize (License): Likewise.
21914         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21915
21916 2010-10-26  Bruno Haible  <bruno@clisp.org>
21917
21918         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21919         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21920         Cygwin and mingw.
21921         Suggested by Eric Blake.
21922
21923 2010-10-26  Bruno Haible  <bruno@clisp.org>
21924
21925         stdio: Work around compilation error due to renameat() on Solaris 10.
21926         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21927         * lib/renameat.c: Don't include <unistd.h> here.
21928         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21929         Reported by Paul Eggert and Eric Blake.
21930
21931 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21932
21933         renameat: port to Solaris 10, which declares renameat in unistd.h
21934
21935         * lib/renameat.c: Include unistd.h before stdio.h, because
21936         Solaris 10 declares renameat in unistd.h.  Problem encountered
21937         when building GNU tar 1.24 on Solaris 10.
21938
21939 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21940
21941         fdopendir: fix C89 compilation
21942         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21943         compilers.
21944
21945 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         inttostr: simplify by removing unnecessary redundancy
21948         * lib/anytostr.c: Don't include verify.h.
21949         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21950         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21951         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21952         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21953         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21954         Likewise.
21955         * modules/inttostr (Depends-on): Remove 'verify'.
21956
21957 2010-10-23  Bruno Haible  <bruno@clisp.org>
21958
21959         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21960         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21961         Reported by Eric Blake.
21962
21963 2010-10-23  Bruno Haible  <bruno@clisp.org>
21964
21965         Tests: Fix LOCALE_JA on MirBSD 10.
21966         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21967         to an UTF-8 locale.
21968         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21969         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21970         Reported by Eric Blake.
21971
21972 2010-10-21  Bruno Haible  <bruno@clisp.org>
21973
21974         nl_langinfo test: Avoid test failure on NetBSD 5.
21975         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21976         Reported by Eric Blake.
21977
21978 2010-10-21  Eric Blake  <eblake@redhat.com>
21979
21980         c-stack: work around libsigsegv 2.8 bug
21981         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21982         overflow on at least PowerPC64.
21983
21984 2010-10-17  Bruno Haible  <bruno@clisp.org>
21985
21986         userspec: Drop redundant file.
21987         * modules/userspec (Files): Remove lib/inttostr.h.
21988
21989 2010-10-17  Bruno Haible  <bruno@clisp.org>
21990
21991         nl_langinfo tests: Silence some warnings.
21992         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21993         Reported by Jim Meyering.
21994
21995 2010-10-17  Bruno Haible  <bruno@clisp.org>
21996
21997         Make use of GCC's attribute __alloc_size__.
21998         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21999         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
22000         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
22001         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
22002         __alloc_size__.
22003         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22004         Suggested by Jim Meyering.
22005
22006 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
22007
22008         bootstrap: anchor .gitignore entries.
22009         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
22010         with...
22011         (insert_vc_ignore): ... this new function, which prepends `/' to
22012         all .gitignore entries before passing them to
22013         insert_sorted_if_absent.
22014
22015 2010-10-16  Bruno Haible  <bruno@clisp.org>
22016
22017         nextafter: Fix configure check.
22018         * modules/nextafter (configure.ac): Correct expected prototype.
22019
22020 2010-10-16  Bruno Haible  <bruno@clisp.org>
22021
22022         termios: Update documentation.
22023         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
22024
22025 2010-10-16  Bruno Haible  <bruno@clisp.org>
22026
22027         tests: Make them compile with TinyCC.
22028         * tests/test-strstr.c (main): Remove parentheses around array
22029         initializer.
22030
22031 2010-10-15  Eric Blake  <eblake@redhat.com>
22032
22033         ignore-value: make header idempotent
22034         * lib/ignore-value.h: Add double-inclusion guards.
22035         Reported by Stefan Berger.
22036
22037 2010-10-15  Jim Meyering  <meyering@redhat.com>
22038
22039         GNUmakefile: handle "stable" target, not "major"
22040         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
22041         lists in maint.mk and announce-gen.  Without this, "make stable"
22042         would fail to ensure that $(VERSION) is up to date.
22043
22044 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
22045
22046         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
22047         & co.
22048
22049 2010-10-14  Bruno Haible  <bruno@clisp.org>
22050
22051         vasnprintf: Don't set errno to 0.
22052         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
22053         block that sets it to 0.
22054         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22055
22056 2010-10-14  Bruno Haible  <bruno@clisp.org>
22057
22058         socketlib: Fix.
22059         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
22060         gl_PREREQ_SYS_H_WINSOCK2.
22061         Reported by Ian Beckwith <ianb@erislabs.net>.
22062
22063 2010-10-13  Jim Meyering  <meyering@redhat.com>
22064
22065         test-select-stdin.c: avoid warn_unused_result warnings
22066         * tests/test-select-stdin.c: Include "macros.h".
22067         ASSERT that read and fflush succeed.
22068
22069 2010-10-13  Jim Meyering  <meyering@redhat.com>
22070
22071         git-version-gen: do require git-VC'd files in cwd
22072         * build-aux/git-version-gen: Reject a git version string
22073         if there are no commits associated with the current directory.
22074         This avoids an unlikely false-positive (unrelated dir whose parent
22075         repository also contains a tag matching v*), as pointed out
22076         by Giuseppe Scrivano in
22077         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
22078
22079 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22080
22081         argv-iter: omit nonconforming declaration
22082         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
22083         enum arg_iter_err declaration, which doesn't conform to C99.
22084         Solaris 10 cc warns about this.
22085
22086 2010-10-13  Eric Blake  <eblake@redhat.com>
22087
22088         termios: fix compilation on mingw
22089         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
22090         (gl_TERMIOS_H): Adjust it on mingw.
22091         * modules/termios (Makefile.am): Substitute new key.
22092         * lib/termios.in.h (includes): Make include_next conditional.
22093         * doc/posix-headers/termios.texi (termios.h): Update
22094         documentation.
22095         Reported by Daniel P. Berrange.
22096
22097 2010-10-13  Jim Meyering  <meyering@redhat.com>
22098
22099         git-version-gen: don't require that .git/ be in the current dir
22100         * build-aux/git-version-gen: Adjust this script so that it works
22101         when run from any working directory beneath the top-level .git/-
22102         containing directory.  Inspired by a patch from Giuseppe Scrivano,
22103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
22104
22105         test-select: avoid warn_unused_result warnings
22106         * tests/test-select.c: Include "macros.h".
22107         ASSERT that each call to read, write, and pipe succeeds.
22108         While not technically required, also check each "close".
22109         * modules/select-tests (Files): Add tests/macros.h.
22110
22111         test-symlinkat: remove declaration of unused local
22112         * tests/test-symlinkat.c (main): Remove unused local, "buf".
22113
22114         test-inttostr: avoid shadowing warnings
22115         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
22116         and use malloc rather than the stack for the same reason as
22117         mentioned in the comment justifying the other allocation.
22118
22119 2010-10-11  Bruno Haible  <bruno@clisp.org>
22120
22121         stdlib: Allow multiple gnulib generated replacements to coexist.
22122         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
22123         Reported by Sam Steingold <sds@gnu.org>.
22124
22125 2010-10-11  Jim Meyering  <meyering@redhat.com>
22126
22127         fix a documentation typo
22128         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
22129
22130 2010-10-11  Eric Blake  <eblake@redhat.com>
22131
22132         futimens: work around Solaris 11 bug
22133         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
22134         * tests/test-futimens.h (test_futimens): Enhance, rather than
22135         weaken test.
22136         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22137
22138 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22139
22140         Indentation.
22141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
22142         higher-level operators more to the left.
22143
22144 2010-10-11  Jim Meyering  <meyering@redhat.com>
22145
22146         test-futimens: avoid unwarranted test failure on Solaris 5.11
22147         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
22148         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
22149         because it tries to dereference the NULL name argument.
22150
22151 2010-10-11  Bruno Haible  <bruno@clisp.org>
22152
22153         Indentation.
22154         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
22155         indentation.
22156
22157 2010-10-11  Jim Meyering  <meyering@redhat.com>
22158
22159         spawn.in.h: make indentation consistent with parentheses
22160         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
22161         Make indentation consistent with parentheses.
22162
22163 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
22164
22165         Fix mismatched parens in previous commit
22166         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
22167         parens.
22168
22169 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22170
22171         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
22172
22173         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
22174         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
22175         * lib/malloca.c: Include "verify.h".
22176         (verify1): Remove, replacing with a verify call.
22177         * lib/relocwrapper.c (verify1): Likewise.
22178         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
22179         Likewise.
22180         * modules/malloca (Depends-on): Add 'verify'.
22181         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
22182         * modules/vasnprintf (Depends-on): Add 'verify'.
22183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22184         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22185         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22186         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22187         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22188         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22189         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22190
22191         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
22192
22193         Formerly the style was sometimes 2*X - 1, because the C standard
22194         was wrongly thought to disallow ?: in integral constant expressions.
22195         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
22196         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
22197         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22198         * lib/stdint.in.h (_verify_intmax_size): Likewise.
22199         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
22200         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
22201         verify that time_t cannot be floating.
22202
22203 2010-10-08  Eric Blake  <eblake@redhat.com>
22204
22205         time: enforce recent POSIX ruling that time_t is integral
22206         * lib/time.in.h (__time_t_must_be_integral): Detect any
22207         problematic systems, allowing the rest of gnulib to assume POSIX.
22208
22209 2010-10-08  Jim Meyering  <meyering@redhat.com>
22210
22211         fdopendir: fix a bug on systems lacking openat and /proc support
22212         OpenBSD 4.7 is one such system.  The most noticeable effect was
22213         failure of any application making nontrivial use of fts: rm, du,
22214         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
22215           ./rm: traversal failed: `a': Bad file descriptor
22216         Debugging that, you see that even though FD 6 was closed just
22217         prior to the opendir call in fd_clone_opendir, its resulting
22218         dir->dd_fd was 8, rather than the expected value of 6:
22219
22220         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
22221         93                close (fd);
22222         (gdb) n
22223         94                dir = fd_clone_opendir (dupfd);
22224         (gdb) n
22225         95                saved_errno = errno;
22226         (gdb) p dir->dd_fd
22227         $11 = 8
22228
22229         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22230         The problem is that on OpenBSD, fd_clone_opendir has to resort
22231         to using the old-style save/restore CWD mechanism, due to its
22232         lack of openat/proc support, and *that* would steal the FD (6)
22233         that opendir was supposed to use.
22234
22235         The fix is to squirrel away the desired FD so that save_cwd uses a
22236         different one, and then free the dest FD right before calling opendir.
22237         That guarantees opendir will use the required file descriptor.
22238
22239         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22240
22241 2010-10-08  Bruno Haible  <bruno@clisp.org>
22242
22243         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22244         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22245
22246 2010-10-08  Bruno Haible  <bruno@clisp.org>
22247
22248         nanosleep: Make replacement POSIX compliant.
22249         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22250         is out of range.
22251         Reported by Jim Meyering.
22252
22253 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         bootstrap: add hook for altering gnulib.mk, for Bison
22256         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22257         the Bison bootstrapping process can rewrite file names and variables
22258         in this file before later parts of 'bootstrap' use the file.
22259         Bison wants to include lib/gnulib.mk from the top-level makefile,
22260         so it needs the file names in this file to be relative to the top
22261         level, not relative to lib; plus it needs variable names to be
22262         rewritten.
22263         (slurp): Use the new function.
22264
22265         bootstrap: reformat for readability
22266         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22267
22268 2010-10-08  Eric Blake  <eblake@redhat.com>
22269
22270         docs: update cygwin progress
22271         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22272         1.7.7.
22273         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22274         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22275         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22276         * doc/posix-functions/carg.texi (carg): Likewise.
22277         * doc/posix-functions/cargf.texi (cargf): Likewise.
22278         * doc/posix-functions/casin.texi (casin): Likewise.
22279         * doc/posix-functions/casinf.texi (casinf): Likewise.
22280         * doc/posix-functions/casinh.texi (casinh): Likewise.
22281         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22282         * doc/posix-functions/catan.texi (catan): Likewise.
22283         * doc/posix-functions/catanf.texi (catanf): Likewise.
22284         * doc/posix-functions/catanh.texi (catanh): Likewise.
22285         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22286         * doc/posix-functions/ccos.texi (ccos): Likewise.
22287         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22288         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22289         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22290         * doc/posix-functions/cexp.texi (cexp): Likewise.
22291         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22292         * doc/posix-functions/cimag.texi (cimag): Likewise.
22293         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22294         * doc/posix-functions/clog.texi (clog): Likewise.
22295         * doc/posix-functions/clogf.texi (clogf): Likewise.
22296         * doc/posix-functions/conj.texi (conj): Likewise.
22297         * doc/posix-functions/conjf.texi (conjf): Likewise.
22298         * doc/posix-functions/cpow.texi (cpow): Likewise.
22299         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22300         * doc/posix-functions/cproj.texi (cproj): Likewise.
22301         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22302         * doc/posix-functions/creal.texi (creal): Likewise.
22303         * doc/posix-functions/crealf.texi (crealf): Likewise.
22304         * doc/posix-functions/csin.texi (csin): Likewise.
22305         * doc/posix-functions/csinf.texi (csinf): Likewise.
22306         * doc/posix-functions/csinh.texi (csinh): Likewise.
22307         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22308         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22309         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22310         * doc/posix-functions/ctan.texi (ctan): Likewise.
22311         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22312         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22313         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22314         * doc/posix-headers/complex.texi (complex.h): Likewise.
22315
22316 2010-10-07  Jim Meyering  <meyering@redhat.com>
22317
22318         parse-datetime: avoid compilation failure on OpenBSD 4.7
22319         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22320         This works around a compilation failure on OpenBSD 4.7:
22321         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22322
22323 2010-10-07  Eric Blake  <eblake@redhat.com>
22324
22325         docs: update cygwin progress
22326         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22327         1.7.6.
22328         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22329         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22330         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22331         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22332         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22333         Likewise.
22334         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22335         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22336         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22337         Likewise.
22338         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22339         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22340         Likewise.
22341         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22342         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22343         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22344         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22345         Likewise.
22346         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22347         Likewise.
22348         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22349
22350         docs: update parse-datetime history
22351         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22352         documentation of this function's history and alternatives.
22353
22354         cygwin: use more robust version check
22355         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22356         exclude an eventual cygwin 1.9.1.
22357         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22359         (gl_FUNC_STRCASESTR): Likewise.
22360         Reported by Bruno Haible.
22361
22362 2010-10-06  Bruno Haible  <bruno@clisp.org>
22363
22364         string, sys_select: Avoid #including large headers unless necessary.
22365         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22366         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22367         OSF/1, BeOS, Haiku.
22368         Reported by Jim Meyering.
22369
22370 2010-10-05  Eric Blake  <eblake@redhat.com>
22371
22372         memmem, strstr, strcasestr: fix bug with long periodic needle
22373         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22374         periodic needle having false positive.
22375         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22376         and cygwin 1.7.7.
22377         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22379         (gl_FUNC_STRCASESTR): Likewise.
22380         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22381         * tests/test-memmem.c (main): Expose the bug.
22382         * tests/test-strcasestr.c (main): Likewise.
22383         * tests/test-strstr.c (main): Likewise.
22384         * tests/test-c-strcasestr.c (main): Likewise.
22385         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22386         * doc/posix-functions/strstr.texi (strstr): Likewise.
22387         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22388         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22389
22390 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22391
22392         parse-datetime: do some more renaming
22393         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22394         parse_datetime, not get_date.  Mention the renaming.
22395         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22396         in comments.
22397         * m4/bison.m4: Likewise.
22398
22399 2010-10-05  Eric Blake  <eblake@redhat.com>
22400
22401         parse-datetime: better name than get_date
22402         * NEWS: Reword the deprecation notice.
22403         * modules/get_date: Rename to modules/parse-datetime.
22404         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22405         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22406         * lib/get_date.y: Rename to lib/parse-datetime.y.
22407         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22408         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22409         * doc/getdate.texi: Provide fallback wrapper.
22410         * lib/getdate.h: Move guts, and wrap...
22411         * lib/parse-datetime.h: ...new file.
22412         * lib/parse-datetime.y (get_date): Rename...
22413         (parse_datetime): ...to this.
22414         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22415         (gl_PARSE_DATETIME): ...to this.
22416         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22417         documentation.
22418         * modules/getdate (Files): Provide fallback docs and header.
22419         (Notice, Depends-on): Update references.
22420         * tests/test-parse-datetime.c: Likewise.
22421         * DEPENDENCIES: Likewise.
22422         * MODULES.html.sh (Date and time <time.h>): Likewise.
22423         * doc/parse-datetime.texi (Date input formats)
22424         (Authors of parse_datetime): Likewise.
22425         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22426         (Include): Likewise.
22427         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22428         * gnulib-tool: Likewise.
22429         * m4/bison.m4 (gl_BISON): Likewise.
22430         Suggested by Bruno Haible.
22431
22432 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22433
22434         more ports to Solaris tr, which needs [] around ranges
22435         * gnulib-tool: Solaris tr needs [] around ranges.
22436         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22437         * tests/test-pipe-filter-gi1.c (main): Likewise.
22438         * tests/test-pipe-filter-ii1.c (main): Likewise.
22439
22440 2010-10-05  Eric Blake  <eblake@redhat.com>
22441
22442         bootstrap: fix Solaris regression
22443         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22444         around ranges.
22445         Reported by Pádraig Brady.
22446
22447         bootstrap: work with pkg-config
22448         * build-aux/bootstrap (check_versions): Also transliterate - in
22449         prerequisite name.
22450         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22451         prerequisites that were already found, to avoid confusion.
22452         Reported by Justin Clift.
22453
22454         faccessat: remove unused wrappers
22455         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22456         presence of these wrappers dragged in -lgen on Solaris.
22457         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22458
22459 2010-10-05  Jim Meyering  <meyering@redhat.com>
22460
22461         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22462         * Makefile (sc_pragma_columns): New syntax-check rule.
22463
22464 2010-10-04  Bruno Haible  <bruno@clisp.org>
22465
22466         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22467         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22468         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22469         Reported by Bruce Korb and Eric Blake.
22470
22471 2010-10-04  Bruno Haible  <bruno@clisp.org>
22472
22473         threadlib: Make option --with-libpth-prefix work.
22474         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22475         use $LIBPTH, not just -lpth.
22476
22477 2010-10-04  Bruno Haible  <bruno@clisp.org>
22478
22479         Avoid line length limitation from HP NonStop system header files.
22480         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22481         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22482         * lib/ctype.in.h: Likewise.
22483         * lib/dirent.in.h: Likewise.
22484         * lib/errno.in.h: Likewise.
22485         * lib/fcntl.in.h: Likewise.
22486         * lib/float.in.h: Likewise.
22487         * lib/getopt.in.h: Likewise.
22488         * lib/iconv.in.h: Likewise.
22489         * lib/inttypes.in.h: Likewise.
22490         * lib/langinfo.in.h: Likewise.
22491         * lib/locale.in.h: Likewise.
22492         * lib/math.in.h: Likewise.
22493         * lib/netdb.in.h: Likewise.
22494         * lib/netinet_in.in.h: Likewise.
22495         * lib/poll.in.h: Likewise.
22496         * lib/pthread.in.h: Likewise.
22497         * lib/pty.in.h: Likewise.
22498         * lib/sched.in.h: Likewise.
22499         * lib/se-selinux.in.h: Likewise.
22500         * lib/search.in.h: Likewise.
22501         * lib/signal.in.h: Likewise.
22502         * lib/spawn.in.h: Likewise.
22503         * lib/stdarg.in.h: Likewise.
22504         * lib/stddef.in.h: Likewise.
22505         * lib/stdint.in.h: Likewise.
22506         * lib/stdio.in.h: Likewise.
22507         * lib/stdlib.in.h: Likewise.
22508         * lib/string.in.h: Likewise.
22509         * lib/strings.in.h: Likewise.
22510         * lib/sys_file.in.h: Likewise.
22511         * lib/sys_ioctl.in.h: Likewise.
22512         * lib/sys_select.in.h: Likewise.
22513         * lib/sys_socket.in.h: Likewise.
22514         * lib/sys_stat.in.h: Likewise.
22515         * lib/sys_time.in.h: Likewise.
22516         * lib/sys_times.in.h: Likewise.
22517         * lib/sys_utsname.in.h: Likewise.
22518         * lib/sys_wait.in.h: Likewise.
22519         * lib/sysexits.in.h: Likewise.
22520         * lib/termios.in.h: Likewise.
22521         * lib/time.in.h: Likewise.
22522         * lib/unistd.in.h: Likewise.
22523         * lib/wchar.in.h: Likewise.
22524         * lib/wctype.in.h: Likewise.
22525         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22526         * modules/ctype (Makefile.am): Likewise.
22527         * modules/dirent (Makefile.am): Likewise.
22528         * modules/errno (Makefile.am): Likewise.
22529         * modules/fcntl-h (Makefile.am): Likewise.
22530         * modules/float (Makefile.am): Likewise.
22531         * modules/getopt-posix (Makefile.am): Likewise.
22532         * modules/iconv-h (Makefile.am): Likewise.
22533         * modules/inttypes (Makefile.am): Likewise.
22534         * modules/langinfo (Makefile.am): Likewise.
22535         * modules/locale (Makefile.am): Likewise.
22536         * modules/math (Makefile.am): Likewise.
22537         * modules/netdb (Makefile.am): Likewise.
22538         * modules/netinet_in (Makefile.am): Likewise.
22539         * modules/poll-h (Makefile.am): Likewise.
22540         * modules/pthread (Makefile.am): Likewise.
22541         * modules/pty (Makefile.am): Likewise.
22542         * modules/sched (Makefile.am): Likewise.
22543         * modules/search (Makefile.am): Likewise.
22544         * modules/selinux-h (Makefile.am): Likewise.
22545         * modules/signal (Makefile.am): Likewise.
22546         * modules/spawn (Makefile.am): Likewise.
22547         * modules/stdarg (Makefile.am): Likewise.
22548         * modules/stddef (Makefile.am): Likewise.
22549         * modules/stdint (Makefile.am): Likewise.
22550         * modules/stdio (Makefile.am): Likewise.
22551         * modules/stdlib (Makefile.am): Likewise.
22552         * modules/string (Makefile.am): Likewise.
22553         * modules/strings (Makefile.am): Likewise.
22554         * modules/sys_file (Makefile.am): Likewise.
22555         * modules/sys_ioctl (Makefile.am): Likewise.
22556         * modules/sys_select (Makefile.am): Likewise.
22557         * modules/sys_socket (Makefile.am): Likewise.
22558         * modules/sys_stat (Makefile.am): Likewise.
22559         * modules/sys_time (Makefile.am): Likewise.
22560         * modules/sys_times (Makefile.am): Likewise.
22561         * modules/sys_utsname (Makefile.am): Likewise.
22562         * modules/sys_wait (Makefile.am): Likewise.
22563         * modules/sysexits (Makefile.am): Likewise.
22564         * modules/termios (Makefile.am): Likewise.
22565         * modules/time (Makefile.am): Likewise.
22566         * modules/unistd (Makefile.am): Likewise.
22567         * modules/wchar (Makefile.am): Likewise.
22568         * modules/wctype (Makefile.am): Likewise.
22569
22570 2010-10-04  Bruno Haible  <bruno@clisp.org>
22571
22572         read-file tests: Avoid a test failure on NonStop Kernel.
22573         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22574         a regular file.
22575         Reported by Joachim Schmitz <schmitz@hp.com>.
22576
22577 2010-10-03  Bruno Haible  <bruno@clisp.org>
22578
22579         gnulib-tool: Fixes for --create-testdir with --libtool.
22580         * gnulib-tool (func_get_automake_snippet): Don't augment
22581         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22582         an executable.
22583         (func_create_testdir): Handle module 'alloca' like func_import.
22584         Reported by Bruce Korb <bruce.korb@gmail.com>.
22585
22586 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22587
22588         Avoid some lines longer than 80 characters.
22589         * lib/stdint.in.h: Break long comment lines.
22590         * lib/math.in.h: Likewise.
22591         (_GL_NUM_UINT_WORDS): New macro, for readability.
22592         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22593         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22594         * lib/stdlib.in.h: Likewise.
22595         * lib/spawn.in.h: Likewise.
22596         * lib/sys_socket.in.h: Update an URL.
22597         * lib/sys_stat.in.h: Break long line.
22598
22599 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22600
22601         Improve pmccabe2html.
22602         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22603         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22604         when the sources change. Remove the line in the HTML about "Used
22605         ranges" (which implied that there might be other unused ranges),
22606         rename "Resume" to "Summary" (easier to understand for more users).
22607         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22608         styles, and some unnecessary blank lines.
22609
22610 2010-10-03  Bruno Haible  <bruno@clisp.org>
22611             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22612
22613         acl: Add support for ACLs on NonStop Kernel.
22614         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22615         Check whether the function aclsort() exists.
22616         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22617         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22618         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22619         (acl_nontrivial [HAVE_ACLSORT]: New function.
22620         (file_has_acl): Implement for NonStop Kernel.
22621         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22622         (qset_acl): Implement for NonStop Kernel.
22623         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22624         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22625         (main): Implement for NonStop Kernel.
22626         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22627         Kernel. Handle this flavor.
22628         * tests/test-set-mode-acl.sh: Likewise.
22629         * tests/test-copy-acl.sh: Likewise.
22630         * tests/test-copy-file.sh: Likewise.
22631
22632 2010-10-03  Bruno Haible  <bruno@clisp.org>
22633
22634         Info about ACLs on NonStop Kernel.
22635         * doc/acl-resources.txt: Add info about NonStop Kernel.
22636         References by Joachim Schmitz <schmitz@hp.com>.
22637
22638 2010-10-02  Bruno Haible  <bruno@clisp.org>
22639
22640         Define missing EDQUOT on NonStop Kernel.
22641         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22642         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22643         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22644         missing.
22645         * doc/posix-headers/errno.texi: Mention the NSK bug.
22646         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22647         Reported by Joachim Schmitz <schmitz@hp.com>.
22648
22649 2010-10-02  Bruno Haible  <bruno@clisp.org>
22650
22651         Update doc for POSIX:2008.
22652         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22653         Update URL of POSIX specification.
22654
22655 2010-10-02  Bruno Haible  <bruno@clisp.org>
22656
22657         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22658         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22659         from gnulib, not from Automake.
22660
22661 2010-10-02  Bruno Haible  <bruno@clisp.org>
22662
22663         New module 'system-posix'.
22664         * modules/system-posix: New file.
22665         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22666         module is present.
22667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22668         GNULIB_SYSTEM_POSIX.
22669         * modules/stdlib (Depends-on): Remove sys_wait.
22670         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22671         * doc/posix-functions/system.texi: Mention the new module.
22672         * doc/posix-headers/stdlib.texi: Likewise.
22673         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22674         define test_sys_wait_macros to a no-op.
22675         Reported by Sam Steingold <sds@gnu.org>.
22676
22677 2010-09-30  Bruno Haible  <bruno@clisp.org>
22678
22679         More renaming from 'getdate' to 'get_date'.
22680         * doc/get_date.texi: Renamed from doc/getdate.texi.
22681         * modules/get_date (Files): Update.
22682         * MODULES.html.sh (Date and time <time.h>): Update.
22683         * DEPENDENCIES: Update.
22684         * gnulib-tool: Update comment.
22685         * m4/bison.m4 (gl_BISON): Likewise.
22686         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22687
22688 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22689
22690         bootstrap: support ACLOCAL_FLAGS during aclocal
22691         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22692         can add additional -I dir for third-party .m4 files.
22693
22694 2010-09-30  Eric Blake  <eblake@redhat.com>
22695
22696         bootstrap: use glibtoolize on MacOS
22697         * build-aux/bootstrap (check_versions): Convert libtool into
22698         libtoolize.
22699         (tool search): Move libtool check earlier, and look for
22700         glibtoolize for MacOS.
22701         (gnulib_tool_options): Auto-add --libtool when appropriate.
22702         Reported by Justin Clift.
22703
22704         poll: fix typo that broke test on MacOS
22705         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22706         Reported by Justin Clift.
22707
22708         getdate: rename to get_date
22709         Note: getdate.h is not renamed, to minimize client impact.
22710         * modules/getdate: Mark obsolete.  Move old contents...
22711         * modules/get_date: ...to new module name.
22712         * modules/getdate-tests: Move...
22713         * modules/get_date-tests: ...here.
22714         * m4/getdate.m4: Move...
22715         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22716         * lib/getdate.y: Move...
22717         * lib/get_date.y: ...here.
22718         * tests/test-getdate.c: Move...
22719         * tests/test-get_date.c: ...here.
22720         * doc/posix-functions/getdate.texi (getdate): Update name.
22721         * NEWS: Mention the change.
22722
22723 2010-09-29  Bruno Haible  <bruno@clisp.org>
22724
22725         Separate the module 'waitpid' from the module 'sys_wait'.
22726         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22727         present.
22728         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22729         gl_MODULE_INDICATOR_FOR_TESTS.
22730         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22731         * modules/sys_wait (Depends-on): Remove waitpid.
22732         (Makefile.am): Substitute GNULIB_WAITPID.
22733         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22734         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22735         signature only if the 'waitpid' module is present.
22736         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22737         * NEWS: Mention the change.
22738         * modules/grantpt (Depends-on): Add waitpid.
22739         * modules/wait-process (Depends-on): Likewise.
22740
22741 2010-09-29  Bruno Haible  <bruno@clisp.org>
22742
22743         More tests for module 'sys_wait'.
22744         * modules/sys_wait-c++-tests: New file.
22745         * tests/test-sys_wait-c++.cc: New file.
22746         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22747         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22748
22749 2010-09-29  Bruno Haible  <bruno@clisp.org>
22750
22751         New module 'waitpid'.
22752         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22753         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22754         Don't include <process.h>.
22755         (waitpid): Declare only, using modern idiom.
22756         * m4/waitpid.m4: New file.
22757         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22758         * modules/waitpid: New file.
22759         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22760         (Makefile.am): Update.
22761         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22762
22763 2010-09-28  Bruno Haible  <bruno@clisp.org>
22764
22765         poll: Assume ANSI C.
22766         * lib/poll.c (poll): Use an ANSI C declaration.
22767
22768 2010-09-28  Bruno Haible  <bruno@clisp.org>
22769
22770         poll-h: Create poll.h on all platforms.
22771         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22772         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22773         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22774         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22775         (gl_REPLACE_POLL_H): Don't set POLL_H.
22776         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22777         * modules/poll-h (Depends-on): Add include_next.
22778         (Makefile.am): Create poll.h unconditionally. Substitute also
22779         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22780
22781 2010-09-28  Bruno Haible  <bruno@clisp.org>
22782
22783         Tests for module 'poll-h'.
22784         * modules/poll-h-c++-tests: New file.
22785         * tests/test-poll-h-c++.cc: New file.
22786
22787         Tests for module 'poll-h'.
22788         * modules/poll-h-tests: New file.
22789         * tests/test-poll-h.c: New file.
22790
22791 2010-09-28  Bruno Haible  <bruno@clisp.org>
22792
22793         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22794         * modules/poll-h (Depends-on): Add 'extensions'.
22795
22796 2010-09-28  Bruno Haible  <bruno@clisp.org>
22797
22798         New module 'poll-h'.
22799         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22800         (poll): Use modern idiom.
22801         * modules/poll-h: New file.
22802         * modules/poll (Files): Remove lib/poll.in.h.
22803         (Depends-on): Add poll-h.
22804         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22805         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22806         * m4/poll_h.m4: New file.
22807         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22808         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22809         and invoke gl_REPLACE_POLL_H.
22810         * lib/poll.c: Use common idiom.
22811         * tests/test-poll.c: Likewise.
22812         * doc/posix-headers/poll.texi: Mention the poll-h module.
22813         Suggested by Eric Blake.
22814
22815 2010-09-26  Bruno Haible  <bruno@clisp.org>
22816
22817         sys_wait: Implement WSTOPSIG.
22818         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22819         Reported by Simon Josefsson.
22820
22821 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22822
22823         stdlib, sys_wait: Avoid compilation error on mingw.
22824         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22825
22826 2010-09-26  Bruno Haible  <bruno@clisp.org>
22827
22828         stdlib tests: Avoid code duplication.
22829         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22830         * modules/sys_wait-tests (Files): Likewise.
22831         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22832         * tests/test-stdlib.c: Include test-sys_wait.h.
22833         (main): Invoke test_sys_wait_macros.
22834         * tests/test-sys_wait.c: Include test-sys_wait.h.
22835         (main): Invoke test_sys_wait_macros.
22836
22837 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22838
22839         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22840         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22841         sure Windows sockets are working before calling getaddrinfo.
22842         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22843         * doc/gnulib.texi (Windows sockets): Fix typo.
22844
22845 2010-09-25  Bruno Haible  <bruno@clisp.org>
22846
22847         Tests for module 'regex-quote'.
22848         * modules/regex-quote-tests: New file.
22849         * tests/test-regex-quote.c: New file.
22850
22851         New module 'regex-quote'.
22852         * lib/regex-quote.h: New file.
22853         * lib/regex-quote.c: New file.
22854         * modules/regex-quote: New file.
22855         Suggested by Reuben Thomas <rrt@sc3d.org>.
22856
22857 2010-09-24  Bruno Haible  <bruno@clisp.org>
22858
22859         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22860         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22861
22862 2010-09-23  Bruno Haible  <bruno@clisp.org>
22863
22864         setenv: Relax license.
22865         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22866         Blake.
22867         Requested by Eric Blake.
22868
22869 2010-09-22  Bruno Haible  <bruno@clisp.org>
22870
22871         termios: Relax license.
22872         * modules/termios (License): Change to LGPLv2+.
22873         Requested by Eric Blake.
22874
22875 2010-09-22  Bruno Haible  <bruno@clisp.org>
22876
22877         threadlib: Allow the package to change the default to 'no'.
22878         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22879         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22880         Reported by Paul Eggert.
22881
22882 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22883             Bruno Haible  <bruno@clisp.org>
22884
22885         Fix endless loop in mbmemcasecoll.
22886         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22887         byte.
22888         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22889
22890 2010-09-22  Bruno Haible  <bruno@clisp.org>
22891
22892         Tests for module 'memcoll'.
22893         * modules/memcoll-tests: New file.
22894         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22895
22896         memcoll, xmemcoll: Clarify size vs. length.
22897         * modules/memcoll.c (memcoll0): Clarify specification.
22898         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22899         passed to collate_error.
22900
22901 2010-09-22  Bruno Haible  <bruno@clisp.org>
22902
22903         Tests for module 'memcasecmp'.
22904         * modules/memcasecmp-tests: New file.
22905         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22906
22907 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22908
22909         * lib/pthread.in.h: Add split double-inclusion guard, and include
22910         system <pthread.h> if there is one.  Use @@-style as in other
22911         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22912         pthread.h doesn't.
22913         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22914         (pthread_mutexattr_settype, pthread_mutex_trylock):
22915         New static inline functions, if there's no system <pthread.h>.
22916         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22917         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22918         Approximate with mutexes if the system lacks spinlocks, as in
22919         MacOS.
22920         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22921         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22922         @@-style.  Check for spinlocks separately.
22923         (gl_PTHREAD_DEFAULTS): New macro.
22924         * modules/pthread: Redo to use a more typical style for in.h files.
22925
22926 2010-09-21  Eric Blake  <eblake@redhat.com>
22927
22928         net_if: enhance tests
22929         * tests/test-net_if.c (main): Move signature checks earlier.
22930         Print failures to stderr.
22931         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22932         Document the bug that we do not yet fix.
22933
22934 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22935
22936         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22937         about gnulib, not GSS.
22938
22939 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22940
22941         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22942         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22943         for Emacs.
22944         * build-aux/pmccabe2html: Make Makefile.am example code more
22945         cut-and-paste friendly.
22946
22947 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22948
22949         * tests/test-net_if.c: New file.
22950         * modules/net_if-tests: New file.
22951
22952 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         pthread: add pthread_spin_destroy
22955         * lib/pthread.in.h (pthread_spin_destroy): New function.
22956
22957 2010-09-19  Bruno Haible  <bruno@clisp.org>
22958
22959         gnulib-tool: Fix --help output.
22960         * gnulib-tool (func_usage): Fix help message.
22961         Reported by Reuben Thomas <rrt@sc3d.org>.
22962
22963 2010-09-18  Jim Meyering  <meyering@redhat.com>
22964
22965         maint.mk: avoid unexpanded \n in two diagnostics
22966         * top/maint.mk (sc_prohibit_always_true_header_tests):
22967         Don't use a literal \n in a halt=... assignment.  It would not be
22968         expanded, and the two \n bytes would appear in the diagnostic output
22969         rather than the desired newline.  Use halt=$$(printf ... instead.
22970         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22971
22972 2010-09-18  Bruno Haible  <bruno@clisp.org>
22973
22974         netinet_in: Doc tweak.
22975         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22976         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22977
22978 2010-09-18  Jim Meyering  <meyering@redhat.com>
22979
22980         init.sh: correct an outdated comment
22981         * tests/init.sh (create_exe_shims_):  s/function/alias/
22982
22983         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22984         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22985         a file named "*.exe" is removed between the glob expansion and the
22986         processing of that oddly named file.
22987
22988 2010-09-17  Eric Blake  <eblake@redhat.com>
22989
22990         mirbsd: add some more support
22991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22992         in BSD family.
22993         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22994         devices as OpenBSD.
22995         * m4/host-os.m4 (mirbsd): Add MirBSD.
22996
22997         tests: fix unportable assumption on sys/wait.h
22998         * tests/test-sys_wait.c (main): Relax test.
22999         * tests/test-stdlib.c (main): Likewise.
23000
23001         init.sh: accomodate directory with no .exes
23002         * tests/init.sh: Accomodate directory containing only scripts.
23003
23004         tests: avoid compiler warning
23005         * tests/test-stdlib.c (main): Use the variable.
23006
23007         fdutimens, fdutimensat: update signature, again
23008         * lib/utimens.h (gl_futimens): Delete, and move signature...
23009         (fdutimens): ...here.
23010         (fdutimensat): Rearrange signature.
23011         (lutimensat): Rename variable for clarity.
23012         * lib/fdutimensat.c (fdutimensat): Update signature.
23013         * lib/utimens.c (fdutimens): Likewise.
23014         (gl_futimens): Delete.
23015         (utimens, lutimens): Update callers.
23016         * lib/futimens.c (futimens): Likewise.
23017         * tests/test-fdutimensat.c: Likewise.
23018         * tests/test-utimens.c: Likewise.
23019         * tests/test-futimens.h: Update comment.
23020         * NEWS: Mention this.
23021         Suggested by Paul Eggert.
23022
23023 2010-09-17  Bruno Haible  <bruno@clisp.org>
23024
23025         Take over the maintenance of some older macros from Autoconf.
23026         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
23027         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
23028         GNU Autoconf.
23029         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
23030         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
23031
23032 2010-09-17  Eric Blake  <eblake@redhat.com>
23033
23034         fdutimensat: drop atflag validation
23035         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
23036         with valid fd, to close a race scenario where futimens is
23037         unsupported and FILE was replaced by a symlink.
23038         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
23039         accordingly.
23040         Suggested by Paul Eggert.
23041
23042 2010-09-16  Bruno Haible  <bruno@clisp.org>
23043
23044         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
23045         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
23046
23047 2010-09-16  Bruno Haible  <bruno@clisp.org>
23048
23049         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
23050         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
23051         login_tty exists.
23052         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23053
23054 2010-09-16  Bruno Haible  <bruno@clisp.org>
23055
23056         login_tty: Make the replacement code work on BSD systems.
23057         * lib/login_tty.c: Include <sys/ioctl.h>.
23058         (login_tty): Use ioctl TIOCSCTTY when available.
23059         * modules/login_tty (Depends-on): Add sys_ioctl.
23060         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23061
23062 2010-09-16  Bruno Haible  <bruno@clisp.org>
23063
23064         login_tty: Stricter unit test.
23065         * modules/login_tty-tests (Depends-on): Add tcgetsid.
23066         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
23067         and tcgetsid() after login_tty.
23068         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23069
23070 2010-09-16  Bruno Haible  <bruno@clisp.org>
23071
23072         New module 'tcgetsid'.
23073         * lib/tcgetsid.c: New file.
23074         * m4/tcgetsid.m4: New file.
23075         * modules/tcgetsid: New file.
23076         * modules/termios (Depends-on): Add c++defs, warn-on-use.
23077         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
23078         GNULIB_TCGETSID, HAVE_TCGETSID.
23079         * lib/termios.in.h: Include <sys/types.h>.
23080         (tcgetsid): New declaration.
23081         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
23082         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
23083         * doc/posix-functions/tcgetsid.texi: Mention the new module.
23084         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
23085
23086 2010-09-16  Bruno Haible  <bruno@clisp.org>
23087
23088         Tests for module 'termios'.
23089         * modules/termios-c++-tests: New file.
23090         * modules/termios-tests: New file.
23091         * tests/test-termios-c++.cc: New file.
23092         * tests/test-termios.c: New file.
23093
23094         New module 'termios'.
23095         * modules/termios: New file.
23096         * lib/termios.in.h: New file.
23097         * m4/termios_h.m4: New file.
23098         * doc/posix-headers/termios.texi: Mention the new module.
23099
23100 2010-09-16  Eric Blake  <eblake@redhat.com>
23101
23102         fdutimensat: add an atflag parameter
23103         * lib/fdutimensat.c (fdutimensat): Add new parameter.
23104         * lib/utimens.h (fdutimensat): Update prototype.
23105         * tests/test-fdutimensat.c: Adjust test to match.
23106         * NEWS: Document the change.
23107         Suggested by Paul Eggert.
23108
23109 2010-09-16  Bruno Haible  <bruno@clisp.org>
23110
23111         Fix typos in comments.
23112         * lib/striconveh.h: Fix typo in comment.
23113         * lib/login_tty.c (login_tty): Likewise.
23114
23115 2010-09-15  Bruno Haible  <bruno@clisp.org>
23116
23117         stdlib: clarify MirBSD WEXITSTATUS bug
23118         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
23119         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23120
23121 2010-09-15  Eric Blake  <eblake@redhat.com>
23122
23123         stdlib: work around MirBSD WEXITSTATUS bug
23124         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
23125         * modules/stdlib (Depends-on): Add sys_wait.
23126         * tests/test-sys_wait.c (main): Enhance test.
23127         * tests/test-stdlib.c (main): Likewise.
23128         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
23129
23130         docs: mention MacOS issue with WEXITSTATUS(constant)
23131         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
23132         issue.
23133         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23134
23135         strnlen: add tests
23136         * modules/strnlen-tests: New file.
23137         * tests/test-strnlen.c: Likewise.
23138
23139 2010-09-14  Bruno Haible  <bruno@clisp.org>
23140
23141         unistr/base: Avoid link errors when module 'libunistring' is also used.
23142         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
23143         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
23144         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
23145         Declare also when HAVE_LIBUNISTRING is set.
23146         Reported by Pádraig Brady <P@draigbrady.com>.
23147
23148 2010-09-14  Eric Blake  <eblake@redhat.com>
23149
23150         test-rawmemchr: make more robust
23151         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
23152         (Depends-on, configure.ac): Add needed prerequisites to use it.
23153         * modules/memchr-tests (Files, Depends-on, configure.ac):
23154         Likewise, to avoid implicit reliance on memchr module prereqs.
23155         * tests/test-memchr.c (main): Ensure proper masking.
23156         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
23157         reads.
23158
23159         memchr: detect glibc Alpha bug
23160         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
23161         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
23162         Alpha.
23163         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
23164         * tests/test-memchr.c (main): Enhance test.
23165         Reported by Nelson H. F. Beebe.
23166
23167 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23168
23169         fts, getcwd, glob: audit for dirfd returning -1
23170         * lib/fts.c (opendir): Remove #define; no longer used.
23171         (opendirat): New arg PDIR_FD.  All callers changed.
23172         (fts_build, _opendir2): Use new opendirat to avoid the need for
23173         dirfd, or for checking whether dirfd returns a negative value.
23174         Don't use opendir; always use openat followed by fdopendir.
23175         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
23176         it.
23177         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
23178         returns -1 here.
23179         * modules/fts (Depends-on): Remove dirfd.
23180         * modules/getcwd (Depends-on): Likewise.
23181
23182 2010-09-13  Eric Blake  <eblake@redhat.com>
23183
23184         float: fix broken MirBSD header
23185         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
23186         * doc/posix-headers/float.texi (float.h): Document it.
23187
23188 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23189
23190         fts: use O_NOFOLLOW to avoid race condition when opening a directory
23191         * lib/fts.c (opendirat): New arg extra_flags.
23192         (__opendir2): Use it to avoid following symlinks when opening
23193         a directory, if symlinks are not supposed to be followed.  See
23194         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
23195
23196         fdopendir: preserve argument fd before returning
23197         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
23198         (fdopendir_with_dup, fd_clone_opendir): New static functions.
23199         (fdopendir): Use them, arranging for FD to be open to the same
23200         directory that it was when it started.  (It might be temporarily
23201         closed while fdopendir is running, so this not thread- or
23202         signal-safe.)  Be careful to do the right thing even when file
23203         descriptors are scarce and dup fails with errno == EMFILE.  See
23204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
23205
23206 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
23207
23208         regex: Pass the system regex if its only problem is 32-bit regoff_t.
23209         * NEWS: Document change.
23210         * m4/regex.m4: Disable test for regoff_t size.
23211
23212 2010-09-13  Jim Meyering  <meyering@redhat.com>
23213
23214         fts: don't operate on an invalid file descriptor after failed dup
23215         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
23216         negative file descriptor.
23217
23218 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         savedir: add streamsavedir, deprecate fdsavedir
23221         * NEWS: Mention deprecation of fdsavedir.
23222         * lib/savedir.c (streamsavedir): New extern function, whose name
23223         ends in "savedir" to be consistent with the others.  This differs
23224         from savedirstream in that it doesn't close its argument.  The
23225         next version of GNU tar will use this instead of fdsavedir, to
23226         avoid some race conditions and conserve file descriptors.
23227         (savedirstream): Reimplement as a wrapper around streamsavedir.
23228         (fdsavedir): Add a comment deprecating this function.  As far as
23229         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23230         * lib/savedir.h (streamsavedir): New decl.
23231         (fdsavedir): Add a comment deprecating this.
23232
23233 2010-09-10  Bruno Haible  <bruno@clisp.org>
23234
23235         langinfo: Fix last commit.
23236         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23237         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23239
23240 2010-09-10  Bruno Haible  <bruno@clisp.org>
23241
23242         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23243         * lib/progreloc.c (O_EXEC): Define fallback.
23244
23245 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23246
23247         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23248         * NEWS: Document recent changes to fcntl-h.
23249         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23250         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23251         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23252         Similarly for O_SEARCH; this last was already true, but not documented.
23253         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23254         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23255         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23256         Likewise.
23257         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23258         is zero, not whether it is defined.
23259         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23260         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23261         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23262
23263 2010-09-10  Bruno Haible  <bruno@clisp.org>
23264
23265         langinfo, nl_langinfo: Fix for IRIX 5.3.
23266         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23267         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23268         HAVE_LANGINFO_YESEXPR.
23269         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23270         HAVE_LANGINFO_YESEXPR.
23271         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23272         HAVE_LANGINFO_T_FMT_AMPM is 0.
23273         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23274         HAVE_LANGINFO_YESEXPR is 0.
23275         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23276         NOEXPR.
23277         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23278         * doc/posix-functions/nl_langinfo.texi: Likewise.
23279         Reported by Eric Blake.
23280
23281 2010-09-10  Bruno Haible  <bruno@clisp.org>
23282
23283         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23284         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23285         on FreeBSD 8.0 and OpenBSD 4.6.
23286         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23287         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23288         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23289         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23290         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23291         ac_includes_default.
23292         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23293
23294 2010-09-09  Eric Blake  <eblake@redhat.com>
23295
23296         strsignal: work around NetBSD bug
23297         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23298         * lib/string.in.h (includes): Likewise.
23299         * doc/posix-functions/strsignal.texi (strsignal): Document the
23300         bug.
23301         Reported by Nelson H. F. Beebe.
23302
23303         gnulib-tool: work with NetBSD /bin/sh
23304         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23305         (func_get_description, func_get_comment, func_get_status)
23306         (func_get_notice, func_get_applicability, func_get_filelist)
23307         (func_get_dependencies, func_get_autoconf_early_snippet)
23308         (func_get_autoconf_snippet, func_get_automake_snippet)
23309         (func_get_include_directive, func_get_link_directive)
23310         (func_get_license, func_get_maintainer, func_import): Avoid
23311         shell syntax errors from parsing syntax extensions.
23312
23313 2010-09-09  Bruno Haible  <bruno@clisp.org>
23314
23315         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23316         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23317         a reliable way to determine whether the 'alias' command works.
23318
23319 2010-09-08  Jim Meyering  <meyering@redhat.com>
23320
23321         init.sh: penalize a set-x-impaired shell; don't disqualify it
23322         * tests/init.sh: Too many shells corrupt application stderr when
23323         you set -x, so we can't afford to disqualify them, since at least
23324         on Irix-6.5, that would disqualify all bourne shells.
23325         Instead, use a two-pass approach.
23326         On the first pass, try to find a shell that meets the stricter
23327         condition that set -x does not corrupt stderr.
23328         If no shell meets the stricter condition, retest each candidate
23329         shell, but without that extra condition.  Finally, when
23330         VERBOSE=yes is requested and set -x might cause trouble, simply
23331         issue a warning and refrain from enabling debug output.
23332
23333 2010-09-08  Eric Blake  <eblake@redhat.com>
23334
23335         unsetenv: fix OpenBSD bug
23336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23337         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23338         documentation.
23339         Reported by Jim Meyering.
23340
23341         strtod: work around IRIX 6.5 bug
23342         * lib/strtod.c (strtod): Reparse number on shorter string if
23343         exponent parse was invalid.
23344         * tests/test-strtod.c (main): Add check for "0x1p 2".
23345         Reported by Tom G. Christensen.
23346
23347         getopt: optimize previous patch
23348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23349         empty variable.  Speed up awk script.
23350         Reported by Paolo Bonzini.
23351
23352 2010-09-08  Jim Meyering  <meyering@redhat.com>
23353
23354         test.sh: disqualify shells for which set -x corrupts stderr
23355         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23356         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23357         appear in stderr output.  For example, this command:
23358             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23359         prints "P=1" on those two systems:
23360
23361 2010-09-08  Bruno Haible  <bruno@clisp.org>
23362
23363         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23364         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23365         commands, because some shells ignore redirections when there is an
23366         error in the command lookup.
23367         Reported by Eric Blake.
23368
23369 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23370
23371         * lib/regex.h: Fix a mention of `regex_compile' (should be
23372         `re_compile_pattern').
23373         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23374         (re_set_registers): Correct name of parameter in comment.
23375
23376         * doc/regex.texi: Add documentation for missing syntax flags.
23377         Remove commented-out documentation of defunct syntax option
23378         RE_NO_EMPTY_ALTS.
23379         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23380         Add documentation of re_set_registers.
23381         Document trick to re-use a pattern buffer by setting fastmap manually.
23382         Update documentation of struct re_pattern_buffer per public members.
23383         Uncomment documentation of equivalence class operators and
23384         collating symbol operators, since they are now implemented,
23385         Explain leftmost-longest matching in relation to alternatives.
23386         Tidy documentation of substring matching.
23387         Remove POSIX documentation, which is done better in
23388         glibc, and refer the reader there. Keep BSD API documentation, as
23389         that is not readily available elsewhere.
23390
23391 2010-09-07  Eric Blake  <eblake@redhat.com>
23392
23393         getopt: handle POSIXLY_CORRECT set but not exported
23394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23395         export state of POSIXLY_CORRECT, due to bash set -o posix.
23396         Reported by Dustin J. Mitchell.
23397
23398 2010-09-05  Bruno Haible  <bruno@clisp.org>
23399
23400         gnulib-tool: Highlight the changed options.
23401         * gnulib-tool (func_usage): Display the --import, --add-import,
23402         --remove-import explanations in bold font.
23403
23404 2010-09-06  Karl Berry  <karl@gnu.org>
23405
23406         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23407
23408 2010-09-05  Bruno Haible  <bruno@clisp.org>
23409
23410         uniwidth/width: Update comment.
23411         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23412         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23413
23414 2010-09-05  Bruno Haible  <bruno@clisp.org>
23415
23416         isinf, isnan: Relax license.
23417         * modules/isinf (License): Change from GPL to LGPL, with consent from
23418         Ben Pfaff.
23419         * modules/isnan (License): Likewise.
23420         Requested by Ludovic Courtès.
23421
23422 2010-09-04  Bruno Haible  <bruno@clisp.org>
23423
23424         gnulib-tool: Help migration from --import to --add-import or --update.
23425         * gnulib-tool: Emit a verbose error message when --import is used
23426         without any module name.
23427
23428 2010-09-04  Bruno Haible  <bruno@clisp.org>
23429
23430         Update doc about gnulib-tool.
23431         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23432         'gnulib-tool --update' in more detail.
23433         Reported by Eric Blake.
23434
23435 2010-09-04  Bruno Haible  <bruno@clisp.org>
23436
23437         gnulib-tool: Change --import. New options --add/remove-import.
23438         * gnulib-tool: New options --add-import, --remove-import.
23439         (func_usage): Document them.
23440         (have_associative): Define always.
23441         (func_import): In import mode, don't merge the specified settings with
23442         the cached settings. Implement remove-import mode.
23443         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23444         Explain when to use them versus --import.
23445         (Simple update): Use --add-import instead of --import.
23446         * NEWS: Mention the change.
23447
23448 2010-09-04  Bruno Haible  <bruno@clisp.org>
23449
23450         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23451         separate gnulib.mk.
23452
23453 2010-09-04  Bruno Haible  <bruno@clisp.org>
23454
23455         gnulib-tool: Don't talk about CVS any more.
23456         * gnulib-tool (func_usage, func_import): Write "version control"
23457         instead of CVS.
23458
23459 2010-09-04  Jim Meyering  <meyering@redhat.com>
23460
23461         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23462         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23463         false positives (whose names may be ill-chosen) when searching
23464         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23465         would cause a false-positive.
23466
23467         avoid coreutils "make distcheck" failure
23468         Coreutils tests with an absolute build directory name that contains
23469         a space.  Not quoting this directory name caused a failure.
23470         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23471         * tests/test-vc-list-files-cvs.sh: Likewise.
23472
23473 2010-09-04  Bruno Haible  <bruno@clisp.org>
23474
23475         gnulib-tool: Avoid error when run in a package without Makefile.am.
23476         * gnulib-tool: When collecting the m4dirs in a package that does not
23477         have a Makefile.am, eliminate those directories that contain no
23478         gnulib-cache.m4. Fix expression that counts these directories.
23479
23480 2010-09-04  Bruno Haible  <bruno@clisp.org>
23481
23482         update-copyright test: Improve output when perl is missing or too old.
23483         * tests/test-update-copyright.sh: Move test of Perl version down after
23484         the test whether Perl exists. Provide an explanation relating Perl's
23485         error message to Automake's SKIP: message.
23486
23487 2010-09-04  Bruno Haible  <bruno@clisp.org>
23488
23489         Don't augment PATH in TESTS_ENVIRONMENT.
23490         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23491         set abs_aux_dir instead of augmenting PATH.
23492         * modules/vc-list-files-tests (Makefile.am): Likewise.
23493         * tests/test-update-copyright.sh: Augment PATH here.
23494         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23495         path_prepend_.
23496         * tests/test-vc-list-files-git.sh: Likewise.
23497
23498 2010-09-04  Jim Meyering  <meyering@redhat.com>
23499
23500         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23501         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23502
23503 2010-09-04  Bruno Haible  <bruno@clisp.org>
23504
23505         strdup: Fix compilation error in C++ mode.
23506         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23507         the macro.
23508
23509 2010-09-04  Bruno Haible  <bruno@clisp.org>
23510
23511         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23512         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23513         macro into a function.
23514         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23515
23516 2010-09-04  Bruno Haible  <bruno@clisp.org>
23517
23518         Set PATH_SEPARATOR the same way autoconf does.
23519         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23520         the value of PATH_SEPARATOR the same way autoconf-generated configure
23521         scripts do.
23522         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23523         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23524
23525 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23526
23527         Set PATH_SEPARATOR the same way autoconf does.
23528         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23529         the same way autoconf-generated configure scripts do.
23530         * posix-modules: Likewise.
23531
23532 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23533
23534         hash: fix safe_hasher const typo
23535         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23536         const; otherwise, there is a type error later.
23537
23538 2010-09-02  Jim Meyering  <meyering@redhat.com>
23539
23540         test-update-copyright.sh: require perl 5.8.0
23541         * tests/test-update-copyright.sh: Require 5.8.0,
23542         which Tom G. Christensen has confirmed is adequate,
23543         while 5.6.1 is not.
23544
23545 2010-09-02  Eric Blake  <eblake@redhat.com>
23546
23547         tests: init.sh improvements for re-exec'ing with zsh
23548         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23549         -vx through shell re-exec.
23550         Reported by Tom G. Christensen.
23551
23552         wctype: fix typo in previous commit
23553         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23554         Reported by Ludovic Courtès.
23555
23556 2010-09-02  Jim Meyering  <meyering@redhat.com>
23557
23558         test-update-copyright.sh: skip test if Perl is too old
23559         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23560         Reported by Tom G. Christensen.
23561
23562 2010-09-02  Bruno Haible  <bruno@clisp.org>
23563
23564         wctype: Avoid compilation error on IRIX 6.5.30.
23565         * lib/wctype.in.h (iswblank): Declare with a replacement if
23566         REPLACE_ISWBLANK is set.
23567         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23568         declared. Set REPLACE_ISWBLANK.
23569         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23570         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23571         * doc/posix-headers/wctype.texi: Likewise.
23572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23573
23574 2010-09-01  Bruno Haible  <bruno@clisp.org>
23575
23576         New module 'socketlib'.
23577         * modules/socketlib: New file.
23578         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23579         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23580         * modules/sockets (Depends-on): Add socketlib.
23581         Suggested by Sam Steingold <sds@gnu.org>.
23582
23583 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23586
23587         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23588         when one needs search access to a directory but not read access.
23589         On systems where it is available, it works in some cases where
23590         O_RDONLY does not, namely on directories that are searchable but
23591         not readable, and which need only to be searchable.  If O_SEARCH
23592         is not available, fall back to the traditional method of using
23593         O_RDONLY.
23594
23595         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23596         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23597         when opening a directory that needs only to be searchable.
23598         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23599         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23600         * lib/openat-proc.c (openat_proc_name): Likewise.
23601         * lib/openat.c (openat_needs_fchdir): Likewise.
23602         * lib/save-cwd.c (save_cwd): Likewise.
23603         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23604
23605 2010-08-28  Bruno Haible  <bruno@clisp.org>
23606
23607         New module 'host-cpu-c-abi'.
23608         * modules/host-cpu-c-abi: New file.
23609         * m4/host-cpu-c-abi.m4: New file, based on part of
23610         clisp/src/m4/general.m4.
23611         Requested by Sam Steingold <sds@gnu.org>.
23612
23613 2010-08-31  Eric Blake  <eblake@redhat.com>
23614         and Jim Meyering  <meyering@redhat.com>
23615
23616         hash: factor, and guard against misbehaving hasher function
23617         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23618         of table->hasher's return value.  Also protect against a hash value
23619         so large that adding it to table->bucket results in a NULL pointer.
23620         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23621         Use it in place of open-coded check-and-abort.
23622
23623 2010-08-30  Bruno Haible  <bruno@clisp.org>
23624
23625         hash: silence spurious clang warning
23626         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23627         Reported by Eric Blake.
23628
23629 2010-08-30  Eric Blake  <eblake@redhat.com>
23630
23631         strstr, memmem, strcasestr: avoid leaked shell message
23632         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23633         FreeBSD.
23634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23636
23637         tests: silence clang warning
23638         * tests/test-malloca.c (do_allocation): Avoid dead store.
23639
23640 2010-08-29  Bruno Haible  <bruno@clisp.org>
23641
23642         gettext: Fix recent mistake.
23643         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23644
23645 2010-08-29  Bruno Haible  <bruno@clisp.org>
23646
23647         selinux-h: Offer a --without-selinux option.
23648         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23649         --without-selinux was specified, skip all tests and define
23650         HAVE_SELINUX_SELINUX_H to 0.
23651         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23652         set LIB_SELINUX to empty.
23653         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23654         gl_LIBSELINUX. If --without-selinux was specified, replace
23655         selinux/context.h.
23656         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23657
23658 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23659             Bruno Haible  <bruno@clisp.org>
23660
23661         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23662         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23663         of HAVE_REALLOC.
23664         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23665         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23666         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23667         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23668
23669 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23670             Bruno Haible  <bruno@clisp.org>
23671
23672         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23673         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23674         HAVE_CALLOC.
23675         * lib/xmalloc.c: Update accordingly.
23676         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23677         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23678         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23679
23680 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23681             Bruno Haible  <bruno@clisp.org>
23682
23683         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23684         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23685         HAVE_MALLOC.
23686         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23687         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23688         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23689
23690 2010-08-29  Bruno Haible  <bruno@clisp.org>
23691
23692         Update modules list.
23693         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23694         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23695         (String handling <string.h>): Add astrxfrm.
23696         (File system functions): Add readlinkat.
23697
23698 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23699
23700         Tests for module 'realloc-gnu'.
23701         * modules/realloc-gnu-tests: New file.
23702         * tests/test-realloc-gnu.c: New file.
23703
23704         Tests for module 'calloc-gnu'.
23705         * modules/calloc-gnu-tests: New file.
23706         * tests/test-calloc-gnu.c: New file.
23707
23708         Tests for module 'malloc-gnu'.
23709         * modules/malloc-gnu-tests: New file.
23710         * tests/test-malloc-gnu.c: New file.
23711
23712 2010-08-28  Bruno Haible  <bruno@clisp.org>
23713
23714         Rename module 'realloc' -> 'realloc-gnu'.
23715         * modules/realloc-gnu: New file, copied from modules/realloc.
23716         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23717         obsolete.
23718         * modules/mgetgroups (Depends-on): Update.
23719         * doc/posix-functions/realloc.texi: Update.
23720         * NEWS: Mention the change.
23721
23722         Rename module 'calloc' -> 'calloc-gnu'.
23723         * modules/calloc-gnu: New file, copied from modules/calloc.
23724         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23725         obsolete.
23726         * doc/posix-functions/calloc.texi: Update.
23727         * NEWS: Mention the change.
23728
23729         Rename module 'malloc' -> 'malloc-gnu'.
23730         * modules/malloc-gnu: New file, copied from modules/malloc.
23731         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23732         obsolete.
23733         * modules/argp (Depends-on): Update.
23734         * modules/regex (Depends-on): Update.
23735         * doc/posix-functions/malloc.texi: Update.
23736         * NEWS: Mention the change.
23737
23738 2010-08-28  Eric Blake  <eblake@redhat.com>
23739
23740         pread, pwrite: add missing dependency
23741         * modules/pread (Depends-on): Add extensions.
23742         * modules/pwrite (Depends-on): Likewise.
23743
23744 2010-08-28  Bruno Haible  <bruno@clisp.org>
23745
23746         unistr/u*-strchr: Fix tests dependencies.
23747         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23748         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23749         Reported by Ian Beckwith <ianb@erislabs.net>.
23750
23751 2010-08-28  Bruno Haible  <bruno@clisp.org>
23752
23753         read-file: Don't occupy too much unused memory.
23754         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23755
23756 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23757             Eric Blake  <eblake@redhat.com>
23758             Bruno Haible  <bruno@clisp.org>
23759
23760         read-file: Avoid memory reallocations with regular files.
23761         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23762         (fread_file): With regular files, use the remaining length as the
23763         initial buffer size.  Check against overflow.
23764         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23765         sys_stat.
23766
23767 2010-08-28  Bruno Haible  <bruno@clisp.org>
23768
23769         ftello: Relax license.
23770         * modules/ftello (License): Relax to LGPLv2+.
23771         Reported by Eric Blake.
23772
23773 2010-08-28  Bruno Haible  <bruno@clisp.org>
23774
23775         Avoid relocwrapper link errors due to gnulib replacement functions.
23776         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23777         function.
23778         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23779
23780 2010-08-28  Bruno Haible  <bruno@clisp.org>
23781
23782         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23783         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23784         defined.
23785         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23786         Suggested by Eric Blake.
23787
23788 2010-08-28  Bruno Haible  <bruno@clisp.org>
23789
23790         sys_socket, netdb: Ensure socklen_t gets defined.
23791         * modules/sys_socket (Depends-on): Add socklen.
23792         * modules/netdb (Depends-on): Likewise.
23793         * modules/getaddrinfo (Depends-on): Remove socklen.
23794         * modules/getsockopt (Depends-on): Likewise.
23795         * modules/setsockopt (Depends-on): Likewise.
23796         * tests/test-sys_socket.c: Check that socklen_t is defined.
23797         * tests/test-netdb.c: Likewise.
23798         * m4/socklen.m4: Update comments.
23799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23800
23801 2010-08-27  Eric Blake  <eblake@redhat.com>
23802
23803         login_tty: add missing dependency
23804         * modules/login_tty (Depends-on): Add pty.
23805
23806 2010-08-26  Eric Blake  <eblake@redhat.com>
23807
23808         lib-symbol-versions: fix m4 quoting
23809         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23810         format for AC_LINK_IFELSE.
23811
23812         glob: fix compile test
23813         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23814
23815         btowc: fix missing file
23816         * modules/btowc (Files): Also ship locale-fr.m4.
23817
23818         lseek: fix link test
23819         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23820         AC_LINK_IFELSE.
23821
23822         include_next: silence autoconf 2.68 warning
23823         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23824         AC_COMPILE_IFELSE as special.
23825         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23826         autoconf < 2.68.
23827
23828         acl: fix compilation test
23829         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23830         AC_COMPILE_IFELSE.
23831
23832 2010-08-26  Bruno Haible  <bruno@clisp.org>
23833
23834         Modernize AC_TRY_RUN invocations.
23835         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23836         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23837         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23838         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23839         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23840         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23841         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23843         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23844         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23845         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23846         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23847         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23848         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23849         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23850         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23851         gl_MBRLEN_NUL_RETVAL): Likewise.
23852         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23853         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23854         Likewise.
23855         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23856         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23857         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23858         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23859         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23860         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23861         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23862         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23863         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23864         Likewise.
23865         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23866         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23868         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23870         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23872         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23873         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23875
23876 2010-08-26  Bruno Haible  <bruno@clisp.org>
23877
23878         Modernize AC_TRY_LINK invocations.
23879         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23880         AC_TRY_LINK.
23881         * m4/argp.m4 (gl_ARGP): Likewise.
23882         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23883         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23884         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23885         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23886         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23887         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23888         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23889         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23890         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23891         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23892         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23893         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23894         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23895         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23896         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23897         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23898         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23899         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23900         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23901         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23902         Likewise.
23903         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23904         Likewise.
23905         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23906         Likewise.
23907         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23908         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23909         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23910         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23911         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23912         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23913         * m4/servent.m4 (gl_SERVENT): Likewise.
23914         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23915         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23917         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23918         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23919         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23920         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23922         * modules/tsearch-tests (configure.ac): Likewise.
23923
23924 2010-08-26  Bruno Haible  <bruno@clisp.org>
23925
23926         Modernize AC_TRY_COMPILE invocations.
23927         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23928         AC_TRY_COMPILE.
23929         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23930         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23931         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23932         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23933         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23934         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23935         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23936         * m4/lock.m4 (gl_LOCK): Likewise.
23937         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23938         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23939         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23940         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23941         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23942         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23943         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23945         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23946         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23947         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23948         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23949         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23950         extraneous semicolon.
23951
23952 2010-08-26  Jim Meyering  <meyering@redhat.com>
23953
23954         stat-time: relax license LGPL
23955         * modules/stat-time (License): Change from GPL to LGPL,
23956         with consent from all contributors, for use in libguile.
23957         Requested by Ludovic Courtès.
23958
23959 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23960
23961         poll: return immediately on POLLHUP.
23962         * lib/poll.c (poll): Always set timeout before wait_timeout is
23963         computed.
23964
23965 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23966
23967         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23968         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23969         rmdir ("dir/.//"), unlinkat.
23970
23971 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23972
23973         stdbool: avoid spurious failure with modern xlc
23974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23975
23976 2010-08-24  Bruno Haible  <bruno@clisp.org>
23977
23978         getloadavg: simplify code
23979         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23980         gl_have_func. Update comments.
23981
23982 2010-08-24  Eric Blake  <eblake@redhat.com>
23983
23984         getloadavg: don't define SVR4 on cygwin
23985         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23986         only define SVR4 when -lkvm is required.
23987         Reported by Yaakov Selkowitz.
23988
23989 2010-08-24  Bruno Haible  <bruno@clisp.org>
23990
23991         priv-set: fix comment
23992         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23993
23994 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23995
23996         priv-set: fix comments
23997         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23998         to match code, as suggested by David Bartley in:
23999         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
24000
24001 2010-08-23  Eric Blake  <eblake@redhat.com>
24002
24003         stdbool: avoid rejecting clang
24004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24005         * tests/test-stdbool.c: Enable more tests if using the system
24006         <stdbool.h> instead of the gnulib replacement.
24007         (main): Move xlc bug test to a runtime test for all compilers.
24008         Reported by Anders Kaseorg.
24009
24010         argz: fix shell quoting issue
24011         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
24012         Reported by Charles Wilson.
24013
24014 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
24015             Erik Faye-Lund <kusmabite@gmail.com>
24016
24017         poll, select: handle ERROR_BROKEN_PIPE.
24018         * lib/poll.c (win32_compute_revents): Return POLLHUP when
24019         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24020         * lib/select.c (win32_compute_revents): Do not mark a pipe
24021         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24022
24023 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
24024
24025         fts: allow compilation with C++
24026         * lib/fts_.h: Specify extern "C" linkage with C++.
24027
24028 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24029
24030         Fix gnulib-tool sed script de-commentation for AIX sed.
24031         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
24032         sed.
24033
24034 2010-08-17  Eric Blake  <eblake@redhat.com>
24035
24036         test-stddef: test for (some) offsetof bugs
24037         * tests/test-stddef.c: Enhance test to ensure correct type of
24038         offsetof.
24039         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
24040         that we are not fixing at this time.
24041
24042 2010-08-15  Bruno Haible  <bruno@clisp.org>
24043
24044         stpncpy: Allow stpncpy to be defined as a macro.
24045         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
24046         if it's already correctly declared.
24047         * lib/string.in.h (stpncpy): Undefine before redefining.
24048         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
24049
24050 2010-08-14  Bruno Haible  <bruno@clisp.org>
24051
24052         Rename module 'memxfrm' to 'amemxfrm'.
24053         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
24054         (amemxfrm): Renamed from memxfrm.
24055         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
24056         (amemxfrm): Renamed from memxfrm.
24057         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
24058         * NEWS: Mention the change.
24059         * MODULES.html.sh (String handling <string.h>): Update.
24060         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
24061         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
24062         * lib/unicase/u16-casexfrm.c: Likewise.
24063         * lib/unicase/u32-casexfrm.c: Likewise.
24064         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
24065         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
24066         * lib/uninorm/u16-normxfrm.c: Likewise.
24067         * lib/uninorm/u32-normxfrm.c: Likewise.
24068         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
24069         memxfrm.
24070         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
24071         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
24072         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
24073         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
24074         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
24075         Suggested by Paul Eggert.
24076
24077 2010-08-14  Bruno Haible  <bruno@clisp.org>
24078
24079         Tests for module 'astrxfrm'.
24080         * modules/astrxfrm-tests: New file.
24081         * tests/test-astrxfrm.c: New file.
24082
24083         New module 'astrxfrm'.
24084         * lib/astrxfrm.h: New file.
24085         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
24086         * modules/astrxfrm: New file.
24087
24088 2010-08-14  Reuben Thomas <rrt@sc3d.org>
24089
24090         regex: Tweak doc.
24091         * doc/regex.texi (Overview): Don't mention regex.c.
24092         (GNU Regular Expression Compiling): Likewise.
24093         (Match-end-of-line Operator): Mention 'not_eol'.
24094
24095 2010-08-14  Brian Gough  <bjg@gnu.org>
24096             Bruno Haible  <bruno@clisp.org>
24097
24098         git-merge-changelog: add doc relating to use with bzr and hg.
24099         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
24100
24101 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
24102
24103         pthread: fix pthread.h creation for srcdir != builddir
24104         * modules/pthread (Makefile.am): Fix the rule to work also in a
24105         non-srcdir build.
24106
24107 2010-08-13  Karl Berry  <karl@gnu.org>
24108
24109         * doc/regex.texi (Predefined Syntaxes): @smallexample.
24110         * doc/posix-*/*: force line break before @url of POSIX
24111         specifications.
24112         Suggested by Werner Lemberg.
24113
24114 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24115
24116         strtod: fix const diagnostic
24117         * lib/strtod.c (strtod): Don't assign const char * to char *,
24118         as this elicits a warning from GCC when warnings are enabled.
24119
24120 2010-08-10  Pádraig Brady <P@draigbrady.com>
24121         and Eric Blake  <eblake@redhat.com>
24122
24123         copy-acl: ignore ENOTSUP on HP-UX
24124         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
24125         so that it is available for HP-UX.
24126         * lib/copy-acl.c (qcopy_acl): Use it.
24127         Reported by Patrick M. Callahan.
24128
24129 2010-08-10  Eric Blake  <eblake@redhat.com>
24130
24131         open, chown: relax license
24132         * modules/open (License): Change to LGPLv2+, with consent by all
24133         authors, for use in augeas.
24134         * modules/chown (License): Likewise.
24135         * modules/lchown (Likewise): Likewise.
24136         Requested by Adam Stokes.
24137
24138 2010-08-09  Karl Berry  <karl@gnu.org>
24139
24140         * build-aux/ar-lib: new file, import from Automake.
24141         * config/srclist.txt: autocheck for updates.
24142
24143 2010-08-09  Eric Blake  <eblake@redhat.com>
24144
24145         readlinkat: adjust client modules
24146         * modules/areadlinkat (Depends-on): Use readlinkat, not
24147         symlinkat.
24148         * modules/areadlinkat-with-size (Depends-on): Likewise.
24149
24150         mknod: be more vocal about danger of running tests as root
24151         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
24152         root, since that is just asking for problems.
24153         Suggested by Bruno Haible, based on a report by Rainer Tammer.
24154
24155         readlinkat: split into its own module
24156         * modules/symlinkat: Split readlinkat...
24157         * modules/readlinkat: ...into separate module.
24158         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
24159         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
24160         * lib/symlinkat.c (readlinkat): Move...
24161         * lib/readlinkat.c: ...into new file.
24162         * modules/symlinkat-tests: Split readlinkat test...
24163         * modules/readlinkat-tests: ...into separate module.
24164         * tests/test-symlinkat.c: Split...
24165         * tests/test-readlinkat.c: ...into new file.
24166         * NEWS: Document the split.
24167         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24168         * lib/unistd.in.h (readlinkat): Likewise.
24169         Suggested by Bruno Haible.
24170
24171 2010-08-08  Bruno Haible  <bruno@clisp.org>
24172
24173         memxfrm: Speed up.
24174         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
24175         that usually only one call to strxfrm is necessary for each string
24176         part.
24177         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24178
24179 2010-08-07  Karl Berry  <karl@gnu.org>
24180
24181         * doc/posix-headers/limits.texi,
24182         * doc/posix-functions/malloc.texi,
24183         * doc/posix-functions/strsignal.texi: missing @item.
24184         * doc/ld-version-script.texi: spurious leading i.
24185         * doc/regex.texi (Interval Operators): no commas inside @var.
24186
24187 2010-08-01  Bruno Haible  <bruno@clisp.org>
24188
24189         Integrate the regex documentation.
24190         * doc/gnulib.texi: Define 'cn' index.
24191         (Regular expressions): New a chapter that includes regex.texi and
24192         regexprops-generic.texi.
24193         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
24194         syntax.
24195
24196         Whitespace cleanup.
24197         * doc/regex.texi: Remove trailing spaces.
24198
24199         Add regex documentation.
24200         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
24201         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
24202         Written by Kathy A. Hargreaves and Karl Berry.
24203
24204 2010-08-01  Bruno Haible  <bruno@clisp.org>
24205
24206         link: Update documentation.
24207         * doc/posix-functions/link.texi: Update regarding Solaris.
24208
24209 2010-07-31  Bruno Haible  <bruno@clisp.org>
24210
24211         Update modules list.
24212         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
24213         (String handling <string.h>): Add memcmp2, memxfrm.
24214         (Container data structures): Add xlist, xsublist, xoset.
24215         (Core language properties): Add alignof, unused-parameter.
24216         (Process control, Numeric conversion functions <stdlib.h>): Renamed
24217         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
24218         (Unibyte characters <ctype.h>): New section.
24219         (String handling <string.h>): New section.
24220         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
24221         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24222         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24223         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24224         tan, tanh, tanl, y0, y1, yn.
24225         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24226         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24227         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24228         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24229         unlockpt, vdprintf, vdprintf-posix.
24230         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24231         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24232         xconcat-filename.
24233         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24234         getdtablesize, pipe2, pipe2-safer.
24235         (Security): New section.
24236         (Networking functions): Add accept4.
24237         (Signal handling): Add sigpipe.
24238         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24239         mbmemcasecoll.
24240         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24241         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24242         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24243         pipe-filter-ii.
24244         (Misc): Add argp-version-etc, login_tty, parse-duration.
24245
24246 2010-07-31  Bruno Haible  <bruno@clisp.org>
24247
24248         Improve doc in MODULES.html.
24249         * modules/linkat (Description): Add the word "function".
24250         * modules/mkfifo (Description): Likewise.
24251         * modules/mknod (Description): Likewise.
24252         * modules/remove (Description): Likewise.
24253         * modules/renameat (Description): Likewise.
24254         * modules/stat (Description): Likewise.
24255         * modules/symlink (Description): Likewise.
24256         * modules/unlink (Description): Likewise.
24257
24258 2010-07-31  Bruno Haible  <bruno@clisp.org>
24259
24260         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24261         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24262         option --enable/disable-c++ instead of --enable/disable-cxx.
24263         * NEWS: Mention the change.
24264
24265 2010-07-31  Bruno Haible  <bruno@clisp.org>
24266
24267         readlink, areadlink: Relax test a bit.
24268         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24269         alternative to ENOTDIR.
24270         * tests/test-areadlink.h (test_areadlink): Likewise.
24271         Reported by Rainer Tammer.
24272
24273 2010-07-31  Bruno Haible  <bruno@clisp.org>
24274
24275         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24276         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24277         character, perform the search using U_STRCHR.
24278         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24279         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24280         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24281         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24282         Suggested by Paolo Bonzini.
24283
24284 2010-07-31  Bruno Haible  <bruno@clisp.org>
24285
24286         unistr/u*-strstr: Fix dependencies.
24287         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24288         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24289         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24290
24291 2010-07-31  Bruno Haible  <bruno@clisp.org>
24292
24293         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24294         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24295         the beginning of the loop.
24296         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24297         cases in 'switch' statement.
24298
24299         unistr/u8-strchr: Fix several bugs.
24300         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24301         the string. When not found, return NULL, not a pointer near the end.
24302
24303         More tests for unistr/u8-strchr.
24304         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24305         that the function does not read past the first occurrence of the byte
24306         being searched.
24307         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24308         * tests/unistr/test-u16-strchr.c (main): New function.
24309         * tests/unistr/test-u32-strchr.c (main): New function.
24310
24311 2010-07-31  Bruno Haible  <bruno@clisp.org>
24312
24313         posix-modules: Ignore backup files of documentation files.
24314         * posix-modules: grep only through files named *.texi.
24315
24316 2010-07-31  Bruno Haible  <bruno@clisp.org>
24317
24318         symlinkat: Fix documentation.
24319         * doc/posix-functions/readlinkat.texi: Fix module name.
24320
24321 2010-07-31  Bruno Haible  <bruno@clisp.org>
24322
24323         fchownat: Replace also when chown has the trailing slash bug.
24324         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24325         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24326         introduced on 2010-04-10.
24327         Reported by Rainer Tammer.
24328
24329 2010-07-31  Bruno Haible  <bruno@clisp.org>
24330
24331         linkat: Work around AIX 7.1 bug.
24332         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24333         whether linkat handles trailing slash correctly. If not, replace linkat
24334         and define LINKAT_TRAILING_SLASH_BUG.
24335         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24336         check whether (fd1,file1) points to a directory if file1 or file2 ends
24337         in a slash. Code taken from lib/link.c.
24338         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24339         Reported by Rainer Tammer.
24340
24341 2010-07-31  Bruno Haible  <bruno@clisp.org>
24342
24343         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24344         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24345         This disables an xlc optimization that was causing wrong test results.
24346         Reported by Rainer Tammer.
24347
24348 2010-07-31  Bruno Haible  <bruno@clisp.org>
24349
24350         iconv: Work around AIX 6.1..7.1 bug.
24351         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24352         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24353         cross-compiling, guess no on all versions of AIX.
24354         Reported by Rainer Tammer.
24355
24356 2010-07-31  Bruno Haible  <bruno@clisp.org>
24357
24358         readlink: Relax test a bit.
24359         * tests/test-readlink.h (test_readlink): Allow different errno value
24360         when readlink is called with a file name that ends in / and refers to
24361         a file.
24362         Suggested by Eric Blake.
24363         Reported by Rainer Tammer.
24364
24365 2010-07-31  Bruno Haible  <bruno@clisp.org>
24366
24367         copysign: Does not require -lm on glibc systems.
24368         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24369         gl_COMMON_DOUBLE_MATHFUNC.
24370         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24371
24372 2010-07-31  Bruno Haible  <bruno@clisp.org>
24373
24374         duplocale: Work around AIX 7.1 bug.
24375         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24376         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24377         * lib/duplocale.c (rpl_duplocale): Update comment.
24378         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24379         Reported by Rainer Tammer.
24380
24381 2010-07-30  Bruno Haible  <bruno@clisp.org>
24382
24383         dirfd: Avoid link error on AIX 7.1.
24384         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24385         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24386         exist, set REPLACE_DIRFD.
24387         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24388         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24389         * doc/posix-functions/dirfd.texi: Update.
24390         Reported by Rainer Tammer.
24391
24392 2010-07-30  Eric Blake  <eblake@redhat.com>
24393
24394         strtod: next round of AIX fixes
24395         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24396         exponent.
24397         * tests/test-strtod.c (main): Enhance tests.
24398         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24399         Reported by Rainer Tammer.
24400
24401         futimens: fix configure check
24402         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24403         Reported by Bruno Haible.
24404
24405 2010-07-30  Bruno Haible  <bruno@clisp.org>
24406
24407         getline: Update regarding AIX.
24408         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24409         Reported by Rainer Tammer.
24410
24411 2010-07-30  Bruno Haible  <bruno@clisp.org>
24412
24413         wcwidth: Drop replacement on AIX 7.
24414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24415         AIX 7.
24416         Reported by Rainer Tammer.
24417
24418 2010-07-30  Bruno Haible  <bruno@clisp.org>
24419
24420         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24422         a 'char *'.
24423         Reported by Rainer Tammer.
24424
24425 2010-07-30  Bruno Haible  <bruno@clisp.org>
24426
24427         unlink: Update regarding AIX.
24428         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24429         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24430         Reported by Rainer Tammer.
24431
24432 2010-07-30  Bruno Haible  <bruno@clisp.org>
24433
24434         symlink: Update regarding AIX.
24435         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24436         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24437         Reported by Rainer Tammer.
24438
24439 2010-07-30  Bruno Haible  <bruno@clisp.org>
24440
24441         strndup: Update regarding AIX.
24442         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24443         AIX 7.
24444         Reported by Rainer Tammer.
24445
24446 2010-07-30  Bruno Haible  <bruno@clisp.org>
24447
24448         stat: Update regarding AIX.
24449         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24450         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24451         Reported by Rainer Tammer.
24452
24453 2010-07-30  Bruno Haible  <bruno@clisp.org>
24454
24455         truncl: Fix autoconf test.
24456         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24457         whether truncl works.
24458         Reported by Rainer Tammer.
24459
24460 2010-07-30  Bruno Haible  <bruno@clisp.org>
24461
24462         round: Update regarding AIX.
24463         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24464         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24465         Reported by Rainer Tammer.
24466
24467 2010-07-30  Bruno Haible  <bruno@clisp.org>
24468
24469         rename: Update regarding AIX.
24470         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24471         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24472         Reported by Rainer Tammer.
24473
24474 2010-07-30  Bruno Haible  <bruno@clisp.org>
24475
24476         printf.m4: Update regarding AIX.
24477         * m4/printf.m4: Update comments regarding AIX.
24478         Reported by Rainer Tammer.
24479
24480 2010-07-30  Bruno Haible  <bruno@clisp.org>
24481
24482         iconv: Update regarding AIX.
24483         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24484         AIX 7.
24485         Reported by Rainer Tammer.
24486
24487 2010-07-30  Bruno Haible  <bruno@clisp.org>
24488
24489         getopt: Update regarding AIX.
24490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24491         no on AIX.
24492         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24493         Reported by Rainer Tammer.
24494
24495 2010-07-30  Bruno Haible  <bruno@clisp.org>
24496
24497         ldexpl; Update regarding AIX.
24498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24499         on AIX 7.
24500         Reported by Rainer Tammer.
24501
24502 2010-07-30  Bruno Haible  <bruno@clisp.org>
24503
24504         frexpl: Update regarding AIX.
24505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24506         on AIX 7.
24507         Reported by Rainer Tammer.
24508
24509 2010-07-30  Bruno Haible  <bruno@clisp.org>
24510
24511         open, fopen: Update regarding AIX.
24512         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24513         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24514         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24515         * doc/posix-functions/fopen.texi: Likewise.
24516         Reported by Rainer Tammer.
24517
24518 2010-07-30  Bruno Haible  <bruno@clisp.org>
24519
24520         chown: Update doc regarding AIX.
24521         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24522         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24523         Reported by Rainer Tammer.
24524
24525 2010-07-30  Eric Blake  <eblake@redhat.com>
24526
24527         strtod: fix bug in replacement function on AIX
24528         * lib/strtod.c (strtod): Special case broken "0x" parse in
24529         underlying strtod.
24530         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24531         * doc/posix-functions/strtod.texi (strtod): Likewise.
24532         Reported by Rainer Tammer.
24533
24534 2010-07-30  Bruno Haible  <bruno@clisp.org>
24535
24536         mbrlen: Fix cross-compilation guess for AIX.
24537         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24538         guess. Leftover from 2008-12-22.
24539
24540 2010-07-30  Bruno Haible  <bruno@clisp.org>
24541
24542         mbrtowc: Fix cross-compilation guess for AIX.
24543         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24544         guess. Leftover from 2008-12-21.
24545
24546 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24547
24548         init.sh: work around trap limitation of some shells
24549         * tests/init.sh (setup_): Move exit trap outside of shell function.
24550
24551 2010-07-29  Eric Blake  <eblake@redhat.com>
24552
24553         strtod: aid debugging
24554         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24555         understanding why strtod is rejected.
24556
24557 2010-07-28  Bruno Haible  <bruno@clisp.org>
24558
24559         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24560         * lib/unistr/u8-chr.c: Include <string.h>.
24561         * tests/unistr/test-u8-chr.c: Likewise.
24562         * tests/unistr/test-u16-chr.c: Likewise.
24563         * tests/unistr/test-u32-chr.c: Likewise.
24564         * tests/unistr/test-u8-strchr.c: Likewise.
24565         * tests/unistr/test-u16-strchr.c: Likewise.
24566         * tests/unistr/test-u32-strchr.c: Likewise.
24567         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24568         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24569         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24570         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24571
24572 2010-07-28  Bruno Haible  <bruno@clisp.org>
24573
24574         Use spaces for indentation, not tabs.
24575         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24576
24577 2010-07-27  Bruno Haible  <bruno@clisp.org>
24578
24579         mbspcasecmp: Fix function specification.
24580         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24581         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24582         Reported by Eric Blake <eblake@redhat.com>.
24583
24584 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24585
24586         timespec: use cast and not conditional, as truncation isn't possible
24587         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24588         instead of a conditional.  Comment about the situation in more detail.
24589         This undoes most of the 2009-10-29 patch.
24590
24591 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24592
24593         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24594         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24595         * lib/unistr/u8-strchr.c: Likewise.
24596         * modules/unistr/u8-chr: Depend on memchr.
24597
24598         unistr/u*-strchr: add tests
24599         * modules/unistr/u8-strchr-tests: New file.
24600         * modules/unistr/u16-strchr-tests: New file.
24601         * modules/unistr/u32-strchr-tests: New file.
24602         * tests/unistr/test-strchr.h: New file.
24603         * tests/unistr/test-u8-strchr.c: New file.
24604         * tests/unistr/test-u16-strchr.c: New file.
24605         * tests/unistr/test-u32-strchr.c: New file.
24606
24607         unistr/u*-chr: test multibyte sequences more
24608         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24609         test vector.
24610         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24611         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24612         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24613
24614         unistr/u*-chr: test multibyte sequences
24615         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24616
24617         unistr/u*-chr: prepare for multibyte tests
24618         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24619         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24620         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24621         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24622         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24623         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24624
24625 2010-07-18  Bruno Haible  <bruno@clisp.org>
24626
24627         unistr/u8-strchr: Optimize non-ASCII argument case.
24628         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24629         because the first byte often matches anyway.
24630         Reported by Pádraig Brady <P@draigbrady.com>.
24631
24632 2010-07-15  Karl Berry  <karl@gnu.org>
24633
24634         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24635
24636 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24637
24638         getcwd: on Solaris, work better if ancestors are inaccessible
24639         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24640         buffer and size, try again with a large buffer.  This works better
24641         on Solaris, since its getcwd succeeds even if the path to the root
24642         is inaccessible, and this is helpful in common cases such as .zfs
24643         hidden directories.  Problem reported by J Chapman Flack in
24644         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24645         Use system getcwd if it's declared, not merely if it's partly
24646         working; use the partly-working test only to avoid needless effort
24647         if the system getcwd fails.
24648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24649         comment that was already obsolete and is now even more obsolete.
24650         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24651         now might call strdup.
24652
24653 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24654
24655         pthread: Add enough so that coreutils/src/sort.c compiles.
24656         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24657         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24658         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24659         Include <sys/types.h>, in case it defines pthread_t.
24660         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24661         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24662         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24663         (pthread_rwlockattr_t, pthread_spinlock_t):
24664         New typedefs, if HAVE_PTHREAD_T is not defined.
24665         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24666         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24667         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24668         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24669         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24670         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24671         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24672         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24673         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24674         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24675         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24676         New macros.
24677         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24678         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24679         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24680         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24681         (pthread_spin_unlock): New dummy functions.
24682         (pthread_create): Return EAGAIN; don't set errno.
24683         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24684         require AC_C_INLINE.
24685         * modules/pthread (Depends-on): Add sched, time.
24686         (pthread.h): Use AM_V_GEN.
24687
24688 2010-07-13  Bruno Haible  <bruno@clisp.org>
24689
24690         striconveh: Don't malloc memory if the result buffer is sufficient.
24691         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24692         buffer if its size is sufficient.
24693         Reported by Ludovic Courtès <ludo@gnu.org>.
24694
24695 2010-07-13  Bruno Haible  <bruno@clisp.org>
24696
24697         strtod: Add safety check.
24698         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24699
24700 2010-07-12  Bruno Haible  <bruno@clisp.org>
24701
24702         Unify tests that set gl_cv_func_ldexpl_no_libm.
24703         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24704         gl_FUNC_LDEXPL.
24705         (gl_FUNC_LDEXPL): Invoke it.
24706         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24707
24708 2010-07-12  Bruno Haible  <bruno@clisp.org>
24709
24710         Unify tests that set gl_cv_func_ldexp_no_libm.
24711         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24712         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24713         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24714         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24715         * modules/strtod (Files): Add m4/ldexp.m4.
24716
24717 2010-07-12  Bruno Haible  <bruno@clisp.org>
24718
24719         Unify tests that set gl_cv_func_frexpl_no_libm.
24720         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24721         gl_FUNC_FREXPL_NO_LIBM.
24722         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24723         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24724
24725 2010-07-12  Bruno Haible  <bruno@clisp.org>
24726
24727         Unify tests that set gl_cv_func_frexp_no_libm.
24728         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24729         gl_FUNC_FREXP_NO_LIBM.
24730         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24731         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24732
24733 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24734
24735         memcoll: clarify sizes versus lengths, document better, and tweak perf
24736         * lib/memcoll.c (strcoll_loop, memcoll0):
24737         Improve quality of descriptive comments.  Name variables
24738         consistently as to whether they are lengths (which do not include
24739         terminating null) versus sizes (which do).
24740         * lib/xmemcoll.c (xmemcoll0): Likewise.
24741         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24742         returned when s1size == 0; this is easier to compile and saves
24743         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24744
24745 2010-07-12  Bruno Haible  <bruno@clisp.org>
24746
24747         Tests for module '_Exit'.
24748         * modules/_Exit-tests: New file.
24749         * tests/test-_Exit.sh: New file.
24750         * tests/test-_Exit.c: New file.
24751
24752         New module '_Exit'.
24753         * lib/stdlib.in.h (__attribute__): New macro.
24754         (_Exit): New declaration.
24755         * lib/_Exit.c: New file.
24756         * m4/_Exit.m4: New file.
24757         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24758         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24759         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24760         * modules/_Exit: New file.
24761         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24762         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24763
24764 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24765
24766         strtod: make it more-accurate typically, and don't require libm
24767         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24768         Include limits.h.  Don't include string.h.
24769         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24770         (locale_isspace): New function, so that no casts are needed to
24771         check whether *s is a space.
24772         (ldexp): Provide an unused dummy if not available.
24773         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24774         (strtod): Use them.  This implementation prefers to use the
24775         underlying strtod if available, falling back on our own code
24776         only to fix known bugs.  This is more likely to produce an
24777         accurate result.  Also, it avoids the use of libm functions.
24778         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24779         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24780         was absent, but it caused a test failure with coreutils.
24781         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24782         with libm.
24783         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24784         * modules/strtod-tests (Makefile.am): Likewise.
24785
24786 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24787             Bruno Haible  <bruno@clisp.org>
24788
24789         unistr/u8-strchr: Optimize ASCII argument case.
24790         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24791
24792 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24793
24794         (x)memcoll: minor tweaks
24795         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24796         is after the type that it qualifies.
24797         (memcoll0): Likewise.
24798         * lib/memcoll.h (memcoll0): Likewise.
24799         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24800         * lib/xmemcoll.h (xmemcoll0): Likewise.
24801         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24802         differs from memcoll in that the NUL byte is part of the argument.
24803         Omit the abort-checks, as performance is a real issue here.  Plus,
24804         the checks were wrong anyway (an off-by-one error).  Omit local
24805         variable 'diff', as it's a bit clearer that way.
24806         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24807         no longer needed.
24808
24809 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24810
24811         (x)memcoll: speedup when input is known to be NUL delimited
24812         * lib/memcoll.c: Include stdlib.
24813         (memcoll0): New function.
24814         (strcoll_loop): New function, refactored for use in both memcoll
24815         and memcoll0.
24816         * lib/memcoll.h (memcoll0): Add prototype.
24817         * lib/xmemcoll.c (xmemcoll0): New function.
24818         (collate_error): New function, refactored for use in both xmemcoll
24819         and xmemcoll0.
24820         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24821         * m4/memcoll.m4: add inline invocation.
24822
24823 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24824
24825         * build-aux/bootstrap: Remove any local translations
24826         from the translation project synchronization directory,
24827         so that local only translations are not distributed.
24828
24829 2010-07-04  Bruno Haible  <bruno@clisp.org>
24830
24831         fsusage: Clarify which code applies to which platforms.
24832         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24833         platform.
24834         * lib/fsusage.c (get_fs_usage): Likewise.
24835
24836 2010-07-04  Bruno Haible  <bruno@clisp.org>
24837
24838         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24839         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24840         Reported by Martin Lambers <marlam@marlam.de>.
24841
24842 2010-07-04  Jim Meyering  <meyering@redhat.com>
24843
24844         hash: once again explicitly disallow insertion of NULL
24845         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24846         inserting a NULL pointer cannot work with these functions.
24847         Add a comment with details.
24848         This reverts part of the 2010-07-01 commit, 5bef1a35
24849         "hash: extend module to deal with non-pointer keys".
24850
24851 2010-07-01  Bruno Haible  <bruno@clisp.org>
24852
24853         stdbool: Update doc.
24854         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24855         Info from Christian Weisgerber <naddy@mips.inka.de>.
24856
24857 2010-07-01  Jim Meyering  <meyering@redhat.com>
24858
24859         hash: extend module to deal with non-pointer keys
24860         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24861         but that allows insertion of non-pointer entries.
24862         Do not disallow an ENTRY value of NULL.
24863         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24864         * lib/hash.h (hash_insert0): Declare.
24865
24866 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24867
24868         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24869         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24870         not present (i.e. with autoconf 2.59 and when using gettextize, not
24871         gnulib), require AC_GNU_SOURCE instead.
24872
24873 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24874
24875         idpriv-drop: Fix tests.
24876         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24877         not to the test-idpriv-droptemp program.
24878
24879 2010-06-29  Bruno Haible  <bruno@clisp.org>
24880
24881         string: Fix syntax error with g++ 2.96.
24882         * lib/string.in.h (__pure__): Remove definition.
24883         (_GL_ATTRIBUTE_PURE): New macro.
24884         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24885         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24886         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24887
24888 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24889
24890         unitypes: Fix bug introduced on 2010-05-18.
24891         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24892
24893 2010-06-22  Eric Blake  <eblake@redhat.com>
24894
24895         memmem: slight optimization
24896         * lib/str-two-way.h (critical_factorization): Update comments.
24897         Reduce work during factorization phase.
24898         Reported by Carlos Bueno <carlos@bueno.org>.
24899
24900 2010-06-21  Bruno Haible  <bruno@clisp.org>
24901
24902         Fix HAVE_CALLOC_POSIX misnomer.
24903         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24904         !HAVE_CALLOC_POSIX.
24905         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24906         HAVE_CALLOC_POSIX.
24907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24908         instead of HAVE_CALLOC_POSIX.
24909         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24910         HAVE_CALLOC_POSIX.
24911
24912         Use modern idiom for calloc() replacement.
24913         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24914         AC_FUNC_CALLOC.
24915         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24916         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24917         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24918         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24919         (gl_REPLACE_CALLOC): New macro.
24920
24921 2010-06-21  Bruno Haible  <bruno@clisp.org>
24922
24923         Fix HAVE_REALLOC_POSIX misnomer.
24924         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24925         !HAVE_REALLOC_POSIX.
24926         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24927         HAVE_REALLOC_POSIX.
24928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24929         instead of HAVE_REALLOC_POSIX.
24930         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24931         HAVE_REALLOC_POSIX.
24932
24933         Use modern idiom for realloc() replacement.
24934         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24935         AC_FUNC_REALLOC.
24936         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24937         Autoconf's AC_FUNC_REALLOC.
24938         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24939         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24940         (gl_REPLACE_REALLOC): New macro.
24941         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24942
24943 2010-06-21  Bruno Haible  <bruno@clisp.org>
24944
24945         Fix HAVE_MALLOC_POSIX misnomer.
24946         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24947         !HAVE_MALLOC_POSIX.
24948         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24949         HAVE_MALLOC_POSIX.
24950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24951         instead of HAVE_MALLOC_POSIX.
24952         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24953         HAVE_MALLOC_POSIX.
24954
24955         Use modern idiom for malloc() replacement.
24956         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24957         AC_FUNC_MALLOC.
24958         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24959         Autoconf's AC_FUNC_MALLOC.
24960         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24961         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24962         (gl_REPLACE_MALLOC): New macro.
24963         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24964
24965 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24966
24967         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24968         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24969         This macro takes 3 arguments, not 4.
24970
24971 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24972
24973         ipv6: fix detection under mingw
24974         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24975         in6_addr.
24976
24977 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24978
24979         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24980         that strtod() works when cross-compiling to a glibc version known
24981         to work.
24982
24983 2010-06-15  Bruno Haible  <bruno@clisp.org>
24984
24985         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24986
24987 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24988
24989         select: Correct timeout.
24990         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24991
24992 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24993
24994         git-version-gen: init shell var to avoid env var influence
24995         * build-aux/git-version-gen (v): Init shell var to empty.
24996
24997 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24998
24999         priv-set: Don't assume that priv.h exists merely because getppriv does.
25000         See Jan Andersen's bug report about AIX 5L in
25001         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
25002         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
25003         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
25004         * lib/priv-set.h: Likewise.
25005         * tests/test-priv-set.c: Likewise.
25006
25007 2010-06-13  Bruno Haible  <bruno@clisp.org>
25008
25009         relocatable: Make it easier to test whether to install wrappers.
25010         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
25011         RELOCATABLE_VIA_WRAPPER.
25012
25013 2010-06-13  Bruno Haible  <bruno@clisp.org>
25014
25015         gnulib-tool: Display specified modules and dependencies differently.
25016         * gnulib-tool (func_show_module_list): New function.
25017         (func_import, func_create_testdir): Invoke it.
25018         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25019
25020 2010-06-13  Bruno Haible  <bruno@clisp.org>
25021
25022         gnulib-tool: Align code of func_import and func_create_testdir.
25023         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
25024         specified_modules.
25025
25026 2010-06-12  Jim Meyering  <meyering@redhat.com>
25027
25028         test-inttostr: avoid spurious failure on Solaris 9
25029         * tests/test-inttostr.c (main): Skip the test when snprintf fails
25030         to accept "%ju".  Reported by Bruno Haible.
25031
25032 2010-06-11  Jim Meyering  <meyering@redhat.com>
25033
25034         test-sys_socket: mark variables as used more readably
25035         * tests/test-sys_socket.c (main): Mark otherwise unused variables
25036         as "used" explicitly via (void) statement casts.  This is more
25037         readable than using them in an artificial return expression.
25038         Suggestion from Bruno Haible.
25039
25040 2010-06-11  Bruno Haible  <bruno@clisp.org>
25041
25042         Avoid some more warnings from "gcc -Wwrite-strings".
25043         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
25044         to 'const char *'.
25045         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
25046         * tests/test-c-strcasestr.c (main): Likewise.
25047         * tests/test-mbscasestr1.c (main): Likewise.
25048         * tests/test-mbscasestr2.c (main): Likewise.
25049         * tests/test-memmem.c (main): Likewise.
25050         * tests/test-strstr.c (main): Likewise.
25051         * tests/test-strcasestr.c (main): Likewise.
25052
25053 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25054
25055         init.sh: change framework_failure_ to fail with status 99, not 1
25056         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
25057         automake's parallel-tests rule that this is an unexpected failure,
25058         even if the test is listed in XFAIL_TESTS.
25059
25060 2010-06-11  Jim Meyering  <meyering@redhat.com>
25061
25062         test-inttostr: avoid warnings about 4-6KB literal strings
25063         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
25064         Include "macros.h", for its definition of ASSERT.
25065         (CK): s/assert/ASSERT/
25066         * modules/inttostr-tests (Files): Add macros.h.
25067
25068         init.sh: don't use $ME_ or skip_ before they are defined
25069         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
25070         their first uses.  Also hoist their companions: warn_, fail_,
25071         framework_failure_, $stderr_fileno.  Prompted by a patch from
25072         Stefano Lattarini.
25073
25074         test-sys_socket: avoid set-but-not-used warnings from gcc
25075         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
25076         avoid warning about set-but-not-used variables.
25077
25078         test-xvasprintf: avoid 'const' discard warnings
25079         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
25080         "const" when assigning from literal strings.
25081         (test_xasprintf): Add "void" in function argument list to placate
25082         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
25083
25084         tests: avoid compilation warnings in argmatch and exclude tests...
25085         in packages that define ARGMATCH_DIE_DECL, like coreutils.
25086         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
25087         Since it always exits, declare with the "noreturn" attribute.
25088         * tests/test-argmatch.c: Likewise.
25089
25090         tests: avoid 'const' discard warnings in mbsstr tests
25091         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
25092         * tests/test-mbsstr2.c (main): Likewise.
25093
25094         test-verify: avoid warning from gcc's -Wmissing-declarations
25095         * tests/test-verify.c (function): Declare to be static.
25096
25097         test-inttostr.c: include <string.h> for use of strcmp
25098         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
25099
25100         test-linkat: avoid failed assertion on "other" architectures
25101         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
25102         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
25103         sparc: https://bugs.launchpad.net/bugs/591968
25104
25105 2010-06-11  Jim Meyering  <meyering@redhat.com>
25106
25107         printf.m4: avoid autoconf's "Expanded Before Required" warning
25108         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
25109         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
25110         autoconf warning.
25111
25112 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
25113
25114         Replacement header templates are now named with ".in", not "_".
25115         * doc/gnulib-intro.texi: Correct.
25116
25117 2010-06-10  Jim Meyering  <meyering@redhat.com>
25118
25119         inttostr-tests: depend on snprintf, not snprintf-posix
25120         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
25121         snprintf-posix, to avoid this aclocal failure:
25122           missing file gnulib-tests/vasnprintf.c
25123           configure.ac:45: error: expected source file, required through \
25124           AC_LIBSOURCES, not found
25125
25126 2010-06-10  Jim Meyering  <meyering@redhat.com>
25127
25128         inttostr: add a new function, inttostr, and tests
25129         The namesake function was not available.  The existence of the
25130         template file, inttostr.c makes its addition nontrivial.
25131         * lib/anytostr.c: Rename from inttostr.c.
25132         (anytostr): Rename from inttostr.
25133         * lib/inttostr.c: New file.
25134         * modules/inttostr (Files): Add anytostr.c.
25135         (Makefile.am): Set lib_SOURCES instead of ...
25136         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
25137         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
25138         * lib/offtostr.c: Likewise.
25139         * lib/uinttostr.c: Likewise.
25140         * lib/umaxtostr.c: Likewise.
25141         * modules/inttostr-tests: New file.
25142         * tests/test-inttostr.c: New file.  Test these functions.
25143
25144 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
25145             Bruno Haible  <bruno@clisp.org>
25146
25147         Add "Extending Gnulib" chapter to manual.
25148         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
25149         chapter.
25150         (Extending Gnulib): New chapter.
25151         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
25152         chapter.
25153
25154 2010-06-09  Bruno Haible  <bruno@clisp.org>
25155
25156         Avoid relocwrapper link errors due to gnulib replacement functions.
25157         * lib/areadlink.c: Use the system's malloc, realloc functions.
25158         (areadlink): Set errno to ENOMEM explicitly.
25159         * modules/areadlink (Depends-on): Remove malloc-posix.
25160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25161
25162 2010-06-09  Bruno Haible  <bruno@clisp.org>
25163
25164         Avoid relocwrapper link errors due to gnulib replacement functions.
25165         * lib/canonicalize-lgpl.c: Use the system's malloc function.
25166         * lib/malloca.c: Likewise.
25167         * lib/relocatable.c: Likewise.
25168         * lib/progreloc.c: Use the system's malloc, sprintf functions.
25169         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
25170         * lib/setenv.c: Use the system's malloc, realloc functions.
25171         * lib/strerror.c: Use the system's sprintf function.
25172         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25173
25174 2010-06-04  Bruno Haible  <bruno@clisp.org>
25175
25176         Prefer documented low-level autoconf macro names.
25177         * m4/lib-link.m4: Use m4_translit instead of translit.
25178         * m4/environ.m4: Likewise.
25179         * m4/mathfunc.m4: Likewise.
25180         * m4/onceonly.m4: Likewise.
25181         * m4/stdint.m4: Likewise.
25182         Suggested by Eric Blake.
25183
25184 2010-06-04  Martin Lambers  <marlam@marlam.de>
25185             Bruno Haible  <bruno@clisp.org>
25186
25187         havelib: Allow library names with '+' characters.
25188         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25189         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
25190
25191 2010-06-09  Bruno Haible  <bruno@clisp.org>
25192
25193         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
25194         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
25195         realloc failed.
25196
25197 2010-06-08  Peter Simons  <simons@cryp.to>
25198
25199         maint.mk: make the news-check rule more configurable
25200         * top/maint.mk (news-check-lines-spec): New variable.
25201         (news-check): Use "sed -n 1,10p" in place of "head".
25202
25203 2010-06-07  Jim Meyering  <meyering@redhat.com>
25204
25205         do-release-commit-and-tag: fix typo in --help
25206         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
25207
25208         regex: avoid new dead-code warning with gcc-4.6.0
25209         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
25210         if-block containing a while-loop.  It's been unused for at least
25211         5 years.
25212
25213 2010-06-05  Bruno Haible  <bruno@clisp.org>
25214
25215         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
25216         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
25217
25218 2010-06-04  Bruno Haible  <bruno@clisp.org>
25219
25220         Update to GNU gettext 0.18.1.
25221         * modules/gettext (configure.ac): Require gettext infrastructure from
25222         version 0.18.1.
25223
25224 2010-06-03  Bruno Haible  <bruno@clisp.org>
25225
25226         Don't use AC_LIBOBJ with file names in subdirectories.
25227         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25228         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25229         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25230         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25231         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25232         gl_LIBUNISTRING_LIBSOURCE.
25233         (Makefile.am): Augment lib_SOURCES here, conditionally.
25234         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25235
25236 2010-06-03  Bruno Haible  <bruno@clisp.org>
25237
25238         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25239         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25240         expansion does not end with a newline.
25241         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25242         unnecessary newline.
25243
25244 2010-06-03  Bruno Haible  <bruno@clisp.org>
25245
25246         Reduce dependencies.
25247         * tests/test-quotearg.h: New file, extracted from
25248         tests/test-quotearg.c.
25249         * tests/test-quotearg-simple.c: New file, extracted from
25250         tests/test-quotearg.c.
25251         * tests/test-quotearg.c: Don't include <ctype.h>.
25252         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25253         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25254         use_quote_double_quotes, use_quotearg_colon): Moved to
25255         tests/test-quotearg.h.
25256         (results_g, flag_results, custom_quotes, custom_results): Moved
25257         to tests/test-quotearg-simple.c.
25258         (main): Moved the part that does not depend on gettext to
25259         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25260         performed.
25261         * modules/quotearg-simple: New file.
25262         * modules/quotearg-simple-tests: New file.
25263         * modules/quotearg (Depends-on): Add quotearg-simple.
25264         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25265         (Files): Add tests/test-quotearg.h.
25266         Reported by Paolo Bonzini.
25267
25268 2010-06-03  Bruno Haible  <bruno@clisp.org>
25269
25270         Reduce dependencies.
25271         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25272
25273 2010-06-03  Bruno Haible  <bruno@clisp.org>
25274
25275         time: Undefine more broken macros.
25276         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25277         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25278         Reported by Eric Blake.
25279
25280 2010-06-03  Bruno Haible  <bruno@clisp.org>
25281
25282         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25283         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25284         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25285         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25286         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25287         Reported by Ludovic Courtès <ludo@gnu.org>.
25288
25289 2010-06-02  Eric Blake  <eblake@redhat.com>
25290
25291         time: work with mingw + pthreads-win32 library
25292         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25293         if timespec is defined only in pthread.h.
25294         * modules/time (Makefile.am): Substitute it.
25295         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25296         <pthread.h>, when needed.
25297         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25298         from the library.
25299
25300 2010-05-31  Bruno Haible  <bruno@clisp.org>
25301
25302         Avoid expanding two macros in the wrong order.
25303         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25304         gl_LIBUNISTRING if it is defined.
25305         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25306         autoconf >= 2.64.
25307         Reported by Ludovic Courtès <ludo@gnu.org>.
25308
25309 2010-05-27  Jim Meyering  <meyering@redhat.com>
25310
25311         maint.mk: also prohibit "#undef" of always-defined symbols
25312         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25313         Allow more than one space before the symbol name.
25314         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25315         the regexp uses alternation.
25316
25317 2010-05-26  Eric Blake  <eblake@redhat.com>
25318
25319         maint.mk: avoid echo -e
25320         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25321         Convert all uses of echo -* to printf.
25322         Reported by Matthias Bolte.
25323
25324 2010-05-25  Bruno Haible  <bruno@clisp.org>
25325
25326         Update to GNU gettext 0.18, part 2.
25327         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25328         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25329
25330 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25331
25332         Add missing include in test-pwrite.c.
25333         * tests/test-pwrite.c: Include string.h, for strcmp.
25334
25335 2010-05-24  Bruno Haible  <bruno@clisp.org>
25336
25337         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25338
25339 2010-05-24  Bruno Haible  <bruno@clisp.org>
25340
25341         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25342         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25343         iconveh_error argument.
25344         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25345         U_STRCONV_TO_LOCALE.
25346         * lib/unistr/u16-strcoll.c: Likewise.
25347         * lib/unistr/u32-strcoll.c: Likewise.
25348         * modules/unistr/u8-strcoll (Depends-on): Add
25349         uniconv/u8-strconv-to-enc, localcharset. Remove
25350         uniconv/u8-strconv-to-locale.
25351         (configure.ac): Bump version number.
25352         * modules/unistr/u16-strcoll (Depends-on): Add
25353         uniconv/u16-strconv-to-enc, localcharset. Remove
25354         uniconv/u16-strconv-to-locale.
25355         (configure.ac): Bump version number.
25356         * modules/unistr/u32-strcoll (Depends-on): Add
25357         uniconv/u32-strconv-to-enc, localcharset. Remove
25358         uniconv/u32-strconv-to-locale.
25359         (configure.ac): Bump version number.
25360
25361 2010-05-24  Bruno Haible  <bruno@clisp.org>
25362
25363         Avoid a test failure on NetBSD 5.0.
25364         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25365         an iconv() bug.
25366
25367 2010-05-24  Bruno Haible  <bruno@clisp.org>
25368
25369         Adjust #include directive style.
25370         * modules/regex (Includes): Recommend to write <regex.h>.
25371
25372 2010-05-24  Bruno Haible  <bruno@clisp.org>
25373
25374         regex: Don't require alloca.
25375         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25376         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25377         only inside if (0).
25378
25379 2010-05-23  Jim Meyering  <meyering@redhat.com>
25380
25381         test-renameat.c: include <sys/stat.h>
25382         * tests/test-renameat.c: Include <sys/stat.h>; required for
25383         definition of S_IS* macros.
25384
25385 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25386
25387         Update maintainer documentation for 'relocatable-prog' module.
25388         * doc/relocatable-maint.texi: Update.
25389         Comments by Bruno Haible.
25390
25391 2010-05-23  Bruno Haible  <bruno@clisp.org>
25392
25393         git-merge-changelog: Enable --split-merged-entry by default.
25394         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25395         (usage): Don't mention this option any more.
25396         Reported by Ralf Wildenhues.
25397
25398 2010-05-23  Jim Meyering  <meyering@redhat.com>
25399
25400         test-pwrite: do not leave behind a test file named "out"
25401         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25402         The trivial-looking use of init.sh is really necessary.
25403         It ensures that the temporary file, "out", is created in
25404         a temporary directory, and removed upon termination.
25405         * tests/test-pwrite.sh: Re-add file.
25406         * modules/pwrite-tests: Reference it.
25407
25408 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25409
25410         Fix output redirection buglet in init.sh.
25411         * tests/init.sh: Fix redirection of stderr.
25412
25413 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25414
25415         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25416
25417 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25418
25419         * modules/valgrind-tests: New file.
25420         * m4/valgrind-tests.m4: New file.
25421         * doc/valgrind-tests.texi: New file.
25422         * doc/gnulib.texi (Running self-tests under valgrind): New
25423         section.
25424
25425 2010-05-19  Bruno Haible  <bruno@clisp.org>
25426
25427         Clean up dead code in recent commit.
25428         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25429         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25430         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25431         Suggested by Paolo Bonzini.
25432
25433 2010-05-19  Bruno Haible  <bruno@clisp.org>
25434
25435         Avoid valgrind error reports from libunistring.
25436         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25437         * modules/libunistring (Files): Add it.
25438         * modules/libunistring-optional (Files): Likewise.
25439
25440 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25441             Bruno Haible  <bruno@clisp.org>
25442
25443         New module 'libunistring-optional'.
25444         * modules/libunistring-optional: New file.
25445         * m4/libunistring-base.m4: New file.
25446         * m4/libunistring-optional.m4: New file.
25447         * lib/unicase.in.h: Renamed from lib/unicase.h.
25448         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25449         * lib/unictype.in.h: Renamed from lib/unictype.h.
25450         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25451         * lib/uniname.in.h: Renamed from lib/uniname.h.
25452         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25453         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25454         * lib/unistr.in.h: Renamed from lib/unistr.h.
25455         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25456         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25457         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25458         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25459         gl_LIBUNISTRING. If the library was found, determine the installed
25460         version and set LIBUNISTRING_VERSION.
25461         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25462         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25463         handle a configuration option --with-included-libunistring.
25464         * modules/libunistring (Files): Add m4/absolute-header.m4.
25465         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25466         Add m4/libunistring-base.m4.
25467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25468         (Makefile.am): Build unicase.h from unicase.in.h.
25469         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25470         Add m4/libunistring-base.m4.
25471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25472         (Makefile.am): Build uniconv.h from uniconv.in.h.
25473         * modules/unictype/base (Files): Use unictype.in.h instead of
25474         unictype.h. Add m4/libunistring-base.m4.
25475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25476         (Makefile.am): Build unictype.h from unictype.in.h.
25477         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25478         Add m4/libunistring-base.m4.
25479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25480         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25481         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25482         Add m4/libunistring-base.m4.
25483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25484         (Makefile.am): Build uniname.h from uniname.in.h.
25485         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25486         Add m4/libunistring-base.m4.
25487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25488         (Makefile.am): Build uninorm.h from uninorm.in.h.
25489         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25490         unistdio.h. Add m4/libunistring-base.m4.
25491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25492         (Makefile.am): Build unistdio.h from unistdio.in.h.
25493         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25494         Add m4/libunistring-base.m4.
25495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25496         (Makefile.am): Build unistr.h from unistr.in.h.
25497         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25498         Add m4/libunistring-base.m4.
25499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25500         (Makefile.am): Build unitypes.h from unitypes.in.h.
25501         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25502         Add m4/libunistring-base.m4.
25503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25504         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25505         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25506         uniwidth.h. Add m4/libunistring-base.m4.
25507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25508         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25509         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25510         instead of augmenting lib_SOURCES.
25511         * modules/unicase/empty-suffix-context: Likewise.
25512         * modules/unicase/locale-language: Likewise.
25513         * modules/unicase/tolower: Likewise.
25514         * modules/unicase/totitle: Likewise.
25515         * modules/unicase/toupper: Likewise.
25516         * modules/unicase/u8-casecmp: Likewise.
25517         * modules/unicase/u8-casecoll: Likewise.
25518         * modules/unicase/u8-casefold: Likewise.
25519         * modules/unicase/u8-casexfrm: Likewise.
25520         * modules/unicase/u8-ct-casefold: Likewise.
25521         * modules/unicase/u8-ct-tolower: Likewise.
25522         * modules/unicase/u8-ct-totitle: Likewise.
25523         * modules/unicase/u8-ct-toupper: Likewise.
25524         * modules/unicase/u8-is-cased: Likewise.
25525         * modules/unicase/u8-is-casefolded: Likewise.
25526         * modules/unicase/u8-is-lowercase: Likewise.
25527         * modules/unicase/u8-is-titlecase: Likewise.
25528         * modules/unicase/u8-is-uppercase: Likewise.
25529         * modules/unicase/u8-prefix-context: Likewise.
25530         * modules/unicase/u8-suffix-context: Likewise.
25531         * modules/unicase/u8-tolower: Likewise.
25532         * modules/unicase/u8-totitle: Likewise.
25533         * modules/unicase/u8-toupper: Likewise.
25534         * modules/unicase/u16-casecmp: Likewise.
25535         * modules/unicase/u16-casecoll: Likewise.
25536         * modules/unicase/u16-casefold: Likewise.
25537         * modules/unicase/u16-casexfrm: Likewise.
25538         * modules/unicase/u16-ct-casefold: Likewise.
25539         * modules/unicase/u16-ct-tolower: Likewise.
25540         * modules/unicase/u16-ct-totitle: Likewise.
25541         * modules/unicase/u16-ct-toupper: Likewise.
25542         * modules/unicase/u16-is-cased: Likewise.
25543         * modules/unicase/u16-is-casefolded: Likewise.
25544         * modules/unicase/u16-is-lowercase: Likewise.
25545         * modules/unicase/u16-is-titlecase: Likewise.
25546         * modules/unicase/u16-is-uppercase: Likewise.
25547         * modules/unicase/u16-prefix-context: Likewise.
25548         * modules/unicase/u16-suffix-context: Likewise.
25549         * modules/unicase/u16-tolower: Likewise.
25550         * modules/unicase/u16-totitle: Likewise.
25551         * modules/unicase/u16-toupper: Likewise.
25552         * modules/unicase/u32-casecmp: Likewise.
25553         * modules/unicase/u32-casecoll: Likewise.
25554         * modules/unicase/u32-casefold: Likewise.
25555         * modules/unicase/u32-casexfrm: Likewise.
25556         * modules/unicase/u32-ct-casefold: Likewise.
25557         * modules/unicase/u32-ct-tolower: Likewise.
25558         * modules/unicase/u32-ct-totitle: Likewise.
25559         * modules/unicase/u32-ct-toupper: Likewise.
25560         * modules/unicase/u32-is-cased: Likewise.
25561         * modules/unicase/u32-is-casefolded: Likewise.
25562         * modules/unicase/u32-is-lowercase: Likewise.
25563         * modules/unicase/u32-is-titlecase: Likewise.
25564         * modules/unicase/u32-is-uppercase: Likewise.
25565         * modules/unicase/u32-prefix-context: Likewise.
25566         * modules/unicase/u32-suffix-context: Likewise.
25567         * modules/unicase/u32-tolower: Likewise.
25568         * modules/unicase/u32-totitle: Likewise.
25569         * modules/unicase/u32-toupper: Likewise.
25570         * modules/unicase/ulc-casecmp: Likewise.
25571         * modules/unicase/ulc-casecoll: Likewise.
25572         * modules/unicase/ulc-casexfrm: Likewise.
25573         * modules/uniconv/u8-conv-from-enc: Likewise.
25574         * modules/uniconv/u8-conv-to-enc: Likewise.
25575         * modules/uniconv/u8-strconv-from-enc: Likewise.
25576         * modules/uniconv/u8-strconv-from-locale: Likewise.
25577         * modules/uniconv/u8-strconv-to-enc: Likewise.
25578         * modules/uniconv/u8-strconv-to-locale: Likewise.
25579         * modules/uniconv/u16-conv-from-enc: Likewise.
25580         * modules/uniconv/u16-conv-to-enc: Likewise.
25581         * modules/uniconv/u16-strconv-from-enc: Likewise.
25582         * modules/uniconv/u16-strconv-from-locale: Likewise.
25583         * modules/uniconv/u16-strconv-to-enc: Likewise.
25584         * modules/uniconv/u16-strconv-to-locale: Likewise.
25585         * modules/uniconv/u32-conv-from-enc: Likewise.
25586         * modules/uniconv/u32-conv-to-enc: Likewise.
25587         * modules/uniconv/u32-strconv-from-enc: Likewise.
25588         * modules/uniconv/u32-strconv-from-locale: Likewise.
25589         * modules/uniconv/u32-strconv-to-enc: Likewise.
25590         * modules/uniconv/u32-strconv-to-locale: Likewise.
25591         * modules/unictype/bidicategory-byname: Likewise.
25592         * modules/unictype/bidicategory-name: Likewise.
25593         * modules/unictype/bidicategory-of: Likewise.
25594         * modules/unictype/bidicategory-test: Likewise.
25595         * modules/unictype/block-list: Likewise.
25596         * modules/unictype/block-test: Likewise.
25597         * modules/unictype/category-C: Likewise.
25598         * modules/unictype/category-Cc: Likewise.
25599         * modules/unictype/category-Cf: Likewise.
25600         * modules/unictype/category-Cn: Likewise.
25601         * modules/unictype/category-Co: Likewise.
25602         * modules/unictype/category-Cs: Likewise.
25603         * modules/unictype/category-L: Likewise.
25604         * modules/unictype/category-Ll: Likewise.
25605         * modules/unictype/category-Lm: Likewise.
25606         * modules/unictype/category-Lo: Likewise.
25607         * modules/unictype/category-Lt: Likewise.
25608         * modules/unictype/category-Lu: Likewise.
25609         * modules/unictype/category-M: Likewise.
25610         * modules/unictype/category-Mc: Likewise.
25611         * modules/unictype/category-Me: Likewise.
25612         * modules/unictype/category-Mn: Likewise.
25613         * modules/unictype/category-N: Likewise.
25614         * modules/unictype/category-Nd: Likewise.
25615         * modules/unictype/category-Nl: Likewise.
25616         * modules/unictype/category-No: Likewise.
25617         * modules/unictype/category-P: Likewise.
25618         * modules/unictype/category-Pc: Likewise.
25619         * modules/unictype/category-Pd: Likewise.
25620         * modules/unictype/category-Pe: Likewise.
25621         * modules/unictype/category-Pf: Likewise.
25622         * modules/unictype/category-Pi: Likewise.
25623         * modules/unictype/category-Po: Likewise.
25624         * modules/unictype/category-Ps: Likewise.
25625         * modules/unictype/category-S: Likewise.
25626         * modules/unictype/category-Sc: Likewise.
25627         * modules/unictype/category-Sk: Likewise.
25628         * modules/unictype/category-Sm: Likewise.
25629         * modules/unictype/category-So: Likewise.
25630         * modules/unictype/category-Z: Likewise.
25631         * modules/unictype/category-Zl: Likewise.
25632         * modules/unictype/category-Zp: Likewise.
25633         * modules/unictype/category-Zs: Likewise.
25634         * modules/unictype/category-and: Likewise.
25635         * modules/unictype/category-and-not: Likewise.
25636         * modules/unictype/category-byname: Likewise.
25637         * modules/unictype/category-name: Likewise.
25638         * modules/unictype/category-none: Likewise.
25639         * modules/unictype/category-of: Likewise.
25640         * modules/unictype/category-or: Likewise.
25641         * modules/unictype/category-test: Likewise.
25642         * modules/unictype/combining-class: Likewise.
25643         * modules/unictype/ctype-alnum: Likewise.
25644         * modules/unictype/ctype-alpha: Likewise.
25645         * modules/unictype/ctype-blank: Likewise.
25646         * modules/unictype/ctype-cntrl: Likewise.
25647         * modules/unictype/ctype-digit: Likewise.
25648         * modules/unictype/ctype-graph: Likewise.
25649         * modules/unictype/ctype-lower: Likewise.
25650         * modules/unictype/ctype-print: Likewise.
25651         * modules/unictype/ctype-punct: Likewise.
25652         * modules/unictype/ctype-space: Likewise.
25653         * modules/unictype/ctype-upper: Likewise.
25654         * modules/unictype/ctype-xdigit: Likewise.
25655         * modules/unictype/decimal-digit: Likewise.
25656         * modules/unictype/digit: Likewise.
25657         * modules/unictype/mirror: Likewise.
25658         * modules/unictype/numeric: Likewise.
25659         * modules/unictype/property-alphabetic: Likewise.
25660         * modules/unictype/property-ascii-hex-digit: Likewise.
25661         * modules/unictype/property-bidi-arabic-digit: Likewise.
25662         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25663         * modules/unictype/property-bidi-block-separator: Likewise.
25664         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25665         * modules/unictype/property-bidi-common-separator: Likewise.
25666         * modules/unictype/property-bidi-control: Likewise.
25667         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25668         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25669         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25670         * modules/unictype/property-bidi-european-digit: Likewise.
25671         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25672         * modules/unictype/property-bidi-left-to-right: Likewise.
25673         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25674         * modules/unictype/property-bidi-other-neutral: Likewise.
25675         * modules/unictype/property-bidi-pdf: Likewise.
25676         * modules/unictype/property-bidi-segment-separator: Likewise.
25677         * modules/unictype/property-bidi-whitespace: Likewise.
25678         * modules/unictype/property-byname: Likewise.
25679         * modules/unictype/property-combining: Likewise.
25680         * modules/unictype/property-composite: Likewise.
25681         * modules/unictype/property-currency-symbol: Likewise.
25682         * modules/unictype/property-dash: Likewise.
25683         * modules/unictype/property-decimal-digit: Likewise.
25684         * modules/unictype/property-default-ignorable-code-point: Likewise.
25685         * modules/unictype/property-deprecated: Likewise.
25686         * modules/unictype/property-diacritic: Likewise.
25687         * modules/unictype/property-extender: Likewise.
25688         * modules/unictype/property-format-control: Likewise.
25689         * modules/unictype/property-grapheme-base: Likewise.
25690         * modules/unictype/property-grapheme-extend: Likewise.
25691         * modules/unictype/property-grapheme-link: Likewise.
25692         * modules/unictype/property-hex-digit: Likewise.
25693         * modules/unictype/property-hyphen: Likewise.
25694         * modules/unictype/property-id-continue: Likewise.
25695         * modules/unictype/property-id-start: Likewise.
25696         * modules/unictype/property-ideographic: Likewise.
25697         * modules/unictype/property-ids-binary-operator: Likewise.
25698         * modules/unictype/property-ids-trinary-operator: Likewise.
25699         * modules/unictype/property-ignorable-control: Likewise.
25700         * modules/unictype/property-iso-control: Likewise.
25701         * modules/unictype/property-join-control: Likewise.
25702         * modules/unictype/property-left-of-pair: Likewise.
25703         * modules/unictype/property-line-separator: Likewise.
25704         * modules/unictype/property-logical-order-exception: Likewise.
25705         * modules/unictype/property-lowercase: Likewise.
25706         * modules/unictype/property-math: Likewise.
25707         * modules/unictype/property-non-break: Likewise.
25708         * modules/unictype/property-not-a-character: Likewise.
25709         * modules/unictype/property-numeric: Likewise.
25710         * modules/unictype/property-other-alphabetic: Likewise.
25711         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25712         * modules/unictype/property-other-grapheme-extend: Likewise.
25713         * modules/unictype/property-other-id-continue: Likewise.
25714         * modules/unictype/property-other-id-start: Likewise.
25715         * modules/unictype/property-other-lowercase: Likewise.
25716         * modules/unictype/property-other-math: Likewise.
25717         * modules/unictype/property-other-uppercase: Likewise.
25718         * modules/unictype/property-paired-punctuation: Likewise.
25719         * modules/unictype/property-paragraph-separator: Likewise.
25720         * modules/unictype/property-pattern-syntax: Likewise.
25721         * modules/unictype/property-pattern-white-space: Likewise.
25722         * modules/unictype/property-private-use: Likewise.
25723         * modules/unictype/property-punctuation: Likewise.
25724         * modules/unictype/property-quotation-mark: Likewise.
25725         * modules/unictype/property-radical: Likewise.
25726         * modules/unictype/property-sentence-terminal: Likewise.
25727         * modules/unictype/property-soft-dotted: Likewise.
25728         * modules/unictype/property-space: Likewise.
25729         * modules/unictype/property-terminal-punctuation: Likewise.
25730         * modules/unictype/property-test: Likewise.
25731         * modules/unictype/property-titlecase: Likewise.
25732         * modules/unictype/property-unassigned-code-value: Likewise.
25733         * modules/unictype/property-unified-ideograph: Likewise.
25734         * modules/unictype/property-uppercase: Likewise.
25735         * modules/unictype/property-variation-selector: Likewise.
25736         * modules/unictype/property-white-space: Likewise.
25737         * modules/unictype/property-xid-continue: Likewise.
25738         * modules/unictype/property-xid-start: Likewise.
25739         * modules/unictype/property-zero-width: Likewise.
25740         * modules/unictype/scripts: Likewise.
25741         * modules/unictype/syntax-c-ident: Likewise.
25742         * modules/unictype/syntax-c-whitespace: Likewise.
25743         * modules/unictype/syntax-java-ident: Likewise.
25744         * modules/unictype/syntax-java-whitespace: Likewise.
25745         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25746         * modules/unilbrk/u8-width-linebreaks: Likewise.
25747         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25748         * modules/unilbrk/u16-width-linebreaks: Likewise.
25749         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25750         * modules/unilbrk/u32-width-linebreaks: Likewise.
25751         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25752         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25753         * modules/uniname/uniname: Likewise.
25754         * modules/uninorm/canonical-decomposition: Likewise.
25755         * modules/uninorm/composition: Likewise.
25756         * modules/uninorm/decomposing-form: Likewise.
25757         * modules/uninorm/decomposition: Likewise.
25758         * modules/uninorm/filter: Likewise.
25759         * modules/uninorm/nfc: Likewise.
25760         * modules/uninorm/nfd: Likewise.
25761         * modules/uninorm/nfkc: Likewise.
25762         * modules/uninorm/nfkd: Likewise.
25763         * modules/uninorm/u8-normalize: Likewise.
25764         * modules/uninorm/u8-normcmp: Likewise.
25765         * modules/uninorm/u8-normcoll: Likewise.
25766         * modules/uninorm/u8-normxfrm: Likewise.
25767         * modules/uninorm/u16-normalize: Likewise.
25768         * modules/uninorm/u16-normcmp: Likewise.
25769         * modules/uninorm/u16-normcoll: Likewise.
25770         * modules/uninorm/u16-normxfrm: Likewise.
25771         * modules/uninorm/u32-normalize: Likewise.
25772         * modules/uninorm/u32-normcmp: Likewise.
25773         * modules/uninorm/u32-normcoll: Likewise.
25774         * modules/uninorm/u32-normxfrm: Likewise.
25775         * modules/unistdio/u8-asnprintf: Likewise.
25776         * modules/unistdio/u8-asprintf: Likewise.
25777         * modules/unistdio/u8-snprintf: Likewise.
25778         * modules/unistdio/u8-sprintf: Likewise.
25779         * modules/unistdio/u8-u8-asnprintf: Likewise.
25780         * modules/unistdio/u8-u8-asprintf: Likewise.
25781         * modules/unistdio/u8-u8-snprintf: Likewise.
25782         * modules/unistdio/u8-u8-sprintf: Likewise.
25783         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25784         * modules/unistdio/u8-u8-vasprintf: Likewise.
25785         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25786         * modules/unistdio/u8-u8-vsprintf: Likewise.
25787         * modules/unistdio/u8-vasnprintf: Likewise.
25788         * modules/unistdio/u8-vasprintf: Likewise.
25789         * modules/unistdio/u8-vsnprintf: Likewise.
25790         * modules/unistdio/u8-vsprintf: Likewise.
25791         * modules/unistdio/u16-asnprintf: Likewise.
25792         * modules/unistdio/u16-asprintf: Likewise.
25793         * modules/unistdio/u16-snprintf: Likewise.
25794         * modules/unistdio/u16-sprintf: Likewise.
25795         * modules/unistdio/u16-u16-asnprintf: Likewise.
25796         * modules/unistdio/u16-u16-asprintf: Likewise.
25797         * modules/unistdio/u16-u16-snprintf: Likewise.
25798         * modules/unistdio/u16-u16-sprintf: Likewise.
25799         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25800         * modules/unistdio/u16-u16-vasprintf: Likewise.
25801         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25802         * modules/unistdio/u16-u16-vsprintf: Likewise.
25803         * modules/unistdio/u16-vasnprintf: Likewise.
25804         * modules/unistdio/u16-vasprintf: Likewise.
25805         * modules/unistdio/u16-vsnprintf: Likewise.
25806         * modules/unistdio/u16-vsprintf: Likewise.
25807         * modules/unistdio/u32-asnprintf: Likewise.
25808         * modules/unistdio/u32-asprintf: Likewise.
25809         * modules/unistdio/u32-snprintf: Likewise.
25810         * modules/unistdio/u32-sprintf: Likewise.
25811         * modules/unistdio/u32-u32-asnprintf: Likewise.
25812         * modules/unistdio/u32-u32-asprintf: Likewise.
25813         * modules/unistdio/u32-u32-snprintf: Likewise.
25814         * modules/unistdio/u32-u32-sprintf: Likewise.
25815         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25816         * modules/unistdio/u32-u32-vasprintf: Likewise.
25817         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25818         * modules/unistdio/u32-u32-vsprintf: Likewise.
25819         * modules/unistdio/u32-vasnprintf: Likewise.
25820         * modules/unistdio/u32-vasprintf: Likewise.
25821         * modules/unistdio/u32-vsnprintf: Likewise.
25822         * modules/unistdio/u32-vsprintf: Likewise.
25823         * modules/unistdio/ulc-asnprintf: Likewise.
25824         * modules/unistdio/ulc-asprintf: Likewise.
25825         * modules/unistdio/ulc-fprintf: Likewise.
25826         * modules/unistdio/ulc-snprintf: Likewise.
25827         * modules/unistdio/ulc-sprintf: Likewise.
25828         * modules/unistdio/ulc-vasnprintf: Likewise.
25829         * modules/unistdio/ulc-vasprintf: Likewise.
25830         * modules/unistdio/ulc-vfprintf: Likewise.
25831         * modules/unistdio/ulc-vsnprintf: Likewise.
25832         * modules/unistdio/ulc-vsprintf: Likewise.
25833         * modules/unistr/u8-check: Likewise.
25834         * modules/unistr/u8-chr: Likewise.
25835         * modules/unistr/u8-cmp: Likewise.
25836         * modules/unistr/u8-cmp2: Likewise.
25837         * modules/unistr/u8-cpy: Likewise.
25838         * modules/unistr/u8-cpy-alloc: Likewise.
25839         * modules/unistr/u8-endswith: Likewise.
25840         * modules/unistr/u8-mblen: Likewise.
25841         * modules/unistr/u8-mbsnlen: Likewise.
25842         * modules/unistr/u8-mbtouc: Likewise.
25843         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25844         * modules/unistr/u8-mbtoucr: Likewise.
25845         * modules/unistr/u8-move: Likewise.
25846         * modules/unistr/u8-next: Likewise.
25847         * modules/unistr/u8-prev: Likewise.
25848         * modules/unistr/u8-set: Likewise.
25849         * modules/unistr/u8-startswith: Likewise.
25850         * modules/unistr/u8-stpcpy: Likewise.
25851         * modules/unistr/u8-stpncpy: Likewise.
25852         * modules/unistr/u8-strcat: Likewise.
25853         * modules/unistr/u8-strchr: Likewise.
25854         * modules/unistr/u8-strcmp: Likewise.
25855         * modules/unistr/u8-strcoll: Likewise.
25856         * modules/unistr/u8-strcpy: Likewise.
25857         * modules/unistr/u8-strcspn: Likewise.
25858         * modules/unistr/u8-strdup: Likewise.
25859         * modules/unistr/u8-strlen: Likewise.
25860         * modules/unistr/u8-strmblen: Likewise.
25861         * modules/unistr/u8-strmbtouc: Likewise.
25862         * modules/unistr/u8-strncat: Likewise.
25863         * modules/unistr/u8-strncmp: Likewise.
25864         * modules/unistr/u8-strncpy: Likewise.
25865         * modules/unistr/u8-strnlen: Likewise.
25866         * modules/unistr/u8-strpbrk: Likewise.
25867         * modules/unistr/u8-strrchr: Likewise.
25868         * modules/unistr/u8-strspn: Likewise.
25869         * modules/unistr/u8-strstr: Likewise.
25870         * modules/unistr/u8-strtok: Likewise.
25871         * modules/unistr/u8-to-u16: Likewise.
25872         * modules/unistr/u8-to-u32: Likewise.
25873         * modules/unistr/u8-uctomb: Likewise.
25874         * modules/unistr/u16-check: Likewise.
25875         * modules/unistr/u16-chr: Likewise.
25876         * modules/unistr/u16-cmp: Likewise.
25877         * modules/unistr/u16-cmp2: Likewise.
25878         * modules/unistr/u16-cpy: Likewise.
25879         * modules/unistr/u16-cpy-alloc: Likewise.
25880         * modules/unistr/u16-endswith: Likewise.
25881         * modules/unistr/u16-mblen: Likewise.
25882         * modules/unistr/u16-mbsnlen: Likewise.
25883         * modules/unistr/u16-mbtouc: Likewise.
25884         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25885         * modules/unistr/u16-mbtoucr: Likewise.
25886         * modules/unistr/u16-move: Likewise.
25887         * modules/unistr/u16-next: Likewise.
25888         * modules/unistr/u16-prev: Likewise.
25889         * modules/unistr/u16-set: Likewise.
25890         * modules/unistr/u16-startswith: Likewise.
25891         * modules/unistr/u16-stpcpy: Likewise.
25892         * modules/unistr/u16-stpncpy: Likewise.
25893         * modules/unistr/u16-strcat: Likewise.
25894         * modules/unistr/u16-strchr: Likewise.
25895         * modules/unistr/u16-strcmp: Likewise.
25896         * modules/unistr/u16-strcoll: Likewise.
25897         * modules/unistr/u16-strcpy: Likewise.
25898         * modules/unistr/u16-strcspn: Likewise.
25899         * modules/unistr/u16-strdup: Likewise.
25900         * modules/unistr/u16-strlen: Likewise.
25901         * modules/unistr/u16-strmblen: Likewise.
25902         * modules/unistr/u16-strmbtouc: Likewise.
25903         * modules/unistr/u16-strncat: Likewise.
25904         * modules/unistr/u16-strncmp: Likewise.
25905         * modules/unistr/u16-strncpy: Likewise.
25906         * modules/unistr/u16-strnlen: Likewise.
25907         * modules/unistr/u16-strpbrk: Likewise.
25908         * modules/unistr/u16-strrchr: Likewise.
25909         * modules/unistr/u16-strspn: Likewise.
25910         * modules/unistr/u16-strstr: Likewise.
25911         * modules/unistr/u16-strtok: Likewise.
25912         * modules/unistr/u16-to-u32: Likewise.
25913         * modules/unistr/u16-to-u8: Likewise.
25914         * modules/unistr/u16-uctomb: Likewise.
25915         * modules/unistr/u32-check: Likewise.
25916         * modules/unistr/u32-chr: Likewise.
25917         * modules/unistr/u32-cmp: Likewise.
25918         * modules/unistr/u32-cmp2: Likewise.
25919         * modules/unistr/u32-cpy: Likewise.
25920         * modules/unistr/u32-cpy-alloc: Likewise.
25921         * modules/unistr/u32-endswith: Likewise.
25922         * modules/unistr/u32-mblen: Likewise.
25923         * modules/unistr/u32-mbsnlen: Likewise.
25924         * modules/unistr/u32-mbtouc: Likewise.
25925         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25926         * modules/unistr/u32-mbtoucr: Likewise.
25927         * modules/unistr/u32-move: Likewise.
25928         * modules/unistr/u32-next: Likewise.
25929         * modules/unistr/u32-prev: Likewise.
25930         * modules/unistr/u32-set: Likewise.
25931         * modules/unistr/u32-startswith: Likewise.
25932         * modules/unistr/u32-stpcpy: Likewise.
25933         * modules/unistr/u32-stpncpy: Likewise.
25934         * modules/unistr/u32-strcat: Likewise.
25935         * modules/unistr/u32-strchr: Likewise.
25936         * modules/unistr/u32-strcmp: Likewise.
25937         * modules/unistr/u32-strcoll: Likewise.
25938         * modules/unistr/u32-strcpy: Likewise.
25939         * modules/unistr/u32-strcspn: Likewise.
25940         * modules/unistr/u32-strdup: Likewise.
25941         * modules/unistr/u32-strlen: Likewise.
25942         * modules/unistr/u32-strmblen: Likewise.
25943         * modules/unistr/u32-strmbtouc: Likewise.
25944         * modules/unistr/u32-strncat: Likewise.
25945         * modules/unistr/u32-strncmp: Likewise.
25946         * modules/unistr/u32-strncpy: Likewise.
25947         * modules/unistr/u32-strnlen: Likewise.
25948         * modules/unistr/u32-strpbrk: Likewise.
25949         * modules/unistr/u32-strrchr: Likewise.
25950         * modules/unistr/u32-strspn: Likewise.
25951         * modules/unistr/u32-strstr: Likewise.
25952         * modules/unistr/u32-strtok: Likewise.
25953         * modules/unistr/u32-to-u16: Likewise.
25954         * modules/unistr/u32-to-u8: Likewise.
25955         * modules/unistr/u32-uctomb: Likewise.
25956         * modules/uniwbrk/u8-wordbreaks: Likewise.
25957         * modules/uniwbrk/u16-wordbreaks: Likewise.
25958         * modules/uniwbrk/u32-wordbreaks: Likewise.
25959         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25960         * modules/uniwbrk/wordbreak-property: Likewise.
25961         * modules/uniwidth/u8-strwidth: Likewise.
25962         * modules/uniwidth/u8-width: Likewise.
25963         * modules/uniwidth/u16-strwidth: Likewise.
25964         * modules/uniwidth/u16-width: Likewise.
25965         * modules/uniwidth/u32-strwidth: Likewise.
25966         * modules/uniwidth/u32-width: Likewise.
25967         * modules/uniwidth/width: Likewise.
25968         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25969         with $(LIBUNISTRING).
25970         * modules/unicase/ignorable-tests: Likewise.
25971         * modules/unicase/locale-language-tests: Likewise.
25972         * modules/unicase/tolower-tests: Likewise.
25973         * modules/unicase/totitle-tests: Likewise.
25974         * modules/unicase/toupper-tests: Likewise.
25975         * modules/unicase/u8-casecmp-tests: Likewise.
25976         * modules/unicase/u8-casecoll-tests: Likewise.
25977         * modules/unicase/u8-casefold-tests: Likewise.
25978         * modules/unicase/u8-is-cased-tests: Likewise.
25979         * modules/unicase/u8-is-casefolded-tests: Likewise.
25980         * modules/unicase/u8-is-lowercase-tests: Likewise.
25981         * modules/unicase/u8-is-titlecase-tests: Likewise.
25982         * modules/unicase/u8-is-uppercase-tests: Likewise.
25983         * modules/unicase/u8-tolower-tests: Likewise.
25984         * modules/unicase/u8-totitle-tests: Likewise.
25985         * modules/unicase/u8-toupper-tests: Likewise.
25986         * modules/unicase/u16-casecmp-tests: Likewise.
25987         * modules/unicase/u16-casecoll-tests: Likewise.
25988         * modules/unicase/u16-casefold-tests: Likewise.
25989         * modules/unicase/u16-is-cased-tests: Likewise.
25990         * modules/unicase/u16-is-casefolded-tests: Likewise.
25991         * modules/unicase/u16-is-lowercase-tests: Likewise.
25992         * modules/unicase/u16-is-titlecase-tests: Likewise.
25993         * modules/unicase/u16-is-uppercase-tests: Likewise.
25994         * modules/unicase/u16-tolower-tests: Likewise.
25995         * modules/unicase/u16-totitle-tests: Likewise.
25996         * modules/unicase/u16-toupper-tests: Likewise.
25997         * modules/unicase/u32-casecmp-tests: Likewise.
25998         * modules/unicase/u32-casecoll-tests: Likewise.
25999         * modules/unicase/u32-casefold-tests: Likewise.
26000         * modules/unicase/u32-is-cased-tests: Likewise.
26001         * modules/unicase/u32-is-casefolded-tests: Likewise.
26002         * modules/unicase/u32-is-lowercase-tests: Likewise.
26003         * modules/unicase/u32-is-titlecase-tests: Likewise.
26004         * modules/unicase/u32-is-uppercase-tests: Likewise.
26005         * modules/unicase/u32-tolower-tests: Likewise.
26006         * modules/unicase/u32-totitle-tests: Likewise.
26007         * modules/unicase/u32-toupper-tests: Likewise.
26008         * modules/unicase/ulc-casecmp-tests: Likewise.
26009         * modules/unicase/ulc-casecoll-tests: Likewise.
26010         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
26011         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
26012         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
26013         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
26014         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
26015         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
26016         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
26017         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
26018         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
26019         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
26020         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
26021         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
26022         * modules/unictype/bidicategory-byname-tests: Likewise.
26023         * modules/unictype/bidicategory-name-tests: Likewise.
26024         * modules/unictype/bidicategory-of-tests: Likewise.
26025         * modules/unictype/bidicategory-test-tests: Likewise.
26026         * modules/unictype/block-list-tests: Likewise.
26027         * modules/unictype/block-of-tests: Likewise.
26028         * modules/unictype/block-test-tests: Likewise.
26029         * modules/unictype/category-C-tests: Likewise.
26030         * modules/unictype/category-Cc-tests: Likewise.
26031         * modules/unictype/category-Cf-tests: Likewise.
26032         * modules/unictype/category-Cn-tests: Likewise.
26033         * modules/unictype/category-Co-tests: Likewise.
26034         * modules/unictype/category-Cs-tests: Likewise.
26035         * modules/unictype/category-L-tests: Likewise.
26036         * modules/unictype/category-Ll-tests: Likewise.
26037         * modules/unictype/category-Lm-tests: Likewise.
26038         * modules/unictype/category-Lo-tests: Likewise.
26039         * modules/unictype/category-Lt-tests: Likewise.
26040         * modules/unictype/category-Lu-tests: Likewise.
26041         * modules/unictype/category-M-tests: Likewise.
26042         * modules/unictype/category-Mc-tests: Likewise.
26043         * modules/unictype/category-Me-tests: Likewise.
26044         * modules/unictype/category-Mn-tests: Likewise.
26045         * modules/unictype/category-N-tests: Likewise.
26046         * modules/unictype/category-Nd-tests: Likewise.
26047         * modules/unictype/category-Nl-tests: Likewise.
26048         * modules/unictype/category-No-tests: Likewise.
26049         * modules/unictype/category-P-tests: Likewise.
26050         * modules/unictype/category-Pc-tests: Likewise.
26051         * modules/unictype/category-Pd-tests: Likewise.
26052         * modules/unictype/category-Pe-tests: Likewise.
26053         * modules/unictype/category-Pf-tests: Likewise.
26054         * modules/unictype/category-Pi-tests: Likewise.
26055         * modules/unictype/category-Po-tests: Likewise.
26056         * modules/unictype/category-Ps-tests: Likewise.
26057         * modules/unictype/category-S-tests: Likewise.
26058         * modules/unictype/category-Sc-tests: Likewise.
26059         * modules/unictype/category-Sk-tests: Likewise.
26060         * modules/unictype/category-Sm-tests: Likewise.
26061         * modules/unictype/category-So-tests: Likewise.
26062         * modules/unictype/category-Z-tests: Likewise.
26063         * modules/unictype/category-Zl-tests: Likewise.
26064         * modules/unictype/category-Zp-tests: Likewise.
26065         * modules/unictype/category-Zs-tests: Likewise.
26066         * modules/unictype/category-and-not-tests: Likewise.
26067         * modules/unictype/category-and-tests: Likewise.
26068         * modules/unictype/category-byname-tests: Likewise.
26069         * modules/unictype/category-name-tests: Likewise.
26070         * modules/unictype/category-none-tests: Likewise.
26071         * modules/unictype/category-of-tests: Likewise.
26072         * modules/unictype/category-or-tests: Likewise.
26073         * modules/unictype/category-test-withtable-tests: Likewise.
26074         * modules/unictype/combining-class-tests: Likewise.
26075         * modules/unictype/ctype-alnum-tests: Likewise.
26076         * modules/unictype/ctype-alpha-tests: Likewise.
26077         * modules/unictype/ctype-blank-tests: Likewise.
26078         * modules/unictype/ctype-cntrl-tests: Likewise.
26079         * modules/unictype/ctype-digit-tests: Likewise.
26080         * modules/unictype/ctype-graph-tests: Likewise.
26081         * modules/unictype/ctype-lower-tests: Likewise.
26082         * modules/unictype/ctype-print-tests: Likewise.
26083         * modules/unictype/ctype-punct-tests: Likewise.
26084         * modules/unictype/ctype-space-tests: Likewise.
26085         * modules/unictype/ctype-upper-tests: Likewise.
26086         * modules/unictype/ctype-xdigit-tests: Likewise.
26087         * modules/unictype/decimal-digit-tests: Likewise.
26088         * modules/unictype/digit-tests: Likewise.
26089         * modules/unictype/mirror-tests: Likewise.
26090         * modules/unictype/numeric-tests: Likewise.
26091         * modules/unictype/property-alphabetic-tests: Likewise.
26092         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
26093         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
26094         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
26095         * modules/unictype/property-bidi-block-separator-tests: Likewise.
26096         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
26097         * modules/unictype/property-bidi-common-separator-tests: Likewise.
26098         * modules/unictype/property-bidi-control-tests: Likewise.
26099         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
26100         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
26101         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
26102         * modules/unictype/property-bidi-european-digit-tests: Likewise.
26103         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
26104         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
26105         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
26106         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
26107         * modules/unictype/property-bidi-pdf-tests: Likewise.
26108         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
26109         * modules/unictype/property-bidi-whitespace-tests: Likewise.
26110         * modules/unictype/property-byname-tests: Likewise.
26111         * modules/unictype/property-combining-tests: Likewise.
26112         * modules/unictype/property-composite-tests: Likewise.
26113         * modules/unictype/property-currency-symbol-tests: Likewise.
26114         * modules/unictype/property-dash-tests: Likewise.
26115         * modules/unictype/property-decimal-digit-tests: Likewise.
26116         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
26117         * modules/unictype/property-deprecated-tests: Likewise.
26118         * modules/unictype/property-diacritic-tests: Likewise.
26119         * modules/unictype/property-extender-tests: Likewise.
26120         * modules/unictype/property-format-control-tests: Likewise.
26121         * modules/unictype/property-grapheme-base-tests: Likewise.
26122         * modules/unictype/property-grapheme-extend-tests: Likewise.
26123         * modules/unictype/property-grapheme-link-tests: Likewise.
26124         * modules/unictype/property-hex-digit-tests: Likewise.
26125         * modules/unictype/property-hyphen-tests: Likewise.
26126         * modules/unictype/property-id-continue-tests: Likewise.
26127         * modules/unictype/property-id-start-tests: Likewise.
26128         * modules/unictype/property-ideographic-tests: Likewise.
26129         * modules/unictype/property-ids-binary-operator-tests: Likewise.
26130         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
26131         * modules/unictype/property-ignorable-control-tests: Likewise.
26132         * modules/unictype/property-iso-control-tests: Likewise.
26133         * modules/unictype/property-join-control-tests: Likewise.
26134         * modules/unictype/property-left-of-pair-tests: Likewise.
26135         * modules/unictype/property-line-separator-tests: Likewise.
26136         * modules/unictype/property-logical-order-exception-tests: Likewise.
26137         * modules/unictype/property-lowercase-tests: Likewise.
26138         * modules/unictype/property-math-tests: Likewise.
26139         * modules/unictype/property-non-break-tests: Likewise.
26140         * modules/unictype/property-not-a-character-tests: Likewise.
26141         * modules/unictype/property-numeric-tests: Likewise.
26142         * modules/unictype/property-other-alphabetic-tests: Likewise.
26143         * modules/unictype/property-other-default-ignorable-code-point-tests:
26144         Likewise.
26145         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
26146         * modules/unictype/property-other-id-continue-tests: Likewise.
26147         * modules/unictype/property-other-id-start-tests: Likewise.
26148         * modules/unictype/property-other-lowercase-tests: Likewise.
26149         * modules/unictype/property-other-math-tests: Likewise.
26150         * modules/unictype/property-other-uppercase-tests: Likewise.
26151         * modules/unictype/property-paired-punctuation-tests: Likewise.
26152         * modules/unictype/property-paragraph-separator-tests: Likewise.
26153         * modules/unictype/property-pattern-syntax-tests: Likewise.
26154         * modules/unictype/property-pattern-white-space-tests: Likewise.
26155         * modules/unictype/property-private-use-tests: Likewise.
26156         * modules/unictype/property-punctuation-tests: Likewise.
26157         * modules/unictype/property-quotation-mark-tests: Likewise.
26158         * modules/unictype/property-radical-tests: Likewise.
26159         * modules/unictype/property-sentence-terminal-tests: Likewise.
26160         * modules/unictype/property-soft-dotted-tests: Likewise.
26161         * modules/unictype/property-space-tests: Likewise.
26162         * modules/unictype/property-terminal-punctuation-tests: Likewise.
26163         * modules/unictype/property-test-tests: Likewise.
26164         * modules/unictype/property-titlecase-tests: Likewise.
26165         * modules/unictype/property-unassigned-code-value-tests: Likewise.
26166         * modules/unictype/property-unified-ideograph-tests: Likewise.
26167         * modules/unictype/property-uppercase-tests: Likewise.
26168         * modules/unictype/property-variation-selector-tests: Likewise.
26169         * modules/unictype/property-white-space-tests: Likewise.
26170         * modules/unictype/property-xid-continue-tests: Likewise.
26171         * modules/unictype/property-xid-start-tests: Likewise.
26172         * modules/unictype/property-zero-width-tests: Likewise.
26173         * modules/unictype/scripts-tests: Likewise.
26174         * modules/unictype/syntax-c-ident-tests: Likewise.
26175         * modules/unictype/syntax-c-whitespace-tests: Likewise.
26176         * modules/unictype/syntax-java-ident-tests: Likewise.
26177         * modules/unictype/syntax-java-whitespace-tests: Likewise.
26178         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
26179         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
26180         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
26181         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
26182         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
26183         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
26184         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
26185         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
26186         * modules/uniname/uniname-tests: Likewise.
26187         * modules/uninorm/canonical-decomposition-tests: Likewise.
26188         * modules/uninorm/compat-decomposition-tests: Likewise.
26189         * modules/uninorm/composition-tests: Likewise.
26190         * modules/uninorm/decomposing-form-tests: Likewise.
26191         * modules/uninorm/decomposition-tests: Likewise.
26192         * modules/uninorm/filter-tests: Likewise.
26193         * modules/uninorm/nfc-tests: Likewise.
26194         * modules/uninorm/nfd-tests: Likewise.
26195         * modules/uninorm/nfkc-tests: Likewise.
26196         * modules/uninorm/nfkd-tests: Likewise.
26197         * modules/uninorm/u8-normcmp-tests: Likewise.
26198         * modules/uninorm/u8-normcoll-tests: Likewise.
26199         * modules/uninorm/u16-normcmp-tests: Likewise.
26200         * modules/uninorm/u16-normcoll-tests: Likewise.
26201         * modules/uninorm/u32-normcmp-tests: Likewise.
26202         * modules/uninorm/u32-normcoll-tests: Likewise.
26203         * modules/unistdio/u8-asnprintf-tests: Likewise.
26204         * modules/unistdio/u8-vasnprintf-tests: Likewise.
26205         * modules/unistdio/u8-vasprintf-tests: Likewise.
26206         * modules/unistdio/u8-vsnprintf-tests: Likewise.
26207         * modules/unistdio/u8-vsprintf-tests: Likewise.
26208         * modules/unistdio/u16-asnprintf-tests: Likewise.
26209         * modules/unistdio/u16-vasnprintf-tests: Likewise.
26210         * modules/unistdio/u16-vasprintf-tests: Likewise.
26211         * modules/unistdio/u16-vsnprintf-tests: Likewise.
26212         * modules/unistdio/u16-vsprintf-tests: Likewise.
26213         * modules/unistdio/u32-asnprintf-tests: Likewise.
26214         * modules/unistdio/u32-vasnprintf-tests: Likewise.
26215         * modules/unistdio/u32-vasprintf-tests: Likewise.
26216         * modules/unistdio/u32-vsnprintf-tests: Likewise.
26217         * modules/unistdio/u32-vsprintf-tests: Likewise.
26218         * modules/unistdio/ulc-asnprintf-tests: Likewise.
26219         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
26220         * modules/unistdio/ulc-vasprintf-tests: Likewise.
26221         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26222         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26223         * modules/unistr/u8-check-tests: Likewise.
26224         * modules/unistr/u8-chr-tests: Likewise.
26225         * modules/unistr/u8-cmp-tests: Likewise.
26226         * modules/unistr/u8-cmp2-tests: Likewise.
26227         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26228         * modules/unistr/u8-cpy-tests: Likewise.
26229         * modules/unistr/u8-mblen-tests: Likewise.
26230         * modules/unistr/u8-mbsnlen-tests: Likewise.
26231         * modules/unistr/u8-mbtouc-tests: Likewise.
26232         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26233         * modules/unistr/u8-mbtoucr-tests: Likewise.
26234         * modules/unistr/u8-move-tests: Likewise.
26235         * modules/unistr/u8-next-tests: Likewise.
26236         * modules/unistr/u8-prev-tests: Likewise.
26237         * modules/unistr/u8-set-tests: Likewise.
26238         * modules/unistr/u8-stpcpy-tests: Likewise.
26239         * modules/unistr/u8-stpncpy-tests: Likewise.
26240         * modules/unistr/u8-strcat-tests: Likewise.
26241         * modules/unistr/u8-strcmp-tests: Likewise.
26242         * modules/unistr/u8-strcoll-tests: Likewise.
26243         * modules/unistr/u8-strcpy-tests: Likewise.
26244         * modules/unistr/u8-strdup-tests: Likewise.
26245         * modules/unistr/u8-strlen-tests: Likewise.
26246         * modules/unistr/u8-strmblen-tests: Likewise.
26247         * modules/unistr/u8-strmbtouc-tests: Likewise.
26248         * modules/unistr/u8-strncat-tests: Likewise.
26249         * modules/unistr/u8-strncmp-tests: Likewise.
26250         * modules/unistr/u8-strncpy-tests: Likewise.
26251         * modules/unistr/u8-strnlen-tests: Likewise.
26252         * modules/unistr/u8-to-u16-tests: Likewise.
26253         * modules/unistr/u8-to-u32-tests: Likewise.
26254         * modules/unistr/u8-uctomb-tests: Likewise.
26255         * modules/unistr/u16-check-tests: Likewise.
26256         * modules/unistr/u16-chr-tests: Likewise.
26257         * modules/unistr/u16-cmp-tests: Likewise.
26258         * modules/unistr/u16-cmp2-tests: Likewise.
26259         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26260         * modules/unistr/u16-cpy-tests: Likewise.
26261         * modules/unistr/u16-mblen-tests: Likewise.
26262         * modules/unistr/u16-mbsnlen-tests: Likewise.
26263         * modules/unistr/u16-mbtouc-tests: Likewise.
26264         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26265         * modules/unistr/u16-mbtoucr-tests: Likewise.
26266         * modules/unistr/u16-move-tests: Likewise.
26267         * modules/unistr/u16-next-tests: Likewise.
26268         * modules/unistr/u16-prev-tests: Likewise.
26269         * modules/unistr/u16-set-tests: Likewise.
26270         * modules/unistr/u16-stpcpy-tests: Likewise.
26271         * modules/unistr/u16-stpncpy-tests: Likewise.
26272         * modules/unistr/u16-strcat-tests: Likewise.
26273         * modules/unistr/u16-strcmp-tests: Likewise.
26274         * modules/unistr/u16-strcoll-tests: Likewise.
26275         * modules/unistr/u16-strcpy-tests: Likewise.
26276         * modules/unistr/u16-strdup-tests: Likewise.
26277         * modules/unistr/u16-strlen-tests: Likewise.
26278         * modules/unistr/u16-strmblen-tests: Likewise.
26279         * modules/unistr/u16-strmbtouc-tests: Likewise.
26280         * modules/unistr/u16-strncat-tests: Likewise.
26281         * modules/unistr/u16-strncmp-tests: Likewise.
26282         * modules/unistr/u16-strncpy-tests: Likewise.
26283         * modules/unistr/u16-strnlen-tests: Likewise.
26284         * modules/unistr/u16-to-u32-tests: Likewise.
26285         * modules/unistr/u16-to-u8-tests: Likewise.
26286         * modules/unistr/u16-uctomb-tests: Likewise.
26287         * modules/unistr/u32-check-tests: Likewise.
26288         * modules/unistr/u32-chr-tests: Likewise.
26289         * modules/unistr/u32-cmp-tests: Likewise.
26290         * modules/unistr/u32-cmp2-tests: Likewise.
26291         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26292         * modules/unistr/u32-cpy-tests: Likewise.
26293         * modules/unistr/u32-mblen-tests: Likewise.
26294         * modules/unistr/u32-mbsnlen-tests: Likewise.
26295         * modules/unistr/u32-mbtouc-tests: Likewise.
26296         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26297         * modules/unistr/u32-mbtoucr-tests: Likewise.
26298         * modules/unistr/u32-move-tests: Likewise.
26299         * modules/unistr/u32-next-tests: Likewise.
26300         * modules/unistr/u32-prev-tests: Likewise.
26301         * modules/unistr/u32-set-tests: Likewise.
26302         * modules/unistr/u32-stpcpy-tests: Likewise.
26303         * modules/unistr/u32-stpncpy-tests: Likewise.
26304         * modules/unistr/u32-strcat-tests: Likewise.
26305         * modules/unistr/u32-strcmp-tests: Likewise.
26306         * modules/unistr/u32-strcoll-tests: Likewise.
26307         * modules/unistr/u32-strcpy-tests: Likewise.
26308         * modules/unistr/u32-strdup-tests: Likewise.
26309         * modules/unistr/u32-strlen-tests: Likewise.
26310         * modules/unistr/u32-strmblen-tests: Likewise.
26311         * modules/unistr/u32-strmbtouc-tests: Likewise.
26312         * modules/unistr/u32-strncat-tests: Likewise.
26313         * modules/unistr/u32-strncmp-tests: Likewise.
26314         * modules/unistr/u32-strncpy-tests: Likewise.
26315         * modules/unistr/u32-strnlen-tests: Likewise.
26316         * modules/unistr/u32-to-u16-tests: Likewise.
26317         * modules/unistr/u32-to-u8-tests: Likewise.
26318         * modules/unistr/u32-uctomb-tests: Likewise.
26319         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26320         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26321         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26322         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26323         * modules/uniwidth/u8-strwidth-tests: Likewise.
26324         * modules/uniwidth/u8-width-tests: Likewise.
26325         * modules/uniwidth/u16-strwidth-tests: Likewise.
26326         * modules/uniwidth/u16-width-tests: Likewise.
26327         * modules/uniwidth/u32-strwidth-tests: Likewise.
26328         * modules/uniwidth/u32-width-tests: Likewise.
26329         * modules/uniwidth/width-tests: Likewise.
26330
26331 2010-05-18  Richard Jones  <rjones@redhat.com>
26332
26333         doc: users.txt: list hivex
26334         * users.txt: Add hivex.
26335
26336 2010-05-18  Richard Jones  <rjones@redhat.com>
26337
26338         doc: users.txt: list febootstrap
26339         * users.txt: Add febootstrap.
26340
26341 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26342
26343         bootstrap: fix an error when gnulib is not used as a git submodule
26344         * build-aux/bootstrap (gnulib_path): If its length is zero then
26345         assign "gnulib" to it.
26346         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26347
26348 2010-05-16  Bruno Haible  <bruno@clisp.org>
26349
26350         Avoid autoconf warnings about AM_ICONV.
26351         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26352         2.64.
26353
26354 2010-05-16  Bruno Haible  <bruno@clisp.org>
26355
26356         absolute-header: Make the macro usable in more situations.
26357         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26358         from gl_ABSOLUTE_HEADER.
26359         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26360
26361 2010-05-16  James Youngman  <jay@gnu.org>
26362
26363         doc: update users.txt
26364         * users.txt: Add CSSC.
26365
26366 2010-05-16  Jim Meyering  <meyering@redhat.com>
26367
26368         init.sh: fix an error in the previous change; add more comments
26369         * tests/init.sh: Compare exit code in loop against 9, not 2.
26370         Patch by Bruno Haible.
26371         Make the two tests more similar by adding an empty "then" clause.
26372         Add comments.
26373
26374         init.sh: avoid unnecessary shell re-exec
26375         * tests/init.sh: Improve the re-exec-required check to first test the
26376         current shell.  If it passes the test, do not search for a shell that
26377         does pass, and do not re-exec.  This test is particularly contorted to
26378         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26379         of $(...) evokes a syntax error and causes immediate shell exit with
26380         status 2.  Bruno Haible reported that the re-exec made it impossible
26381         to single-step through any init.sh-using script.
26382
26383 2010-05-16  Bruno Haible  <bruno@clisp.org>
26384
26385         Fix collision between gnulib's and libintl's printf replacements.
26386         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26387         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26388         (printf): When using GNU C, map the __printf__ function to rpl_printf
26389         via __asm__. When not using GNU C, define rpl_printf instead of
26390         __printf__.
26391         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26392         commit.
26393         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26394         commit.
26395         * m4/asm-underscore.m4: New file.
26396         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26397         * modules/stdio (Files): Add m4/asm-underscore.m4.
26398         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26399         Reported by Ben Pfaff.
26400
26401 2010-05-16  Bruno Haible  <bruno@clisp.org>
26402
26403         verify: Avoid skipping the test on openSUSE 11.0.
26404         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26405
26406 2010-05-13  Bruno Haible  <bruno@clisp.org>
26407
26408         Avoid useless warnings from G++.
26409         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26410         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26411         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26412
26413 2010-05-11  Jim Meyering  <meyering@redhat.com>
26414
26415         maint.mk: tweak preceding change
26416         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26417         regexps tighter by anchoring at EOL, and make the new group "shy"
26418         for slightly decreased overhead.
26419
26420 2010-05-11  Eric Blake  <eblake@redhat.com>
26421
26422         maint.mk: gnulib doesn't guarantee NSIG
26423         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26424
26425 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26426
26427         test-pwrite.c: Remove unused variable declaration.
26428         * tests/test-pwrite.c (main): Remove read_buf declaration.
26429
26430         Remove useless test-pwrite.sh file.
26431         * tests/test-pwrite.sh: Delete file.
26432         * modules/pwrite-tests: Remove references.
26433         Reported by Bruno Haible.
26434
26435 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26436
26437         init.sh: fix a typo
26438         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26439
26440 2010-05-10  Jim Meyering  <meyering@redhat.com>
26441
26442         maint.mk: avoid using a temporary file in the always-defined-macros check
26443         * top/maint.mk (.re-defmac): Remove rule.
26444         (gl_trap_): Remove definition.
26445         (sc_prohibit_always-defined_macros): Rewrite not to create and
26446         depend on a temporary file.  Instead, depend on GNU grep's ability
26447         to read a list of regular expressions from stdin when given "-f -".
26448
26449 2010-05-09  Bruno Haible  <bruno@clisp.org>
26450
26451         Update to GNU gettext 0.18, part 1.
26452         * m4/gettext.m4: Update to GNU gettext 0.18.
26453         * m4/intl.m4: Likewise.
26454         * m4/po.m4: Likewise.
26455         * modules/gettext (Files): Add m4/fcntl-o.m4.
26456         (configure.ac): Require gettext infrastructure from version 0.18.
26457
26458 2010-05-09  Jim Meyering  <meyering@redhat.com>
26459
26460         init.sh: enable MALLOC_PERTURB_
26461         * tests/init.sh: Enable glibc's malloc-perturbing option.
26462
26463         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26464         With my recent change in init.sh from the two-line form:
26465             -#   : ${srcdir=.}
26466             -#   . "$srcdir/init.sh"; path_prepend_ .
26467             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26468         I noticed that using the one-line form would cause this test
26469         to fail with a false-positive, or to stop working altogether,
26470         depending on whether help-version changed or all the tests did.
26471         * top/maint.mk (_hv_regex): Remove this definition.
26472         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26473         (_hv_regex_strong): Use a stronger regex to check for conformance.
26474         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26475         Give a separate diagnostic for lack of conforming use.
26476
26477         maint.mk: prohibit definition of symbols defined by gnulib
26478         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26479         definition of symbols defined by gnulib.
26480
26481 2010-05-09  Bruno Haible  <bruno@clisp.org>
26482
26483         acl: Avoid test failure on Cygwin-hosted mingw.
26484         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26485
26486 2010-05-09  Bruno Haible  <bruno@clisp.org>
26487
26488         error: Use system's fcntl function.
26489         * lib/error.c (fcntl): Undefine.
26490
26491 2010-05-09  Jim Meyering  <meyering@redhat.com>
26492
26493         verify: adjust formatting to be more consistent
26494         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26495         argument-list '('s, and after one comma.
26496
26497 2010-05-09  Bruno Haible  <bruno@clisp.org>
26498
26499         error: More reliable output on mingw.
26500         * lib/error.c: Include <windows.h>.
26501         (is_open): New function.
26502         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26503         defined.
26504
26505 2010-05-09  Bruno Haible  <bruno@clisp.org>
26506
26507         vasnprintf: Fix syntax errors in libintl build on mingw.
26508         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26509         pad_ourselves and prec_ourselves after use.
26510
26511 2010-05-08  Bruno Haible  <bruno@clisp.org>
26512
26513         * lib/config.charset: Update comments for Cygwin 1.7.
26514         * lib/localcharset.c: Likewise.
26515
26516 2010-05-07  Jim Meyering  <meyering@redhat.com>
26517
26518         init.sh: improve comments
26519         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26520         . "${srcdir=.}/init.sh"; path_prepend_ .
26521         Add a note about path_prepend_ and the alternative of using
26522         TESTS_ENVIRONMENT.
26523
26524 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26525
26526         exclude: Unescape hashed patterns in wildcard mode.
26527         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26528         to the hash list.
26529         * tests/test-exclude8.sh: New test case.
26530         * modules/exclude-tests: Add new test.
26531
26532 2010-05-05  Eric Blake  <eblake@redhat.com>
26533
26534         verify: automate tests
26535         * modules/verify-tests: New module.
26536         * tests/test-verify.sh: New file.
26537         * tests/test-verify.c: Guard each negative test with a unique id.
26538         Also avoid warning about unused left hand of comma expressions.
26539
26540 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         Further improvements to verify.h, suggested by Eric Blake.
26543         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26544         the GL_* versions, to avoid collision with OpenGL.
26545         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26546         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26547         than testing merely whether it's defined.
26548
26549         Modify verify.h to pacify gcc -Wredundant_decls.
26550         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26551         These use the prefix "GL_" since they're likely to be useful elsewhere.
26552         We may need to break them out into a different .h file.
26553         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26554         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26555         of verify_function__.
26556
26557 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26558
26559         Tests for module pwrite.
26560         * modules/pwrite-tests: New file.
26561         * tests/test-pwrite.sh: New file.
26562         * tests/test-pwrite.c: New file.
26563
26564         New module pwrite.
26565         * lib/unistd.in.h (pwrite): New declaration.
26566         * lib/pwrite.c: New file, from glibc with modifications.
26567         * m4/pwrite.m4: New file.
26568         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26569         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26570         REPLACE_PWRITE.
26571         * modules/pwrite: New file.
26572         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26573         REPLACE_PWRITE.
26574         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26575         * doc/posix-functions/pwrite.texi: Mention the new module.
26576
26577 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26578
26579         pread: Update documentation.
26580         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26581
26582 2010-05-04  Eric Blake  <eblake@redhat.com>
26583
26584         docs: update cygwin progress
26585         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26586         this bug.
26587         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26588         Added in cygwin 1.7.2.
26589         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26590         Likewise.
26591         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26592         Likewise.
26593         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26594         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26595         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26596         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26597         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26598         Mention nproc module.
26599         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26600         bug in cygwin 1.7.5 addition.
26601         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26602         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26603         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26604         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26605         1.7.5.
26606         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26607         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26608         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26609         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26610         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26611         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26612         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26613         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26614         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26615         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26616         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26617         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26618         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26619         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26620         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26621         Likewise.
26622         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26623         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26624         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26625         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26626         Likewise.
26627         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26628         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26629         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26630         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26631         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26632         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26633         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26634         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26635         Likewise.
26636         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26637         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26638         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26639         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26640         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26641         Likewise.
26642         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26643         Likewise.
26644         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26645         Likewise.
26646         * doc/glibc-functions/xdrrec_endofrecord.texi
26647         (xdrrec_endofrecord): Likewise.
26648         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26649         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26650         Likewise.
26651         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26652         Likewise.
26653
26654 2010-05-04  Jim Meyering  <meyering@redhat.com>
26655
26656         gendocs.sh: make its "-s FILE" option more useful
26657         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26658         $PACKAGE to reflect the probably-different basename of "FILE".
26659
26660 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26661
26662         bootstrap: don't ignore download_po_files failure
26663         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26664         failure.
26665
26666 2010-05-03  Jim Meyering  <meyering@redhat.com>
26667
26668         maint.mk: allow to pass options to gendocs.sh
26669         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26670         (gendocs_options_): New overridable variable.
26671
26672         gnu-web-doc-update: don't ignore configure or build failure
26673         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26674
26675         announce-gen: backslash-escape '@'s in --help output
26676         * build-aux/announce-gen: Fix syntax errors.
26677
26678         maint.mk, announce-gen: allow project-specific announcement mail headers
26679         * top/maint.mk (translation_project_): Define default.
26680         (announcement_Cc_, announcement_mail_headers_): Likewise.
26681         (announcement): Invoke announce-gen with new --mail-headers option.
26682         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26683
26684         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26685         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26686         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26687         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26688         line in the "err2" output file when running "make check" in verbose
26689         mode (i.e., with set -x enabled).
26690
26691 2010-05-03  Bruno Haible  <bruno@clisp.org>
26692
26693         wctob: Fix for weird platforms.
26694         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26695         argument value.
26696
26697 2010-05-03  Jim Meyering  <meyering@redhat.com>
26698
26699         maint.mk: prohibit unwarranted use of <strings.h>
26700         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26701         strings.h in a file that does not also use strcasecmp, strncasecmp,
26702         ffs or ffsll.
26703
26704         maint.mk: remove obsolete comments
26705         * top/maint.mk: Remove stale, commented-out rules.
26706
26707 2010-05-02  Bruno Haible  <bruno@clisp.org>
26708
26709         wcwidth: Declare also when it's aliased.
26710         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26711         macro.
26712
26713 2010-05-02  Bruno Haible  <bruno@clisp.org>
26714
26715         Fix regression from 2010-04-25.
26716         * gnulib-tool (func_modules_transitive_closure): Check the status of
26717         all modules, not only of the tests that are of the form foo-tests where
26718         foo is a module.
26719
26720 2010-05-02  Bruno Haible  <bruno@clisp.org>
26721
26722         wctob: Work around nasty Cygwin 1.7.2 bug.
26723         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26724         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26725
26726 2010-05-01  Bruno Haible  <bruno@clisp.org>
26727
26728         fpurge: Sharper test.
26729         * tests/test-fpurge.c (main): Add one more ftell check.
26730         * modules/fpurge-tests (Depends-on): Add ftell.
26731         Suggested by Eric Blake.
26732
26733 2010-05-01  Bruno Haible  <bruno@clisp.org>
26734
26735         ftello: Another test.
26736         * tests/test-ftello3.c: New file.
26737         * modules/ftello-tests (Files): Add it.
26738         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26739         MOSTLYCLEANFILES.
26740
26741         ftell: Another test.
26742         * tests/test-ftell3.c: New file.
26743         * modules/ftell-tests (Files): Add it.
26744         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26745         MOSTLYCLEANFILES.
26746
26747 2010-05-01  Bruno Haible  <bruno@clisp.org>
26748
26749         ftell, ftello: Work around Solaris bug.
26750         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26751         * lib/ftello.c: Include stdio-impl.h.
26752         (ftello): On Solaris, when _IOWRT is set, compute the result without
26753         looking at _IOREAD.
26754         * modules/ftello (Files): Add lib/stdio-impl.h.
26755         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26756         * doc/posix-functions/ftello.texi: Likewise.
26757         Reported by Eric Blake.
26758
26759 2010-05-01  Bruno Haible  <bruno@clisp.org>
26760
26761         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26762         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26763         the _IOWRT flag is also set.
26764
26765 2010-05-01  Bruno Haible  <bruno@clisp.org>
26766
26767         Fix doc about a HP-UX stdio bug.
26768         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26769         * doc/posix-functions/ftello.texi: Likewise.
26770
26771 2010-05-01  Bruno Haible  <bruno@clisp.org>
26772
26773         lseek test: Fix failure on Solaris.
26774         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26775         output.
26776
26777 2010-04-30  Jim Meyering  <meyering@redhat.com>
26778
26779         bootstrap: don't ignore failure to generate po*/Makevars
26780         * build-aux/bootstrap (with_gettext): Don't ignore failure
26781         to create po/Makevars or runtime-po/Makevars.
26782
26783 2010-04-29  Eric Blake  <eblake@redhat.com>
26784
26785         headers: relax license to LGPLv2+
26786         * modules/fcntl-h (License): Relax license.
26787         * modules/getopt-posix (License): Likewise.
26788         * modules/locale (License): Likewise.
26789         * modules/math (License): Likewise.
26790         * modules/pty (License): Likewise.
26791         * modules/sched (License): Likewise.
26792         * modules/search (License): Likewise.
26793         * modules/spawn (License): Likewise.
26794         * modules/stdarg (License): Likewise.
26795         * modules/sysexits (License): Likewise.
26796
26797 2010-04-29  Jim Meyering  <meyering@redhat.com>
26798
26799         inttypes: relax license to LGPLv2+
26800         * modules/inttypes (License): Relax license.
26801
26802 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26803
26804         * top/maint.mk (indent): Run twice to produce idempotent results.
26805
26806 2010-04-28  Bruno Haible  <bruno@clisp.org>
26807
26808         getdate: Generate getdate.c in the source directory.
26809         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26810         MOSTLYCLEANFILES.
26811         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26812
26813 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26814
26815         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26816         is not declared as a const *; avoid warnings in that case.
26817
26818 2010-04-28  Eric Blake  <eblake@redhat.com>
26819
26820         canonicalize-lgpl: avoid compiler warning
26821         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26822         declaration' / 'extraneous semicolon' warning with some compilers.
26823         Reported by Andreas Gruenbacher.
26824
26825 2010-04-28  Jim Meyering  <meyering@redhat.com>
26826
26827         init.sh: ensure a more reliable exit status when exiting via trap
26828         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26829         Inspired by patches from Dmitry V. Levin.
26830         Also trap on signal 3 (SIGQUIT).
26831
26832 2010-04-27  Bruno Haible  <bruno@clisp.org>
26833
26834         Update doc about utimes().
26835         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26836         'utimens' module.
26837         Reported by Andreas Gruenbacher <agruen@suse.de>.
26838
26839 2010-04-27  Eric Blake  <eblake@redhat.com>
26840
26841         full-read, full-write: relax license
26842         * modules/full-read (License): Drop to LGPLv2+.
26843         * modules/full-write (License): Likewise.
26844         * modules/safe-read (License): Likewise.
26845         * modules/safe-write (License): Likewise.
26846
26847         pthread: mention library for linking
26848         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26849
26850 2010-04-27  Jim Meyering  <meyering@redhat.com>
26851
26852         maint.mk: fix a bug introduced in last change
26853         * top/maint.mk (gl_assured_headers_): Now that all names are on
26854         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26855         is not anchored to end of word, it should be adequate.
26856
26857         maint.mk: avoid side-effect in latest syntax-check
26858         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26859         to run commands via $(shell...), and hence to incur cost only when
26860         the new rule is actually run.
26861
26862         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26863         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26864         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26865         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26866         (gl_assured_headers_, az_, AZ_): Define.
26867         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26868
26869 2010-04-26  Jim Meyering  <jim@meyering.net>
26870             Bruno Haible  <bruno@clisp.org>
26871
26872         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26873         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26874         Prompted by an exchange with Gilles Espinasse.
26875
26876 2010-04-26  Jim Meyering  <meyering@redhat.com>
26877
26878         git-version-gen: aesthetic tweak
26879         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26880         so that the command remains on a single line.
26881
26882 2010-04-26  Eric Blake  <eblake@redhat.com>
26883
26884         git-version-gen: allow use on EBCDIC hosts
26885         * build-aux/git-version-gen (dirty): Use literal rather than tying
26886         ourselves to ascii.
26887         Reported by Steve Goetze.
26888
26889 2010-04-25  Bruno Haible  <bruno@clisp.org>
26890
26891         netdb: Add support for GNULIB_POSIXCHECK.
26892         * lib/netdb.in.h: Include warn-on-use.h.
26893         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26894         functions are used when GNULIB_POSIXCHECK is defined and the
26895         getaddrinfo module is not in use.
26896         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26897         freeaddrinfo, gai_strerror, getnameinfo are declared.
26898         * modules/netdb (Depends-on): Add warn-on-use.
26899         (Makefile.am): Include warn-on-use.h in netdb.h.
26900
26901 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26902
26903         build: avoid "make check" failure without .git/ directory
26904         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26905         there is no .git/ directory.
26906
26907 2010-04-25  Bruno Haible  <bruno@clisp.org>
26908
26909         ptsname: Fix misuse of ttyname_r.
26910         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26911         of errno.
26912
26913 2010-04-25  Bruno Haible  <bruno@clisp.org>
26914
26915         ttyname_r: Make it work on Solaris 10.
26916         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26917         if the system function has the POSIX declaration. Test whether the
26918         function fails if the buffer is less than 128 bytes large.
26919         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26920         system's ttyname_r function. Provide a reasonably large buffer.
26921         * modules/ttyname_r (Depends-on): Add extensions.
26922         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26923
26924 2010-04-25  Bruno Haible  <bruno@clisp.org>
26925
26926         Use the 'extensions' module for some more functions on Solaris.
26927         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26928         module.
26929         * doc/posix-functions/ctime_r.texi: Likewise.
26930         * doc/posix-functions/getgrgid_r.texi: Likewise.
26931         * doc/posix-functions/getgrnam_r.texi: Likewise.
26932         * doc/posix-functions/getpwnam_r.texi: Likewise.
26933         * doc/posix-functions/getpwuid_r.texi: Likewise.
26934         * doc/posix-functions/readdir_r.texi: Likewise.
26935         * doc/posix-functions/sigwait.texi: Likewise.
26936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26937         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26938
26939 2010-04-25  Bruno Haible  <bruno@clisp.org>
26940
26941         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26942         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26943         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26944         * lib/ttyname_r.c: Include <limits.h>.
26945         (ttyname_r): Define using the system's ttyname_r function, if it exists
26946         and not on Solaris.
26947         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26948         set.
26949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26950         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26951         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26952         Reported by Simon Josefsson.
26953
26954 2010-04-25  Bruno Haible  <bruno@clisp.org>
26955
26956         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26957         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26958         * doc/posix-functions/ctime_r.texi: Likewise.
26959         * doc/posix-functions/getgrgid_r.texi: Likewise.
26960         * doc/posix-functions/getgrnam_r.texi: Likewise.
26961         * doc/posix-functions/getlogin_r.texi: Likewise.
26962         * doc/posix-functions/getpwnam_r.texi: Likewise.
26963         * doc/posix-functions/getpwuid_r.texi: Likewise.
26964         * doc/posix-functions/readdir_r.texi: Likewise.
26965         * doc/posix-functions/sigwait.texi: Likewise.
26966         * doc/posix-functions/ttyname_r.texi: Likewise.
26967         Reported by Simon Josefsson.
26968
26969 2010-04-25  Bruno Haible  <bruno@clisp.org>
26970
26971         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26972         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26973         also to --create-testdir.
26974         (func_acceptable): Don't consider the status of *-tests modules here.
26975         (func_modules_transitive_closure): Consider it here, before including a
26976         test module.
26977         (func_import, func_create_testdir): Set inc_all_direct_tests,
26978         inc_all_indirect_tests.
26979         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26980         --create-testdir and --create-megatestdir.
26981
26982 2010-04-25  Bruno Haible  <bruno@clisp.org>
26983
26984         gnulib-tool: Add --without-*-tests options.
26985         * gnulib-tool (func_usage): Document the --without-*-tests options.
26986         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26987         excl_unportable_tests): New variables.
26988         Fail if they are specified with --import or --update.
26989         (func_acceptable): Respect the excl_*_tests variables.
26990         (func_import): Set the excl_*_tests variables to empty.
26991
26992 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26993             Bruno Haible  <bruno@clisp.org>
26994
26995         Work around a MacOS X 10.4 bug with openpty.
26996         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26997         * tests/test-openpty.c (main): Close the master side explicitly.
26998
26999 2010-04-25  Bruno Haible  <bruno@clisp.org>
27000
27001         strnlen: Fix a C++ test error on MacOS X and Solaris.
27002         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
27003         the function is not declared.
27004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
27005         Simon Josefsson.
27006
27007 2010-04-24  Bruno Haible  <bruno@clisp.org>
27008
27009         Avoid a gcc warning.
27010         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
27011         of correct type for %08lx directive.
27012         Reported by Eric Blake.
27013
27014 2010-04-24  Bruno Haible  <bruno@clisp.org>
27015
27016         vasnprintf: Correct errno value in case of out-of-memory.
27017         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
27018         or sprintf. Use the errno value from SNPRINTF or sprintf.
27019         Reported by Ian Beckwith <ianb@erislabs.net>.
27020
27021 2010-04-24  Bruno Haible  <bruno@clisp.org>
27022
27023         ansi-c++-opt: Find correct compiler when cross-compiling.
27024         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
27025         AC_CHECK_PROGS.
27026         Reported by Simon Josefsson.
27027
27028 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
27029
27030         vc-list-files: Add support for subversion
27031         * build-aux/vc-list-files: Use "svn list" to generate the list of
27032         files controlled by subversion.
27033
27034 2010-04-23  Jim Meyering  <meyering@redhat.com>
27035
27036         vc-list-files tests: convert to use init.sh
27037         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
27038         path_prepend_.
27039         Use Exit, not exit.
27040         Use skip_ rather than open coding it.
27041         Remove trap set-up and compare definitions.
27042         * tests/test-vc-list-files-git.sh: Likewise.
27043         * modules/vc-list-files-tests (Files): Add tests/init.sh.
27044
27045 2010-04-22  Simon Josefsson  <simon@josefsson.org>
27046
27047         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
27048         backup files.
27049
27050 2010-04-21  Simon Josefsson  <simon@josefsson.org>
27051
27052         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
27053
27054 2010-04-20  Eric Blake  <eblake@redhat.com>
27055
27056         tests: be robust to ignored SIGPIPE
27057         * tests/test-select-in.sh: Consume all output.
27058         * tests/test-lseek.sh: Check correct exit status, while avoiding
27059         EPIPE.
27060
27061 2010-04-20  Simon Josefsson  <simon@josefsson.org>
27062             Bruno Haible  <bruno@clisp.org>
27063
27064         visibility: Don't use -fvisibility if it leads to a warning.
27065         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
27066         yes, don't pretend that visibility works if it leads to a warning.
27067         Reported by Mike Gran <spk121@yahoo.com>.
27068
27069 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
27070
27071         * build-aux/bootstrap: Use "git -h" for testing for supported options
27072         instead of "git --help".  The short-form option only shows a summary,
27073         and doesn't layout the full man page.  Grep for the full option name
27074         in the summary, too.
27075
27076 2010-04-19  Bruno Haible  <bruno@clisp.org>
27077
27078         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
27079         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
27080         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
27081         mention of RELOCATABLE_STRIP.
27082         Reported by Sylvain Beucler <beuc@beuc.net>.
27083
27084 2010-04-19  Bruno Haible  <bruno@clisp.org>
27085
27086         * lib/diffseq.h: Fix typo in comment.
27087         Reported by Eric Blake.
27088
27089 2010-04-19  Bruno Haible  <bruno@clisp.org>
27090
27091         ioctl: Move autoconf macro to a .m4 file.
27092         * m4/ioctl.m4: New file, extracted from modules/ioctl.
27093         * modules/ioctl (Files): Add it.
27094         (configure.ac): Simply invoke gl_FUNC_IOCTL.
27095         Reported by Ian Beckwith <ianb@erislabs.net>.
27096
27097 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
27098             Bruno Haible  <bruno@clisp.org>
27099
27100         diffseq: Accommodate use-case with abstract arrays.
27101         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
27102         is not defined.
27103         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
27104         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
27105
27106 2010-04-18  Bruno Haible  <bruno@clisp.org>
27107
27108         * doc/posix-headers/stdbool.texi: More precise wording.
27109
27110 2010-04-17  Jim Meyering  <meyering@redhat.com>
27111
27112         maint.mk: use gnu-style indentation in an embedded perl script
27113         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
27114         Rename variable: s/two/last_two_bytes/
27115
27116 2010-04-16  Eric Blake  <eblake@redhat.com>
27117
27118         test-stdbool: skip test that fails with Solaris CC
27119         * tests/test-stdbool.c (f): Skip test that causes compilation
27120         error under buggy C++ compiler.
27121         * lib/stdbool.in.h: Document the limitation.
27122         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
27123
27124         setenv: allow compilation with C++
27125         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
27126         register keyword.
27127
27128         stdint: allow test to pass with C++
27129         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
27130
27131         getopt: allow compilation with C++
27132         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
27133         struct.
27134         * lib/getopt.c (_getopt_internal_r): Use correct type.
27135         Reported by Dagobert Michelson, via Joel E. Denny.
27136
27137 2010-04-16  Bruno Haible  <bruno@clisp.org>
27138
27139         Override netdb.h always.
27140         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
27141         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27142         Reported by Ludovic Courtès <ludo@gnu.org>.
27143
27144 2010-04-15  Bruno Haible  <bruno@clisp.org>
27145
27146         openpty: Fix mistake from 2010-03-21.
27147         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
27148         Reported by Simon Josefsson.
27149
27150 2010-04-15  Eric Blake  <eblake@redhat.com>
27151
27152         test-forkpty: fix expected signature
27153         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
27154         Reported by Simon Josefsson.
27155
27156 2010-04-15  Jim Meyering  <meyering@redhat.com>
27157
27158         maint.mk: texinfo_suffix_re_: correct the default regexp
27159         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
27160
27161         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
27162         make it configurable via texinfo_suffix_re_.
27163
27164 2010-04-14  Eric Blake  <eblake@redhat.com>
27165
27166         strtok_r: relax license to LGPLv2+
27167         * modules/strtok_r (License): Relax license.
27168         Reported by Matthias Bolte.
27169
27170 2010-04-14  Simon Josefsson  <simon@josefsson.org>
27171
27172         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
27173         version 1.4.4 by default instead of requiring the libgcrypt
27174         version used during build.  This makes it possible to use the
27175         application with older but still binary compatible libgcrypt
27176         versions.
27177
27178 2010-04-13  Eric Blake  <eblake@redhat.com>
27179
27180         getopt-gnu: match recent glibc fixes and posix ruling
27181         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
27182         '+' handling, when requesting extensions.
27183         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
27184         'W;' handling.
27185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
27186         * doc/posix-functions/getopt.texi (getopt): Document this.
27187         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27188         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27189         Likewise.
27190
27191         getopt: merge bug fixes from glibc
27192         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
27193         diagnostics.  Honor '+:' correctly.  Reject ';'.
27194
27195         getopt-posix: detect MacOS bug
27196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
27197         optind when missing a required argument.
27198         * doc/posix-functions/getopt.texi (getopt): Document the bug.
27199         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27200         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27201         Likewise.
27202
27203         getopt-posix: avoid spurious failure on Solaris
27204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
27205         an indicator that setting optind=1 is sufficient for reset.
27206
27207         getopt-posix: avoid spurious failure on FreeBSD
27208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
27209         in POSIX mode, since the m4 test uses it.
27210
27211         gnulib-tool: silence warning on BSD sh
27212         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
27213
27214 2010-04-13  Jim Meyering  <meyering@redhat.com>
27215
27216         doc: users.txt: GNU patch now uses gnulib
27217         * users.txt: Add patch.
27218
27219 2010-04-12  Jim Meyering  <meyering@redhat.com>
27220
27221         maint.mk: generate more concise timing data for syntax-check rules
27222         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27223         " done" from each line that reports a syntax-check test duration.
27224
27225 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27226
27227         git-version-gen: use "git update-index..." rather than "git status"
27228         * build-aux/git-version-gen: Use git update-index --refresh, not
27229         "git status".  With some versions of git, "git status" would fail
27230         to update the index and result in an unwarranted "-dirty" suffix.
27231
27232 2010-04-11  Jim Meyering  <meyering@redhat.com>
27233
27234         openat: correct formatting (no semantic change)
27235         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27236         Suggested by Bruno Haible.
27237
27238 2010-04-11  Bruno Haible  <bruno@clisp.org>
27239
27240         Stricter declaration checking in testdirs.
27241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27242         If for_tests is true, augment AM_CPPFLAGS to define
27243         GNULIB_STRICT_CHECKING.
27244         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27245         GNULIB_STRICT_CHECKING is defined, verify that the function is
27246         declared.
27247
27248 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27249             Bruno Haible  <bruno@clisp.org>
27250
27251         libunistring: Improve configure output.
27252         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27253         Don't say "consider installing GNU libunistring" when checking again
27254         with libiconv.
27255
27256 2010-04-11  Bruno Haible  <bruno@clisp.org>
27257
27258         libunistring: Correct value of $LTLIBUNISTRING.
27259         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27260         correct the value of $LTLIBUNISTRING.
27261
27262 2010-04-11  Bruno Haible  <bruno@clisp.org>
27263
27264         havelib: Add static libraries to LIBS in the right order.
27265         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27266         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27267
27268 2010-04-11  Bruno Haible  <bruno@clisp.org>
27269
27270         libunistring: Detect libunistring also when it depends on libiconv.
27271         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27272         the second AC_LIB_HAVE_LINKFLAGS invocation.
27273
27274 2010-04-11  James Youngman  <jay@gnu.org>
27275
27276         close-stream: declare local scalars to be "const"
27277         * lib/close-stream.c (close_stream): Make boolean variables const
27278         to document the fact that we set but do not change them.
27279
27280 2010-04-11  Bruno Haible  <bruno@clisp.org>
27281
27282         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27283
27284 2010-04-11  Jim Meyering  <meyering@redhat.com>
27285
27286         maint.mk: don't include dist-check.mk
27287         * top/maint.mk: Remove bogus include directive.
27288
27289         maint.mk: improve empty-line-at-EOF check
27290         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27291         solution, rather than tail+Perl-based one.  The latter would read
27292         a few kilobytes from the end of each file, and did not handle empty
27293         files properly.
27294
27295         maint.mk: print the elapsed time for each syntax-check rule
27296         * top/maint.mk (sc_m_rules_): Save start time in a file.
27297         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27298         (local-check): Interpose the .z rules
27299
27300 2010-04-11  Jim Meyering  <meyering@redhat.com>
27301
27302         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27303         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27304         empty file with one that ends in an empty line.
27305
27306 2010-04-10  Bruno Haible  <bruno@clisp.org>
27307
27308         mkdir: Make it work on mingw64.
27309         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27310         * lib/mkdir.c: Update comment.
27311         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27312
27313 2010-04-10  Bruno Haible  <bruno@clisp.org>
27314
27315         Don't override improved macro from newer autoconf.
27316         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27317         autoconf >= 2.62.
27318         Reported by Joel E. Denny <jdenny@clemson.edu>.
27319
27320 2010-04-10  Jim Meyering  <meyering@redhat.com>
27321
27322         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27323         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27324
27325         maint.mk: correct a diagnostic
27326         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27327         in diagnostic; now use $prohibit.
27328
27329 2010-04-10  Bruno Haible  <address@hidden>
27330
27331         fchownat: Fix a C++ test error on Solaris 8.
27332         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27333         the function does not exist.
27334
27335 2010-04-10  Bruno Haible  <bruno@clisp.org>
27336
27337         vasnprintf: Add more tests.
27338         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27339         (test_function): Test converting an invalid wide string.
27340
27341         vasnprintf: Correct handling of unconvertible wide string arguments.
27342         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27343         VASNPRINTF.
27344         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27345         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27346         smaller than the expected maximum need for the directive. Set errno to
27347         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27348         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27350         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27351         * modules/vasnprintf (Files): Add m4/printf.m4.
27352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27353
27354 2010-04-10  Bruno Haible  <bruno@clisp.org>
27355
27356         vasnprintf: Fix crash in %ls directive.
27357         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27358         string is passed as argument to %ls, with no precision and no width.
27359         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27360
27361 2010-04-10  Bruno Haible  <bruno@clisp.org>
27362
27363         vasnprintf: Fix multiple test failures on mingw.
27364         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27365         _snprintf, or snwprintf, not _snwprintf.
27366
27367 2010-04-10  Bruno Haible  <bruno@clisp.org>
27368
27369         write: Fix a C++ test error on mingw.
27370         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27371
27372 2010-04-10  Bruno Haible  <bruno@clisp.org>
27373
27374         vasnprintf test: Reduce code duplication.
27375         * tests/test-vasnprintf.c (test_function): New function, extracted from
27376         test_vasnprintf.
27377         (test_vasnprintf, test_asnprintf): Invoke it.
27378
27379 2010-04-10  Bruno Haible  <bruno@clisp.org>
27380
27381         strnlen: Fix warning in C++ mode on MacOS X.
27382         * lib/string.in.h (strnlen): Use the modern idiom.
27383         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27384         defining strnlen as a macro already in <config.h>.
27385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27386         REPLACE_STRNLEN.
27387         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27388         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27389
27390 2010-04-08  James Youngman  <jay@gnu.org>
27391
27392         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27393         the example.
27394
27395 2010-04-09  Jim Meyering  <meyering@redhat.com>
27396
27397         maint.mk: print better diagnostic when there is no $(_hv_file)
27398         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27399         announce that when $(_hv_file) (aka help-version) does not exist.
27400
27401         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27402         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27403         not try to interpret its random input bytes.  Jarno Rajahalme reported
27404         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27405         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27406         (mktempd_): Likewise, just in case.
27407
27408         ftruncate: add two years to projected module removal date: 2012
27409         * m4/ftruncate.m4: Adjust comments.
27410
27411         ftruncate: mark module as obsolete; even MinGW provides it, now
27412         * modules/ftruncate (Status): Obsolete.
27413         (Notice): Say that.
27414         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27416
27417 2010-04-08  Bruno Haible  <bruno@clisp.org>
27418
27419         Fix side effects from tests-related modules.
27420         * modules/dprintf-posix (Comment): New section.
27421         * modules/fprintf-posix (Comment): Likewise.
27422         * modules/obstack-printf-posix (Comment): Likewise.
27423         * modules/printf-posix (Comment): Likewise.
27424         * modules/snprintf-posix (Comment): Likewise.
27425         * modules/sprintf-posix (Comment): Likewise.
27426         * modules/vasnprintf-posix (Comment): Likewise.
27427         * modules/vasprintf-posix (Comment): Likewise.
27428         * modules/vdprintf-posix (Comment): Likewise.
27429         * modules/vfprintf-posix (Comment): Likewise.
27430         * modules/vprintf-posix (Comment): Likewise.
27431         * modules/vsnprintf-posix (Comment): Likewise.
27432         * modules/vsprintf-posix (Comment): Likewise.
27433         * modules/xprintf-posix (Comment): Likewise.
27434         * modules/xvasprintf-posix (Comment): Likewise.
27435         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27436         * modules/floorf-tests (Depends-on): Likewise.
27437         * modules/round-tests (Depends-on): Likewise.
27438         * modules/roundf-tests (Depends-on): Likewise.
27439         * modules/trunc-tests (Depends-on): Likewise.
27440         * modules/truncf-tests (Depends-on): Likewise.
27441         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27442         'fprintf-posix' module is not present.
27443         * tests/test-floorf2.c (check): Likewise.
27444         * tests/test-trunc2.c (check): Likewise.
27445         * tests/test-truncf2.c (check): Likewise.
27446         * tests/test-round2.c (equal): Likewise.
27447         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27448
27449 2010-04-07  Karl Berry  <karl@gnu.org>
27450
27451         * config/srclist.txt,
27452         * config/srclistvars.sh,
27453         * config/srclist-update: doc fixes.
27454
27455 2010-04-07  Jim Meyering  <meyering@redhat.com>
27456
27457         maint.mk: add a PATH crosschecking syntax-check rule
27458         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27459         Useful if you use a test like the one in help-version (coreutils,
27460         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27461         printed by prog --version.
27462
27463 2010-04-06  Bruno Haible  <bruno@clisp.org>
27464
27465         Fix link error on mingw.
27466         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27467         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27468
27469 2010-04-06  Bruno Haible  <bruno@clisp.org>
27470
27471         Assume rmdir exists.
27472         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27473
27474 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27475
27476         doc: update users.txt
27477         * users.txt: Add gcal.
27478
27479 2010-04-06  Jim Meyering  <meyering@redhat.com>
27480
27481         init.sh: simply unset TMPDIR rather than risking env -i
27482         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27483         although it probably works fine on all Unix-based systems, some
27484         systems (Cygwin?) cannot tolerate a totally cleared environment.
27485         Suggestion from Eric Blake.
27486
27487 2010-04-06  Jim Meyering  <meyering@redhat.com>
27488
27489         init.sh: portability fix: use env's POSIX-specified -i option not -u
27490         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27491         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27492
27493 2010-04-05  Bruno Haible  <bruno@clisp.org>
27494
27495         btowc: Work around Cygwin 1.7.2 bug.
27496         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27497         does not map NUL to 0.
27498         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27499
27500 2010-04-05  Bruno Haible  <bruno@clisp.org>
27501
27502         Make the multithread modules work on Cygwin 1.7.2.
27503         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27504         imported symbols can be declared weak, so that it returns "no" on
27505         Cygwin 1.7.2.
27506
27507 2010-04-05  Bruno Haible  <bruno@clisp.org>
27508
27509         Use the module 'strncat'.
27510         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27511
27512         Tests for module 'strncat'.
27513         * modules/strncat-tests: New file.
27514         * tests/test-strncat.c: New file.
27515
27516         New module 'strncat'.
27517         * lib/string.in.h (strncat): New declaration.
27518         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27519         * m4/strncat.m4: New file, based on m4/memchr.m4.
27520         * modules/strncat: New file.
27521         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27522         is declared.
27523         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27524         REPLACE_STRNCAT.
27525         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27526         REPLACE_STRNCAT.
27527         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27528         module.
27529         * tests/test-string-c++.cc: Check signature of strncat.
27530
27531 2010-04-05  Jim Meyering  <meyering@redhat.com>
27532
27533         xstrtoumax-tests: convert to use init.sh
27534         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27535         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27536         Use Exit, not exit.
27537         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27538
27539         xstrtoimax-tests: convert to use init.sh
27540         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27541         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27542         Use Exit, not exit.
27543         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27544
27545 2010-04-05  Bruno Haible  <bruno@clisp.org>
27546
27547         sys_socket: Avoid #define replacements in C++ mode.
27548         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27549         warning to the function if possible, rather than #defining the symbol
27550         to a dysfunctional alias.
27551
27552 2010-04-05  Bruno Haible  <bruno@clisp.org>
27553
27554         fseeko: Fix C++ test error on mingw.
27555         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27556         gl_FUNC_FSEEKO.
27557         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27558         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27559         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27560         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27561
27562 2010-04-05  Bruno Haible  <bruno@clisp.org>
27563
27564         duplocale: Improve test output.
27565         * tests/test-duplocale.c (main): Print reason for skipped test.
27566
27567 2010-04-05  Bruno Haible  <bruno@clisp.org>
27568
27569         Assume rmdir exists.
27570         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27571         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27572
27573 2010-04-05  Bruno Haible  <bruno@clisp.org>
27574
27575         Fix link error on Solaris 8 with cc.
27576         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27577
27578 2010-04-05  Bruno Haible  <bruno@clisp.org>
27579
27580         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27581         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27582
27583 2010-04-05  Bruno Haible  <bruno@clisp.org>
27584
27585         vasprintf: Update documentation.
27586         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27587
27588 2010-04-05  Bruno Haible  <bruno@clisp.org>
27589
27590         ptsname: Improve test.
27591         * tests/test-ptsname.c (main): Also try the various master names of BSD
27592         systems.
27593
27594 2010-04-05  Bruno Haible  <bruno@clisp.org>
27595
27596         memchr: Avoid a possible C++ test error.
27597         * lib/string.in.h (memchr): Provide declaration if function is missing.
27598         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27599         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27601         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27602
27603 2010-04-05  Bruno Haible  <bruno@clisp.org>
27604
27605         strtok_r: Improve idiom.
27606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27607         AC_LIBOBJ is used.
27608
27609 2010-04-05  Bruno Haible  <bruno@clisp.org>
27610
27611         strdup: Improve idiom.
27612         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27613         AC_LIBOBJ is used.
27614         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27615         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27616         when AC_LIBOBJ is used.
27617
27618 2010-04-05  Bruno Haible  <bruno@clisp.org>
27619
27620         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27621         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27622         don't set REPLACE_MBSINIT to 1.
27623         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27624         don't set REPLACE_MBRTOWC to 1.
27625         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27626         exist, don't set REPLACE_MBSRTOWCS to 1.
27627         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27628         exist, don't set REPLACE_MBSNRTOWCS to 1.
27629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27630         don't set REPLACE_WCRTOMB to 1.
27631         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27632         exist, don't set REPLACE_WCSRTOMBS to 1.
27633         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27634         exist, don't set REPLACE_WCSNRTOMBS to 1.
27635
27636 2010-04-05  Bruno Haible  <bruno@clisp.org>
27637
27638         ldexpl: Improve idiom.
27639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27640         make sure to set HAVE_DECL_LDEXPL to 0.
27641
27642 2010-04-05  Jim Meyering  <meyering@redhat.com>
27643
27644         xstrtol-tests: convert to use init.sh
27645         * modules/xstrtol-tests (Files): Add tests/init.sh.
27646         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27647         Use Exit, not exit.
27648         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27649
27650         atexit-tests: convert to use init.sh
27651         * modules/atexit-tests (Files): Add tests/init.sh.
27652         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27653         Use Exit, not exit.
27654         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27655
27656         init.sh: fix typo
27657         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27658
27659         init.sh: make it easier for a test script to write to the tty, ...
27660         when using automake's parallel-tests mode.
27661         * tests/init.sh (stderr_fileno_): Define overridable variable.
27662         (warn_): New function, to use it.
27663         (fail_, skip_, framework_failure_): Use warn_.
27664
27665 2010-04-04  Bruno Haible  <bruno@clisp.org>
27666
27667         btowc: Avoid warning.
27668         * lib/btowc.c: Include <stdlib.h>.
27669         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27670
27671 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27672             Bruno Haible  <bruno@clisp.org>
27673
27674         wchar: Port to NetBSD 1.5.
27675         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27676         * lib/wctype.in.h (WEOF): Likewise.
27677
27678 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27679             Bruno Haible  <bruno@clisp.org>
27680
27681         Port extended stdio to NetBSD 1.5.
27682         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27683         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27684         older.
27685
27686 2010-04-04  Bruno Haible  <bruno@clisp.org>
27687
27688         string: Remove unused substitution.
27689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27690         HAVE_DECL_STRERROR.
27691         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27692
27693 2010-04-04  Bruno Haible  <bruno@clisp.org>
27694
27695         strtod: Avoid a possible C++ test error.
27696         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27697         set REPLACE_STRTOD.
27698
27699 2010-04-04  Bruno Haible  <bruno@clisp.org>
27700
27701         strerror: Update documentation.
27702         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27703
27704 2010-04-04  Bruno Haible  <bruno@clisp.org>
27705
27706         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27707         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27708         _GL_CXXALIAS_SYS_CAST.
27709
27710 2010-04-04  Bruno Haible  <bruno@clisp.org>
27711
27712         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27713         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27714         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27715         REPLACE_FREXPL to 1.
27716         * doc/posix-functions/frexpl.texi: Update documentation.
27717
27718 2010-04-04  Bruno Haible  <bruno@clisp.org>
27719
27720         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27721         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27722
27723 2010-04-04  Bruno Haible  <bruno@clisp.org>
27724
27725         Implement nanosleep for native Windows.
27726         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27727
27728 2010-04-04  Bruno Haible  <bruno@clisp.org>
27729
27730         math: Fix some C++ test errors on Solaris 8.
27731         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27732
27733 2010-04-04  Bruno Haible  <bruno@clisp.org>
27734
27735         math: Fix some C++ test errors on Cygwin.
27736         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27737         truncl): Provide declaration if the system does not have it.
27738         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27739         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27740         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27741         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27742         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27743         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27744         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27745         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27746         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27747         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27748         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27749         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27750         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27751         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27752         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27753         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27755         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27756         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27757         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27758         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27759         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27760
27761 2010-04-04  Bruno Haible  <bruno@clisp.org>
27762
27763         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27764         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27765         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27766         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27767         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27768         * m4/isinf.m4 (gl_ISINF): Likewise.
27769         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27770
27771 2010-04-04  Bruno Haible  <bruno@clisp.org>
27772
27773         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27774         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27775
27776 2010-04-04  Bruno Haible  <bruno@clisp.org>
27777
27778         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27779         * modules/tmpfile (configure.ac): Update.
27780
27781         tmpfile: Fix C++ test error on mingw.
27782         * lib/stdio.in.h (tmpfile): New declaration.
27783         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27784         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27785         * modules/tmpfile (Depends-on): Add stdio.
27786         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27787         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27788         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27789         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27790         REPLACE_TMPFILE.
27791         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27792
27793 2010-04-04  Bruno Haible  <bruno@clisp.org>
27794
27795         ioctl: Fix C++ test error on mingw.
27796         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27797         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27798         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27799
27800 2010-04-03  Bruno Haible  <bruno@clisp.org>
27801
27802         wcwidth: Fix C++ test error on mingw.
27803         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27805         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27806
27807 2010-04-03  Bruno Haible  <bruno@clisp.org>
27808
27809         nanosleep: Fix C++ test error on mingw.
27810         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27811         * lib/time.in.h (nanosleep): Use modern idiom.
27812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27813         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27814         REPLACE_NANOSLEEP to 1.
27815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27816         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27817
27818 2010-04-03  Bruno Haible  <bruno@clisp.org>
27819
27820         strptime: Fix C++ test error on mingw.
27821         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27822         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27823         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27824         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27826         not REPLACE_STRPTIME.
27827         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27828         REPLACE_STRPTIME.
27829
27830 2010-04-03  Bruno Haible  <bruno@clisp.org>
27831
27832         timegm: Fix C++ test error on mingw.
27833         * lib/time.in.h (timegm): Use modern idiom.
27834         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27835         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27836         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27837         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27838
27839 2010-04-03  Bruno Haible  <bruno@clisp.org>
27840
27841         timegm: Assume declaration if function exists.
27842         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27843         if it exists. Don't clobber ac_cv_func_timegm.
27844
27845 2010-04-03  Bruno Haible  <bruno@clisp.org>
27846
27847         time_r: Fix C++ test error on mingw.
27848         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27849         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27850         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27851         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27852         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27853
27854 2010-04-03  Bruno Haible  <bruno@clisp.org>
27855
27856         time_r: Minor updates.
27857         * modules/time_r (Description): Mention the provided functions.
27858         * lib/time_r.c: Don't include <string.h>.
27859         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27860         * doc/posix-functions/localtime_r.texi: Likewise.
27861
27862 2010-04-03  Bruno Haible  <bruno@clisp.org>
27863
27864         time: Fix regression introduced on 2010-03-08.
27865         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27866         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27867
27868 2010-04-03  Jim Meyering  <meyering@redhat.com>
27869
27870         maint.mk: don't silently disable project-specific syntax-check rules
27871         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27872         that they need to convert their project-specific syntax-check rules
27873         to use the new _sc_search_regexp.
27874
27875 2010-04-03  Bruno Haible  <bruno@clisp.org>
27876
27877         fchdir: Fix regression introduced on 2010-03-08.
27878         * lib/unistd.in.h (fchdir): Fix declaration.
27879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27881         REPLACE_FCHDIR.
27882         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27883         REPLACE_FCHDIR.
27884
27885 2010-04-03  Bruno Haible  <bruno@clisp.org>
27886
27887         getpagesize: Fix C++ test error on mingw.
27888         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27889         system does not declare the function.
27890         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27891         declared.
27892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27893         HAVE_DECL_GETPAGESIZE.
27894         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27895
27896 2010-04-03  Bruno Haible  <bruno@clisp.org>
27897
27898         stdio: Make C++ tests work on mingw.
27899         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27900         does not declare the function.
27901
27902 2010-04-03  Bruno Haible  <bruno@clisp.org>
27903
27904         ftello: Fix C++ test error on mingw.
27905         * lib/stdio.in.h (ftello): Use modern idiom.
27906         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27907         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27908         is missing and that it needs to be replaced.
27909         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27911         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27912
27913 2010-04-03  Bruno Haible  <bruno@clisp.org>
27914
27915         fseeko: Fix C++ test error on mingw.
27916         * lib/stdio.in.h (fseeko): Use modern idiom.
27917         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27919         is missing and that it needs to be replaced.
27920         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27922         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27923
27924 2010-04-03  Bruno Haible  <bruno@clisp.org>
27925
27926         mkstemp: Fix C++ test error on mingw.
27927         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27929         function is missing and that it needs to be replaced.
27930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27931         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27932
27933 2010-04-03  Bruno Haible  <bruno@clisp.org>
27934
27935         stpncpy: Fix C++ test error on mingw.
27936         * lib/string.in.h (stpncpy): Use modern idiom.
27937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27938         function is missing and that it needs to be replaced.
27939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27940         REPLACE_STPNCPY.
27941         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27942
27943 2010-04-03  Bruno Haible  <bruno@clisp.org>
27944
27945         sys_stat: Fix C++ test error on mingw.
27946         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27947         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27948
27949 2010-04-03  Bruno Haible  <bruno@clisp.org>
27950
27951         pty: Update doc.
27952         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27953
27954 2010-04-03  Bruno Haible  <bruno@clisp.org>
27955
27956         unistd: Fix C++ test error on mingw.
27957         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27958
27959 2010-04-03  Bruno Haible  <bruno@clisp.org>
27960
27961         Update doc regarding mingw.
27962         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27963         * doc/glibc-functions/login_tty.texi: Likewise.
27964         * doc/glibc-functions/forkpty.texi: Likewise.
27965
27966 2010-04-03  Bruno Haible  <bruno@clisp.org>
27967
27968         stdlib: Avoid compilation failure of c-strtold on mingw.
27969         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27970
27971 2010-04-03  Bruno Haible  <bruno@clisp.org>
27972
27973         locale: Make C++ tests work on Cygwin and mingw.
27974         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27975         cannot provide the function.
27976         Reported by Simon Josefsson.
27977
27978 2010-04-03  Bruno Haible  <bruno@clisp.org>
27979
27980         localename: Port to MacOS X 10.6.
27981         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27982         memory layout of the locales in MacOS X 10.6 as well.
27983         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27984
27985 2010-04-02  Bruno Haible  <bruno@clisp.org>
27986
27987         gnulib-tool: Ensure that long-running tests are executed last.
27988         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27989         running tests after the one for the other tests.
27990
27991 2010-04-02  Bruno Haible  <bruno@clisp.org>
27992
27993         gnulib-tool: Ensure the tests in the main directory are executed first.
27994         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27995         start with the current directory.
27996
27997 2010-04-02  Bruno Haible  <bruno@clisp.org>
27998
27999         Tests for module 'havelib', moved here from GNU gettext.
28000         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
28001         modifications.
28002         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
28003         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
28004         with modifications.
28005         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
28006         modifications.
28007         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
28008         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
28009         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
28010         with modifications.
28011         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
28012         with modifications.
28013         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
28014         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
28015         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
28016         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
28017         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
28018         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
28019         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
28020         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
28021         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
28022         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
28023         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
28024         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
28025         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
28026         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
28027         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
28028         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
28029         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
28030         with modifications.
28031         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
28032         with modifications.
28033         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
28034         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
28035         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
28036         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
28037         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
28038         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
28039         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
28040         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
28041         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
28042         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
28043         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
28044         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
28045         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
28046         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
28047         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
28048         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
28049         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
28050         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
28051         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
28052         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
28053         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
28054         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
28055         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
28056         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
28057         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
28058         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
28059         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
28060         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
28061         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
28062         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
28063         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
28064         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
28065         * tests/havelib/rpathx/rpathx.c: New file, from
28066         gettext/autoconf-lib-link.
28067         * tests/havelib/rpathx/Makefile.am: New file, from
28068         gettext/autoconf-lib-link.
28069         * tests/havelib/rpathx/configure.ac: New file, from
28070         gettext/autoconf-lib-link with modifications.
28071         * tests/havelib/rpathy/rpathy.c: New file, from
28072         gettext/autoconf-lib-link.
28073         * tests/havelib/rpathy/Makefile.am: New file, from
28074         gettext/autoconf-lib-link.
28075         * tests/havelib/rpathy/configure.ac: New file, from
28076         gettext/autoconf-lib-link with modifications.
28077         * tests/havelib/rpathz/rpathz.c: New file, from
28078         gettext/autoconf-lib-link.
28079         * tests/havelib/rpathz/Makefile.am: New file, from
28080         gettext/autoconf-lib-link.
28081         * tests/havelib/rpathz/configure.ac: New file, from
28082         gettext/autoconf-lib-link with modifications.
28083         * tests/havelib/rpathlx/usex.c: New file, from
28084         gettext/autoconf-lib-link.
28085         * tests/havelib/rpathlx/Makefile.am: New file, from
28086         gettext/autoconf-lib-link.
28087         * tests/havelib/rpathlx/configure.ac: New file, from
28088         gettext/autoconf-lib-link with modifications.
28089         * tests/havelib/rpathly/usey.c: New file, from
28090         gettext/autoconf-lib-link.
28091         * tests/havelib/rpathly/Makefile.am: New file, from
28092         gettext/autoconf-lib-link.
28093         * tests/havelib/rpathly/configure.ac: New file, from
28094         gettext/autoconf-lib-link with modifications.
28095         * tests/havelib/rpathlz/usez.c: New file, from
28096         gettext/autoconf-lib-link.
28097         * tests/havelib/rpathlz/Makefile.am: New file, from
28098         gettext/autoconf-lib-link.
28099         * tests/havelib/rpathlz/configure.ac: New file, from
28100         gettext/autoconf-lib-link with modifications.
28101         * tests/havelib/rpathlyx/usey.c: New file, from
28102         gettext/autoconf-lib-link.
28103         * tests/havelib/rpathlyx/Makefile.am: New file, from
28104         gettext/autoconf-lib-link.
28105         * tests/havelib/rpathlyx/configure.ac: New file, from
28106         gettext/autoconf-lib-link with modifications.
28107         * tests/havelib/rpathlzyx/usez.c: New file, from
28108         gettext/autoconf-lib-link.
28109         * tests/havelib/rpathlzyx/Makefile.am: New file, from
28110         gettext/autoconf-lib-link.
28111         * tests/havelib/rpathlzyx/configure.ac: New file, from
28112         gettext/autoconf-lib-link with modifications.
28113         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
28114         with modifications.
28115
28116 2010-04-02  Bruno Haible  <bruno@clisp.org>
28117
28118         gnulib-tool: Create distributed built sources also for the tests.
28119         * gnulib-tool (func_create_testdir): Also generate distributed built
28120         sources in the tests directory.
28121
28122 2010-04-02  Bruno Haible  <bruno@clisp.org>
28123
28124         gnulib-tool: Obey user's environment variables.
28125         * gnulib-tool (func_create_testdir): When creating built sources,
28126         respect the environment variables for autoconf, automake, etc. given by
28127         the user.
28128
28129 2010-04-02  Bruno Haible  <bruno@clisp.org>
28130
28131         gnulib-tool: Provide the value of --m4-base to modules.
28132         * gnulib-tool (func_import, func_create_testdir): Emit a definition
28133         of gl_m4_base.
28134
28135 2010-04-02  Eric Blake  <eblake@redhat.com>
28136
28137         maint.mk: fix some fallout
28138         * NEWS: Document the incompatible change, and its effect on cfg.mk.
28139         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
28140
28141 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28142
28143         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
28144         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
28145         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
28146         (sc_cast_of_x_alloc_return_value): Likewise.
28147         (sc_cast_of_alloca_return_value): Likewise.
28148         (sc_space_tab): Likewise.
28149         (sc_prohibit_atoi_atof): Likewise.
28150         (sc_prohibit_magic_number_exit): Likewise.
28151         (sc_error_exit_success): Likewise.
28152         (sc_file_system): Likewise.
28153         (sc_prohibit_have_config_h): Likewise.
28154         (sc_require_config_h): Likewise.
28155         (sc_prohibit_HAVE_MBRTOWC): Likewise.
28156         (sc_obsolete_symbols): Likewise.
28157         (sc_changelog): Likewise.
28158         (sc_program_name): Likewise.
28159         (sc_the_the): Likewise.
28160         (sc_trailing_blank): Likewise.
28161         (sc_two_space_separator_in_usage): Likewise.
28162         (sc_useless_cpp_parens): Likewise.
28163         (sc_GPL_version): Likewise.
28164         (sc_GFDL_version): Likewise.
28165         (sc_texinfo_acronym): Likewise.
28166         (sc_prohibit_cvs_keyword): Likewise.
28167         (sc_prohibit_stat_st_blocks): Likewise.
28168         (sc_prohibit_S_IS_definition): Likewise.
28169         (sc_redundant_const): Likewise.
28170         (sc_makefile_TAB_only_indentation): Likewise.
28171         (sc_m4_quote_check): Likewise.
28172         (sc_makefile_path_separator_check): Likewise.
28173         (sc_copyright_check): Likewise.
28174         (sc_Wundef_boolean): Likewise.
28175         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28176
28177         maint.mk: match 0 or more whitespace-before-function-call '('
28178         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
28179         that have zero or two-and-more spaces between the function name
28180         and the open parenthesis.
28181         (sc_error_message_warn_fatal): Likewise.
28182         (sc_error_message_uppercase): Likewise.
28183         (sc_error_message_period): Likewise.
28184
28185 2010-03-31  Eric Blake  <eblake@redhat.com>
28186
28187         maint.mk: check for [ as well as test
28188         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
28189         Based on a libvirt report by Matthias Bolte.
28190
28191         gnumakefile: don't squelch _version output
28192         * top/GNUmakefile (_version): Create one-shot dependency rather
28193         than using $(shell) when version must be regenerated.
28194         (_autoreconf): Run verbosely, by default.
28195
28196         sys_time: avoid compiler warnings
28197         * lib/sys_time.in.h (includes): Ensure gcc pragma is
28198         unconditional, fixing regression from 2010-03-29.
28199         Reported by Simon Josefsson.
28200
28201 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28202
28203         maint.mk: s/_header_without_use/_sc_header_without_use/
28204         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
28205         (sc_prohibit_assert_without_use): Use the new name.
28206         (sc_prohibit_close_stream_without_use): Likewise.
28207         (sc_prohibit_getopt_without_use): Likewise.
28208         (sc_prohibit_quotearg_without_use): Likewise.
28209         (sc_prohibit_quote_without_use): Likewise.
28210         (sc_prohibit_long_options_without_use): Likewise.
28211         (sc_prohibit_inttostr_without_use): Likewise.
28212         (sc_prohibit_ignore_value_without_use): Likewise.
28213         (sc_prohibit_error_without_use): Likewise.
28214         (sc_prohibit_xalloc_without_use): Likewise.
28215         (sc_prohibit_hash_without_use): Likewise.
28216         (sc_prohibit_hash_pjw_without_use): Likewise.
28217         (sc_prohibit_safe_read_without_use): Likewise.
28218         (sc_prohibit_argmatch_without_use): Likewise.
28219         (sc_prohibit_canonicalize_without_use): Likewise.
28220         (sc_prohibit_root_dev_ino_without_use): Likewise.
28221         (sc_prohibit_openat_without_use): Likewise.
28222         (sc_prohibit_c_ctype_without_use): Likewise.
28223         (sc_prohibit_signal_without_use): Likewise.
28224         (sc_prohibit_intprops_without_use): Likewise.
28225
28226 2010-03-30  Eric Blake  <eblake@redhat.com>
28227
28228         maint: improve module indicators
28229         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28230         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28231         columns, and avoid extra macro expansion.
28232
28233         fdopendir: work around FreeBSD bug
28234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28235         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28236         * modules/dirent (Makefile.am): Substitute it.
28237         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28238         declaration.
28239         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28240         fix.
28241         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28242
28243 2010-03-29  Bruno Haible  <bruno@clisp.org>
28244
28245         Emit #pragma system_header after the inclusion guard, not before.
28246         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28247         guard that spans the entire file, not before. This enables an
28248         optimization in GCC's preprocessor.
28249         * lib/ctype.in.h: Likewise.
28250         * lib/dirent.in.h: Likewise.
28251         * lib/errno.in.h: Likewise.
28252         * lib/float.in.h: Likewise.
28253         * lib/getopt.in.h: Likewise.
28254         * lib/iconv.in.h: Likewise.
28255         * lib/langinfo.in.h: Likewise.
28256         * lib/locale.in.h: Likewise.
28257         * lib/math.in.h: Likewise.
28258         * lib/netdb.in.h: Likewise.
28259         * lib/netinet_in.in.h: Likewise.
28260         * lib/pty.in.h: Likewise.
28261         * lib/sched.in.h: Likewise.
28262         * lib/se-selinux.in.h: Likewise.
28263         * lib/search.in.h: Likewise.
28264         * lib/spawn.in.h: Likewise.
28265         * lib/stdarg.in.h: Likewise.
28266         * lib/stdint.in.h: Likewise.
28267         * lib/string.in.h: Likewise.
28268         * lib/strings.in.h: Likewise.
28269         * lib/sys_file.in.h: Likewise.
28270         * lib/sys_ioctl.in.h: Likewise.
28271         * lib/sys_time.in.h: Likewise.
28272         * lib/sys_times.in.h: Likewise.
28273         * lib/sys_utsname.in.h: Likewise.
28274         * lib/sys_wait.in.h: Likewise.
28275         * lib/sysexits.in.h: Likewise.
28276         * lib/wctype.in.h: Likewise.
28277
28278 2010-03-28  James Youngman  <jay@gnu.org>
28279
28280         save-cwd: don't leak a file descriptor when the caller execs.
28281         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28282         saved file descriptor.
28283         * modules/save-cwd (Depends-on): Depend on cloexec.
28284
28285 2010-03-29  Bruno Haible  <bruno@clisp.org>
28286
28287         Remove vestiges of fts-lgpl module.
28288         * lib/fts_.h: Assume GNULIB_FTS is 1.
28289         * lib/fts.c: Likewise.
28290         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28291
28292 2010-03-28  Bruno Haible  <bruno@clisp.org>
28293
28294         Fix definition of tests witness macro.
28295         * gnulib-tool (func_import): Fix definition of witness macro.
28296
28297 2010-03-28  Bruno Haible  <bruno@clisp.org>
28298
28299         Fix ioctl's protoype on glibc systems.
28300         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28301         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28302         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28303         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28304         signature. If not, arrange to replace the ioctl function.
28305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28306         REPLACE_IOCTL.
28307         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28308         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28309         Reported by Ludovic Courtès <ludo@gnu.org>.
28310
28311 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28312
28313         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28314         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28315         made it so grep -r --include=GLOB* ... did not work.
28316
28317 2010-03-26  Jim Meyering  <meyering@redhat.com>
28318             Eric Blake  <eblake@redhat.com>
28319
28320         maint.mk: prohibit use of test's -o and -a operators
28321         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28322
28323 2010-03-28  Bruno Haible  <bruno@clisp.org>
28324
28325         Remove unused GNULIB_XYZ macro definitions.
28326         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28327         invocation.
28328
28329 2010-03-28  Bruno Haible  <bruno@clisp.org>
28330
28331         Mark privileged tests modules.
28332         * modules/idpriv-drop-tests (Status): New section.
28333         * modules/idpriv-droptemp-tests (Status): New section.
28334
28335 2010-03-28  Bruno Haible  <bruno@clisp.org>
28336
28337         Split C++ tests into separate tests modules.
28338         * modules/dirent-c++-tests: New file, extracted from
28339         modules/dirent-tests.
28340         * modules/dirent-tests: Depend on it.
28341         * modules/fcntl-h-c++-tests: New file, extracted from
28342         modules/fcntl-h-tests.
28343         * modules/fcntl-h-tests: Depend on it.
28344         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28345         * modules/glob-tests: Depend on it.
28346         * modules/iconv-h-c++-tests: New file, extracted from
28347         modules/iconv-h-tests.
28348         * modules/iconv-h-tests: Depend on it.
28349         * modules/langinfo-c++-tests: New file, extracted from
28350         modules/langinfo-tests.
28351         * modules/langinfo-tests: Depend on it.
28352         * modules/locale-c++-tests: New file, extracted from
28353         modules/locale-tests.
28354         * modules/locale-tests: Depend on it.
28355         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28356         * modules/math-tests: Depend on it.
28357         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28358         * modules/pty-tests: Depend on it.
28359         * modules/search-c++-tests: New file, extracted from
28360         modules/search-tests.
28361         * modules/search-tests: Depend on it.
28362         * modules/signal-c++-tests: New file, extracted from
28363         modules/signal-tests.
28364         * modules/signal-tests: Depend on it.
28365         * modules/spawn-c++-tests: New file, extracted from
28366         modules/spawn-tests.
28367         * modules/spawn-tests: Depend on it.
28368         * modules/stdio-c++-tests: New file, extracted from
28369         modules/stdio-tests.
28370         * modules/stdio-tests: Depend on it.
28371         * modules/stdlib-c++-tests: New file, extracted from
28372         modules/stdlib-tests.
28373         * modules/stdlib-tests: Depend on it.
28374         * modules/string-c++-tests: New file, extracted from
28375         modules/string-tests.
28376         * modules/string-tests: Depend on it.
28377         * modules/sys_ioctl-c++-tests: New file, extracted from
28378         modules/sys_ioctl-tests.
28379         * modules/sys_ioctl-tests: Depend on it.
28380         * modules/sys_select-c++-tests: New file, extracted from
28381         modules/sys_select-tests.
28382         * modules/sys_select-tests: Depend on it.
28383         * modules/sys_socket-c++-tests: New file, extracted from
28384         modules/sys_socket-tests.
28385         * modules/sys_socket-tests: Depend on it.
28386         * modules/sys_stat-c++-tests: New file, extracted from
28387         modules/sys_stat-tests.
28388         * modules/sys_stat-tests: Depend on it.
28389         * modules/sys_time-c++-tests: New file, extracted from
28390         modules/sys_time-tests.
28391         * modules/sys_time-tests: Depend on it.
28392         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28393         * modules/time-tests: Depend on it.
28394         * modules/unistd-c++-tests: New file, extracted from
28395         modules/unistd-tests.
28396         * modules/unistd-tests: Depend on it.
28397         * modules/wchar-c++-tests: New file, extracted from
28398         modules/wchar-tests.
28399         * modules/wchar-tests: Depend on it.
28400         * modules/wctype-c++-tests: New file, extracted from
28401         modules/wctype-tests.
28402         * modules/wctype-tests: Depend on it.
28403         Reported by Simon Josefsson.
28404
28405 2010-03-28  Bruno Haible  <bruno@clisp.org>
28406
28407         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28408         * gnulib-tool (func_exists_module): New function, extracted from
28409         func_verify_module.
28410         (func_verify_module): Use it.
28411         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28412         'foo' only if 'foo' exists.
28413         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28414         module.
28415
28416 2010-03-28  Bruno Haible  <bruno@clisp.org>
28417
28418         gnulib-tool: Add support for special categories of tests.
28419         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28420         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28421         (func_usage): Document them.
28422         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28423         inc_unportable_tests, inc_all_tests): New variables.
28424         (func_acceptable): Consider these variables.
28425         (func_modules_transitive_closure): Make it work when the 'Status' field
28426         consists of multiple words.
28427         (func_import): Store and restore the values of inc_cxx_tests,
28428         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28429         inc_all_tests in gnulib-comp.m4.
28430         (func_create_testdir): Set inc_all_tests to true.
28431         * doc/gnulib.texi (Extra tests modules): New section.
28432         Suggested by Jim Meyering.
28433
28434 2010-03-28  Bruno Haible  <bruno@clisp.org>
28435
28436         ansi-c++-opt: Allow turning off the C++ build by default.
28437         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28438         gl_CXX_CHOICE_DEFAULT_NO is defined.
28439         Requested by Eric Blake.
28440
28441 2010-03-28  Bruno Haible  <bruno@clisp.org>
28442
28443         unistd: Avoid #define replacements in C++ mode.
28444         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28445         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28446         setsockopt, shutdown, select): In C++, attach a warning to the function
28447         if possible, rather than #defining the symbol to a dysfunctional alias.
28448         Reported by John W. Eaton <jwe@gnu.org>.
28449
28450 2010-03-28  Bruno Haible  <bruno@clisp.org>
28451
28452         Fix link errors on mingw.
28453         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28454         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28455         $(LIBSOCKET).
28456         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28457         $(LIBSOCKET).
28458
28459 2010-03-28  Bruno Haible  <bruno@clisp.org>
28460             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28461
28462         lib-ignore: Determine different options for different compilers.
28463         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28464         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28465         Add comments.
28466         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28467         * NEWS: Mention the change.
28468
28469 2010-03-27  Bruno Haible  <bruno@clisp.org>
28470
28471         Remove unused GNULIB_XYZ macro definitions.
28472         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28473         * modules/fseek (configure.ac): Likewise.
28474         * modules/ioctl (configure.ac): Likewise.
28475         * modules/open (configure.ac): Likewise.
28476         * modules/stdlib-safer (configure.ac): Likewise.
28477
28478 2010-03-27  Bruno Haible  <bruno@clisp.org>
28479
28480         Add a remark about certain modules.
28481         * modules/malloc (Comment): New section.
28482         * modules/realloc (Comment): Likewise.
28483         * modules/sigpipe (Comment): Likewise.
28484
28485 2010-03-27  Bruno Haible  <bruno@clisp.org>
28486
28487         Resolve conflict between the two kinds of module indicators.
28488         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28489         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28490         * modules/canonicalize (configure.ac): Invoke
28491         gl_MODULE_INDICATOR_FOR_TESTS.
28492         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28493         GNULIB_XYZ.
28494         * tests/test-dirent-c++.cc: Likewise.
28495         * tests/test-dirent-safer.c: Likewise.
28496         * tests/test-dup2.c: Likewise.
28497         * tests/test-fchdir.c: Likewise.
28498         * tests/test-fcntl-h-c++.cc: Likewise.
28499         * tests/test-getopt.c: Likewise.
28500         * tests/test-getopt.h: Likewise.
28501         * tests/test-langinfo-c++.cc: Likewise.
28502         * tests/test-locale-c++.cc: Likewise.
28503         * tests/test-math-c++.cc: Likewise.
28504         * tests/test-pty-c++.cc: Likewise.
28505         * tests/test-search-c++.cc: Likewise.
28506         * tests/test-signal-c++.cc: Likewise.
28507         * tests/test-spawn-c++.cc: Likewise.
28508         * tests/test-stdio-c++.cc: Likewise.
28509         * tests/test-stdlib-c++.cc: Likewise.
28510         * tests/test-string-c++.cc: Likewise.
28511         * tests/test-sys_ioctl-c++.cc: Likewise.
28512         * tests/test-sys_select-c++.cc: Likewise.
28513         * tests/test-sys_socket-c++.cc: Likewise.
28514         * tests/test-sys_stat-c++.cc: Likewise.
28515         * tests/test-sys_time-c++.cc: Likewise.
28516         * tests/test-time-c++.cc: Likewise.
28517         * tests/test-unistd-c++.cc: Likewise.
28518         * tests/test-wchar-c++.cc: Likewise.
28519         * tests/uninorm/test-u8-nfc.c: Likewise.
28520         * tests/uninorm/test-u8-nfd.c: Likewise.
28521         * tests/uninorm/test-u8-nfkc.c: Likewise.
28522         * tests/uninorm/test-u8-nfkd.c: Likewise.
28523         * tests/uninorm/test-u16-nfc.c: Likewise.
28524         * tests/uninorm/test-u16-nfd.c: Likewise.
28525         * tests/uninorm/test-u16-nfkc.c: Likewise.
28526         * tests/uninorm/test-u16-nfkd.c: Likewise.
28527         * tests/uninorm/test-u32-nfc.c: Likewise.
28528         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28529         * tests/uninorm/test-u32-nfd.c: Likewise.
28530         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28531         * tests/uninorm/test-u32-nfkc.c: Likewise.
28532         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28533         * tests/uninorm/test-u32-nfkd.c: Likewise.
28534         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28535         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28536
28537 2010-03-27  Bruno Haible  <bruno@clisp.org>
28538
28539         Distinguish two kinds of module indicators.
28540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28541         gl_MODULE_INDICATOR.
28542         (gl_MODULE_INDICATOR): New macro.
28543         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28544         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28545         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28546         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28547         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28548         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28549         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28550         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28551         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28552         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28553         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28554         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28557         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28558         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28559         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28560         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28561         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28562         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28563         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28564         * modules/cloexec (configure.ac): Likewise.
28565         * modules/getopt-gnu (configure.ac): Likewise.
28566         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28567         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28568         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28569         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28570
28571 2010-03-27  Bruno Haible  <bruno@clisp.org>
28572
28573         New module description field 'Comment'.
28574         * gnulib-tool: New option --extract-comment.
28575         (func_usage): Document it.
28576         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28577         (func_get_comment): New function.
28578         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28579
28580 2010-03-27  Bruno Haible  <bruno@clisp.org>
28581
28582         Addendum to 2010-02-07 commit.
28583         * gnulib-tool (func_usage): Document --extract-applicability option.
28584
28585 2010-03-27  Bruno Haible  <bruno@clisp.org>
28586
28587         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28588         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28589         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28590         rather than link errors.
28591
28592 2010-03-27  Bruno Haible  <bruno@clisp.org>
28593
28594         Avoid side effects from tests-related modules on the compilation of lib.
28595         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28596         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28597         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28598         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28599         macro.
28600         (func_import): Define a witness macro. Assign it a value that depends
28601         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28602         tests-related modules.
28603         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28604         Reported by Jim Meyering.
28605
28606 2010-03-27  Bruno Haible  <bruno@clisp.org>
28607
28608         Factorize common .m4 code.
28609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28610         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28611         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28612         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28613         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28614         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28615         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28616         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28617         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28618         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28619         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28620         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28621         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28622         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28623         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28624         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28625         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28626         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28628         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28629         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28631         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28633         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28634         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28635         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28636         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28637         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28638         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28639         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28640         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28641
28642 2010-03-27  Bruno Haible  <bruno@clisp.org>
28643
28644         Fix a compilation error on Cygwin with g++ >= 4.3.
28645         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28646         if it is undefined or if we alias it to chmod.
28647         (lstat): Don't warn about the use of this function if it is undefined
28648         or if we alias it to stat.
28649         Reported by Simon Josefsson.
28650
28651 2010-03-27  Bruno Haible  <bruno@clisp.org>
28652
28653         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28654         * modules/getlogin (configure.ac): Update.
28655
28656         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28657         * modules/getlogin_r (configure.ac): Update.
28658
28659         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28660         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28661         * modules/inet_ntop (configure.ac): Update.
28662
28663         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28664         * modules/inet_pton (configure.ac): Update.
28665
28666         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28667         * modules/mbslen (configure.ac): Update.
28668
28669         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28670         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28671         * modules/forkpty (configure.ac): Update.
28672         * modules/openpty (configure.ac): Update.
28673
28674 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28675
28676         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28677         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28678
28679 2010-03-25  Eric Blake  <eblake@redhat.com>
28680
28681         maint: use pragma consistently across replacement headers
28682         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28683         * lib/dirent.in.h (system_header): Likewise.
28684         * lib/errno.in.h (system_header): Likewise.
28685         * lib/float.in.h (system_header): Likewise.
28686         * lib/getopt.in.h (system_header): Likewise.
28687         * lib/iconv.in.h (system_header): Likewise.
28688         * lib/inttypes.in.h (system_header): Likewise.
28689         * lib/langinfo.in.h (system_header): Likewise.
28690         * lib/locale.in.h (system_header): Likewise.
28691         * lib/math.in.h (system_header): Likewise.
28692         * lib/netdb.in.h (system_header): Likewise.
28693         * lib/netinet_in.in.h (system_header): Likewise.
28694         * lib/pty.in.h (system_header): Likewise.
28695         * lib/sched.in.h (system_header): Likewise.
28696         * lib/se-selinux.in.h (system_header): Likewise.
28697         * lib/search.in.h (system_header): Likewise.
28698         * lib/spawn.in.h (system_header): Likewise.
28699         * lib/stdarg.in.h (system_header): Likewise.
28700         * lib/stdint.in.h (system_header): Likewise.
28701         * lib/string.in.h (system_header): Likewise.
28702         * lib/strings.in.h (system_header): Likewise.
28703         * lib/sys_file.in.h (system_header): Likewise.
28704         * lib/sys_ioctl.in.h (system_header): Likewise.
28705         * lib/sys_socket.in.h (system_header): Likewise.
28706         * lib/sys_times.in.h (system_header): Likewise.
28707         * lib/sys_utsname.in.h (system_header): Likewise.
28708         * lib/sys_wait.in.h (system_header): Likewise.
28709         * lib/sysexits.in.h (system_header): Likewise.
28710         * lib/unistd.in.h (system_header): Likewise.
28711         * lib/wctype.in.h (system_header): Likewise.
28712
28713         arpa/inet: fix mingw compilation warning
28714         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28715         Reported by Matthew Bolte.
28716
28717 2010-03-25  Bruno Haible  <bruno@clisp.org>
28718
28719         Avoid collision between gnulib wrapper and libintl wrapper.
28720         * lib/printf.c (printf): Don't define if a printf wrapper is already
28721         defined in intl/printf.c.
28722         Reported by Michel Boaventura <michel@michelboaventura.com>.
28723
28724 2010-03-25  Bruno Haible  <bruno@clisp.org>
28725
28726         Use ANSI C.
28727         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28728
28729 2010-03-25  Bruno Haible  <bruno@clisp.org>
28730
28731         Minor formatting changes.
28732         * lib/acosl.c: Insert space before function argument list.
28733         * lib/argz.c: Likewise.
28734         * lib/asinl.c: Likewise.
28735         * lib/expl.c: Likewise.
28736         * lib/gen-uni-tables.c: Likewise.
28737         * lib/gettext.h: Likewise.
28738         * lib/glthread/lock.h: Likewise.
28739         * lib/tanl.c: Likewise.
28740         * lib/uniname/uniname.c: Likewise.
28741         * tests/test-idpriv-drop.c: Likewise.
28742         * tests/test-idpriv-droptemp.c: Likewise.
28743         * tests/test-lock.c: Likewise.
28744         * tests/test-tls.c: Likewise.
28745         * lib/argp-help.c: Insert space before function-like macro argument
28746         list.
28747         * lib/memcmp.c: Likewise.
28748         * tests/test-base64.c: Likewise.
28749         * lib/localename.c: Insert space before sizeof's argument list.
28750         * lib/safe-alloc.h: Likewise.
28751         * lib/file-set.h: Insert space before macro argument list.
28752         * tests/test-argp.c: Likewise.
28753         * lib/argp-namefrob.h: Insert space before function parameter list.
28754         * lib/getaddrinfo.c: Likewise.
28755         * lib/netdb.in.h: Likewise.
28756         * lib/parse-duration.h: Likewise.
28757         * lib/parse-duration.c: Likewise.
28758         * lib/poll.c: Likewise.
28759         * lib/select.c: Likewise.
28760         * lib/trim.h: Likewise.
28761         * tests/test-usleep.c: Likewise.
28762         * lib/ldexpl.c: Insert space before function parameter list and before
28763         function argument list.
28764         * lib/logl.c: Likewise.
28765         * lib/sqrtl.c: Likewise.
28766         * lib/trim.c: Likewise.
28767         * lib/cosl.c: Use GNU style indentation. Insert space before function
28768         argument list.
28769         * lib/sinl.c: Likewise.
28770         * lib/tsearch.c: Insert space after 'for'.
28771         Reported by Jim Meyering.
28772
28773 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28774
28775         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28776         config header before grepping, as it's not present before
28777         autoreconf/configure are run.  Reported by Simon Josefsson.
28778
28779 2010-03-23  Bruno Haible  <bruno@clisp.org>
28780
28781         pt_chown: Make it work with automake < 1.11.
28782         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28783         Reported by Simon Josefsson.
28784
28785 2010-03-23  Bruno Haible  <bruno@clisp.org>
28786
28787         pt_chown: Don't depend on GPLed modules.
28788         * lib/pt_chown.c: Don't include idpriv.h.
28789         (main): Don't drop privileges.
28790         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28791         Reported by Simon Josefsson.
28792
28793 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28794
28795         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28796         suggestions from karl@freefriends.org (Karl Berry).
28797
28798 2010-03-22  Eric Blake  <eblake@redhat.com>
28799
28800         gethostname: further tweaks
28801         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28802         are overriding gethostname.
28803         Suggested by Bruno Haible.
28804
28805 2010-03-21  Bruno Haible  <bruno@clisp.org>
28806
28807         Fix comments.
28808         * lib/forkpty.c (rpl_forkpty): Fix comment.
28809         * lib/openpty.c (rpl_openpty): Likewise.
28810         Reported by Eric Blake.
28811
28812 2010-03-22  Eric Blake  <eblake@redhat.com>
28813
28814         gethostname: fix build on mingw
28815         * lib/unistd.in.h (includes): Work around fact that mingw
28816         <winsock2.h> re-includes <unistd.h>, by avoiding any
28817         redeclarations if we are being included by <winsock2.h>.
28818         Reported by Matthias Bolte.
28819
28820 2010-03-21  Bruno Haible  <bruno@clisp.org>
28821
28822         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28823         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28824         modifications.
28825         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28826         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28827         provide the replacement.
28828         * modules/forkpty (Depends-on): Add openpty, login_tty.
28829         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28830         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28831         * doc/glibc-functions/forkpty.texi: More supported platforms.
28832         * config/srclist.txt: Add forkpty.c (commented).
28833
28834 2010-03-21  Bruno Haible  <bruno@clisp.org>
28835
28836         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28837         (Makefile.am): Verify that PTY_LIB is defined.
28838
28839         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28840
28841 2010-03-21  Bruno Haible  <bruno@clisp.org>
28842
28843         Tests for module 'login_tty'.
28844         * modules/login_tty-tests: New file.
28845         * tests/test-login_tty.c: New file.
28846
28847         New module 'login_tty'.
28848         * lib/login_tty.c: New file.
28849         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28850         * modules/login_tty: New file.
28851         * doc/glibc-functions/login_tty.texi: Mention the new module.
28852
28853 2010-03-21  Bruno Haible  <bruno@clisp.org>
28854
28855         login_tty: Documentation.
28856         * doc/glibc-functions/login_tty.texi: New file.
28857         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28858
28859 2010-03-21  Bruno Haible  <bruno@clisp.org>
28860
28861         pty: Consistent macro naming.
28862         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28863         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28864         * modules/pty (configure.ac): Update.
28865
28866 2010-03-21  Bruno Haible  <bruno@clisp.org>
28867
28868         Tests for openpty: Make stricter.
28869         * tests/test-openpty.c (main): Add test of canonical processing and
28870         erase.
28871         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28872
28873         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28874         * lib/openpty.c (openpty): New replacement function.
28875         * lib/pty.in.h: Include <termios.h>.
28876         (openpty): Update declaration. Add comments.
28877         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28878         is not declared, arrange to provide the replacement. Check for _getpty
28879         and posix_openpt.
28880         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28881         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28882         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28883         * modules/pty-tests (test_pty_c___LDADD): New variable.
28884         * doc/glibc-functions/openpty.texi: More supported platforms.
28885
28886 2010-03-21  Bruno Haible  <bruno@clisp.org>
28887
28888         setenv: Tweaks.
28889         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28890         the test program.
28891         * doc/posix-functions/setenv.texi: Update platforms list.
28892
28893 2010-03-21  Bruno Haible  <bruno@clisp.org>
28894
28895         New module 'unlockpt'.
28896         * lib/unlockpt.c: New file, from glibc with modifications.
28897         * m4/unlockpt.m4: New file.
28898         * modules/unlockpt: New file.
28899         * lib/stdlib.in.h (unlockpt): New declaration.
28900         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28901         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28902         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28903         HAVE_UNLOCKPT.
28904         * doc/posix-functions/unlockpt.texi: Mention the new module.
28905         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28906         * config/srclist.txt: Add unlockpt.c (commented).
28907
28908 2010-03-21  Jim Meyering  <meyering@redhat.com>
28909
28910         maint.mk: prohibit inclusion of "intprops.h" without use
28911         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28912
28913 2010-03-21  Bruno Haible  <bruno@clisp.org>
28914
28915         New module 'grantpt'.
28916         * lib/grantpt.c: New file, from glibc with modifications.
28917         * m4/grantpt.m4: New file.
28918         * modules/grantpt: New file.
28919         * lib/stdlib.in.h (grantpt): New declaration.
28920         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28921         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28922         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28923         HAVE_GRANTPT.
28924         * doc/posix-functions/grantpt.texi: Mention the new module.
28925         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28926         * config/srclist.txt: Add grantpt.c (commented).
28927
28928 2010-03-21  Bruno Haible  <bruno@clisp.org>
28929
28930         New module 'pt_chown'.
28931         * lib/pt_chown.c: New file, from glibc with modifications.
28932         * lib/pty-private.h: New file, from glibc with modifications.
28933         * modules/pt_chown: New file.
28934         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28935
28936 2010-03-21  Bruno Haible  <bruno@clisp.org>
28937
28938         Tests for module 'ptsname'.
28939         * modules/ptsname-tests: New file.
28940         * tests/test-ptsname.c: New file.
28941
28942         New module 'ptsname'.
28943         * lib/ptsname.c: New file, from glibc with modifications.
28944         * m4/ptsname.m4: New file.
28945         * modules/ptsname: New file.
28946         * lib/stdlib.in.h (ptsname): New declaration.
28947         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28948         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28949         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28950         HAVE_PTSNAME.
28951         * doc/posix-functions/ptsname.texi: Mention the new module.
28952         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28953         * config/srclist.txt: Add ptsname.c (commented).
28954
28955 2010-03-21  Bruno Haible  <bruno@clisp.org>
28956
28957         Tests for module 'ttyname_r'.
28958         * modules/ttyname_r-tests: New file.
28959         * tests/test-ttyname_r.c: New file.
28960
28961         New module 'ttyname_r'.
28962         * lib/ttyname_r.c: New file.
28963         * m4/ttyname_r.m4: New file.
28964         * modules/ttyname_r: New file.
28965         * lib/unistd.in.h (ttyname_r): New declaration.
28966         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28967         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28968         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28969         HAVE_TTYNAME_R.
28970         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28971         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28972
28973 2010-03-20  Bruno Haible  <bruno@clisp.org>
28974
28975         signal: Undefine macro definitions in C++ mode.
28976         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28977         sigfillset): Undefine macro definitions from the system header in C++
28978         mode.
28979         Reported by John W. Eaton <jwe@gnu.org>.
28980
28981 2010-03-20  Bruno Haible  <bruno@clisp.org>
28982
28983         Ensure no #include statements inside extern "C" { ... }.
28984         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28985         contain #include statements.
28986         * lib/time.in.h: Likewise.
28987
28988 2010-03-20  Bruno Haible  <bruno@clisp.org>
28989
28990         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28991         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28992         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28993         Reported by John W. Eaton <jwe@gnu.org>.
28994
28995 2010-03-20  Bruno Haible  <bruno@clisp.org>
28996
28997         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28998         Reported by Jim Meyering.
28999
29000 2010-03-20  Bruno Haible  <bruno@clisp.org>
29001
29002         pipe: Set errno upon failure.
29003         * lib/pipe.h: Specify that when -1 is returned, errno is set.
29004         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
29005         errno value in error message.
29006
29007 2010-03-20  Bruno Haible  <bruno@clisp.org>
29008             Jim Meyering  <meyering@redhat.com>
29009
29010         lchown: Avoid "unused variable" warning.
29011         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
29012
29013 2010-03-20  Bruno Haible  <bruno@clisp.org>
29014
29015         Work around unlink() bug on MacOS X 10.5.6.
29016         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
29017         attempting to unlink a parent directory.
29018         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
29019         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
29020         activate for the replacement function.
29021         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
29022
29023 2010-03-20  Bruno Haible  <bruno@clisp.org>
29024
29025         Fix link errors on Solaris 8.
29026         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
29027         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
29028
29029 2010-03-19  Jim Meyering  <meyering@redhat.com>
29030
29031         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
29032         The _LIBC implementation of build_range_exp correctly honors the
29033         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
29034         However, the non-_LIBC implementation would ignore that syntax-bit
29035         flag and return REG_ERANGE unconditionally.
29036         This change makes it honor that flag.
29037         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
29038         Make two pointer parameters "const".
29039         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
29040         (parse_bracket_exp): Update caller.
29041
29042         regex.m4: correct the reversed range endpoint ([b-a]) test
29043         * m4/regex.m4: When requiring that [b-a] evoke failure,
29044         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
29045         test pass once again for x86-based systems.
29046
29047 2010-03-19  Bruno Haible  <bruno@clisp.org>
29048
29049         scandir: Fix link error on Solaris 8.
29050         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
29051         macros.
29052
29053 2010-03-19  Bruno Haible  <bruno@clisp.org>
29054
29055         getusershell: Fix documentation.
29056         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
29057         module.
29058         * doc/glibc-functions/setusershell.texi: Likewise.
29059
29060         getusershell: Provide declaration, missing on Solaris 9.
29061         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
29062         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
29063         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
29064         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
29065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29066         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
29067         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
29068         HAVE_GETUSERSHELL.
29069         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
29070
29071 2010-03-19  Bruno Haible  <bruno@clisp.org>
29072
29073         wctype: Provide iswblank function.
29074         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
29075         exists and is fine.
29076         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
29077         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
29078         * tests/test-wctype.c (main): Re-enable the iswblank tests.
29079         * doc/posix-functions/iswblank.texi: Update.
29080
29081 2010-03-19  Bruno Haible  <bruno@clisp.org>
29082
29083         Tests of module 'pty' in C++ mode.
29084         * modules/pty-tests: New file.
29085         * tests/test-pty-c++.cc: New file.
29086         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29087
29088 2010-03-19  Eric Blake  <eblake@redhat.com>
29089
29090         logb: fix documentation
29091         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
29092         1.5 declaration bug.
29093
29094         forkpty, openpty: prefer glibc's const-safe prototype
29095         * lib/forkpty.c (rpl_forkpty): New file.
29096         * lib/openpty.c (rpl_openpty): Likewise.
29097         * modules/forkpty (Files): Distribute it.
29098         * modules/openpty (Files): Likewise.
29099         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
29100         check...
29101         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
29102         replacement for for non-const BSD signature.
29103         * modules/pty (Makefile.am): Substitute witnesses.
29104         * lib/pty.in.h (forkpty, openpty): Declare replacements.
29105         * tests/test-forkpty.c: Update signature check.
29106         * tests/test-openpty.c: Likewise.
29107         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
29108         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29109
29110         forkpty, openpty: split functions into new modules
29111         * modules/pty (Makefile.am): Substitute new witnesses.
29112         (Libraries): Move library detection...
29113         * modules/forkpty: ...into new module.
29114         * modules/openpty: Another new module.
29115         * modules/pty-tests: Rename and split...
29116         * modules/forkpty-tests: ...to this...
29117         * modules/openpty-tests: ...and this.
29118         * tests/test-pty.c: Rename and split...
29119         * tests/test-forkpty.c: ...to this...
29120         * tests/test-openpty.c: ...and this.
29121         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
29122         (gl_PTY): Split library searching...
29123         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
29124         (gl_FORKPTY, gl_OPENPTY): New macros.
29125         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
29126         * NEWS: Mention the split.
29127         * MODULES.html.sh (Misc): Document the modules.
29128         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
29129         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29130
29131         pty: improve replacement header
29132         * lib/pty.in.h: New file.
29133         * modules/pty (Files): Ship it.
29134         (Makefile.am): Always build replacement.
29135         * m4/pty.m4: Rename...
29136         * m4/pty_h.m4: ...to this.
29137         (gl_PTY): Modernize setting of witness macros; update check of
29138         forkpty to take proper advantage of cache.
29139         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
29140
29141         getopt: avoid compiler warning
29142         * lib/getopt.c (attribute_hidden): Remove unused macro.
29143
29144 2010-03-18  Bruno Haible  <bruno@clisp.org>
29145
29146         Fix link errors on Solaris 8.
29147         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
29148         * modules/search-tests (test_search_c___LDADD): Likewise.
29149         * modules/signal-tests (test_signal_c___LDADD): Likewise.
29150         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
29151         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
29152         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
29153         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
29154         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
29155         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
29156
29157 2010-03-18  Bruno Haible  <bruno@clisp.org>
29158
29159         Fix bug introduced on 2010-03-14.
29160         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
29161         (gl_SPAWN_H): Require it.
29162         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
29163         Reported by Simon Josefsson.
29164
29165 2010-03-18  Bruno Haible  <bruno@clisp.org>
29166
29167         Fix typo introduced on 2009-12-31.
29168         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
29169         posix_spawn_file_actions_adddup2.
29170
29171 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
29172         and Eric Blake  <eblake@redhat.com>
29173
29174         test-vc-list-files-git: make more robust
29175         * tests/test-vc-list-files-git.sh: Unset problematic environment
29176         variables.  Chain commands together.
29177
29178 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
29179
29180         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
29181         `AC_CHECK_DECL' invocation.
29182
29183 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
29184
29185         * lib/inttostr.c (inttostr): Make sure the invocation of verify
29186         appears before executable statements. Suggested by Petr Sumbera
29187         <Petr.Sumbera@Sun.COM>.
29188
29189 2010-03-14  Bruno Haible  <bruno@clisp.org>
29190
29191         * tests/test-flock.c (test_exclusive): Comment out a test that causes
29192         portability problems. Instead use a simpler test.
29193         (main): Check that invalid arguments are rejected only on Linux.
29194
29195 2010-03-14  Bruno Haible  <bruno@clisp.org>
29196
29197         Fix bug introduced on 2009-12-31.
29198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29199         gl_PREREQ_SYS_H_WINSOCK2 always.
29200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
29201         SYS_SOCKET_H variable.
29202         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
29203         Update comments.
29204         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
29205         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29206         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29207         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29208         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29209
29210 2010-03-14  Bruno Haible  <bruno@clisp.org>
29211
29212         Fix values returned by sinl, cosl.
29213         * lib/trigl.h: Add specification comments.
29214         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
29215         that combines the values from the precomputed table with the values of
29216         the Chebyshev polynomials.
29217
29218 2010-03-14  Bruno Haible  <bruno@clisp.org>
29219
29220         Fix compilation error when modules 'posix_spawn[p]' are not used.
29221         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29223
29224 2010-03-14  Bruno Haible  <bruno@clisp.org>
29225
29226         Fix compilation error on mingw when module 'time_r' is not used.
29227         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29228         is 1.
29229         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29230         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29231         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29232         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29233
29234 2010-03-14  Bruno Haible  <bruno@clisp.org>
29235
29236         Fix compilation error with Sun C.
29237         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29238         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29239         instead of GCC specific ULONG_LONG_MAX.
29240         * lib/xstrtoll.c: Likewise.
29241         * lib/xstrtoull.c: Likewise.
29242
29243 2010-03-13  Bruno Haible  <bruno@clisp.org>
29244
29245         Allow the user to disable C++ code and tests.
29246         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29247         (gl_PROG_ANSI_CXX): Require it.
29248
29249 2010-03-13  Bruno Haible  <bruno@clisp.org>
29250
29251         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29252         cases.
29253
29254 2010-03-13  Bruno Haible  <bruno@clisp.org>
29255
29256         Test that gnulib does not break the standard C++ headers.
29257         * tests/test-locale-c++2.cc: New file.
29258         * modules/locale-tests (Files): Add it.
29259         (Makefile.am): Compile it for test-locale-c++.
29260         * tests/test-math-c++2.cc: New file.
29261         * modules/math-tests (Files): Add it.
29262         (Makefile.am): Compile it for test-math-c++.
29263         * tests/test-signal-c++2.cc: New file.
29264         * modules/signal-tests (Files): Add it.
29265         (Makefile.am): Compile it for test-signal-c++.
29266         * tests/test-stdio-c++2.cc: New file.
29267         * modules/stdio-tests (Files): Add it.
29268         (Makefile.am): Compile it for test-stdio-c++.
29269         * tests/test-stdlib-c++2.cc: New file.
29270         * modules/stdlib-tests (Files): Add it.
29271         (Makefile.am): Compile it for test-stdlib-c++.
29272         * tests/test-string-c++2.cc: New file.
29273         * modules/string-tests (Files): Add it.
29274         (Makefile.am): Compile it for test-string-c++.
29275         * tests/test-time-c++2.cc: New file.
29276         * modules/time-tests (Files): Add it.
29277         (Makefile.am): Compile it for test-time-c++.
29278         Reported by John W. Eaton <jwe@gnu.org>.
29279
29280 2010-03-13  Bruno Haible  <bruno@clisp.org>
29281
29282         * gnulib-tool (func_usage): Clarify which options are available for
29283         --create-testdir and --create-megatestdir.
29284
29285 2010-03-13  Bruno Haible  <bruno@clisp.org>
29286
29287         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29288         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29289         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29290         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29291         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29292         when appropriate.
29293         Reported by Jim Meyering.
29294
29295 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29296
29297         * gnulib-tool (func_import): Explain origin of code.
29298
29299 2010-03-12  Bruno Haible  <bruno@clisp.org>
29300
29301         Fix problem with automake's definition of CXXLINK.
29302         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29303         Reported by Simon Josefsson and Ludovic Courtès.
29304
29305 2010-03-12  Bruno Haible  <bruno@clisp.org>
29306
29307         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29308         stable releases.
29309
29310 2010-03-11  Bruno Haible  <bruno@clisp.org>
29311
29312         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29313         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29314         whether the system provides one variant or multiple variants of the
29315         function.
29316         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29317         C++ compilers.
29318         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29319         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29320         Reported by Jim Meyering.
29321
29322 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29323
29324         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29325
29326 2010-03-08  Bruno Haible  <bruno@clisp.org>
29327
29328         gnulib-tool: Add support for --libtool in --create-testdir.
29329         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29330         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29331
29332 2010-03-08  Eric Blake  <eblake@redhat.com>
29333
29334         gnulib-tool.texi: mention possibility of git submodule
29335         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29336         submodules.
29337         * doc/.gitignore: Ignore another generated file.
29338
29339 2010-03-08  Karl Berry  <karl@gnu.org>
29340
29341         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29342         of committing gnulib files while skipping others.
29343
29344 2010-03-07  Bruno Haible  <bruno@clisp.org>
29345
29346         Tests of module 'wctype' in C++ mode.
29347         * tests/test-wctype-c++.cc: New file.
29348         * modules/wctype-tests (Files): Add it and tests/signature.h.
29349         (Depends-on): Add ansi-c++-opt.
29350         (Makefile.am): Arrange to compile and run test-wctype-c++.
29351
29352         Tests of module 'wchar' in C++ mode.
29353         * tests/test-wchar-c++.cc: New file.
29354         * modules/wchar-tests (Files): Add it and tests/signature.h.
29355         (Depends-on): Add ansi-c++-opt.
29356         (Makefile.am): Arrange to compile and run test-wchar-c++.
29357         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29358         gl_MODULE_INDICATOR.
29359
29360         Tests of module 'unistd' in C++ mode.
29361         * tests/test-unistd-c++.cc: New file.
29362         * modules/unistd-tests (Files): Add it and tests/signature.h.
29363         (Depends-on): Add ansi-c++-opt.
29364         (Makefile.am): Arrange to compile and run test-unistd-c++.
29365         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29366         gl_MODULE_INDICATOR.
29367
29368         Tests of module 'time' in C++ mode.
29369         * tests/test-time-c++.cc: New file.
29370         * modules/time-tests (Files): Add it and tests/signature.h.
29371         (Depends-on): Add ansi-c++-opt.
29372         (Makefile.am): Arrange to compile and run test-time-c++.
29373         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29374
29375         Tests of module 'sys_time' in C++ mode.
29376         * tests/test-sys_time-c++.cc: New file.
29377         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29378         (Depends-on): Add ansi-c++-opt.
29379         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29380         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29381         gl_MODULE_INDICATOR.
29382
29383         Tests of module 'sys_stat' in C++ mode.
29384         * tests/test-sys_stat-c++.cc: New file.
29385         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29386         (Depends-on): Add ansi-c++-opt.
29387         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29388         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29389         gl_MODULE_INDICATOR.
29390
29391         Tests of module 'sys_socket' in C++ mode.
29392         * tests/test-sys_socket-c++.cc: New file.
29393         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29394         (Depends-on): Add ansi-c++-opt.
29395         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29396         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29397         gl_MODULE_INDICATOR.
29398
29399         Tests of module 'sys_select' in C++ mode.
29400         * tests/test-sys_select-c++.cc: New file.
29401         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29402         (Depends-on): Add ansi-c++-opt.
29403         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29404         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29405         gl_MODULE_INDICATOR.
29406
29407         Tests of module 'sys_ioctl' in C++ mode.
29408         * tests/test-sys_ioctl-c++.cc: New file.
29409         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29410         (Depends-on): Add ansi-c++-opt.
29411         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29413         gl_MODULE_INDICATOR.
29414
29415         Tests of module 'string' in C++ mode.
29416         * tests/test-string-c++.cc: New file.
29417         * modules/string-tests (Files): Add it and tests/signature.h.
29418         (Depends-on): Add ansi-c++-opt.
29419         (Makefile.am): Arrange to compile and run test-string-c++.
29420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29421         gl_MODULE_INDICATOR.
29422
29423         Tests of module 'stdlib' in C++ mode.
29424         * tests/test-stdlib-c++.cc: New file.
29425         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29426         (Depends-on): Add ansi-c++-opt.
29427         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29428         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29429         gl_MODULE_INDICATOR.
29430
29431         Tests of module 'stdio' in C++ mode.
29432         * tests/test-stdio-c++.cc: New file.
29433         * modules/stdio-tests (Files): Add it and tests/signature.h.
29434         (Depends-on): Add ansi-c++-opt.
29435         (Makefile.am): Arrange to compile and run test-stdio-c++.
29436         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29437         gl_MODULE_INDICATOR.
29438
29439         Tests of module 'spawn' in C++ mode.
29440         * tests/test-spawn-c++.cc: New file.
29441         * modules/spawn-tests (Files): Add it and tests/signature.h.
29442         (Depends-on): Add ansi-c++-opt.
29443         (Makefile.am): Arrange to compile and run test-spawn-c++.
29444         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29445         gl_MODULE_INDICATOR.
29446
29447         Tests of module 'signal' in C++ mode.
29448         * tests/test-signal-c++.cc: New file.
29449         * modules/signal-tests (Files): Add it and tests/signature.h.
29450         (Depends-on): Add ansi-c++-opt.
29451         (Makefile.am): Arrange to compile and run test-signal-c++.
29452         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29453         gl_MODULE_INDICATOR.
29454
29455         Tests of module 'search' in C++ mode.
29456         * tests/test-search-c++.cc: New file.
29457         * modules/search-tests (Files): Add it and tests/signature.h.
29458         (Depends-on): Add ansi-c++-opt.
29459         (Makefile.am): Arrange to compile and run test-search-c++.
29460         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29461         gl_MODULE_INDICATOR.
29462
29463         Tests of module 'math' in C++ mode.
29464         * tests/test-math-c++.cc: New file.
29465         * modules/math-tests (Files): Add it and tests/signature.h.
29466         (Depends-on): Add ansi-c++-opt.
29467         (Makefile.am): Arrange to compile and run test-math-c++.
29468         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29469
29470         Tests of module 'locale' in C++ mode.
29471         * tests/test-locale-c++.cc: New file.
29472         * modules/locale-tests (Files): Add it and tests/signature.h.
29473         (Depends-on): Add ansi-c++-opt.
29474         (Makefile.am): Arrange to compile and run test-locale-c++.
29475         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29476         gl_MODULE_INDICATOR.
29477
29478         Tests of module 'langinfo' in C++ mode.
29479         * tests/test-langinfo-c++.cc: New file.
29480         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29481         (Depends-on): Add ansi-c++-opt.
29482         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29483         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29484         gl_MODULE_INDICATOR.
29485
29486         Tests of module 'iconv-h' in C++ mode.
29487         * tests/test-iconv-h-c++.cc: New file.
29488         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29489         (Depends-on): Add ansi-c++-opt.
29490         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29491
29492         Tests of module 'glob' in C++ mode.
29493         * tests/test-glob-c++.cc: New file.
29494         * modules/glob-tests (Files): Add it.
29495         (Depends-on): Add ansi-c++-opt.
29496         (Makefile.am): Arrange to compile and run test-glob-c++.
29497
29498         Tests of module 'fcntl-h' in C++ mode.
29499         * tests/test-fcntl-h-c++.cc: New file.
29500         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29501         (Depends-on): Add ansi-c++-opt.
29502         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29503         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29504         gl_MODULE_INDICATOR.
29505
29506         Tests of module 'dirent' in C++ mode.
29507         * tests/test-dirent-c++.cc: New file.
29508         * modules/dirent-tests (Files): Add it and tests/signature.h.
29509         (Depends-on): Add ansi-c++-opt.
29510         (Makefile.am): Arrange to compile and run test-dirent-c++.
29511         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29512         gl_MODULE_INDICATOR.
29513
29514         New module 'ansi-c++-opt'.
29515         * modules/ansi-c++-opt: New file.
29516         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29517
29518         Document C++ namespace mode.
29519         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29520
29521         wctype: Avoid #define replacements in C++ mode.
29522         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29523         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29524         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29525         In C++, define a namespaced alias symbol.
29526         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29527         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29528         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29529         rule.
29530
29531         wchar: Avoid #define replacements in C++ mode.
29532         * lib/wchar.in.h: Include c++defs.h.
29533         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29534         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29535         symbol.
29536         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29537         * modules/wchar (Depends-on): Add c++defs.
29538         (Makefile.am): Update wchar.h rule.
29539
29540         unistd: Avoid #define replacements in C++ mode.
29541         * lib/unistd.in.h: Include c++defs.h.
29542         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29543         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29544         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29545         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29546         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29547         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29548         symbol.
29549         (environ): Update.
29550         * modules/unistd (Depends-on): Add c++defs.
29551         (Makefile.am): Update unistd.h rule.
29552
29553         time: Avoid #define replacements in C++ mode.
29554         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29555         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29556         define a namespaced alias symbol.
29557         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29558         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29559         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29560         * modules/time (Depends-on): Add c++defs, warn-on-use.
29561         (Makefile.am): Update time.h rule.
29562         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29563         * modules/nanosleep (configure.ac): Likewise.
29564         * modules/strptime (configure.ac): Likewise.
29565         * modules/timegm (configure.ac): Likewise.
29566
29567         sys_time: Avoid #define replacements in C++ mode.
29568         * lib/sys_time.in.h: Include c++defs.h.
29569         (gettimeofday): In C++, define a namespaced alias symbol.
29570         * modules/sys_time (Depends-on): Add c++defs.
29571         (Makefile.am): Update sys/time.h rule.
29572
29573         sys_stat: Avoid #define replacements in C++ mode.
29574         * lib/sys_stat.in.h: Include c++defs.h.
29575         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29576         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29577         namespaced alias symbol.
29578         In C++, define a namespaced alias symbol.
29579         * modules/sys_stat (Depends-on): Add c++defs.
29580         (Makefile.am): Update sys/stat.h rule.
29581
29582         sys_socket: Avoid #define replacements in C++ mode.
29583         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29584         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29585         definitions also when the system has a <sys/socket.h>.
29586         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29587         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29588         In C++, define a namespaced alias symbol.
29589         * modules/sys_socket (Depends-on): Add c++defs.
29590         (Makefile.am): Update sys/socket.h rule.
29591
29592         sys_select: Avoid #define replacements in C++ mode.
29593         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29594         definitions also when the system has a <sys/select.h>.
29595         (select): In C++, define a namespaced alias symbol.
29596         * modules/sys_select (Depends-on): Add c++defs.
29597         (Makefile.am): Update sys/select.h rule.
29598
29599         sys_ioctl: Avoid #define replacements in C++ mode.
29600         * lib/sys_ioctl.in.h: Include c++defs.h.
29601         (ioctl): In C++, define a namespaced alias symbol.
29602         * modules/sys_ioctl (Depends-on): Add c++defs.
29603         (Makefile.am): Update sys/ioctl.h rule.
29604
29605         string: Avoid #define replacements in C++ mode.
29606         * lib/string.in.h: Include c++defs.h.
29607         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29608         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29609         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29610         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29611         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29612         * modules/string (Depends-on): Add c++defs.
29613         (Makefile.am): Update string.h rule.
29614
29615         stdlib: Avoid #define replacements in C++ mode.
29616         * lib/stdlib.in.h: Include c++defs.h.
29617         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29618         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29619         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29620         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29621         symbol.
29622         * modules/stdlib (Depends-on): Add c++defs.
29623         (Makefile.am): Update stdlib.h rule.
29624
29625         stdio: Avoid #define replacements in C++ mode.
29626         * lib/stdio.in.h: Include c++defs.h.
29627         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29628         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29629         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29630         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29631         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29632         namespaced alias symbol.
29633         * modules/stdio (Depends-on): Add c++defs.
29634         (Makefile.am): Update stdio.h rule.
29635
29636         spawn: Avoid #define replacements in C++ mode.
29637         * lib/spawn.in.h: Include c++defs.h.
29638         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29639         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29640         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29641         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29642         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29643         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29644         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29645         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29646         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29647         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29648         In C++, define a namespaced alias symbol.
29649         * modules/spawn (Depends-on): Add c++defs.
29650         (Makefile.am): Update spawn.h rule.
29651
29652         signal: Avoid #define replacements in C++ mode.
29653         * lib/signal.in.h: Include c++defs.h.
29654         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29655         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29656         namespaced alias symbol.
29657         * modules/signal (Depends-on): Add c++defs.
29658         (Makefile.am): Update signal.h rule.
29659
29660         search: Avoid #define replacements in C++ mode.
29661         * lib/search.in.h: Include c++defs.h.
29662         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29663         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29664         symbol.
29665         * modules/search (Depends-on): Add c++defs.
29666         (Makefile.am): Update search.h rule.
29667
29668         math: Avoid #define replacements in C++ mode.
29669         * lib/math.in.h: Include c++defs.h.
29670         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29671         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29672         trunc, truncl): In C++, define a namespaced alias symbol.
29673         * modules/math (Depends-on): Add c++defs.
29674         (Makefile.am): Update math.h rule.
29675
29676         locale: Avoid #define replacements in C++ mode.
29677         * lib/locale.in.h: Include c++defs.h.
29678         (duplocale): In C++, define a namespaced alias symbol.
29679         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29680         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29681         * modules/locale (Depends-on): Add c++defs.
29682         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29683
29684         langinfo: Avoid #define replacements in C++ mode.
29685         * lib/langinfo.in.h: Include c++defs.h.
29686         (nl_langinfo): In C++, define a namespaced alias symbol.
29687         * modules/langinfo (Depends-on): Add c++defs.
29688         (Makefile.am): Update langinfo.h rule.
29689
29690         iconv-h: Avoid #define replacements in C++ mode.
29691         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29692         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29693         symbol.
29694         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29695         whenever iconv is present.
29696         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29697         (Makefile.am): Update iconv.h rule.
29698
29699         glob: Avoid #define replacements in C++ mode.
29700         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29701         (_gl_glob_errfunc_fn): New type.
29702         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29703         symbol.
29704         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29705         (Makefile.am): Update glob.h rule.
29706
29707         fcntl-h: Avoid #define replacements in C++ mode.
29708         * lib/fcntl.in.h: Include c++defs.h.
29709         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29710         * modules/fcntl-h (Depends-on): Add c++defs.
29711         (Makefile.am): Update fcntl.h rule.
29712
29713         dirent: Avoid #define replacements in C++ mode.
29714         * lib/dirent.in.h: Include c++defs.h.
29715         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29716         namespaced alias symbol.
29717         (dirfd): Update declaration.
29718         * modules/dirent (Depends-on): Add c++defs.
29719         (Makefile.am): Update dirent.h rule.
29720
29721         ctype: Make it usable in C++ code.
29722         * lib/ctype.in.h: Include c++defs.h.
29723         (isblank): Declare as extern "C".
29724         * modules/ctype (Depends-on): Add c++defs.
29725         (Makefile.am): Update ctype.h rule.
29726
29727         New module 'c++defs'.
29728         * modules/c++defs: New file.
29729         * build-aux/c++defs.h: New file.
29730         Reported by John W. Eaton <jwe@gnu.org>.
29731
29732 2010-03-07  Bruno Haible  <bruno@clisp.org>
29733
29734         logb: Provide missing declaration for Cygwin.
29735         * lib/math.in.h (logb): New declaration.
29736         * m4/logb.m4: New file.
29737         * modules/logb (Files): Add m4/logb.m4.
29738         (Depends-on): Add math.
29739         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29740         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29742         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29743         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29744
29745 2010-03-07  Bruno Haible  <bruno@clisp.org>
29746
29747         Fix test-cond link error.
29748         * tests/test-cond.c: Include <stdio.h>.
29749
29750 2010-03-07  Bruno Haible  <bruno@clisp.org>
29751
29752         Fix test-dirent-safer link error.
29753         * modules/dirent-safer-tests (Makefile.am): Define
29754         test_dirent_safer_LDADD.
29755
29756 2010-03-07  Bruno Haible  <bruno@clisp.org>
29757
29758         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29759         among default module list.
29760
29761 2010-03-07  Bruno Haible  <bruno@clisp.org>
29762
29763         Fix link error on platforms with GNU libiconv.
29764         * modules/unistr/u8-strcoll-tests (Makefile): Define
29765         test_u8_strcoll_LDADD.
29766         * modules/unistr/u16-strcoll-tests (Makefile): Define
29767         test_u16_strcoll_LDADD.
29768         * modules/unistr/u32-strcoll-tests (Makefile): Define
29769         test_u32_strcoll_LDADD.
29770
29771 2010-03-07  Bruno Haible  <bruno@clisp.org>
29772
29773         Use POSIX declarations for socket functions.
29774         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29775         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29776         rpl_sendto): Change declaration to match POSIX.
29777         * lib/connect.c (rpl_connect): Likewise.
29778         * lib/accept.c (rpl_accept): Likewise.
29779         * lib/bind.c (rpl_bind): Likewise.
29780         * lib/getpeername.c (rpl_getpeername): Likewise.
29781         * lib/getsockname.c (rpl_getsockname): Likewise.
29782         * lib/recv.c (rpl_recv): Likewise.
29783         * lib/send.c (rpl_send): Likewise.
29784         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29785         * lib/sendto.c (rpl_sendto): Likewise.
29786
29787 2010-03-06  Bruno Haible  <bruno@clisp.org>
29788
29789         Clarify access, euidaccess, faccessat.
29790         * doc/posix-functions/faccessat.texi: Mention security problem under
29791         "Other problems", not "Portability problems".
29792         * doc/posix-functions/access.texi: Likewise. Mention a related security
29793         problem.
29794         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29795         * lib/euidaccess.c: Add comments about platforms.
29796         * lib/unistd.in.h (access, euidaccess): Add warnings.
29797
29798 2010-03-07  Bruno Haible  <bruno@clisp.org>
29799
29800         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29801         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29802         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29803         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29804         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29805         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29806         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29807         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29808         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29810         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29811         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29812         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29813         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29814         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29815         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29816         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29817         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29818         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29819         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29820         Likewise.
29821         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29822         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29823         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29824         Likewise.
29825         * tests/test-spawn.c (main): Make it work when
29826         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29827
29828 2010-03-07  Bruno Haible  <bruno@clisp.org>
29829
29830         Fix incorrect Makefile.am generation in German locale.
29831         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29832         Execute sed command with character range in C locale.
29833
29834 2010-03-06  Bruno Haible  <bruno@clisp.org>
29835
29836         Tests for module 'iconv-h'.
29837         * modules/iconv-h-tests: New file.
29838         * tests/test-iconv-h.c: New file.
29839
29840         New module 'iconv-h'.
29841         * modules/iconv-h: New file.
29842         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29843         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29844         (configure.ac): Remove gl_ICONV_H.
29845         (Makefile.am): Remove rule for iconv.h.
29846
29847 2010-03-06  Bruno Haible  <bruno@clisp.org>
29848
29849         More consistent naming of *.m4 files.
29850         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29851         * modules/wctype (Files): Update.
29852
29853         More consistent naming of *.m4 files.
29854         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29855         * modules/wchar (Files): Update.
29856
29857 2010-03-06  Jim Meyering  <meyering@redhat.com>
29858
29859         euidaccess: relax license to LGPLv2+
29860         * modules/euidaccess (License): Relax to LGPLv2+.
29861
29862 2010-03-06  Bruno Haible  <bruno@clisp.org>
29863
29864         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29865         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29866         (Makefile.am): Augment lib_SOURCES instead.
29867
29868 2010-03-04  Jim Meyering  <meyering@redhat.com>
29869
29870         utime: remove obsolete module
29871         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29872         unnecessary for years, and has been marked as obsolete for 10 months.
29873         * modules/utime: Remove file.
29874         * lib/utime.c: Remove file.
29875         * m4/utime.m4: Remove file.
29876         * m4/utimes-null.m4: Remove file.
29877         * doc/posix-functions/utime.texi (utime): Remove reference to
29878         the module.  Move the sole "fixed by gnulib" item into the
29879         "problems not fixed by Gnulib" list.
29880         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29881
29882 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29883
29884         * modules/exit (License): Relax license to LGPLv2+.
29885         (Status): Mark as obsolete.
29886         * NEWS: Mention deprecated 'exit' module.
29887         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29888         of now obsolete 'exit'.
29889
29890 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29891
29892         fts-lgpl: remove unused module
29893         * modules/fts-lgpl: Remove.
29894         * MODULES.html.sh (func_all_modules): Adjust.
29895         * check-module (find_included_lib_files): Adjust.
29896         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29897
29898 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29899
29900         copy-acl: enhance Solaris ACL error handling
29901         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29902         * lib/set-mode-acl.c (qset_acl): Likewise.
29903
29904 2010-03-02  Bruno Haible  <bruno@clisp.org>
29905
29906         spawn: Don't override the system defined values on FreeBSD 8.
29907         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29908         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29909         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29910         if HAVE_POSIX_SPAWN is 1.
29911         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29912
29913 2010-03-01  Bruno Haible  <bruno@clisp.org>
29914
29915         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29916         regarding Automake.
29917
29918 2010-02-25  Bruno Haible  <bruno@clisp.org>
29919
29920         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29921         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29922         setting, not afterwards.
29923         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29924
29925 2010-02-24  Eric Blake  <eblake@redhat.com>
29926
29927         bootstrap, git-version-gen: use timestamp
29928         * build-aux/git-version-gen (scriptversion): Force UTC.
29929         * build-aux/bootstrap (scriptversion): New variable.
29930
29931         bootstrap: allow older git
29932         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29933         older than 1.6.4.  Requested by the libvirt project.
29934
29935 2010-02-23  Eric Blake  <eblake@redhat.com>
29936
29937         warn-on-use: work with old autoconf
29938         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29939         AS_VAR semantics of autoconf 2.60.
29940         Reported by Bruno Haible.
29941
29942         bootstrap: improve some comments
29943         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29944         clarification comments.
29945
29946         gettimeofday: provide correct function
29947         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29948         when replacement is declared, otherwise provide gettimeofday.
29949         Reported by Michael Goffioul.
29950
29951 2010-02-23  Jim Meyering  <meyering@redhat.com>
29952
29953         lib-ignore: relax license to "unlimited", not LGPLv2+
29954         * modules/lib-ignore (License): Relax to "unlimited".
29955
29956 2010-02-23  Jim Meyering  <meyering@redhat.com>
29957
29958         lib-ignore: relax license to LGPLv2+
29959         * modules/lib-ignore (License): Relax to LGPLv2+.
29960
29961 2010-02-22  Eric Blake  <eblake@redhat.com>
29962
29963         lseek: avoid bash 3.2 broken pipe bug
29964         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29965         warning from bash 3.2.
29966         Reported by Ben Pfaff, with analysis from Bruno Haible.
29967
29968         bootstrap: support non-FSF copyright holder
29969         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29970         bootstrap.conf override of COPYRIGHT_HOLDER.
29971         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29972
29973         bootstrap: interoperate with gettext 0.14.1
29974         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29975
29976         bootstrap: allow for alternate submodule location
29977         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29978         hardcoding submodule location.
29979         (gnulib_mk): Allow direct use of Makefile.am.
29980
29981         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29982         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29983         rather than reconfiguring where the submodule points.
29984
29985         gettimeofday: restore support for platforms that lack function
29986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29987         replacement if function is missing.
29988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29989         * modules/sys_time (Makefile.am): Substitute it.
29990         * lib/sys_time.in.h (gettimeofday): Check it.
29991         Reported by Michael Goffioul.
29992
29993 2010-02-21  Bruno Haible  <bruno@clisp.org>
29994
29995         * lib/stdio.in.h (obstack_printf): Fix typo.
29996
29997 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29998
29999         vc-list-files: use bzr ls's -R option
30000         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
30001         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
30002
30003 2010-02-21  Jim Meyering  <meyering@redhat.com>
30004
30005         init.sh: fix EXEEXT shims to work also for names like test-prog
30006         * tests/init.sh: Re-exec a better shell, when needed.
30007         If the current shell lacks support for posix $(...), an init.sh-using
30008         test will now try to find a shell that supports that.  If EXEEXT is
30009         nonempty, we also require support for hyphen-in-alias-name and shell
30010         substitutions like ${var#glob}.  Failure to find such a shell results
30011         in a skipped test.
30012
30013 2010-02-21  Bruno Haible  <bruno@clisp.org>
30014
30015         Really work around around "broken pipe" error message from bash 3.2.
30016         * gnulib-tool (func_reset_sigpipe): Remove function.
30017         (echo): In bash 3.2, define to a function that uses printf.
30018         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
30019
30020 2010-02-20  Bruno Haible  <bruno@clisp.org>
30021
30022         Restore support for automake 1.9.6 with autoconf 2.61.
30023         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
30024         Reported by James Youngman <jay@gnu.org>.
30025
30026 2010-02-20  Bruno Haible  <bruno@clisp.org>
30027
30028         Improve *printf warning condition.
30029         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
30030         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
30031         and the function is overridden due to SIGPIPE emulation.
30032
30033 2010-02-20  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/stdio.in.h: Tweak comments.
30036
30037 2010-02-19  Bruno Haible  <bruno@clisp.org>
30038
30039         Make it easier to find modules. New gnulib-tool option '--find'.
30040         * gnulib-tool: New option --find.
30041         (func_usage): Document it.
30042         (func_sanitize_modulelist): New function, extracted from
30043         func_all_modules.
30044         (func_all_modules): Invoke it.
30045         * doc/gnulib-tool.texi (Which modules?): New node.
30046
30047 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
30048
30049         * lib/sys_select.in.h: Provide select replacement even if
30050         sys/select.h exists on a system, for Interix.
30051
30052 2010-02-18  Jim Meyering  <meyering@redhat.com>
30053
30054         init.sh: don't use $(...) just yet
30055         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
30056         to accommodate e.g., Solaris' /bin/sh.
30057
30058 2010-02-17  Bruno Haible  <bruno@clisp.org>
30059
30060         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
30061         Reported by Ludovic Courtès <ludo@gnu.org>.
30062
30063 2010-02-16  Simon Josefsson  <simon@josefsson.org>
30064
30065         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
30066         linking with -lintl.
30067
30068 2010-02-17  Simon Josefsson  <simon@josefsson.org>
30069
30070         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
30071         if not provided by the system's netdb.h.  Reported by
30072         ludo@gnu.org (Ludovic Courtès).
30073
30074 2010-02-15  Jim Meyering  <meyering@redhat.com>
30075
30076         init.sh: improve portability and efficiency
30077         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
30078         "dummy" in a for loop.
30079         Use '!', not '^' to select the complement of a character set used
30080         in a "case" statement.
30081         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
30082         Suggestions from Eric Blake.
30083
30084         init.sh: automatically accommodate programs with the .exe suffix
30085         Automatically arrange for an invocation of "prog" to execute the
30086         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
30087         may use the simpler "prog", yet still work when built on a system
30088         that requires specifying the added suffix.
30089         Do this by constructing a function named "prog" that invokes
30090         "prog.exe" for each .exe file in selected directories.
30091         * tests/init.sh (find_exe_basenames_): New function.
30092         (create_exe_shim_functions_): New function.
30093         (path_prepend_): Use it.
30094
30095         maint.mk: mark syntax-check sc_*.m rules as .PHONY
30096         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
30097         "make -t syntax-check" doesn't create a ton of sc_*.m files.
30098
30099 2010-02-14  Jim Meyering  <meyering@redhat.com>
30100
30101         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
30102         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
30103         (sc_prohibit_hash_pjw_without_use): New rule.
30104
30105         maint.mk: allow the default upload destination dir to be overridden
30106         * top/maint.mk (upload_dest_dir_): Define with a default that
30107         preserves the status quo.
30108         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
30109         Reported by Peter Simons.
30110
30111         maint.mk: prohibit inclusion of "hash.h" without_use
30112         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
30113
30114 2010-02-10  Jim Meyering  <meyering@redhat.com>
30115
30116         maint.mk: prohibit inclusion of "ignore-value.h" without_use
30117         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
30118
30119 2010-02-09  Eric Blake  <ebb9@byu.net>
30120         and Bruno Haible  <bruno@clisp.org>
30121
30122         obstack-printf-posix: ensure declaration
30123         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
30124         extracted from gl_FUNC_OBSTACK_PRINTF.
30125         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
30126         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30127         Likewise.
30128         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
30129         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
30130         0.
30131
30132 2010-02-08  Bruno Haible  <bruno@clisp.org>
30133
30134         gnulib-tool: Fix typo in 2010-02-07 commit.
30135         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
30136         Reported by Eric Blake.
30137
30138 2010-02-07  Bruno Haible  <bruno@clisp.org>
30139
30140         gnulib-tool: Fix up caching patches.
30141         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
30142         option --no-cache. Use associative arrays when supported by the shell.
30143         (sed_comments): New variable.
30144         (modcache): Renamed from do_cache.
30145         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
30146         abbreviate unnecessarily.
30147         (have_associative): New variable.
30148         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
30149         way also for ksh and zsh.
30150         (func_init_sed_convert_to_cache_statements): New function, extracted
30151         from func_cache_lookup_module. Add support for associative arrays.
30152         Don't set the c_MODULE_cached variable here. Ignore all lines before
30153         the first field header. Remove only the final newline, not all trailing
30154         newlines. Support empty fields correctly. Limit the use of 'eval' to
30155         assignments.
30156         (func_get_description, func_get_status, func_get_notice,
30157         func_get_applicability, func_get_filelist, func_get_dependencies,
30158         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
30159         func_get_automake_snippet, func_get_include_directive,
30160         func_get_link_directive, func_get_license, func_get_maintainer):
30161         Update documentation. List the unoptimized code first. Add support for
30162         associative arrays. Limit the use of 'eval' to assignments.
30163         (func_get_applicability): Undo stylistic pessimisations.
30164         (func_get_automake_snippet, func_get_include_directive): Reduce code
30165         duplication.
30166         (func_modules_transitive_closure, func_modules_add_dummy,
30167         func_modules_notice, func_modules_to_filelist, func_add_file,
30168         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
30169         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
30170         func_create_testdir, func_create_megatestdir): Update documentation.
30171
30172 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30173
30174         * gnulib-tool (func_cache_lookup_module): Store the module name
30175         belonging to the cache variable; error out if two different
30176         module names map to the same cache variable name.
30177
30178 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30179
30180         gnulib-tool: Make caching optional.
30181         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
30182         Update matching short versions of --no-changelog.
30183         (func_usage): Update.
30184         (sed_extract_cache_prog): Renamed from ...
30185         (sed_extract_prog): ... this; revert to old extraction script.
30186         (func_get_description, func_get_status)
30187         (func_get_notice, func_get_applicability, func_get_filelist)
30188         (func_get_dependencies, func_get_autoconf_early_snippet)
30189         (func_get_autoconf_snippet, func_get_automake_snippet)
30190         (func_get_include_directive, func_get_link_directive)
30191         (func_get_license, func_get_maintainer): If $do_cache is false,
30192         use old, non-caching extraction scripts.
30193         Suggestion by Bruno Haible.
30194
30195 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30196
30197         gnulib-tool: cache module metainformation.
30198         * gnulib-tool (sed_extract_prog): Match newline before each
30199         header, and rewrite header to a shell variable suffix.
30200         (func_cache_var, func_cache_lookup_module): New functions,
30201         to turn a module name into a cache variable prefix, and to
30202         look up and cache module metainformation.
30203         (func_get_description, func_get_status)
30204         (func_get_notice, func_get_applicability, func_get_filelist)
30205         (func_get_dependencies, func_get_autoconf_early_snippet)
30206         (func_get_autoconf_snippet, func_get_automake_snippet)
30207         (func_get_include_directive, func_get_link_directive)
30208         (func_get_license, func_get_maintainer): Use
30209         func_cache_lookup_module.
30210
30211 2010-02-07  Bruno Haible  <bruno@clisp.org>
30212
30213         fnctl: Fix missing dependency.
30214         * modules/fcntl (Depends-on): Add getdtablesize.
30215         Reported by John W. Eaton <jwe@gnu.org>.
30216
30217 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30218
30219         Argp: fix recognition of short alias options.
30220
30221         * lib/argp-parse.c (convert_options): Fix improper use of
30222         `|' between character values.
30223         * tests/test-argp.c (group1_option): New alias option
30224         --read (-r).
30225         (group1_parser): Special handling for 'r'.
30226         (test15): New test case.
30227         (test_fun): Add test15.
30228         * tests/test-argp-2.sh: Update expected --help and --usage
30229         outputs.
30230
30231 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30232
30233         * tests/test-argp.c: Fix indentation.
30234
30235 2010-02-04  Eric Blake  <ebb9@byu.net>
30236
30237         gettimeofday: expose type of second argument
30238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30239         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30240         * tests/test-gettimeofday.c: Use it to silence warning.
30241         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30242         the issue.
30243
30244 2010-02-03  Jim Meyering  <meyering@redhat.com>
30245
30246         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30247         * lib/regcomp.c (TYPE_SIGNED): Define.
30248         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30249
30250         regcomp.c: avoid a new -Wshadow warning
30251         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30252
30253 2010-02-01  Jim Meyering  <meyering@redhat.com>
30254
30255         removing useless parentheses in cpp #define directives
30256         For motivation, see commit c0221df4, "define STREQ(a,b)
30257         consistently, removing useless parentheses"
30258         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30259         * lib/mountlist.c (MNT_IGNORE): Likewise.
30260         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30261
30262 2010-02-01  Eric Blake  <ebb9@byu.net>
30263
30264         sys_time: use link-warning
30265         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30266         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30267         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30268         * modules/sys_time (Depends-on): Add warn-on-use.
30269         (Makefile.am): Always build replacement.
30270         (configure.ac): Update substitutions.
30271         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30272         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30273         bother with SYS_TIME_H.
30274         * modules/gettimeofday (configure.ac): Declare indicator.
30275         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30276         in use.
30277
30278         closein-tests: silence compiler warning
30279         * tests/test-closein.c (main): Ignore fread result.
30280         * modules/closein-tests (Depends-on): Add ignore-value.
30281
30282         tests: silence warning about system return
30283         * tests/test-areadlink-with-size.c (main): Ignore system result.
30284         * tests/test-areadlink.c (main): Likewise.
30285         * tests/test-areadlinkat-with-size.c (main): Likewise.
30286         * tests/test-areadlinkat.c (main): Likewise.
30287         * tests/test-canonicalize-lgpl.c (main): Likewise.
30288         * tests/test-canonicalize.c (main): Likewise.
30289         * tests/test-chown.c (main): Likewise.
30290         * tests/test-fchownat.c (main): Likewise.
30291         * tests/test-fdutimensat.c (main): Likewise.
30292         * tests/test-fstatat.c (main): Likewise.
30293         * tests/test-futimens.c (main): Likewise.
30294         * tests/test-lchown.c (main): Likewise.
30295         * tests/test-link.c (main): Likewise.
30296         * tests/test-linkat.c (main): Likewise.
30297         * tests/test-lstat.c (main): Likewise.
30298         * tests/test-mkdir.c (main): Likewise.
30299         * tests/test-mkdirat.c (main): Likewise.
30300         * tests/test-mkfifo.c (main): Likewise.
30301         * tests/test-mkfifoat.c (main): Likewise.
30302         * tests/test-mknod.c (main): Likewise.
30303         * tests/test-readlink.c (main): Likewise.
30304         * tests/test-remove.c (main): Likewise.
30305         * tests/test-rename.c (main): Likewise.
30306         * tests/test-renameat.c (main): Likewise.
30307         * tests/test-rmdir.c (main): Likewise.
30308         * tests/test-symlink.c (main): Likewise.
30309         * tests/test-symlinkat.c (main): Likewise.
30310         * tests/test-unlink.c (main): Likewise.
30311         * tests/test-unlinkat.c (main): Likewise.
30312         * tests/test-utimens.c (main): Likewise.
30313         * tests/test-utimensat.c (main): Likewise.
30314         * modules/areadlink-tests (Depends-on): Add ignore-value.
30315         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30316         * modules/areadlinkat-tests (Depends-on): Likewise.
30317         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30318         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30319         * modules/canonicalize-tests (Depends-on): Likewise.
30320         * modules/chown-tests (Depends-on): Likewise.
30321         * modules/fdutimensat-tests (Depends-on): Likewise.
30322         * modules/futimens-tests (Depends-on): Likewise.
30323         * modules/lchown-tests (Depends-on): Likewise.
30324         * modules/link-tests (Depends-on): Likewise.
30325         * modules/linkat-tests (Depends-on): Likewise.
30326         * modules/lstat-tests (Depends-on): Likewise.
30327         * modules/mkdir-tests (Depends-on): Likewise.
30328         * modules/mkfifo-tests (Depends-on): Likewise.
30329         * modules/mkfifoat-tests (Depends-on): Likewise.
30330         * modules/mknod-tests (Depends-on): Likewise.
30331         * modules/openat-tests (Depends-on): Likewise.
30332         * modules/readlink-tests (Depends-on): Likewise.
30333         * modules/remove-tests (Depends-on): Likewise.
30334         * modules/rename-tests (Depends-on): Likewise.
30335         * modules/renameat-tests (Depends-on): Likewise.
30336         * modules/rmdir-tests (Depends-on): Likewise.
30337         * modules/symlink-tests (Depends-on): Likewise.
30338         * modules/symlinkat-tests (Depends-on): Likewise.
30339         * modules/unlink-tests (Depends-on): Likewise.
30340         * modules/utimens-tests (Depends-on): Likewise.
30341         * modules/utimensat-tests (Depends-on): Likewise.
30342
30343 2010-01-31  Bruno Haible  <bruno@clisp.org>
30344
30345         Perform the same test for many <math.h> functions.
30346         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30347         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30348         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30349         of gl_MATHFUNC.
30350         * modules/acos (configure.ac): Likewise.
30351         * modules/asin (configure.ac): Likewise.
30352         * modules/atan (configure.ac): Likewise.
30353         * modules/atan2 (configure.ac): Likewise.
30354         * modules/cbrt (configure.ac): Likewise.
30355         * modules/copysign (configure.ac): Likewise.
30356         * modules/cos (configure.ac): Likewise.
30357         * modules/cosh (configure.ac): Likewise.
30358         * modules/erf (configure.ac): Likewise.
30359         * modules/erfc (configure.ac): Likewise.
30360         * modules/exp (configure.ac): Likewise.
30361         * modules/fmod (configure.ac): Likewise.
30362         * modules/hypot (configure.ac): Likewise.
30363         * modules/j0 (configure.ac): Likewise.
30364         * modules/j1 (configure.ac): Likewise.
30365         * modules/jn (configure.ac): Likewise.
30366         * modules/lgamma (configure.ac): Likewise.
30367         * modules/log (configure.ac): Likewise.
30368         * modules/log10 (configure.ac): Likewise.
30369         * modules/log1p (configure.ac): Likewise.
30370         * modules/pow (configure.ac): Likewise.
30371         * modules/remainder (configure.ac): Likewise.
30372         * modules/sin (configure.ac): Likewise.
30373         * modules/sinh (configure.ac): Likewise.
30374         * modules/tan (configure.ac): Likewise.
30375         * modules/tanh (configure.ac): Likewise.
30376         * modules/y0 (configure.ac): Likewise.
30377         * modules/y1 (configure.ac): Likewise.
30378         * modules/yn (configure.ac): Likewise.
30379         Suggested by Paolo Bonzini.
30380
30381 2010-01-31  Bruno Haible  <bruno@clisp.org>
30382
30383         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30384
30385 2010-01-31  Bruno Haible  <bruno@clisp.org>
30386
30387         Work around getdelim() bug on FreeBSD 8.0.
30388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30389         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30390         not work.
30391         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30392         is 1.
30393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30394         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30395         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30396         a non-zero size.
30397         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30398
30399 2010-01-31  Bruno Haible  <bruno@clisp.org>
30400
30401         Work around getline() bug on FreeBSD 8.0.
30402         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30403         and a non-zero size.
30404         * tests/test-getline.c (main): Likewise.
30405         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30406         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30407
30408 2010-01-28  Eric Blake  <ebb9@byu.net>
30409
30410         regex: fix build failure
30411         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30412         platforms.
30413
30414 2010-01-28  Jim Meyering  <meyering@redhat.com>
30415
30416         regex: do not ignore memory allocation failure
30417         * lib/regex_internal.c (create_cd_newstate): Detect
30418         re_node_set_init_copy failure.   Extracted from glibc commit
30419         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30420
30421         regex: sync more white-space changes from libc
30422         * lib/regex_internal.c: White-space only changes.
30423         * lib/regexec.c: Likewise.
30424
30425         regex: add many uses of __attribute_warn_unused_result__
30426         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30427         * lib/regexec.c: Likewise.
30428         Extracted from a messy glibc commit.
30429
30430         regcomp.c: spelling and merge-artifact from glibc
30431         * lib/regcomp.c: Merge remainder of glibc's
30432         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30433
30434         regcomp.c: sync white-space changes from glibc
30435         * lib/regcomp.c: Merge to accommodate white space
30436         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30437
30438         regcomp.c: do not ignore internal return values
30439         * lib/regcomp.c: Do not ignore internal return values.
30440         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30441         but without its white-space changes and spelling fixes.
30442
30443         regex_internal.h: define __attribute_warn_unused_result__
30444         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30445
30446         maint: add a syntax-check rule to check for vulnerable Makefile.in
30447         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30448
30449 2010-01-27  Jim Meyering  <meyering@redhat.com>
30450
30451         ncftpput-ftp: clean up spaces
30452         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30453         Remove trailing blanks.
30454
30455 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30456
30457         * build-aux/git-version-gen: Fix copyright statement.
30458         * build-aux/gnupload: Likewise.
30459         * tests/test-arcfour.c: Likewise.
30460         * tests/test-arctwo.c: Likewise.
30461         * tests/test-count-one-bits.c: Likewise.
30462         * tests/test-crc.c: Likewise.
30463         * tests/test-des.c: Likewise.
30464         * tests/test-gc-arcfour.c: Likewise.
30465         * tests/test-gc-arctwo.c: Likewise.
30466         * tests/test-gc-des.c: Likewise.
30467         * tests/test-gc-hmac-md5.c: Likewise.
30468         * tests/test-gc-hmac-sha1.c: Likewise.
30469         * tests/test-gc-md2.c: Likewise.
30470         * tests/test-gc-md4.c: Likewise.
30471         * tests/test-gc-md5.c: Likewise.
30472         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30473         * tests/test-gc-rijndael.c: Likewise.
30474         * tests/test-gc-sha1.c: Likewise.
30475         * tests/test-gc.c: Likewise.
30476         * tests/test-gethostname.c: Likewise.
30477         * tests/test-gettimeofday.c: Likewise.
30478         * tests/test-hash.c: Likewise.
30479         * tests/test-hmac-md5.c: Likewise.
30480         * tests/test-hmac-sha1.c: Likewise.
30481         * tests/test-md2.c: Likewise.
30482         * tests/test-md4.c: Likewise.
30483         * tests/test-md5.c: Likewise.
30484         * tests/test-memchr.c: Likewise.
30485         * tests/test-memchr2.c: Likewise.
30486         * tests/test-memcmp.c: Likewise.
30487         * tests/test-memmem.c: Likewise.
30488         * tests/test-memrchr.c: Likewise.
30489         * tests/test-rawmemchr.c: Likewise.
30490         * tests/test-read-file.c: Likewise.
30491         * tests/test-rijndael.c: Likewise.
30492         * tests/test-sockets.c: Likewise.
30493         * tests/test-strchrnul.c: Likewise.
30494         * tests/test-strstr.c: Likewise.
30495         * tests/test-strtod.c: Likewise.
30496         * build-aux/ncftpput-ftp: Likewise.
30497
30498 2010-01-26  Eric Blake  <ebb9@byu.net>
30499
30500         ignore-value: update recommended header name
30501         * modules/ignore-value (Include): Only use <> for headers that
30502         exist in glibc.
30503
30504 2010-01-26  Jim Meyering  <meyering@redhat.com>
30505
30506         test-userspec.c: avoid compiler warnings
30507         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30508         and "initialization discards qualifiers..." warnings.
30509         Put the first "uid" in its own scope, and make char* members "const".
30510
30511 2010-01-25  Bruno Haible  <bruno@clisp.org>
30512
30513         gnulib-tool: Make warning diagnostics consistent.
30514         * gnulib-tool (func_warning): New function.
30515         Use it everywhere where gnulib-tool produces output to stderr and it is
30516         not a fatal error.
30517
30518 2010-01-25  Bruno Haible  <bruno@clisp.org>
30519
30520         Fix test dependencies.
30521         * modules/xstrtol-tests (Depends-on): Add inttypes.
30522         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30523
30524 2010-01-25 Pádraig Brady <P@draigBrady.com>
30525
30526         syntax-check: detect incorrect boolean macro values in config.h
30527         * modules/maintainer-makefile (configure.ac): Parameterize the location
30528         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30529         The logic is from Eric Blake and the location indicated by Jim Meyering.
30530         Note the more natural CONFIG_HEADER name is prohibited by automake
30531         for backwards compatibility reasons.
30532         * top/maint.mk (sc_Wundef_boolean): New rule.
30533
30534 2010-01-25  Jim Meyering  <meyering@redhat.com>
30535
30536         bootstrap: detect MacOS 10.6's shasum, too
30537         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30538         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30539
30540 2010-01-23  Jim Meyering  <meyering@redhat.com>
30541
30542         xstrtoll: new module
30543         * modules/xstrtoll: New file.
30544         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30545         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30546         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30547         ./configure fails if you use this module and lack "long long".
30548         * modules/xstrtoll-tests: New module.
30549         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30550         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30551         new init.sh-based test framework.
30552
30553 2010-01-24  Bruno Haible  <bruno@clisp.org>
30554
30555         Tests for module 'yn'.
30556         * modules/yn-tests: New file.
30557         * tests/test-yn.c: New file.
30558
30559         Tests for module 'y1'.
30560         * modules/y1-tests: New file.
30561         * tests/test-y1.c: New file.
30562
30563         Tests for module 'y0'.
30564         * modules/y0-tests: New file.
30565         * tests/test-y0.c: New file.
30566
30567         Tests for module 'tanh'.
30568         * modules/tanh-tests: New file.
30569         * tests/test-tanh.c: New file.
30570
30571         Tests for module 'tan'.
30572         * modules/tan-tests: New file.
30573         * tests/test-tan.c: New file.
30574
30575         Tests for module 'sqrt'.
30576         * modules/sqrt-tests: New file.
30577         * tests/test-sqrt.c: New file.
30578
30579         Tests for module 'sinh'.
30580         * modules/sinh-tests: New file.
30581         * tests/test-sinh.c: New file.
30582
30583         Tests for module 'sin'.
30584         * modules/sin-tests: New file.
30585         * tests/test-sin.c: New file.
30586
30587         Tests for module 'rint'.
30588         * modules/rint-tests: New file.
30589         * tests/test-rint.c: New file.
30590
30591         Tests for module 'remainder'.
30592         * modules/remainder-tests: New file.
30593         * tests/test-remainder.c: New file.
30594
30595         Tests for module 'pow'.
30596         * modules/pow-tests: New file.
30597         * tests/test-pow.c: New file.
30598
30599         Tests for module 'nextafter'.
30600         * modules/nextafter-tests: New file.
30601         * tests/test-nextafter.c: New file.
30602
30603         Tests for module 'modf'.
30604         * modules/modf-tests: New file.
30605         * tests/test-modf.c: New file.
30606
30607         Tests for module 'logb'.
30608         * modules/logb-tests: New file.
30609         * tests/test-logb.c: New file.
30610
30611         Tests for module 'log1p'.
30612         * modules/log1p-tests: New file.
30613         * tests/test-log1p.c: New file.
30614
30615         Tests for module 'log10'.
30616         * modules/log10-tests: New file.
30617         * tests/test-log10.c: New file.
30618
30619         Tests for module 'log'.
30620         * modules/log-tests: New file.
30621         * tests/test-log.c: New file.
30622
30623         Tests for module 'lgamma'.
30624         * modules/lgamma-tests: New file.
30625         * tests/test-lgamma.c: New file.
30626
30627         Tests for module 'ldexp'.
30628         * modules/ldexp-tests: New file.
30629         * tests/test-ldexp.c: New file.
30630
30631         Tests for module 'jn'.
30632         * modules/jn-tests: New file.
30633         * tests/test-jn.c: New file.
30634
30635         Tests for module 'j1'.
30636         * modules/j1-tests: New file.
30637         * tests/test-j1.c: New file.
30638
30639         Tests for module 'j0'.
30640         * modules/j0-tests: New file.
30641         * tests/test-j0.c: New file.
30642
30643         Tests for module 'hypot'.
30644         * modules/hypot-tests: New file.
30645         * tests/test-hypot.c: New file.
30646
30647         Tests for module 'fmod'.
30648         * modules/fmod-tests: New file.
30649         * tests/test-fmod.c: New file.
30650
30651         Tests for module 'fabs'.
30652         * modules/fabs-tests: New file.
30653         * tests/test-fabs.c: New file.
30654
30655         Tests for module 'exp'.
30656         * modules/exp-tests: New file.
30657         * tests/test-exp.c: New file.
30658
30659         Tests for module 'erfc'.
30660         * modules/erfc-tests: New file.
30661         * tests/test-erfc.c: New file.
30662
30663         Tests for module 'erf'.
30664         * modules/erf-tests: New file.
30665         * tests/test-erf.c: New file.
30666
30667         Tests for module 'cosh'.
30668         * modules/cosh-tests: New file.
30669         * tests/test-cosh.c: New file.
30670
30671         Tests for module 'cos'.
30672         * modules/cos-tests: New file.
30673         * tests/test-cos.c: New file.
30674
30675         Tests for module 'copysign'.
30676         * modules/copysign-tests: New file.
30677         * tests/test-copysign.c: New file.
30678
30679         Tests for module 'cbrt'.
30680         * modules/cbrt-tests: New file.
30681         * tests/test-cbrt.c: New file.
30682
30683         Tests for module 'atan2'.
30684         * modules/atan2-tests: New file.
30685         * tests/test-atan2.c: New file.
30686
30687         Tests for module 'atan'.
30688         * modules/atan-tests: New file.
30689         * tests/test-atan.c: New file.
30690
30691         Tests for module 'asin'.
30692         * modules/asin-tests: New file.
30693         * tests/test-asin.c: New file.
30694
30695         Tests for module 'acos'.
30696         * modules/acos-tests: New file.
30697         * tests/test-acos.c: New file.
30698
30699 2010-01-24  Bruno Haible  <bruno@clisp.org>
30700
30701         Fix tests for common <math.h> functions.
30702         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30703         code snippet that references the function pointer, rather than merely
30704         calling the function. Substitute the FUNC_LIBM variable.
30705         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30706         * modules/acos (configure.ac): Likewise.
30707         * modules/asin (configure.ac): Likewise.
30708         * modules/atan (configure.ac): Likewise.
30709         * modules/atan2 (configure.ac): Likewise.
30710         * modules/cbrt (configure.ac): Likewise.
30711         * modules/copysign (configure.ac): Likewise.
30712         * modules/cos (configure.ac): Likewise.
30713         * modules/cosh (configure.ac): Likewise.
30714         * modules/erf (configure.ac): Likewise.
30715         * modules/erfc (configure.ac): Likewise.
30716         * modules/exp (configure.ac): Likewise.
30717         * modules/fabs (configure.ac): Likewise.
30718         * modules/fmod (configure.ac): Likewise.
30719         * modules/hypot (configure.ac): Likewise.
30720         * modules/j0 (configure.ac): Likewise.
30721         * modules/j1 (configure.ac): Likewise.
30722         * modules/jn (configure.ac): Likewise.
30723         * modules/ldexp (configure.ac): Likewise.
30724         * modules/lgamma (configure.ac): Likewise.
30725         * modules/log (configure.ac): Likewise.
30726         * modules/log10 (configure.ac): Likewise.
30727         * modules/log1p (configure.ac): Likewise.
30728         * modules/logb (configure.ac): Likewise.
30729         * modules/modf (configure.ac): Likewise.
30730         * modules/nextafter (configure.ac): Likewise.
30731         * modules/pow (configure.ac): Likewise.
30732         * modules/remainder (configure.ac): Likewise.
30733         * modules/rint (configure.ac): Likewise.
30734         * modules/sin (configure.ac): Likewise.
30735         * modules/sinh (configure.ac): Likewise.
30736         * modules/tan (configure.ac): Likewise.
30737         * modules/tanh (configure.ac): Likewise.
30738         * modules/y0 (configure.ac): Likewise.
30739         * modules/y1 (configure.ac): Likewise.
30740         * modules/yn (configure.ac): Likewise.
30741
30742 2010-01-24  Bruno Haible  <bruno@clisp.org>
30743
30744         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30745         * tests/test-acosl.c (x): New variable.
30746         (main): Store argument in x and fetch it from x.
30747         * tests/test-asinl.c (x): New variable.
30748         (main): Store argument in x and fetch it from x.
30749         * tests/test-atanl.c (x): New variable.
30750         (main): Store argument in x and fetch it from x.
30751         * tests/test-cosl.c (x): New variable.
30752         (main): Store argument in x and fetch it from x.
30753         * tests/test-expl.c (x): New variable.
30754         (main): Store argument in x and fetch it from x.
30755         * tests/test-logl.c (x): New variable.
30756         (main): Store argument in x and fetch it from x.
30757         * tests/test-sinl.c (x): New variable.
30758         (main): Store argument in x and fetch it from x.
30759         * tests/test-sqrtl.c (x): New variable.
30760         (main): Store argument in x and fetch it from x.
30761         * tests/test-tanl.c (x): New variable.
30762         (main): Store argument in x and fetch it from x.
30763
30764 2010-01-24  Bruno Haible  <bruno@clisp.org>
30765
30766         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30767         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30768         assignments to the initial TESTS_ENVIRONMENT.
30769         * doc/gnulib.texi (Unit test modules): Document it.
30770         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30771         TESTS_ENVIRONMENT.
30772         * modules/btowc-tests (Makefile.am): Likewise.
30773         * modules/c-stack-tests (Makefile.am): Likewise.
30774         * modules/c-strcase-tests (Makefile.am): Likewise.
30775         * modules/copy-file-tests (Makefile.am): Likewise.
30776         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30777         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30778         * modules/mbrtowc-tests (Makefile.am): Likewise.
30779         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30780         * modules/mbscasestr-tests (Makefile.am): Likewise.
30781         * modules/mbschr-tests (Makefile.am): Likewise.
30782         * modules/mbscspn-tests (Makefile.am): Likewise.
30783         * modules/mbsinit-tests (Makefile.am): Likewise.
30784         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30785         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30786         * modules/mbspbrk-tests (Makefile.am): Likewise.
30787         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30788         * modules/mbsrchr-tests (Makefile.am): Likewise.
30789         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30790         * modules/mbsspn-tests (Makefile.am): Likewise.
30791         * modules/mbsstr-tests (Makefile.am): Likewise.
30792         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30793         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30794         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30795         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30796         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30797         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30798         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30799         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30800         * modules/wcrtomb-tests (Makefile.am): Likewise.
30801         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30802         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30803         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30804         assignments from TESTS_ENVIRONMENT.
30805         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30806         augmentation.
30807         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30808         * modules/atexit-tests (Makefile.am): Likewise.
30809         * modules/binary-io-tests (Makefile.am): Likewise.
30810         * modules/closein-tests (Makefile.am): Likewise.
30811         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30812         * modules/exclude-tests (Makefile.am): Likewise.
30813         * modules/fflush-tests (Makefile.am): Likewise.
30814         * modules/fpending-tests (Makefile.am): Likewise.
30815         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30816         * modules/freadahead-tests (Makefile.am): Likewise.
30817         * modules/freadptr-tests (Makefile.am): Likewise.
30818         * modules/freadseek-tests (Makefile.am): Likewise.
30819         * modules/fseek-tests (Makefile.am): Likewise.
30820         * modules/fseeko-tests (Makefile.am): Likewise.
30821         * modules/ftell-tests (Makefile.am): Likewise.
30822         * modules/ftello-tests (Makefile.am): Likewise.
30823         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30824         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30825         * modules/lseek-tests (Makefile.am): Likewise.
30826         * modules/parse-duration-tests (Makefile.am): Likewise.
30827         * modules/perror-tests (Makefile.am): Likewise.
30828         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30829         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30830         * modules/pipe-tests (Makefile.am): Likewise.
30831         * modules/pread-tests (Makefile.am): Likewise.
30832         * modules/printf-posix-tests (Makefile.am): Likewise.
30833         * modules/select-tests (Makefile.am): Likewise.
30834         * modules/sigpipe-tests (Makefile.am): Likewise.
30835         * modules/tsearch-tests (Makefile.am): Likewise.
30836         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30837         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30838         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30839         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30840         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30841         * modules/version-etc-tests (Makefile.am): Likewise.
30842         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30843         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30844         * modules/xalloc-die-tests (Makefile.am): Likewise.
30845         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30846         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30847         * modules/xstrtol-tests (Makefile.am): Likewise.
30848         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30849         * modules/yesno-tests (Makefile.am): Likewise.
30850         Suggested by Jim Meyering.
30851
30852 2010-01-24  Bruno Haible  <bruno@clisp.org>
30853
30854         More documentation.
30855         * doc/gnulib.texi (Writing modules): New chapter.
30856         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30857         the new chapter.
30858
30859 2010-01-24  Jim Meyering  <meyering@redhat.com>
30860
30861         maint.mk: do not prepend "./" after filtering
30862         * top/maint.mk (_prepend_srcdir_prefix): New variable
30863         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30864         "./" when $(srcdir) is ".".
30865
30866         define STREQ(a,b) consistently, removing useless parentheses
30867         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30868         since the only risk is that "a" or "b" contains an unparenthesized
30869         comma, but if either did that, STREQ would have 3 or more arguments.
30870         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30871         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30872         * lib/hash-triple.c (STREQ): Likewise.
30873         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30874         * lib/getugroups.c (STREQ): Likewise.
30875
30876 2010-01-23  Jim Meyering  <meyering@redhat.com>
30877
30878         maint.mk: fix syntax-check in a non-srcdir build directory
30879         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30880         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30881
30882 2010-01-22  Jim Meyering  <meyering@redhat.com>
30883
30884         userspec: add unit tests
30885         * tests/test-userspec.c: New file.
30886         * modules/userspec-tests: Likewise.
30887
30888 2010-01-21  Jim Meyering  <meyering@redhat.com>
30889
30890         maint.mk: handle source file names containing "." robustly
30891         * top/maint.mk (_dot_escaped_srcdir): Define.
30892         (VC_LIST): Use it in LHS of sed substitution.
30893
30894 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30895
30896         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30897         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30898         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30899         from a non-srcdir build.
30900
30901 2010-01-20  Eric Blake  <ebb9@byu.net>
30902
30903         warn-on-use: use instead of link-warning
30904         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30905         * modules/unistd (Depends-on, Makefile.am): Likewise.
30906         * modules/arpa_inet (Depends-on): Replace link-warning with
30907         warn-on-use.
30908         (Makefile.am): Update rules accordingly.
30909         * modules/ctype (Depends-on, Makefile.am): Likewise.
30910         * modules/dirent (Depends-on, Makefile.am): Likewise.
30911         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30912         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30913         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30914         * modules/locale (Depends-on, Makefile.am): Likewise.
30915         * modules/math (Depends-on, Makefile.am): Likewise.
30916         * modules/search (Depends-on, Makefile.am): Likewise.
30917         * modules/signal (Depends-on, Makefile.am): Likewise.
30918         * modules/spawn (Depends-on, Makefile.am): Likewise.
30919         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30920         * modules/string (Depends-on, Makefile.am): Likewise.
30921         * modules/strings (Depends-on, Makefile.am): Likewise.
30922         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30923         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30924         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30925         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30926         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30927         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30928         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30929         * modules/wchar (Depends-on, Makefile.am): Likewise.
30930         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30931         should be poisoned.
30932         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30933         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30934         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30935         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30936         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30937         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30938         * m4/math_h.m4 (gl_MATH_H): Likewise.
30939         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30940         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30941         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30942         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30943         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30944         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30945         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30946         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30949         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30951         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30952         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30953         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30954         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30955         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30956         GL_LINK_WARNING.
30957         * lib/ctype.in.h: Likewise.
30958         * lib/dirent.in.h: Likewise.
30959         * lib/fcntl.in.h: Likewise.
30960         * lib/inttypes.in.h: Likewise.
30961         * lib/langinfo.in.h: Likewise.
30962         * lib/locale.in.h: Likewise.
30963         * lib/math.in.h: Likewise.
30964         * lib/search.in.h: Likewise.
30965         * lib/signal.in.h: Likewise.
30966         * lib/spawn.in.h: Likewise.
30967         * lib/stdio.in.h: Likewise.
30968         * lib/stdlib.in.h: Likewise.
30969         * lib/string.in.h: Likewise.
30970         * lib/strings.in.h: Likewise.
30971         * lib/sys_file.in.h: Likewise.
30972         * lib/sys_ioctl.in.h: Likewise.
30973         * lib/sys_select.in.h: Likewise.
30974         * lib/sys_socket.in.h: Likewise.
30975         * lib/sys_stat.in.h: Likewise.
30976         * lib/sys_times.in.h: Likewise.
30977         * lib/sys_utsname.in.h: Likewise.
30978         * lib/unistd.in.h: Likewise.
30979         * lib/wchar.in.h: Likewise.
30980
30981 2010-01-20  Bruno Haible  <bruno@clisp.org>
30982
30983         Avoid duplicate -lm.
30984         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30985         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30987         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30988         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30989         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30990         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30991         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30992         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30993         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30994         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30995         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30996         Reported by Paolo Bonzini.
30997
30998 2010-01-19  Bruno Haible  <bruno@clisp.org>
30999
31000         langinfo, nl_langinfo: Relicense under LGPLv2+.
31001         * modules/langinfo (License): Change to LGPLv2+.
31002         * modules/nl_langinfo (License): Likewise.
31003         Patch by David Lutterkort <lutter@redhat.com>.
31004
31005 2010-01-19  Bruno Haible  <bruno@clisp.org>
31006
31007         Avoid compilation error with cc on OSF/1 5.1.
31008         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
31009         statement, not before.
31010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31011
31012 2010-01-18  Bruno Haible  <bruno@clisp.org>
31013
31014         Avoid a link error due to the __printf__ symbol.
31015         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
31016         and 2.6.x.
31017         (__format__, __printf__): Remove definitions.
31018         * lib/argp-fmtstream.h: Likewise.
31019         * lib/argp.h: Likewise.
31020         * lib/error.h: Likewise.
31021         * lib/vasnprintf.h: Likewise.
31022         * lib/xprintf.h: Likewise.
31023         * lib/xvasprintf.h: Likewise.
31024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31025
31026 2010-01-18  Bruno Haible  <bruno@clisp.org>
31027
31028         Tests for module 'tanl'.
31029         * modules/tanl-tests: New file.
31030         * tests/test-tanl.c: New file.
31031
31032         Tests for module 'sqrtl'.
31033         * modules/sqrtl-tests: New file.
31034         * tests/test-sqrtl.c: New file.
31035
31036         Tests for module 'sinl'.
31037         * modules/sinl-tests: New file.
31038         * tests/test-sinl.c: New file.
31039
31040         Tests for module 'logl'.
31041         * modules/logl-tests: New file.
31042         * tests/test-logl.c: New file.
31043
31044         Tests for module 'expl'.
31045         * modules/expl-tests: New file.
31046         * tests/test-expl.c: New file.
31047
31048         Tests for module 'cosl'.
31049         * modules/cosl-tests: New file.
31050         * tests/test-cosl.c: New file.
31051
31052         Tests for module 'atanl'.
31053         * modules/atanl-tests: New file.
31054         * tests/test-atanl.c: New file.
31055
31056         Tests for module 'asinl'.
31057         * modules/asinl-tests: New file.
31058         * tests/test-asinl.c: New file.
31059
31060         Tests for module 'acosl'.
31061         * modules/acosl-tests: New file.
31062         * tests/test-acosl.c: New file.
31063
31064         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31065         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31066         tanl): Use the standard gnulib idiom.
31067         * lib/cosl.c: Don't include trigl.c and sincosl.c.
31068         * lib/sinl.c: Likewise.
31069         * lib/tanl.c: Don't include trigl.c.
31070         (kernel_tanl): Make static.
31071         * lib/sincosl.c: Include trigl.h first.
31072         * lib/trigl.c: Likewise.
31073         * m4/acosl.m4: New file.
31074         * m4/asinl.m4: New file.
31075         * m4/atanl.m4: New file.
31076         * m4/cosl.m4: New file.
31077         * m4/expl.m4: New file.
31078         * m4/logl.m4: New file.
31079         * m4/sinl.m4: New file.
31080         * m4/sqrtl.m4: New file.
31081         * m4/tanl.m4: New file.
31082         * m4/mathl.m4: Remove file.
31083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
31084         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31085         Don't initialize GNULIB_MATHL.
31086         * modules/acosl: New file.
31087         * modules/asinl: New file.
31088         * modules/atanl: New file.
31089         * modules/cosl: New file.
31090         * modules/expl: New file.
31091         * modules/logl: New file.
31092         * modules/sinl: New file.
31093         * modules/sqrtl: New file.
31094         * modules/tanl: New file.
31095         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
31096         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
31097         substitute GNULIB_MATHL.
31098         * modules/mathl: Rewritten.
31099         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
31100         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
31101         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
31102         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
31103         * doc/posix-functions/expl.texi: Mention the 'expl' module.
31104         * doc/posix-functions/logl.texi: Mention the 'logl' module.
31105         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
31106         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
31107         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
31108
31109 2010-01-18  Bruno Haible  <bruno@clisp.org>
31110
31111         sqrt: Make gl_FUNC_SQRT requirable.
31112         * m4/sqrt.m4: New file.
31113         * modules/sqrt (Files): Add it.
31114         (configure.ac): Invoke gl_FUNC_SQRT.
31115
31116 2010-01-18  Bruno Haible  <bruno@clisp.org>
31117
31118         New modules for common <math.h> functions.
31119         * m4/mathfunc.m4: New file.
31120         * modules/acos: New file.
31121         * modules/asin: New file.
31122         * modules/atan: New file.
31123         * modules/atan2: New file.
31124         * modules/cbrt: New file.
31125         * modules/copysign: New file.
31126         * modules/cos: New file.
31127         * modules/cosh: New file.
31128         * modules/erf: New file.
31129         * modules/erfc: New file.
31130         * modules/exp: New file.
31131         * modules/fabs: New file.
31132         * modules/fmod: New file.
31133         * modules/hypot: New file.
31134         * modules/j0: New file.
31135         * modules/j1: New file.
31136         * modules/jn: New file.
31137         * modules/ldexp: New file.
31138         * modules/lgamma: New file.
31139         * modules/log: New file.
31140         * modules/log10: New file.
31141         * modules/log1p: New file.
31142         * modules/logb: New file.
31143         * modules/modf: New file.
31144         * modules/nextafter: New file.
31145         * modules/pow: New file.
31146         * modules/remainder: New file.
31147         * modules/rint: New file.
31148         * modules/sin: New file.
31149         * modules/sinh: New file.
31150         * modules/sqrt: New file.
31151         * modules/tan: New file.
31152         * modules/tanh: New file.
31153         * modules/y0: New file.
31154         * modules/y1: New file.
31155         * modules/yn: New file.
31156         * doc/posix-functions/acos.texi: Mention the 'acos' module.
31157         * doc/posix-functions/asin.texi: Mention the 'asin' module.
31158         * doc/posix-functions/atan.texi: Mention the 'atan' module.
31159         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
31160         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
31161         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
31162         * doc/posix-functions/cos.texi: Mention the 'cos' module.
31163         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
31164         * doc/posix-functions/erf.texi: Mention the 'erf' module.
31165         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
31166         * doc/posix-functions/exp.texi: Mention the 'exp' module.
31167         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
31168         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
31169         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
31170         * doc/posix-functions/j0.texi: Mention the 'j0' module.
31171         * doc/posix-functions/j1.texi: Mention the 'j1' module.
31172         * doc/posix-functions/jn.texi: Mention the 'jn' module.
31173         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
31174         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
31175         * doc/posix-functions/log.texi: Mention the 'log' module.
31176         * doc/posix-functions/log10.texi: Mention the 'log10' module.
31177         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
31178         * doc/posix-functions/logb.texi: Mention the 'logb' module.
31179         * doc/posix-functions/modf.texi: Mention the 'modf' module.
31180         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
31181         * doc/posix-functions/pow.texi: Mention the 'pow' module.
31182         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
31183         * doc/posix-functions/rint.texi: Mention the 'rint' module.
31184         * doc/posix-functions/sin.texi: Mention the 'sin' module.
31185         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
31186         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
31187         * doc/posix-functions/tan.texi: Mention the 'tan' module.
31188         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
31189         * doc/posix-functions/y0.texi: Mention the 'y0' module.
31190         * doc/posix-functions/y1.texi: Mention the 'y1' module.
31191         * doc/posix-functions/yn.texi: Mention the 'yn' module.
31192
31193 2010-01-18  Jim Meyering  <meyering@redhat.com>
31194
31195         ignore-value: relax license to LGPLv2+
31196         * modules/ignore-value (License): Relax to LGPLv2+.
31197
31198         getdate: don't leak when TZ contains two or more '"'s
31199         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
31200         double quote in TZ after the first one.
31201
31202         readtokens: do not leak internal token_lengths buffer
31203         * lib/readtokens.c (readtokens): Free the local, lengths,
31204         when the supplied "token_lengths" parameter is NULL.
31205
31206 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31207
31208         Fix a couple of missing LIBTHREAD link failures on AIX.
31209         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
31210         $(LIBTHREAD).
31211         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
31212
31213         Link test-poll against INET_PTON_LIB.
31214         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
31215         for inet_pton on Solaris 10.
31216
31217 2010-01-17  Bruno Haible  <bruno@clisp.org>
31218
31219         unistdio/*-sprintf: Fix typo in module description.
31220         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
31221         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31222         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31223         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31224         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31225         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31226         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31228
31229 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31230
31231         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31232         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31233         variables in shell case patterns, for AIX and HP-UX ksh.
31234
31235         Split large sed scripts, for HP-UX sed.
31236         * modules/stdio: Split sed scripts around 50 sed commands,
31237         to avoid HP-UX limit of 99 commands, in the near future.
31238         * modules/string: Likewise.
31239         * modules/unistd: Likewise.
31240
31241         gnulib-tool: avoid writing in the current directory.
31242         * gnulib-tool (func_emit_lib_Makefile_am)
31243         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31244         not in the current directory, so concurrent gnulib-tool
31245         instances do not interfere.
31246
31247 2010-01-16  Jim Meyering  <meyering@redhat.com>
31248
31249         doc: update users.txt
31250         * users.txt: Add grep.
31251         (diffutils, gzip): Update URLs.
31252
31253 2010-01-12  Bruno Haible  <bruno@clisp.org>
31254
31255         posix_spawn: Avoid test failure on Cygwin.
31256         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31257         characters.
31258         Reported by Simon Josefsson.
31259
31260 2010-01-12  Bruno Haible  <bruno@clisp.org>
31261
31262         * tests/test-cond.c (main): When skipping the test, show the reason.
31263
31264 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31265
31266         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31267
31268 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31269
31270         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31271         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31272
31273 2010-01-12  Eric Blake  <ebb9@byu.net>
31274
31275         build: guarantee AS_VAR_IF
31276         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31277         (gl_AS_VAR_IF): Move...
31278         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31279         Reported by Simon Josefsson.
31280
31281 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31282
31283         * lib/stdio.in.h: Fix typo.
31284
31285 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31286
31287         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31288         libgpg-error.
31289
31290 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31291
31292         * tests/test-xalloc-die.sh: Use $EXEEXT.
31293
31294 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31295             Bruno Haible  <bruno@clisp.org>
31296
31297         getlogin, getlogin_r: Avoid test failure.
31298         * tests/test-getlogin.c: Include <stdio.h>.
31299         (main): Skip the test when the function fails because stdin is not a
31300         tty.
31301         * tests/test-getlogin_r.c: Include <stdio.h>.
31302         (main): Skip the test when the function fails because stdin is not a
31303         tty.
31304
31305 2010-01-11  Eric Blake  <ebb9@byu.net>
31306
31307         tests: avoid more large file warnings
31308         * tests/test-fflush.c: Avoid warning about ftell use.
31309         * tests/test-fseek.c: Avoid warning about fseek use.
31310
31311 2010-01-10  Bruno Haible  <bruno@clisp.org>
31312
31313         nproc: Work better on Linux when /proc and /sys are not mounted.
31314         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31315         as lower bound when, on glibc/Linux systems,
31316         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31317         Suggested by Pádraig Brady <P@draigbrady.com>.
31318         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31319
31320         nproc: Refactor.
31321         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31322         extracted from num_processors.
31323         (num_processors): Call it.
31324
31325 2010-01-11  Jim Meyering  <meyering@redhat.com>
31326
31327         utimecmp: avoid new warning from upcoming gcc-4.5.0
31328         * lib/utimecmp.c (BILLION): Define using #define rather than an
31329         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31330
31331 2010-01-11  Eric Blake  <ebb9@byu.net>
31332
31333         math: add portability warnings for classification macros
31334         * modules/math (Depends-on): Add warn-on-use.
31335         (Makefile.am): Provide new substitutions.
31336         * m4/math_h.m4 (gl_MATH_H): Require inline.
31337         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31338         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31339         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31340         implement warnings.
31341
31342         unistd: warn on use of environ without module
31343         * modules/unistd (Depends-on): Add warn-on-use.
31344         (Makefile.am): Provide new substitutions.
31345         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31346         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31347
31348         stdio: warn on suspicious uses
31349         * modules/stdio (Depends-on): Add warn-on-use.
31350         (Makefile.am): Provide new substitutions.
31351         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31352         fseeko.
31353         * lib/stdio.in.h (gets): Always warn on use.
31354         (fseek, ftell): Adjust when warnings are issued, and honor
31355         _GL_NO_LARGE_FILES as a way to silence the warning.
31356         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31357         any warning about large file offsets.
31358         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31359         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31360         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31361         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31362         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31363         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31364         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31365         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31366
31367         warn-on-use: new module
31368         * modules/warn-on-use: New file.
31369         * build-aux/warn-on-use.h: Likewise.
31370         * m4/warn-on-use.m4: Likewise.
31371         * MODULES.html.sh (Support for building): Mention it.
31372
31373 2010-01-10  Bruno Haible  <bruno@clisp.org>
31374
31375         Tests for module 'unistr/u32-strdup'.
31376         * modules/unistr/u32-strdup-tests: New file.
31377         * tests/unistr/test-u32-strdup.c: New file.
31378
31379         Tests for module 'unistr/u16-strdup'.
31380         * modules/unistr/u16-strdup-tests: New file.
31381         * tests/unistr/test-u16-strdup.c: New file.
31382
31383         Tests for module 'unistr/u8-strdup'.
31384         * modules/unistr/u8-strdup-tests: New file.
31385         * tests/unistr/test-u8-strdup.c: New file.
31386         * tests/unistr/test-strdup.h: New file.
31387
31388         Tests for module 'unistr/u32-strncmp'.
31389         * modules/unistr/u32-strncmp-tests: New file.
31390         * tests/unistr/test-u32-strncmp.c: New file.
31391
31392         Tests for module 'unistr/u16-strncmp'.
31393         * modules/unistr/u16-strncmp-tests: New file.
31394         * tests/unistr/test-u16-strncmp.c: New file.
31395
31396         Tests for module 'unistr/u8-strncmp'.
31397         * modules/unistr/u8-strncmp-tests: New file.
31398         * tests/unistr/test-u8-strncmp.c: New file.
31399         * tests/unistr/test-strncmp.h: New file.
31400
31401         Tests for module 'unistr/u32-strcoll'.
31402         * modules/unistr/u32-strcoll-tests: New file.
31403         * tests/unistr/test-u32-strcoll.c: New file.
31404
31405         Tests for module 'unistr/u16-strcoll'.
31406         * modules/unistr/u16-strcoll-tests: New file.
31407         * tests/unistr/test-u16-strcoll.c: New file.
31408
31409         Tests for module 'unistr/u8-strcoll'.
31410         * modules/unistr/u8-strcoll-tests: New file.
31411         * tests/unistr/test-u8-strcoll.c: New file.
31412
31413         Tests for module 'unistr/u32-strcmp'.
31414         * modules/unistr/u32-strcmp-tests: New file.
31415         * tests/unistr/test-u32-strcmp.c: New file.
31416         * tests/unistr/test-u32-strcmp.h: New file.
31417
31418         Tests for module 'unistr/u16-strcmp'.
31419         * modules/unistr/u16-strcmp-tests: New file.
31420         * tests/unistr/test-u16-strcmp.c: New file.
31421         * tests/unistr/test-u16-strcmp.h: New file.
31422
31423         Tests for module 'unistr/u8-strcmp'.
31424         * modules/unistr/u8-strcmp-tests: New file.
31425         * tests/unistr/test-u8-strcmp.c: New file.
31426         * tests/unistr/test-u8-strcmp.h: New file.
31427         * tests/unistr/test-strcmp.h: New file.
31428
31429         Tests for module 'unistr/u32-strncat'.
31430         * modules/unistr/u32-strncat-tests: New file.
31431         * tests/unistr/test-u32-strncat.c: New file.
31432
31433         Tests for module 'unistr/u16-strncat'.
31434         * modules/unistr/u16-strncat-tests: New file.
31435         * tests/unistr/test-u16-strncat.c: New file.
31436
31437         Tests for module 'unistr/u8-strncat'.
31438         * modules/unistr/u8-strncat-tests: New file.
31439         * tests/unistr/test-u8-strncat.c: New file.
31440         * tests/unistr/test-strncat.h: New file.
31441
31442         Tests for module 'unistr/u32-strcat'.
31443         * modules/unistr/u32-strcat-tests: New file.
31444         * tests/unistr/test-u32-strcat.c: New file.
31445
31446         Tests for module 'unistr/u16-strcat'.
31447         * modules/unistr/u16-strcat-tests: New file.
31448         * tests/unistr/test-u16-strcat.c: New file.
31449
31450         Tests for module 'unistr/u8-strcat'.
31451         * modules/unistr/u8-strcat-tests: New file.
31452         * tests/unistr/test-u8-strcat.c: New file.
31453         * tests/unistr/test-strcat.h: New file.
31454
31455         Tests for module 'unistr/u32-stpncpy'.
31456         * modules/unistr/u32-stpncpy-tests: New file.
31457         * tests/unistr/test-u32-stpncpy.c: New file.
31458
31459         Tests for module 'unistr/u16-stpncpy'.
31460         * modules/unistr/u16-stpncpy-tests: New file.
31461         * tests/unistr/test-u16-stpncpy.c: New file.
31462
31463         Tests for module 'unistr/u8-stpncpy'.
31464         * modules/unistr/u8-stpncpy-tests: New file.
31465         * tests/unistr/test-u8-stpncpy.c: New file.
31466         * tests/unistr/test-stpncpy.h: New file.
31467
31468         Tests for module 'unistr/u32-strncpy'.
31469         * modules/unistr/u32-strncpy-tests: New file.
31470         * tests/unistr/test-u32-strncpy.c: New file.
31471
31472         Tests for module 'unistr/u16-strncpy'.
31473         * modules/unistr/u16-strncpy-tests: New file.
31474         * tests/unistr/test-u16-strncpy.c: New file.
31475
31476         Tests for module 'unistr/u8-strncpy'.
31477         * modules/unistr/u8-strncpy-tests: New file.
31478         * tests/unistr/test-u8-strncpy.c: New file.
31479         * tests/unistr/test-strncpy.h: New file.
31480
31481         Tests for module 'unistr/u32-stpcpy'.
31482         * modules/unistr/u32-stpcpy-tests: New file.
31483         * tests/unistr/test-u32-stpcpy.c: New file.
31484
31485         Tests for module 'unistr/u16-stpcpy'.
31486         * modules/unistr/u16-stpcpy-tests: New file.
31487         * tests/unistr/test-u16-stpcpy.c: New file.
31488
31489         Tests for module 'unistr/u8-stpcpy'.
31490         * modules/unistr/u8-stpcpy-tests: New file.
31491         * tests/unistr/test-u8-stpcpy.c: New file.
31492         * tests/unistr/test-stpcpy.h: New file.
31493
31494         Tests for module 'unistr/u32-strcpy'.
31495         * modules/unistr/u32-strcpy-tests: New file.
31496         * tests/unistr/test-u32-strcpy.c: New file.
31497
31498         Tests for module 'unistr/u16-strcpy'.
31499         * modules/unistr/u16-strcpy-tests: New file.
31500         * tests/unistr/test-u16-strcpy.c: New file.
31501
31502         Tests for module 'unistr/u8-strcpy'.
31503         * modules/unistr/u8-strcpy-tests: New file.
31504         * tests/unistr/test-u8-strcpy.c: New file.
31505         * tests/unistr/test-strcpy.h: New file.
31506
31507         Tests for module 'unistr/u32-strnlen'.
31508         * modules/unistr/u32-strnlen-tests: New file.
31509         * tests/unistr/test-u32-strnlen.c: New file.
31510
31511         Tests for module 'unistr/u16-strnlen'.
31512         * modules/unistr/u16-strnlen-tests: New file.
31513         * tests/unistr/test-u16-strnlen.c: New file.
31514
31515         Tests for module 'unistr/u8-strnlen'.
31516         * modules/unistr/u8-strnlen-tests: New file.
31517         * tests/unistr/test-u8-strnlen.c: New file.
31518         * tests/unistr/test-strnlen.h: New file.
31519
31520         Tests for module 'unistr/u32-strlen'.
31521         * modules/unistr/u32-strlen-tests: New file.
31522         * tests/unistr/test-u32-strlen.c: New file.
31523
31524         Tests for module 'unistr/u16-strlen'.
31525         * modules/unistr/u16-strlen-tests: New file.
31526         * tests/unistr/test-u16-strlen.c: New file.
31527
31528         Tests for module 'unistr/u8-strlen'.
31529         * modules/unistr/u8-strlen-tests: New file.
31530         * tests/unistr/test-u8-strlen.c: New file.
31531
31532         Tests for module 'unistr/u32-prev'.
31533         * modules/unistr/u32-prev-tests: New file.
31534         * tests/unistr/test-u32-prev.c: New file.
31535
31536         Tests for module 'unistr/u16-prev'.
31537         * modules/unistr/u16-prev-tests: New file.
31538         * tests/unistr/test-u16-prev.c: New file.
31539
31540         Tests for module 'unistr/u8-prev'.
31541         * modules/unistr/u8-prev-tests: New file.
31542         * tests/unistr/test-u8-prev.c: New file.
31543
31544         Tests for module 'unistr/u32-next'.
31545         * modules/unistr/u32-next-tests: New file.
31546         * tests/unistr/test-u32-next.c: New file.
31547
31548         Tests for module 'unistr/u16-next'.
31549         * modules/unistr/u16-next-tests: New file.
31550         * tests/unistr/test-u16-next.c: New file.
31551
31552         Tests for module 'unistr/u8-next'.
31553         * modules/unistr/u8-next-tests: New file.
31554         * tests/unistr/test-u8-next.c: New file.
31555
31556         Tests for module 'unistr/u32-strmbtouc'.
31557         * modules/unistr/u32-strmbtouc-tests: New file.
31558         * tests/unistr/test-u32-strmbtouc.c: New file.
31559
31560         Tests for module 'unistr/u16-strmbtouc'.
31561         * modules/unistr/u16-strmbtouc-tests: New file.
31562         * tests/unistr/test-u16-strmbtouc.c: New file.
31563
31564         Tests for module 'unistr/u8-strmbtouc'.
31565         * modules/unistr/u8-strmbtouc-tests: New file.
31566         * tests/unistr/test-u8-strmbtouc.c: New file.
31567
31568         Tests for module 'unistr/u32-strmblen'.
31569         * modules/unistr/u32-strmblen-tests: New file.
31570         * tests/unistr/test-u32-strmblen.c: New file.
31571
31572         Tests for module 'unistr/u16-strmblen'.
31573         * modules/unistr/u16-strmblen-tests: New file.
31574         * tests/unistr/test-u16-strmblen.c: New file.
31575
31576         Tests for module 'unistr/u8-strmblen'.
31577         * modules/unistr/u8-strmblen-tests: New file.
31578         * tests/unistr/test-u8-strmblen.c: New file.
31579
31580         Tests for module 'unistr/u32-cpy-alloc'.
31581         * modules/unistr/u32-cpy-alloc-tests: New file.
31582         * tests/unistr/test-u32-cpy-alloc.c: New file.
31583
31584         Tests for module 'unistr/u16-cpy-alloc'.
31585         * modules/unistr/u16-cpy-alloc-tests: New file.
31586         * tests/unistr/test-u16-cpy-alloc.c: New file.
31587
31588         Tests for module 'unistr/u8-cpy-alloc'.
31589         * modules/unistr/u8-cpy-alloc-tests: New file.
31590         * tests/unistr/test-u8-cpy-alloc.c: New file.
31591         * tests/unistr/test-cpy-alloc.h: New file.
31592
31593         Tests for module 'unistr/u32-mbsnlen'.
31594         * modules/unistr/u32-mbsnlen-tests: New file.
31595         * tests/unistr/test-u32-mbsnlen.c: New file.
31596
31597         Tests for module 'unistr/u16-mbsnlen'.
31598         * modules/unistr/u16-mbsnlen-tests: New file.
31599         * tests/unistr/test-u16-mbsnlen.c: New file.
31600
31601         Tests for module 'unistr/u8-mbsnlen'.
31602         * modules/unistr/u8-mbsnlen-tests: New file.
31603         * tests/unistr/test-u8-mbsnlen.c: New file.
31604
31605         Tests for module 'unistr/u32-chr'.
31606         * modules/unistr/u32-chr-tests: New file.
31607         * tests/unistr/test-u32-chr.c: New file.
31608
31609         Tests for module 'unistr/u16-chr'.
31610         * modules/unistr/u16-chr-tests: New file.
31611         * tests/unistr/test-u16-chr.c: New file.
31612
31613         Tests for module 'unistr/u8-chr'.
31614         * modules/unistr/u8-chr-tests: New file.
31615         * tests/unistr/test-u8-chr.c: New file.
31616         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31617
31618         Tests for module 'unistr/u32-cmp2'.
31619         * modules/unistr/u32-cmp2-tests: New file.
31620         * tests/unistr/test-u32-cmp2.c: New file.
31621
31622         Tests for module 'unistr/u16-cmp2'.
31623         * modules/unistr/u16-cmp2-tests: New file.
31624         * tests/unistr/test-u16-cmp2.c: New file.
31625
31626         Tests for module 'unistr/u8-cmp2'.
31627         * modules/unistr/u8-cmp2-tests: New file.
31628         * tests/unistr/test-u8-cmp2.c: New file.
31629         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31630
31631         Tests for module 'unistr/u32-cmp'.
31632         * modules/unistr/u32-cmp-tests: New file.
31633         * tests/unistr/test-u32-cmp.c: New file.
31634
31635         Tests for module 'unistr/u16-cmp'.
31636         * modules/unistr/u16-cmp-tests: New file.
31637         * tests/unistr/test-u16-cmp.c: New file.
31638
31639         Tests for module 'unistr/u8-cmp'.
31640         * modules/unistr/u8-cmp-tests: New file.
31641         * tests/unistr/test-u8-cmp.c: New file.
31642         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31643
31644         Tests for module 'unistr/u32-set'.
31645         * modules/unistr/u32-set-tests: New file.
31646         * tests/unistr/test-u32-set.c: New file.
31647
31648         Tests for module 'unistr/u16-set'.
31649         * modules/unistr/u16-set-tests: New file.
31650         * tests/unistr/test-u16-set.c: New file.
31651
31652         Tests for module 'unistr/u8-set'.
31653         * modules/unistr/u8-set-tests: New file.
31654         * tests/unistr/test-u8-set.c: New file.
31655         * tests/unistr/test-set.h: New file.
31656
31657         Tests for module 'unistr/u32-move'.
31658         * modules/unistr/u32-move-tests: New file.
31659         * tests/unistr/test-u32-move.c: New file.
31660
31661         Tests for module 'unistr/u16-move'.
31662         * modules/unistr/u16-move-tests: New file.
31663         * tests/unistr/test-u16-move.c: New file.
31664
31665         Tests for module 'unistr/u8-move'.
31666         * modules/unistr/u8-move-tests: New file.
31667         * tests/unistr/test-u8-move.c: New file.
31668         * tests/unistr/test-move.h: New file.
31669
31670         Tests for module 'unistr/u32-cpy'.
31671         * modules/unistr/u32-cpy-tests: New file.
31672         * tests/unistr/test-u32-cpy.c: New file.
31673
31674         Tests for module 'unistr/u16-cpy'.
31675         * modules/unistr/u16-cpy-tests: New file.
31676         * tests/unistr/test-u16-cpy.c: New file.
31677
31678         Tests for module 'unistr/u8-cpy'.
31679         * modules/unistr/u8-cpy-tests: New file.
31680         * tests/unistr/test-u8-cpy.c: New file.
31681         * tests/unistr/test-cpy.h: New file.
31682
31683 2010-01-09  Bruno Haible  <bruno@clisp.org>
31684
31685         Tests for module 'unistr/u32-uctomb'.
31686         * modules/unistr/u32-uctomb-tests: New file.
31687         * tests/unistr/test-u32-uctomb.c: New file.
31688
31689         Tests for module 'unistr/u16-uctomb'.
31690         * modules/unistr/u16-uctomb-tests: New file.
31691         * tests/unistr/test-u16-uctomb.c: New file.
31692
31693         Tests for module 'unistr/u8-uctomb'.
31694         * modules/unistr/u8-uctomb-tests: New file.
31695         * tests/unistr/test-u8-uctomb.c: New file.
31696
31697         Tests for module 'unistr/u32-mbtoucr'.
31698         * modules/unistr/u32-mbtoucr-tests: New file.
31699         * tests/unistr/test-u32-mbtoucr.c: New file.
31700
31701         Tests for module 'unistr/u16-mbtoucr'.
31702         * modules/unistr/u16-mbtoucr-tests: New file.
31703         * tests/unistr/test-u16-mbtoucr.c: New file.
31704
31705         Tests for module 'unistr/u8-mbtoucr'.
31706         * modules/unistr/u8-mbtoucr-tests: New file.
31707         * tests/unistr/test-u8-mbtoucr.c: New file.
31708
31709         Tests for module 'unistr/u32-mbtouc'.
31710         * modules/unistr/u32-mbtouc-tests: New file.
31711         * tests/unistr/test-u32-mbtouc.c: New file.
31712
31713         Tests for module 'unistr/u16-mbtouc'.
31714         * modules/unistr/u16-mbtouc-tests: New file.
31715         * tests/unistr/test-u16-mbtouc.c: New file.
31716
31717         Tests for module 'unistr/u8-mbtouc'.
31718         * modules/unistr/u8-mbtouc-tests: New file.
31719         * tests/unistr/test-u8-mbtouc.c: New file.
31720
31721         Tests for module 'unistr/u32-mbtouc-unsafe'.
31722         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31723         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31724         * tests/unistr/test-u32-mbtouc.h: New file.
31725
31726         Tests for module 'unistr/u16-mbtouc-unsafe'.
31727         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31728         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31729         * tests/unistr/test-u16-mbtouc.h: New file.
31730
31731         Tests for module 'unistr/u8-mbtouc-unsafe'.
31732         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31733         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31734         * tests/unistr/test-u8-mbtouc.h: New file.
31735
31736         Tests for module 'unistr/u32-mblen'.
31737         * modules/unistr/u32-mblen-tests: New file.
31738         * tests/unistr/test-u32-mblen.c: New file.
31739
31740         Tests for module 'unistr/u16-mblen'.
31741         * modules/unistr/u16-mblen-tests: New file.
31742         * tests/unistr/test-u16-mblen.c: New file.
31743
31744         Tests for module 'unistr/u8-mblen'.
31745         * modules/unistr/u8-mblen-tests: New file.
31746         * tests/unistr/test-u8-mblen.c: New file.
31747
31748         Tests for module 'unistr/u32-to-u16'.
31749         * modules/unistr/u32-to-u16-tests: New file.
31750         * tests/unistr/test-u32-to-u16.c: New file.
31751
31752         Tests for module 'unistr/u32-to-u8'.
31753         * modules/unistr/u32-to-u8-tests: New file.
31754         * tests/unistr/test-u32-to-u8.c: New file.
31755
31756         Tests for module 'unistr/u16-to-u32'.
31757         * modules/unistr/u16-to-u32-tests: New file.
31758         * tests/unistr/test-u16-to-u32.c: New file.
31759
31760         Tests for module 'unistr/u16-to-u8'.
31761         * modules/unistr/u16-to-u8-tests: New file.
31762         * tests/unistr/test-u16-to-u8.c: New file.
31763
31764         Tests for module 'unistr/u8-to-u32'.
31765         * modules/unistr/u8-to-u32-tests: New file.
31766         * tests/unistr/test-u8-to-u32.c: New file.
31767
31768         Tests for module 'unistr/u8-to-u16'.
31769         * modules/unistr/u8-to-u16-tests: New file.
31770         * tests/unistr/test-u8-to-u16.c: New file.
31771
31772         Tests for module 'unistr/u32-check'.
31773         * modules/unistr/u32-check-tests: New file.
31774         * tests/unistr/test-u32-check.c: New file.
31775
31776         Tests for module 'unistr/u16-check'.
31777         * modules/unistr/u16-check-tests: New file.
31778         * tests/unistr/test-u16-check.c: New file.
31779
31780         Tests for module 'unistr/u8-check'.
31781         * modules/unistr/u8-check-tests: New file.
31782         * tests/unistr/test-u8-check.c: New file.
31783
31784         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31785         (category_equals): New function.
31786         (main): Add more tests.
31787         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31788
31789         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31790
31791 2010-01-10  Bruno Haible  <bruno@clisp.org>
31792
31793         unistr/u*-strcoll: Try harder to distinguish different strings.
31794         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31795         compare s1 and s2 to see if they are different.
31796
31797 2010-01-10  Bruno Haible  <bruno@clisp.org>
31798
31799         unistr/u*-stpncpy: Fix the return value.
31800         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31801         description of the return value consistent with stpncpy in glibc.
31802         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31803         written non-NUL unit.
31804
31805 2010-01-10  Bruno Haible  <bruno@clisp.org>
31806
31807         unistr/u*-next: Add missing dependencies.
31808         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31809         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31810         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31811
31812 2010-01-10  Bruno Haible  <bruno@clisp.org>
31813
31814         unistr/u8-mbsnlen: Fix return value for incomplete character.
31815         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31816         u8_mblen.
31817         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31818         Remove unistr/u8-mblen.
31819         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31820         u16_mblen.
31821         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31822         Remove unistr/u16-mblen.
31823
31824 2010-01-10  Bruno Haible  <bruno@clisp.org>
31825
31826         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31827         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31828         Reported by Brian Gough <bjg@gnu.org> and
31829         Chris Clayton <chris2553@googlemail.com> via
31830         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31831
31832 2010-01-09  Bruno Haible  <bruno@clisp.org>
31833
31834         unistr/u16-to-u32: Reject invalid input.
31835         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31836         u16_mbtouc.
31837         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31838         Remove unistr/u16-mbtouc.
31839
31840         unistr/u16-to-u8: Reject invalid input.
31841         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31842         u16_mbtouc.
31843         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31844         Remove unistr/u16-mbtouc.
31845
31846         unistr/u8-to-u32: Reject invalid input.
31847         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31848         u8_mbtouc.
31849         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31850         Remove unistr/u8-mbtouc.
31851
31852         unistr/u8-to-u16: Reject invalid input.
31853         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31854         u8_mbtouc.
31855         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31856         Remove unistr/u8-mbtouc.
31857
31858 2010-01-09  Bruno Haible  <bruno@clisp.org>
31859
31860         Tests for module 'getlogin'.
31861         * modules/getlogin-tests: New file.
31862         * tests/test-getlogin.c: New file.
31863
31864         New module 'getlogin'.
31865         * lib/unistd.in.h (getlogin): New declaration.
31866         * lib/getlogin.c: New file.
31867         * m4/getlogin.m4: New file.
31868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31869         HAVE_GETLOGIN.
31870         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31871         HAVE_GETLOGIN.
31872         * modules/getlogin: New file.
31873         * doc/posix-functions/getlogin.texi: Mention the new module.
31874         Reported by John W. Eaton <jwe@gnu.org>.
31875
31876 2010-01-09  Bruno Haible  <bruno@clisp.org>
31877
31878         getlogin_r: Support for native Windows.
31879         * lib/getlogin_r.c: Include <windows.h>
31880         (getlogin_r): Implement for native Windows.
31881         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31882         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31883         via John W. Eaton <jwe@gnu.org>.
31884
31885 2010-01-09  Bruno Haible  <bruno@clisp.org>
31886
31887         getlogin_r: Small fixes.
31888         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31889         succeeds.
31890         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31891         before testing whether getlogin_r is declared. No need to set
31892         HAVE_DECL_GETLOGIN_R to 1.
31893         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31894
31895 2010-01-09  Bruno Haible  <bruno@clisp.org>
31896
31897         * lib/unistd.in.h (getlogin_r): Add comment.
31898
31899 2010-01-09  Bruno Haible  <bruno@clisp.org>
31900
31901         Tests for module 'getlogin_r'.
31902         * modules/getlogin_r-tests: New file.
31903         * tests/test-getlogin_r.c: New file.
31904
31905 2010-01-09  Jim Meyering  <meyering@redhat.com>
31906
31907         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31908         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31909         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31910
31911 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31912
31913         * lib/dup2.c (rpl_dup2): Improve comment.
31914
31915 2010-01-08  Eric Blake  <ebb9@byu.net>
31916
31917         maint.mk: allow packages to add makefile @@ exceptions
31918         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31919         (sc_makefile_check): Rename...
31920         (sc_makefile_at_at_check): ...to this, and use hook.
31921
31922         dup2: work around mingw bug
31923         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31924         Reported by Simon Josefsson.
31925
31926 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31927
31928         glob: Fix C++ compilation.
31929         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31930         C++.
31931
31932 2010-01-07  Bruno Haible  <bruno@clisp.org>
31933
31934         Fix indentation of wctype.in.h, broken since 2007-01-06.
31935         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31936
31937 2010-01-07  Bruno Haible  <bruno@clisp.org>
31938
31939         mbslen: Avoid collision with system function.
31940         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31941         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31942         * m4/mbslen.m4: New file.
31943         * modules/mbslen (Files): Add it.
31944         (configure.ac): Invoke gl_MBSLEN.
31945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31946         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31947         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31948         via Ian Beckwith <ianb@erislabs.net>.
31949
31950 2010-01-07  Bruno Haible  <bruno@clisp.org>
31951
31952         dirent: Document the last fix.
31953         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31954
31955 2010-01-07  Bruno Haible  <bruno@clisp.org>
31956
31957         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31958         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31959         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31960         va_list are defined.
31961         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31962         Reported by Eric Blake.
31963
31964 2010-01-07  Bruno Haible  <bruno@clisp.org>
31965
31966         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31967         * modules/xlist (Depends-on): Add 'list',
31968         * modules/xoset (Depends-on): Add 'oset'.
31969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31970
31971 2010-01-07  Bruno Haible  <bruno@clisp.org>
31972
31973         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31974         * doc/posix-functions/strncasecmp.texi: Likewise.
31975
31976 2010-01-07  Bruno Haible  <bruno@clisp.org>
31977
31978         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31979
31980 2010-01-07  John W. Eaton  <jwe@octave.org>
31981
31982         wctype: allow C++ use
31983         * lib/wctype.in.h: Add extern "C" block for C++.
31984
31985 2010-01-06  Eric Blake  <ebb9@byu.net>
31986
31987         maint.mk: detect incorrect GFDL usage
31988         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31989
31990 2010-01-06  Jim Meyering  <meyering@redhat.com>
31991         and Eric Blake  <ebb9@byu.net>
31992
31993         maint.mk: ignore multi-line copyright in NEWS
31994         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31995
31996 2010-01-06  Eric Blake  <ebb9@byu.net>
31997
31998         select: add missing dependency
31999         * modules/select-tests (Depends-on): Move sockets dependency...
32000         * modules/select (Depends-on): ...here.
32001         Reported by Ian Beckwith.
32002
32003         doc: regenerate INSTALL
32004         * doc/INSTALL: Reflect recent autoconf update.
32005         * doc/INSTALL.ISO: Likewise.
32006         * doc/INSTALL.UTF-8: Likewise.
32007
32008         pread: fix compilation on glibc
32009         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
32010         Reported by Ralf Wildenhues.
32011
32012         dirent: fix test failure
32013         * lib/dirent.in.h (includes): Guarantee ino_t.
32014         Reported by Ralf Wildenhues.
32015
32016 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
32017
32018         linkat, renameat: avoid bad free
32019         * lib/at-func2.c (at_func2): Fix typo.
32020         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
32021
32022 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32023
32024         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
32025         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
32026         to avoid failure of symlink test later.
32027
32028 2010-01-06  Eric Blake  <ebb9@byu.net>
32029
32030         stdio, unistd: guarantee ssize_t
32031         * lib/unistd.in.h (includes): Ensure that types required by POSIX
32032         2008 are exposed when needed.
32033         * lib/stdio.in.h (includes): Likewise.
32034         Reported by Ralf Wildenhues.
32035
32036 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
32037
32038         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
32039         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
32040         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
32041
32042 2010-01-06  Jim Meyering  <meyering@redhat.com>
32043
32044         readtokens: this module *does* require xalloc.h
32045         It uses only functions that were omitted by the old syntax-check rule.
32046         * lib/readtokens.c: Include "xalloc.h" once again.
32047         * modules/readtokens (Depends-on): Add xalloc.
32048         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
32049
32050 2010-01-05  Eric Blake  <ebb9@byu.net>
32051
32052         maint: support 'make announcement' from a VPATH build
32053         * top/maint.mk (announcement): Look for correct NEWS file.
32054
32055 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
32056
32057         utimens (fdutimens): ignore a negative FD, per contract
32058         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
32059         when we have a valid file descriptor.  Otherwise, using a brand
32060         new glibc (with just-patched futimens that now fails with EBADF)
32061         would cause this function to fail with ENOSYS.
32062         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
32063         See also http://bugzilla.redhat.com/552320.
32064
32065 2010-01-05  Eric Blake  <ebb9@byu.net>
32066
32067         strcase: document what it provides
32068         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
32069         gnulib module.
32070         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
32071         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
32072
32073 2010-01-05  Jim Meyering  <meyering@redhat.com>
32074
32075         maint: remove useless inclusions of "xalloc.h"
32076         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
32077         * lib/readtokens.c: Likewise.
32078         * lib/same.c: Likewise.
32079         * modules/getloadavg (Depends-on): Remove xalloc.
32080         * modules/readtokens: Likewise.
32081         * modules/same: Likewise.
32082
32083         maint.mk: include 4 more function names in alloca.h-checking regexp
32084         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
32085         regexp.  Before, we would give a false-positive (saying alloca.h
32086         is included unnecessarily) when the only uses involved omitted symbols.
32087
32088         xalloc.h: use consistent formatting
32089         * lib/xalloc.h: Move declarations to start in the first column.
32090
32091 2010-01-05  Eric Blake  <ebb9@byu.net>
32092
32093         mkdir: avoid xalloc
32094         * lib/mkdir.c (includes): Drop unused header.
32095         Reported by John W. Eaton.
32096
32097 2010-01-04  Jim Meyering  <meyering@redhat.com>
32098
32099         nl_langinfo: avoid configure-time syntax error
32100         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
32101         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
32102         the empty string.  Don't let that provoke a shell syntax error.
32103
32104         regcomp, regexec, fnmatch: avoid array bounds read error
32105         * lib/regcomp.c (build_equiv_class): From glibc:
32106         Use only the low 24 bits of a findidx return value as an index
32107         into the weights array.  Patch by Ulrich Drepper:
32108         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
32109         * lib/regexec.c (check_node_accept_bytes): Likewise.
32110         * lib/fnmatch_loop.c (FCT): Likewise.
32111
32112         regcomp: skip collseq lookup when there are no rules
32113         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
32114         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
32115
32116         regcomp: recognize ill-formed { } expressions
32117         * lib/regcomp.c (parse_dup_op): From glibc:
32118         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
32119
32120         regcomp: fix typo in comment
32121         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
32122         s/satisfy/satisfies/.
32123
32124         regcomp: sync from glibc: remove dead store
32125         * lib/regcomp.c (duplicate_node_closure): Remove useless
32126         search_duplicated_node call and dead store.
32127
32128         regcomp: sync from glibc; always use nl_langinfo
32129         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
32130         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
32131         * modules/regex (Depends-on): Add nl_langinfo.
32132
32133 2010-01-04  Eric Blake  <ebb9@byu.net>
32134
32135         fdopendir: fix configure test
32136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
32137
32138 2010-01-01  Bruno Haible  <bruno@clisp.org>
32139
32140         wchar: Remove unused configure check.
32141         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
32142
32143 2010-01-01  Eric Blake  <ebb9@byu.net>
32144
32145         headers: make check of system header explicit
32146         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
32147         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
32148         ourselves.
32149         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32151         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32152         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
32153         internals.
32154         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
32155         missing.
32156         Suggested by Bruno Haible.
32157
32158 2010-01-01  Jim Meyering  <meyering@redhat.com>
32159
32160         ChangeLog: tweak to eliminate unnecessary copyright line
32161         * ChangeLog: Remove a copyright line that was mistakenly updated
32162         by today's update-copyright run.  Reported by Eric Blake.
32163
32164         test-update-copyright: don't let envvar setting cause test failure
32165         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32166
32167 2010-01-01  Bruno Haible  <bruno@clisp.org>
32168
32169         localename: Avoid gcc warning.
32170         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
32171         function if it is not used.
32172
32173 2010-01-01  Jim Meyering  <meyering@redhat.com>
32174
32175         update nearly all FSF copyright year lists to include 2010
32176         Use the same procedure as for 2009, outlined in
32177         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
32178
32179         version-etc: set COPYRIGHT_YEAR to 2010
32180         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
32181
32182 2009-12-31  Eric Blake  <ebb9@byu.net>
32183
32184         doc: correct availability of cygwin 1.5.x getopt
32185         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
32186         variables.
32187         * doc/posix-functions/opterr.texi (opterr): Likewise.
32188         * doc/posix-functions/optind.texi (optind): Likewise.
32189         * doc/posix-functions/optopt.texi (optopt): Likewise.
32190         * doc/posix-functions/tzname.texi (tzname): Likewise.
32191
32192         openat: update maintainer
32193         * modules/openat (Maintainer): Add myself.
32194
32195         utimens: avoid shadowing warning
32196         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
32197         buffers into one, to avoid shadowing, as well as avoiding a
32198         redundant stat.
32199         Reported by Jim Meyering.
32200
32201         test-dup2: avoid compiler warning
32202         * tests/test-dup2.c (is_inheritable): Only define if used.
32203
32204 2010-01-01  Bruno Haible  <bruno@clisp.org>
32205
32206         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
32207         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
32208         defined, use wctomb instead of wcrtomb.
32209
32210 2010-01-01  Bruno Haible  <bruno@clisp.org>
32211
32212         iconv: Reject native Solaris iconv.
32213         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
32214         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
32215
32216 2009-12-31  Bruno Haible  <bruno@clisp.org>
32217
32218         * tests/test-signal.c (main): Remove test of 'SIG'.
32219
32220 2009-12-31  Bruno Haible  <bruno@clisp.org>
32221
32222         spawn: Fix incomplete fix.
32223         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32224         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32225         warnings for GNULIB_POSIXCHECK again.
32226         Reported by Eric Blake.
32227
32228 2009-12-31  Bruno Haible  <bruno@clisp.org>
32229
32230         Avoid namespace pollution on glibc systems.
32231         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32232         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32233         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32234         glibc systems.
32235
32236 2009-12-31  Bruno Haible  <bruno@clisp.org>
32237
32238         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32239         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32240         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32241         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32242         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32243         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32244         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32245
32246 2009-12-31  Bruno Haible  <bruno@clisp.org>
32247
32248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32249         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32250         afterwards.
32251
32252 2009-12-31  Bruno Haible  <bruno@clisp.org>
32253
32254         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32255         SYS_UTSNAME_H.
32256
32257 2009-12-31  Bruno Haible  <bruno@clisp.org>
32258
32259         spawn: Fix misapplied patch.
32260         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32261         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32262         warnings for GNULIB_POSIXCHECK.
32263
32264 2009-12-31  Bruno Haible  <bruno@clisp.org>
32265
32266         times: Update after sys_times changed.
32267         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32268         * modules/times (Files): Add it.
32269         (configure.ac): Invoke gl_FUNC_TIMES.
32270
32271 2009-12-31  Bruno Haible  <bruno@clisp.org>
32272
32273         Use AC_C_INLINE where necessary.
32274         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32276         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32277         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32278         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32279         * m4/mbiter.m4 (gl_MBITER): Likewise.
32280         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32281         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32282         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32283         * modules/u64 (configure.ac): Likewise.
32284
32285 2009-12-31  Bruno Haible  <bruno@clisp.org>
32286
32287         Use AC_C_INLINE instead of module 'inline' where possible.
32288         * modules/inline (Description): Clarify purpose.
32289         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32290         * modules/count-one-bits (Depends-on): Remove inline.
32291         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32292         * modules/openat (Depends-on): Remove inline.
32293         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32294         instead of depending on module 'inline'.
32295         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32296         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32297         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32298         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32299         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32300         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32301         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32302         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32303         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32304         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32305         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32306         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32307         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32308         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32309         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32310         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32311         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32312         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32313         Likewise.
32314         * modules/unictype/property-ascii-hex-digit (Depends-on,
32315         configure.ac): Likewise.
32316         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32317         configure.ac): Likewise.
32318         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32319         configure.ac): Likewise.
32320         * modules/unictype/property-bidi-block-separator (Depends-on,
32321         configure.ac): Likewise.
32322         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32323         configure.ac): Likewise.
32324         * modules/unictype/property-bidi-common-separator (Depends-on,
32325         configure.ac): Likewise.
32326         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32327         Likewise.
32328         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32329         configure.ac): Likewise.
32330         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32331         configure.ac): Likewise.
32332         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32333         configure.ac): Likewise.
32334         * modules/unictype/property-bidi-european-digit (Depends-on,
32335         configure.ac): Likewise.
32336         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32337         configure.ac): Likewise.
32338         * modules/unictype/property-bidi-left-to-right (Depends-on,
32339         configure.ac): Likewise.
32340         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32341         configure.ac): Likewise.
32342         * modules/unictype/property-bidi-other-neutral (Depends-on,
32343         configure.ac): Likewise.
32344         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32345         Likewise.
32346         * modules/unictype/property-bidi-segment-separator (Depends-on,
32347         configure.ac): Likewise.
32348         * modules/unictype/property-bidi-whitespace (Depends-on,
32349         configure.ac): Likewise.
32350         * modules/unictype/property-combining (Depends-on, configure.ac):
32351         Likewise.
32352         * modules/unictype/property-composite (Depends-on, configure.ac):
32353         Likewise.
32354         * modules/unictype/property-currency-symbol (Depends-on,
32355         configure.ac): Likewise.
32356         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32357         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32358         Likewise.
32359         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32360         configure.ac): Likewise.
32361         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32362         Likewise.
32363         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32364         Likewise.
32365         * modules/unictype/property-extender (Depends-on, configure.ac):
32366         Likewise.
32367         * modules/unictype/property-format-control (Depends-on, configure.ac):
32368         Likewise.
32369         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32370         Likewise.
32371         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32372         Likewise.
32373         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32374         Likewise.
32375         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32376         Likewise.
32377         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32378         Likewise.
32379         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32380         Likewise.
32381         * modules/unictype/property-id-start (Depends-on, configure.ac):
32382         Likewise.
32383         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32384         Likewise.
32385         * modules/unictype/property-ids-binary-operator (Depends-on,
32386         configure.ac): Likewise.
32387         * modules/unictype/property-ids-trinary-operator (Depends-on,
32388         configure.ac): Likewise.
32389         * modules/unictype/property-ignorable-control (Depends-on,
32390         configure.ac): Likewise.
32391         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32392         Likewise.
32393         * modules/unictype/property-join-control (Depends-on, configure.ac):
32394         Likewise.
32395         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32396         Likewise.
32397         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32398         Likewise.
32399         * modules/unictype/property-logical-order-exception (Depends-on,
32400         configure.ac): Likewise.
32401         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32402         Likewise.
32403         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32404         * modules/unictype/property-non-break (Depends-on, configure.ac):
32405         Likewise.
32406         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32407         Likewise.
32408         * modules/unictype/property-numeric (Depends-on, configure.ac):
32409         Likewise.
32410         * modules/unictype/property-other-alphabetic (Depends-on,
32411         configure.ac): Likewise.
32412         * modules/unictype/property-other-default-ignorable-code-point
32413         (Depends-on, configure.ac): Likewise.
32414         * modules/unictype/property-other-grapheme-extend (Depends-on,
32415         configure.ac): Likewise.
32416         * modules/unictype/property-other-id-continue (Depends-on,
32417         configure.ac): Likewise.
32418         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32419         Likewise.
32420         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32421         Likewise.
32422         * modules/unictype/property-other-math (Depends-on, configure.ac):
32423         Likewise.
32424         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32425         Likewise.
32426         * modules/unictype/property-paired-punctuation (Depends-on,
32427         configure.ac): Likewise.
32428         * modules/unictype/property-paragraph-separator (Depends-on,
32429         configure.ac): Likewise.
32430         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32431         Likewise.
32432         * modules/unictype/property-pattern-white-space (Depends-on,
32433         configure.ac): Likewise.
32434         * modules/unictype/property-private-use (Depends-on, configure.ac):
32435         Likewise.
32436         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32437         Likewise.
32438         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32439         Likewise.
32440         * modules/unictype/property-radical (Depends-on, configure.ac):
32441         Likewise.
32442         * modules/unictype/property-sentence-terminal (Depends-on,
32443         configure.ac): Likewise.
32444         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32445         Likewise.
32446         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32447         * modules/unictype/property-terminal-punctuation (Depends-on,
32448         configure.ac): Likewise.
32449         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32450         Likewise.
32451         * modules/unictype/property-unassigned-code-value (Depends-on,
32452         configure.ac): Likewise.
32453         * modules/unictype/property-unified-ideograph (Depends-on,
32454         configure.ac): Likewise.
32455         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32456         Likewise.
32457         * modules/unictype/property-variation-selector (Depends-on,
32458         configure.ac): Likewise.
32459         * modules/unictype/property-white-space (Depends-on, configure.ac):
32460         Likewise.
32461         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32462         Likewise.
32463         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32464         Likewise.
32465         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32466         Likewise.
32467         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32468         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32469         Likewise.
32470
32471 2009-12-31  Bruno Haible  <bruno@clisp.org>
32472
32473         Remove unnecessary AC_C_INLINE invocation.
32474         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32475         since 2009-08-21.
32476
32477 2009-12-31  Jim Meyering  <meyering@redhat.com>
32478
32479         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32480         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32481         With this change, we can all remove the gpg_key_ID = ... definition
32482         from our respective cfg.mk files.
32483
32484         maint.mk: create announcement template in ~/, not in /tmp
32485         * top/maint.mk (emit_upload_commands): Adjust.
32486         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32487         Remove temporary file, .ci-msg.
32488
32489 2009-12-31  Eric Blake  <ebb9@byu.net>
32490
32491         link-warning: always build headers with link warnings
32492         * modules/arpa_inet (Makefile.am): Always build replacement
32493         header.
32494         * modules/ctype (Makefile.am): Likewise.
32495         * modules/dirent (Makefile.am): Likewise.
32496         * modules/inttypes (Makefile.am): Likewise.
32497         * modules/langinfo (Makefile.am): Likewise.
32498         * modules/locale (Makefile.am): Likewise.
32499         * modules/spawn (Makefile.am): Likewise.
32500         * modules/sys_file (Makefile.am): Likewise.
32501         * modules/sys_ioctl (Makefile.am): Likewise.
32502         * modules/sys_select (Makefile.am): Likewise.
32503         * modules/sys_socket (Makefile.am): Likewise.
32504         * modules/sys_times (Makefile.am): Likewise.
32505         * modules/sys_utsname (Makefile.am): Likewise.
32506         * modules/sys_wait (Makefile.am): Likewise.
32507         * modules/wchar (Makefile.am): Likewise.
32508         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32509         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32510         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32511         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32512         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32513         Likewise.
32514         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32515         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32516         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32517         Likewise.
32518         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32519         Likewise.
32520         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32522         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32524         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32525         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32526         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32527         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32528         (gl_WCHAR_H_DEFAULTS): Likewise.
32529
32530 2009-12-31  Eric Blake  <ebb9@byu.net>
32531
32532         signal, spawn: use link warnings
32533         * lib/signal.in.h (sigset_t): Make unconditional.
32534         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32535         (sigpending, sigprocmask, sigaction): Add link warnings.
32536         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32537         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32538         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32539         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32540         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32541         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32542         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32543         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32544         (posix_spawn_file_actions_destroy)
32545         (posix_spawn_file_actions_addopen)
32546         (posix_spawn_file_actions_addclose)
32547         (posix_spawn_file_actions_adddup2): Likewise.
32548         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32549         * tests/test-signal.c (main): Enhance test.
32550
32551         spawn: improve wrapper support
32552         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32553         (gl_SPAWN_H_DEFAULTS): New defaults.
32554         * modules/spawn (Makefile.am): Substitute them.
32555         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32556         Only declare if missing or broken.
32557
32558         sys_times, sys_utsname: use include_next
32559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32560         header.
32561         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32563         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32564         * modules/sys_times (Depends-on): Add include_next.
32565         (Makefile.am): Substitute additional values.
32566         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32567         * lib/sys_times.in.h (includes): Include native header, if
32568         available.
32569         * lib/sys_utsname.in.h (includes): Likewise.
32570         * tests/test-sys_times.c (main): Enhance test.
32571
32572         fdutimensat: revert prior patch
32573         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32574         utimens.h.
32575         Reported by Bruno Haible.
32576
32577 2009-12-30  Eric Blake  <ebb9@byu.net>
32578
32579         sys_wait: drop link-warning dependency
32580         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32581         link-warning efforts.
32582         * lib/sys_wait.in.h: Likewise.
32583
32584         fdutimensat: remove bogus dependency
32585         * modules/fdutimensat (Depends-on): Drop inline.
32586
32587         unistd: fix typo
32588         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32589
32590 2009-12-30  Bruno Haible  <bruno@clisp.org>
32591
32592         Fix compilation error with Solaris cc.
32593         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32594         * lib/unicase/u16-is-invariant.c: Likewise.
32595         * lib/unicase/u32-is-invariant.c: Likewise.
32596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32597
32598 2009-12-30  Bruno Haible  <bruno@clisp.org>
32599
32600         Fix test crash.
32601         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32602         locales.
32603         Reported by Simon Josefsson <simon@josefsson.org>.
32604
32605 2009-12-30  Bruno Haible  <bruno@clisp.org>
32606
32607         Fix compilation error on most platforms.
32608         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32609         Reported by Simon Josefsson <simon@josefsson.org>
32610         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32611
32612 2009-12-30  Eric Blake  <ebb9@byu.net>
32613
32614         futimens, utimensat: work around ntfs-3g bug
32615         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32616         a ctime bug is present, and expand workaround to cover ntfs-3g.
32617         * lib/utimens.c (fdutimens, lutimens): Likewise.
32618         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32619         (validate_timespec): Adjust return value.
32620         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32621         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32622         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32623
32624 2009-12-29  Eric Blake  <ebb9@byu.net>
32625
32626         link-warning: make usage consistent
32627         * modules/ctype (Depends-on): Add link-warning.
32628         (Makefile.am): Update rules accordingly.
32629         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32630         * modules/locale (Depends-on, Makefile.am): Likewise.
32631         * modules/sys_file (Makefile.am): Likewise.
32632         * modules/getopt-posix (Makefile.am): Delete unused link warning
32633         efforts.
32634         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32635         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32636         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32637         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32638
32639         stdio: remove unused variables
32640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32641         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32642         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32643
32644         tests: test more substitute headers
32645         * modules/ctype-tests: New file.
32646         * modules/dirent-tests: Likewise.
32647         * modules/spawn-tests: Likewise.
32648         * modules/sys_file-tests: Likewise.
32649         * modules/sys_ioctl-tests: Likewise.
32650         * modules/sys_wait-tests: Likewise.
32651         * tests/test-ctype.c: Likewise.
32652         * tests/test-dirent.c: Likewise.
32653         * tests/test-spawn.c: Likewise.
32654         * tests/test-sys_file.c: Likewise.
32655         * tests/test-sys_ioctl.c: Likewise.
32656         * tests/test-sys_wait.c: Likewise.
32657         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32658         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32659         whether or not flock is in use.
32660
32661         tests: remove License section from module
32662         * modules/arpa_inet-tests: Remove unneeded section.
32663         * modules/byteswap-tests: Likewise.
32664         * modules/ceilf-tests: Likewise.
32665         * modules/ceill-tests: Likewise.
32666         * modules/crypto/des-tests: Likewise.
32667         * modules/crypto/gc-arcfour-tests: Likewise.
32668         * modules/crypto/gc-arctwo-tests: Likewise.
32669         * modules/crypto/gc-des-tests: Likewise.
32670         * modules/crypto/gc-hmac-md5-tests: Likewise.
32671         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32672         * modules/crypto/gc-md2-tests: Likewise.
32673         * modules/crypto/gc-md4-tests: Likewise.
32674         * modules/crypto/gc-md5-tests: Likewise.
32675         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32676         * modules/crypto/gc-rijndael-tests: Likewise.
32677         * modules/crypto/gc-sha1-tests: Likewise.
32678         * modules/crypto/gc-tests: Likewise.
32679         * modules/crypto/md2-tests: Likewise.
32680         * modules/crypto/md4-tests: Likewise.
32681         * modules/fcntl-h-tests: Likewise.
32682         * modules/floorf-tests: Likewise.
32683         * modules/floorl-tests: Likewise.
32684         * modules/frexp-nolibm-tests: Likewise.
32685         * modules/frexp-tests: Likewise.
32686         * modules/frexpl-nolibm-tests: Likewise.
32687         * modules/frexpl-tests: Likewise.
32688         * modules/getaddrinfo-tests: Likewise.
32689         * modules/inttypes-tests: Likewise.
32690         * modules/isfinite-tests: Likewise.
32691         * modules/isinf-tests: Likewise.
32692         * modules/ldexpl-tests: Likewise.
32693         * modules/locale-tests: Likewise.
32694         * modules/math-tests: Likewise.
32695         * modules/netdb-tests: Likewise.
32696         * modules/netinet_in-tests: Likewise.
32697         * modules/printf-frexp-tests: Likewise.
32698         * modules/printf-frexpl-tests: Likewise.
32699         * modules/priv-set-tests: Likewise.
32700         * modules/random_r-tests: Likewise.
32701         * modules/round-tests: Likewise.
32702         * modules/roundf-tests: Likewise.
32703         * modules/roundl-tests: Likewise.
32704         * modules/search-tests: Likewise.
32705         * modules/select-tests: Likewise.
32706         * modules/signal-tests: Likewise.
32707         * modules/stdbool-tests: Likewise.
32708         * modules/stddef-tests: Likewise.
32709         * modules/stdint-tests: Likewise.
32710         * modules/stdio-tests: Likewise.
32711         * modules/stdlib-tests: Likewise.
32712         * modules/string-tests: Likewise.
32713         * modules/strings-tests: Likewise.
32714         * modules/sys_select-tests: Likewise.
32715         * modules/sys_socket-tests: Likewise.
32716         * modules/sys_stat-tests: Likewise.
32717         * modules/sys_time-tests: Likewise.
32718         * modules/sys_utsname-tests: Likewise.
32719         * modules/sysexits-tests: Likewise.
32720         * modules/time-tests: Likewise.
32721         * modules/trunc-tests: Likewise.
32722         * modules/truncf-tests: Likewise.
32723         * modules/truncl-tests: Likewise.
32724         * modules/tsearch-tests: Likewise.
32725         * modules/unistd-tests: Likewise.
32726         * modules/wchar-tests: Likewise.
32727         * modules/wctype-tests: Likewise.
32728
32729         tests: fix license on several tests
32730         * tests/test-des.c: Update to GPLv3+.
32731         * tests/test-flock.c: Likewise.
32732         * tests/test-fsync.c: Likewise.
32733         * tests/test-futimens.h: Likewise.
32734         * tests/test-gc-arcfour.c: Likewise.
32735         * tests/test-gc-arctwo.c: Likewise.
32736         * tests/test-gc-des.c: Likewise.
32737         * tests/test-gc-hmac-md5.c: Likewise.
32738         * tests/test-gc-hmac-sha1.c: Likewise.
32739         * tests/test-gc-md2.c: Likewise.
32740         * tests/test-gc-md4.c: Likewise.
32741         * tests/test-gc-md5.c: Likewise.
32742         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32743         * tests/test-gc-rijndael.c: Likewise.
32744         * tests/test-gc-sha1.c: Likewise.
32745         * tests/test-gc.c: Likewise.
32746         * tests/test-getcwd.c: Likewise.
32747         * tests/test-link.c: Likewise.
32748         * tests/test-link.h: Likewise.
32749         * tests/test-lutimens.h: Likewise.
32750         * tests/test-md2.c: Likewise.
32751         * tests/test-md4.c: Likewise.
32752         * tests/test-mkdir.h: Likewise.
32753         * tests/test-rename.c: Likewise.
32754         * tests/test-rename.h: Likewise.
32755         * tests/test-safe-alloc.c: Likewise.
32756         * tests/test-utimens-common.h: Likewise.
32757         * tests/test-utimens.h: Likewise.
32758
32759         maint: sync license texts
32760         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32761         * doc/gpl-3.0.texi: Revert copyright year update.
32762         * doc/lgpl-3.0.texi: Likewise.
32763
32764 2009-12-29  Jim Meyering  <meyering@redhat.com>
32765
32766         update nearly all FSF copyright year lists to include 2009
32767         The files named by the following are exempted:
32768             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32769               test -f "$dst" && { echo "$dst"; continue; }
32770               test -d "$dst" || continue
32771               echo "$dst"/$(basename "$src")
32772             done > exempt
32773             git ls-files tests/unictype >> exempt
32774         In the remaining files, convert to all-interval notation if
32775         - there is already at least one year interval like 2000-2003
32776         - the file is maintained by me
32777         - the file is in lib/uni*/, where that style already prevails
32778         Otherwise, use update-copyright's default.
32779
32780 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32781         and Eric Blake  <ebb9@byu.net>
32782
32783         tests: don't require debug system() to pass
32784         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32785         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32786         * tests/test-unlink.h (test_unlink_func): Likewise.
32787         * tests/test-fstatat.c (main): ...into callers.
32788         * tests/test-lstat.c (main): Likewise.
32789         * tests/test-rmdir.c (main): Likewise.
32790         * tests/test-unlink.c (main): Likewise.
32791         * tests/test-unlinkat.c (main): Likewise.
32792         * tests/test-areadlink-with-size.c (main): Don't require a
32793         debug-only system call to pass, aiding cross-testing to mingw.
32794         * tests/test-areadlink.c (main): Likewise.
32795         * tests/test-areadlinkat-with-size.c (main): Likewise.
32796         * tests/test-areadlinkat.c (main): Likewise.
32797         * tests/test-canonicalize-lgpl.c (main): Likewise.
32798         * tests/test-canonicalize.c (main): Likewise.
32799         * tests/test-chown.c (main): Likewise.
32800         * tests/test-fchownat.c (main): Likewise.
32801         * tests/test-lchown.c (main): Likewise.
32802         * tests/test-fdutimensat.c (main): Likewise.
32803         * tests/test-futimens.c (main): Likewise.
32804         * tests/test-link.c (main): Likewise.
32805         * tests/test-linkat.c (main): Likewise.
32806         * tests/test-mkdir.c (main): Likewise.
32807         * tests/test-mkdirat.c (main): Likewise.
32808         * tests/test-mkfifo.c (main): Likewise.
32809         * tests/test-mkfifoat.c (main): Likewise.
32810         * tests/test-mknod.c (main): Likewise.
32811         * tests/test-readlink.c (main): Likewise.
32812         * tests/test-remove.c (main): Likewise.
32813         * tests/test-rename.c (main): Likewise.
32814         * tests/test-renameat.c (main): Likewise.
32815         * tests/test-symlink.c (main): Likewise.
32816         * tests/test-symlinkat.c (main): Likewise.
32817         * tests/test-utimens.c (main): Likewise.
32818         * tests/test-utimensat.c (main): Likewise.
32819
32820 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32821
32822         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32823         on $(UNUSED_PARAMETER_H) to avoid build failure.
32824
32825 2009-12-28  Jim Meyering  <meyering@redhat.com>
32826
32827         update-copyright: you may specify a max. line length other than 72
32828         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32829
32830         maint: use consistent FSF copyright line syntax
32831         * lib/posixtm.c: Add missing comma in FSF copyright line.
32832         * lib/posixtm.h: Likewise.
32833         * lib/getugroups.c: Add missing ", Inc.".
32834
32835         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32836         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32837         FSF copyright line.  Remove trailing blanks.
32838
32839 2009-12-28  Eric Blake  <ebb9@byu.net>
32840
32841         test-dup2: reduce dependencies
32842         * modules/cloexec (Configure.ac): Set witness.
32843         * modules/dup2-tests (Depends-on): Drop cloexec.
32844         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32845         not present.
32846         Suggested by Bruno Haible.
32847
32848 2009-12-26  Bruno Haible  <bruno@clisp.org>
32849
32850         Remove an unneeded dependency.
32851         * modules/fseterr (Depends-on): Remove dup2.
32852
32853 2009-12-26  Eric Blake  <ebb9@byu.net>
32854
32855         tests: use macros.h in more places
32856         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32857         (ASSERT_STREAM): Provide default of stderr.
32858         * tests/test-dirent-safer.c: Include macros.h, using alternate
32859         stream for assertions.
32860         * tests/test-dup-safer.c: Likewise.
32861         * tests/test-freopen-safer.c: Likewise.
32862         * tests/test-getopt.c: Likewise.
32863         * tests/test-openat-safer.c: Likewise.
32864         * tests/test-pipe.c: Likewise.
32865         * tests/test-popen-safer.c: Likewise.
32866         * modules/dirent-safer-tests (Files): Include macros.h.
32867         * modules/unistd-safer-tests (Files): Likewise.
32868         * modules/freopen-safer-tests (Files): Likewise.
32869         * modules/getopt-posix-tests (Files): Likewise.
32870         * modules/openat-safer-tests (Files): Likewise.
32871         * modules/pipe-tests (Files): Likewise.
32872
32873 2009-12-26  Bruno Haible  <bruno@clisp.org>
32874
32875         javacomp: Portability fix.
32876         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32877         that it also works on Solaris.
32878
32879 2009-12-26  Bruno Haible  <bruno@clisp.org>
32880
32881         localename: Fix storage allocation of gl_locale_name_thread's result.
32882         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32883         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32884         all platforms that have 'uselocale'.
32885         (gl_locale_name_thread_unsafe): New function, extracted from
32886         gl_locale_name_thread.
32887         (gl_locale_name_thread): Call struniq on all platforms that have
32888         'uselocale'.
32889         * tests/test-localename.c (test_locale_name_thread): Check that the
32890         resulting strings are permanently allocated.
32891         * modules/localename-tests (Depends-on): Add strdup.
32892
32893 2009-12-26  Bruno Haible  <bruno@clisp.org>
32894
32895         * tests/test-localename.c (categories): Fill in the strings.
32896
32897 2009-12-26  Jim Meyering  <meyering@redhat.com>
32898
32899         isdir: complete the removal of m4/isdir.m4
32900         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32901
32902         isdir: clean up, since at least grep still uses it
32903         * lib/isdir.c: Include "isdir.h".
32904         (S_ISDIR): Remove now-unneeded definition.
32905         * modules/isdir (Files): Add lib/isdir.h.
32906         * lib/isdir.h: New file, with declaration.
32907         * m4/isdir.m4: Remove file -- unneeded.
32908
32909 2009-12-25  Bruno Haible  <bruno@clisp.org>
32910
32911         selinux-h: Make generated .h files standalone.
32912         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32913         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32914         * lib/se-selinux.in.h: Likewise.
32915         * modules/selinux-h (Depends-on): Add unused-parameter.
32916         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32917         selinux/selinux.h and selinux/context.h.
32918         Suggested by Eric Blake.
32919
32920 2009-12-25  Bruno Haible  <bruno@clisp.org>
32921
32922         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32923         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32924         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32925         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32926         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32927
32928 2009-12-24  Bruno Haible  <bruno@clisp.org>
32929
32930         openat: Fix warning.
32931         * lib/openat-proc.c: Include <unistd.h>.
32932
32933 2009-12-24  Bruno Haible  <bruno@clisp.org>
32934
32935         New module 'unused-parameter'.
32936         * build-aux/unused-parameter.h: New file, extracted from earlier
32937         gnulib-common.m4.
32938         * modules/unused-parameter: New file.
32939         * lib/unistr.h: Include unused-parameter.h.
32940         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32941         _GL_UNUSED.
32942         * modules/unistr/base (Depends-on): Add unused-parameter.
32943
32944 2009-12-24  Bruno Haible  <bruno@clisp.org>
32945
32946         Add missing dependencies to 'extensions' module.
32947         * m4/extensions.m4: Add comment.
32948         * modules/accept4 (Depends-on): Add extensions.
32949         * modules/dup3 (Depends-on): Likewise.
32950         * modules/fcntl (Depends-on): Likewise.
32951         * modules/futimens (Depends-on): Likewise.
32952         * modules/mknod (Depends-on): Likewise.
32953         * modules/pipe2 (Depends-on): Likewise.
32954         * modules/stat-time (Depends-on): Likewise.
32955         * modules/strcasestr-simple (Depends-on): Likewise.
32956         * modules/strsignal (Depends-on): Likewise.
32957         * modules/utimensat (Depends-on): Likewise.
32958         * modules/localcharset (Depends-on): Likewise. Needed because of
32959         gl_FCNTL_O_FLAGS.
32960         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32961         AC_TYPE_MBSTATE_T.
32962         * modules/wcsnrtombs (Depends-on): Likewise.
32963         * modules/wcsrtombs (Depends-on): Likewise.
32964
32965 2009-12-24  Bruno Haible  <bruno@clisp.org>
32966
32967         binary-io: Avoid gcc warning due to SET_BINARY.
32968         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32969         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32970
32971 2009-12-24  Bruno Haible  <bruno@clisp.org>
32972
32973         Avoid future namespace pollution on glibc systems.
32974         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32975         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32976         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32977         glibc systems.
32978
32979 2009-12-24  Bruno Haible  <bruno@clisp.org>
32980
32981         Refactor common macros used in tests.
32982         * tests/macros.h: New file.
32983         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32984         and/or <stdlib.h>, if appropriate.
32985         (ASSERT, SIZEOF): Remove macros.
32986         * tests/test-areadlink-with-size.c: Likewise.
32987         * tests/test-areadlinkat.c: Likewise.
32988         * tests/test-areadlinkat-with-size.c: Likewise.
32989         * tests/test-argmatch.c: Likewise.
32990         * tests/test-argv-iter.c: Likewise.
32991         * tests/test-array-mergesort.c: Likewise.
32992         * tests/test-array_list.c: Likewise.
32993         * tests/test-array_oset.c: Likewise.
32994         * tests/test-avltree_list.c: Likewise.
32995         * tests/test-avltree_oset.c: Likewise.
32996         * tests/test-avltreehash_list.c: Likewise.
32997         * tests/test-base64.c: Likewise.
32998         * tests/test-binary-io.c: Likewise.
32999         * tests/test-bitrotate.c: Likewise.
33000         * tests/test-btowc.c: Likewise.
33001         * tests/test-byteswap.c: Likewise.
33002         * tests/test-c-ctype.c: Likewise.
33003         * tests/test-c-stack.c: Likewise.
33004         * tests/test-c-strcasecmp.c: Likewise.
33005         * tests/test-c-strcasestr.c: Likewise.
33006         * tests/test-c-strncasecmp.c: Likewise.
33007         * tests/test-c-strstr.c: Likewise.
33008         * tests/test-canonicalize-lgpl.c: Likewise.
33009         * tests/test-canonicalize.c: Likewise.
33010         * tests/test-carray_list.c: Likewise.
33011         * tests/test-ceilf1.c: Likewise.
33012         * tests/test-ceilf2.c: Likewise.
33013         * tests/test-ceill.c: Likewise.
33014         * tests/test-chown.c: Likewise.
33015         * tests/test-cloexec.c: Likewise.
33016         * tests/test-copy-acl.c: Likewise.
33017         * tests/test-copy-file.c: Likewise.
33018         * tests/test-count-one-bits.c: Likewise.
33019         * tests/test-dprintf-posix.c: Likewise.
33020         * tests/test-dup2.c: Likewise.
33021         * tests/test-dup3.c: Likewise.
33022         * tests/test-duplocale.c: Likewise.
33023         * tests/test-fbufmode.c: Likewise.
33024         * tests/test-fchdir.c: Likewise.
33025         * tests/test-fchownat.c: Likewise.
33026         * tests/test-fcntl-safer.c: Likewise.
33027         * tests/test-fcntl.c: Likewise.
33028         * tests/test-fdopendir.c: Likewise.
33029         * tests/test-fdutimensat.c: Likewise.
33030         * tests/test-fflush2.c: Likewise.
33031         * tests/test-file-has-acl.c: Likewise.
33032         * tests/test-filevercmp.c: Likewise.
33033         * tests/test-flock.c: Likewise.
33034         * tests/test-floorf1.c: Likewise.
33035         * tests/test-floorf2.c: Likewise.
33036         * tests/test-floorl.c: Likewise.
33037         * tests/test-fnmatch.c: Likewise.
33038         * tests/test-fopen.h: Likewise.
33039         * tests/test-fpending.c: Likewise.
33040         * tests/test-fprintf-posix.c: Likewise.
33041         * tests/test-fpurge.c: Likewise.
33042         * tests/test-freadable.c: Likewise.
33043         * tests/test-freadahead.c: Likewise.
33044         * tests/test-freading.c: Likewise.
33045         * tests/test-freadptr.c: Likewise.
33046         * tests/test-freadptr2.c: Likewise.
33047         * tests/test-freadseek.c: Likewise.
33048         * tests/test-freopen.c: Likewise.
33049         * tests/test-frexp.c: Likewise.
33050         * tests/test-frexpl.c: Likewise.
33051         * tests/test-fseek.c: Likewise.
33052         * tests/test-fseeko.c: Likewise.
33053         * tests/test-fstatat.c: Likewise.
33054         * tests/test-fstrcmp.c: Likewise.
33055         * tests/test-fsync.c: Likewise.
33056         * tests/test-ftell.c: Likewise.
33057         * tests/test-ftello.c: Likewise.
33058         * tests/test-func.c: Likewise.
33059         * tests/test-futimens.c: Likewise.
33060         * tests/test-fwritable.c: Likewise.
33061         * tests/test-fwriting.c: Likewise.
33062         * tests/test-getcwd.c: Likewise.
33063         * tests/test-getdate.c: Likewise.
33064         * tests/test-getdelim.c: Likewise.
33065         * tests/test-getdtablesize.c: Likewise.
33066         * tests/test-getgroups.c: Likewise.
33067         * tests/test-getline.c: Likewise.
33068         * tests/test-getndelim2.c: Likewise.
33069         * tests/test-glob.c: Likewise.
33070         * tests/test-hash.c: Likewise.
33071         * tests/test-i-ring.c: Likewise.
33072         * tests/test-iconv-utf.c: Likewise.
33073         * tests/test-iconv.c: Likewise.
33074         * tests/test-idpriv-drop.c: Likewise.
33075         * tests/test-idpriv-droptemp.c: Likewise.
33076         * tests/test-inet_ntop.c: Likewise.
33077         * tests/test-inet_pton.c: Likewise.
33078         * tests/test-isblank.c: Likewise.
33079         * tests/test-isfinite.c: Likewise.
33080         * tests/test-isinf.c: Likewise.
33081         * tests/test-isnan.c: Likewise.
33082         * tests/test-isnand.h: Likewise.
33083         * tests/test-isnanf.h: Likewise.
33084         * tests/test-isnanl.h: Likewise.
33085         * tests/test-lchown.c: Likewise.
33086         * tests/test-ldexpl.c: Likewise.
33087         * tests/test-link.c: Likewise.
33088         * tests/test-linkat.c: Likewise.
33089         * tests/test-linked_list.c: Likewise.
33090         * tests/test-linkedhash_list.c: Likewise.
33091         * tests/test-localename.c: Likewise.
33092         * tests/test-lseek.c: Likewise.
33093         * tests/test-lstat.c: Likewise.
33094         * tests/test-mbmemcasecmp.c: Likewise.
33095         * tests/test-mbmemcasecoll.c: Likewise.
33096         * tests/test-mbrtowc.c: Likewise.
33097         * tests/test-mbscasecmp.c: Likewise.
33098         * tests/test-mbscasestr1.c: Likewise.
33099         * tests/test-mbscasestr2.c: Likewise.
33100         * tests/test-mbscasestr3.c: Likewise.
33101         * tests/test-mbscasestr4.c: Likewise.
33102         * tests/test-mbschr.c: Likewise.
33103         * tests/test-mbscspn.c: Likewise.
33104         * tests/test-mbsinit.c: Likewise.
33105         * tests/test-mbsncasecmp.c: Likewise.
33106         * tests/test-mbsnrtowcs.c: Likewise.
33107         * tests/test-mbspbrk.c: Likewise.
33108         * tests/test-mbspcasecmp.c: Likewise.
33109         * tests/test-mbsrchr.c: Likewise.
33110         * tests/test-mbsrtowcs.c: Likewise.
33111         * tests/test-mbsspn.c: Likewise.
33112         * tests/test-mbsstr1.c: Likewise.
33113         * tests/test-mbsstr2.c: Likewise.
33114         * tests/test-mbsstr3.c: Likewise.
33115         * tests/test-memchr.c: Likewise.
33116         * tests/test-memchr2.c: Likewise.
33117         * tests/test-memcmp.c: Likewise.
33118         * tests/test-memmem.c: Likewise.
33119         * tests/test-memrchr.c: Likewise.
33120         * tests/test-mkdir.c: Likewise.
33121         * tests/test-mkdirat.c: Likewise.
33122         * tests/test-mkfifo.c: Likewise.
33123         * tests/test-mkfifoat.c: Likewise.
33124         * tests/test-mknod.c: Likewise.
33125         * tests/test-nanosleep.c: Likewise.
33126         * tests/test-nl_langinfo.c: Likewise.
33127         * tests/test-obstack-printf.c: Likewise.
33128         * tests/test-open.c: Likewise.
33129         * tests/test-openat.c: Likewise.
33130         * tests/test-pipe-filter-gi1.c: Likewise.
33131         * tests/test-pipe-filter-gi2-main.c: Likewise.
33132         * tests/test-pipe-filter-ii1.c: Likewise.
33133         * tests/test-pipe-filter-ii2-main.c: Likewise.
33134         * tests/test-pipe2.c: Likewise.
33135         * tests/test-popen.h: Likewise.
33136         * tests/test-posixtm.c: Likewise.
33137         * tests/test-pread.c: Likewise.
33138         * tests/test-printf-frexp.c: Likewise.
33139         * tests/test-printf-frexpl.c: Likewise.
33140         * tests/test-printf-posix.c: Likewise.
33141         * tests/test-priv-set.c: Likewise.
33142         * tests/test-quotearg.c: Likewise.
33143         * tests/test-random_r.c: Likewise.
33144         * tests/test-rawmemchr.c: Likewise.
33145         * tests/test-rbtree_list.c: Likewise.
33146         * tests/test-rbtree_oset.c: Likewise.
33147         * tests/test-rbtreehash_list.c: Likewise.
33148         * tests/test-readlink.c: Likewise.
33149         * tests/test-remove.c: Likewise.
33150         * tests/test-rename.c: Likewise.
33151         * tests/test-renameat.c: Likewise.
33152         * tests/test-rmdir.c: Likewise.
33153         * tests/test-round1.c: Likewise.
33154         * tests/test-roundf1.c: Likewise.
33155         * tests/test-roundl.c: Likewise.
33156         * tests/test-safe-alloc.c: Likewise.
33157         * tests/test-sameacls.c: Likewise.
33158         * tests/test-set-mode-acl.c: Likewise.
33159         * tests/test-setenv.c: Likewise.
33160         * tests/test-sigaction.c: Likewise.
33161         * tests/test-signbit.c: Likewise.
33162         * tests/test-sleep.c: Likewise.
33163         * tests/test-snprintf-posix.c: Likewise.
33164         * tests/test-snprintf.c: Likewise.
33165         * tests/test-sprintf-posix.c: Likewise.
33166         * tests/test-stat-time.c: Likewise.
33167         * tests/test-stat.c: Likewise.
33168         * tests/test-strcasestr.c: Likewise.
33169         * tests/test-strchrnul.c: Likewise.
33170         * tests/test-strerror.c: Likewise.
33171         * tests/test-striconv.c: Likewise.
33172         * tests/test-striconveh.c: Likewise.
33173         * tests/test-striconveha.c: Likewise.
33174         * tests/test-strsignal.c: Likewise.
33175         * tests/test-strstr.c: Likewise.
33176         * tests/test-strtod.c: Likewise.
33177         * tests/test-strverscmp.c: Likewise.
33178         * tests/test-symlink.c: Likewise.
33179         * tests/test-symlinkat.c: Likewise.
33180         * tests/test-trunc1.c: Likewise.
33181         * tests/test-trunc2.c: Likewise.
33182         * tests/test-truncf1.c: Likewise.
33183         * tests/test-truncf2.c: Likewise.
33184         * tests/test-truncl.c: Likewise.
33185         * tests/test-uname.c: Likewise.
33186         * tests/test-unlink.c: Likewise.
33187         * tests/test-unlinkat.c: Likewise.
33188         * tests/test-unsetenv.c: Likewise.
33189         * tests/test-usleep.c: Likewise.
33190         * tests/test-utimens.c: Likewise.
33191         * tests/test-utimensat.c: Likewise.
33192         * tests/test-vasnprintf-posix.c: Likewise.
33193         * tests/test-vasnprintf-posix2.c: Likewise.
33194         * tests/test-vasnprintf.c: Likewise.
33195         * tests/test-vasprintf-posix.c: Likewise.
33196         * tests/test-vasprintf.c: Likewise.
33197         * tests/test-vdprintf-posix.c: Likewise.
33198         * tests/test-vfprintf-posix.c: Likewise.
33199         * tests/test-vprintf-posix.c: Likewise.
33200         * tests/test-vsnprintf-posix.c: Likewise.
33201         * tests/test-vsnprintf.c: Likewise.
33202         * tests/test-vsprintf-posix.c: Likewise.
33203         * tests/test-wcrtomb.c: Likewise.
33204         * tests/test-wcsnrtombs.c: Likewise.
33205         * tests/test-wcsrtombs.c: Likewise.
33206         * tests/test-wctype.c: Likewise.
33207         * tests/test-wcwidth.c: Likewise.
33208         * tests/test-xfprintf-posix.c: Likewise.
33209         * tests/test-xmemdup0.c: Likewise.
33210         * tests/test-xprintf-posix.c: Likewise.
33211         * tests/test-xvasprintf.c: Likewise.
33212         * tests/unicase/test-locale-language.c: Likewise.
33213         * tests/unicase/test-mapping-part1.h: Likewise.
33214         * tests/unicase/test-predicate-part1.h: Likewise.
33215         * tests/unicase/test-u8-casecmp.c: Likewise.
33216         * tests/unicase/test-u8-casecoll.c: Likewise.
33217         * tests/unicase/test-u8-casefold.c: Likewise.
33218         * tests/unicase/test-u8-is-cased.c: Likewise.
33219         * tests/unicase/test-u8-is-casefolded.c: Likewise.
33220         * tests/unicase/test-u8-is-lowercase.c: Likewise.
33221         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33222         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33223         * tests/unicase/test-u8-tolower.c: Likewise.
33224         * tests/unicase/test-u8-totitle.c: Likewise.
33225         * tests/unicase/test-u8-toupper.c: Likewise.
33226         * tests/unicase/test-u16-casecmp.c: Likewise.
33227         * tests/unicase/test-u16-casecoll.c: Likewise.
33228         * tests/unicase/test-u16-casefold.c: Likewise.
33229         * tests/unicase/test-u16-is-cased.c: Likewise.
33230         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33231         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33232         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33233         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33234         * tests/unicase/test-u16-tolower.c: Likewise.
33235         * tests/unicase/test-u16-totitle.c: Likewise.
33236         * tests/unicase/test-u16-toupper.c: Likewise.
33237         * tests/unicase/test-u32-casecmp.c: Likewise.
33238         * tests/unicase/test-u32-casecoll.c: Likewise.
33239         * tests/unicase/test-u32-casefold.c: Likewise.
33240         * tests/unicase/test-u32-is-cased.c: Likewise.
33241         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33242         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33243         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33244         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33245         * tests/unicase/test-u32-tolower.c: Likewise.
33246         * tests/unicase/test-u32-totitle.c: Likewise.
33247         * tests/unicase/test-u32-toupper.c: Likewise.
33248         * tests/unicase/test-ulc-casecmp.c: Likewise.
33249         * tests/unicase/test-ulc-casecoll.c: Likewise.
33250         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33251         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33252         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33253         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33254         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33255         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33256         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33257         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33258         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33259         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33260         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33261         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33262         * tests/unictype/test-bidi_byname.c: Likewise.
33263         * tests/unictype/test-bidi_name.c: Likewise.
33264         * tests/unictype/test-bidi_of.c: Likewise.
33265         * tests/unictype/test-bidi_test.c: Likewise.
33266         * tests/unictype/test-block_list.c: Likewise.
33267         * tests/unictype/test-block_of.c: Likewise.
33268         * tests/unictype/test-block_test.c: Likewise.
33269         * tests/unictype/test-categ_and.c: Likewise.
33270         * tests/unictype/test-categ_and_not.c: Likewise.
33271         * tests/unictype/test-categ_byname.c: Likewise.
33272         * tests/unictype/test-categ_name.c: Likewise.
33273         * tests/unictype/test-categ_none.c: Likewise.
33274         * tests/unictype/test-categ_of.c: Likewise.
33275         * tests/unictype/test-categ_or.c: Likewise.
33276         * tests/unictype/test-categ_test_withtable.c: Likewise.
33277         * tests/unictype/test-combining.c: Likewise.
33278         * tests/unictype/test-decdigit.c: Likewise.
33279         * tests/unictype/test-digit.c: Likewise.
33280         * tests/unictype/test-mirror.c: Likewise.
33281         * tests/unictype/test-numeric.c: Likewise.
33282         * tests/unictype/test-pr_byname.c: Likewise.
33283         * tests/unictype/test-pr_test.c: Likewise.
33284         * tests/unictype/test-predicate-part1.h: Likewise.
33285         * tests/unictype/test-scripts.c: Likewise.
33286         * tests/unictype/test-sy_c_ident.c: Likewise.
33287         * tests/unictype/test-sy_java_ident.c: Likewise.
33288         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33289         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33290         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33291         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33292         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33293         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33294         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33295         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33296         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33297         * tests/uninorm/test-compat-decomposition.c: Likewise.
33298         * tests/uninorm/test-composition.c: Likewise.
33299         * tests/uninorm/test-decomposing-form.c: Likewise.
33300         * tests/uninorm/test-decomposition.c: Likewise.
33301         * tests/uninorm/test-u8-nfc.c: Likewise.
33302         * tests/uninorm/test-u8-nfd.c: Likewise.
33303         * tests/uninorm/test-u8-nfkc.c: Likewise.
33304         * tests/uninorm/test-u8-nfkd.c: Likewise.
33305         * tests/uninorm/test-u8-normcmp.c: Likewise.
33306         * tests/uninorm/test-u8-normcoll.c: Likewise.
33307         * tests/uninorm/test-u16-nfc.c: Likewise.
33308         * tests/uninorm/test-u16-nfd.c: Likewise.
33309         * tests/uninorm/test-u16-nfkc.c: Likewise.
33310         * tests/uninorm/test-u16-nfkd.c: Likewise.
33311         * tests/uninorm/test-u16-normcmp.c: Likewise.
33312         * tests/uninorm/test-u16-normcoll.c: Likewise.
33313         * tests/uninorm/test-u32-nfc.c: Likewise.
33314         * tests/uninorm/test-u32-nfd.c: Likewise.
33315         * tests/uninorm/test-u32-nfkc.c: Likewise.
33316         * tests/uninorm/test-u32-nfkd.c: Likewise.
33317         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33318         * tests/uninorm/test-u32-normcmp.c: Likewise.
33319         * tests/uninorm/test-u32-normcoll.c: Likewise.
33320         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33321         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33322         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33323         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33324         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33325         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33326         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33327         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33328         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33329         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33330         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33331         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33332         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33333         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33334         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33335         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33336         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33337         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33338         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33339         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33340         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33341         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33342         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33343         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33344         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33345         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33346         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33347         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33348         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33349         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33350         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33351         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33352         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33353         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33354         * tests/uniwidth/test-u8-width.c: Likewise.
33355         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33356         * tests/uniwidth/test-u16-width.c: Likewise.
33357         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33358         * tests/uniwidth/test-u32-width.c: Likewise.
33359         * tests/uniwidth/test-uc_width.c: Likewise.
33360         * tests/uniwidth/test-uc_width2.c: Likewise.
33361         * modules/acl-tests (Files): Add tests/macros.h.
33362         * modules/areadlink-tests (Files): Likewise.
33363         * modules/areadlink-with-size-tests (Files): Likewise.
33364         * modules/areadlinkat-tests (Files): Likewise.
33365         * modules/areadlinkat-with-size-tests (Files): Likewise.
33366         * modules/argmatch-tests (Files): Likewise.
33367         * modules/argv-iter-tests (Files): Likewise.
33368         * modules/array-list-tests (Files): Likewise.
33369         * modules/array-mergesort-tests (Files): Likewise.
33370         * modules/array-oset-tests (Files): Likewise.
33371         * modules/avltree-list-tests (Files): Likewise.
33372         * modules/avltree-oset-tests (Files): Likewise.
33373         * modules/avltreehash-list-tests (Files): Likewise.
33374         * modules/base64-tests (Files): Likewise.
33375         * modules/binary-io-tests (Files): Likewise.
33376         * modules/bitrotate-tests (Files): Likewise.
33377         * modules/btowc-tests (Files): Likewise.
33378         * modules/byteswap-tests (Files): Likewise.
33379         * modules/c-ctype-tests (Files): Likewise.
33380         * modules/c-stack-tests (Files): Likewise.
33381         * modules/c-strcase-tests (Files): Likewise.
33382         * modules/c-strcasestr-tests (Files): Likewise.
33383         * modules/c-strstr-tests (Files): Likewise.
33384         * modules/canonicalize-lgpl-tests (Files): Likewise.
33385         * modules/canonicalize-tests (Files): Likewise.
33386         * modules/carray-list-tests (Files): Likewise.
33387         * modules/ceilf-tests (Files): Likewise.
33388         * modules/ceill-tests (Files): Likewise.
33389         * modules/chown-tests (Files): Likewise.
33390         * modules/cloexec-tests (Files): Likewise.
33391         * modules/copy-file-tests (Files): Likewise.
33392         * modules/count-one-bits-tests (Files): Likewise.
33393         * modules/dprintf-posix-tests (Files): Likewise.
33394         * modules/dup2-tests (Files): Likewise.
33395         * modules/dup3-tests (Files): Likewise.
33396         * modules/duplocale-tests (Files): Likewise.
33397         * modules/fbufmode-tests (Files): Likewise.
33398         * modules/fchdir-tests (Files): Likewise.
33399         * modules/fcntl-safer-tests (Files): Likewise.
33400         * modules/fcntl-tests (Files): Likewise.
33401         * modules/fdopendir-tests (Files): Likewise.
33402         * modules/fdutimensat-tests (Files): Likewise.
33403         * modules/fflush-tests (Files): Likewise.
33404         * modules/filevercmp-tests (Files): Likewise.
33405         * modules/flock-tests (Files): Likewise.
33406         * modules/floorf-tests (Files): Likewise.
33407         * modules/floorl-tests (Files): Likewise.
33408         * modules/fnmatch-tests (Files): Likewise.
33409         * modules/fopen-safer-tests (Files): Likewise.
33410         * modules/fopen-tests (Files): Likewise.
33411         * modules/fpending-tests (Files): Likewise.
33412         * modules/fprintf-posix-tests (Files): Likewise.
33413         * modules/fpurge-tests (Files): Likewise.
33414         * modules/freadable-tests (Files): Likewise.
33415         * modules/freadahead-tests (Files): Likewise.
33416         * modules/freading-tests (Files): Likewise.
33417         * modules/freadptr-tests (Files): Likewise.
33418         * modules/freadseek-tests (Files): Likewise.
33419         * modules/freopen-tests (Files): Likewise.
33420         * modules/frexp-nolibm-tests (Files): Likewise.
33421         * modules/frexp-tests (Files): Likewise.
33422         * modules/frexpl-nolibm-tests (Files): Likewise.
33423         * modules/frexpl-tests (Files): Likewise.
33424         * modules/fseek-tests (Files): Likewise.
33425         * modules/fseeko-tests (Files): Likewise.
33426         * modules/fstrcmp-tests (Files): Likewise.
33427         * modules/fsync-tests (Files): Likewise.
33428         * modules/ftell-tests (Files): Likewise.
33429         * modules/ftello-tests (Files): Likewise.
33430         * modules/func-tests (Files): Likewise.
33431         * modules/futimens-tests (Files): Likewise.
33432         * modules/fwritable-tests (Files): Likewise.
33433         * modules/fwriting-tests (Files): Likewise.
33434         * modules/getcwd-tests (Files): Likewise.
33435         * modules/getdate-tests (Files): Likewise.
33436         * modules/getdelim-tests (Files): Likewise.
33437         * modules/getdtablesize-tests (Files): Likewise.
33438         * modules/getgroups-tests (Files): Likewise.
33439         * modules/getline-tests (Files): Likewise.
33440         * modules/getndelim2-tests (Files): Likewise.
33441         * modules/glob-tests (Files): Likewise.
33442         * modules/hash-tests (Files): Likewise.
33443         * modules/i-ring-tests (Files): Likewise.
33444         * modules/iconv-tests (Files): Likewise.
33445         * modules/iconv_open-utf-tests (Files): Likewise.
33446         * modules/idpriv-drop-tests (Files): Likewise.
33447         * modules/idpriv-droptemp-tests (Files): Likewise.
33448         * modules/inet_ntop-tests (Files): Likewise.
33449         * modules/inet_pton-tests (Files): Likewise.
33450         * modules/isblank-tests (Files): Likewise.
33451         * modules/isfinite-tests (Files): Likewise.
33452         * modules/isinf-tests (Files): Likewise.
33453         * modules/isnan-tests (Files): Likewise.
33454         * modules/isnand-nolibm-tests (Files): Likewise.
33455         * modules/isnand-tests (Files): Likewise.
33456         * modules/isnanf-nolibm-tests (Files): Likewise.
33457         * modules/isnanf-tests (Files): Likewise.
33458         * modules/isnanl-nolibm-tests (Files): Likewise.
33459         * modules/isnanl-tests (Files): Likewise.
33460         * modules/lchown-tests (Files): Likewise.
33461         * modules/ldexpl-tests (Files): Likewise.
33462         * modules/link-tests (Files): Likewise.
33463         * modules/linkat-tests (Files): Likewise.
33464         * modules/linked-list-tests (Files): Likewise.
33465         * modules/linkedhash-list-tests (Files): Likewise.
33466         * modules/localename-tests (Files): Likewise.
33467         * modules/lseek-tests (Files): Likewise.
33468         * modules/lstat-tests (Files): Likewise.
33469         * modules/mbmemcasecmp-tests (Files): Likewise.
33470         * modules/mbmemcasecoll-tests (Files): Likewise.
33471         * modules/mbrtowc-tests (Files): Likewise.
33472         * modules/mbscasecmp-tests (Files): Likewise.
33473         * modules/mbscasestr-tests (Files): Likewise.
33474         * modules/mbschr-tests (Files): Likewise.
33475         * modules/mbscspn-tests (Files): Likewise.
33476         * modules/mbsinit-tests (Files): Likewise.
33477         * modules/mbsncasecmp-tests (Files): Likewise.
33478         * modules/mbsnrtowcs-tests (Files): Likewise.
33479         * modules/mbspbrk-tests (Files): Likewise.
33480         * modules/mbspcasecmp-tests (Files): Likewise.
33481         * modules/mbsrchr-tests (Files): Likewise.
33482         * modules/mbsrtowcs-tests (Files): Likewise.
33483         * modules/mbsspn-tests (Files): Likewise.
33484         * modules/mbsstr-tests (Files): Likewise.
33485         * modules/memchr-tests (Files): Likewise.
33486         * modules/memchr2-tests (Files): Likewise.
33487         * modules/memcmp-tests (Files): Likewise.
33488         * modules/memmem-tests (Files): Likewise.
33489         * modules/memrchr-tests (Files): Likewise.
33490         * modules/mkdir-tests (Files): Likewise.
33491         * modules/mkfifo-tests (Files): Likewise.
33492         * modules/mkfifoat-tests (Files): Likewise.
33493         * modules/mknod-tests (Files): Likewise.
33494         * modules/nanosleep-tests (Files): Likewise.
33495         * modules/nl_langinfo-tests (Files): Likewise.
33496         * modules/obstack-printf-tests (Files): Likewise.
33497         * modules/open-tests (Files): Likewise.
33498         * modules/openat-tests (Files): Likewise.
33499         * modules/pipe-filter-gi-tests (Files): Likewise.
33500         * modules/pipe-filter-ii-tests (Files): Likewise.
33501         * modules/pipe2-tests (Files): Likewise.
33502         * modules/popen-safer-tests (Files): Likewise.
33503         * modules/popen-tests (Files): Likewise.
33504         * modules/posixtm-tests (Files): Likewise.
33505         * modules/pread-tests (Files): Likewise.
33506         * modules/printf-frexp-tests (Files): Likewise.
33507         * modules/printf-frexpl-tests (Files): Likewise.
33508         * modules/printf-posix-tests (Files): Likewise.
33509         * modules/priv-set-tests (Files): Likewise.
33510         * modules/quotearg-tests (Files): Likewise.
33511         * modules/random_r-tests (Files): Likewise.
33512         * modules/rawmemchr-tests (Files): Likewise.
33513         * modules/rbtree-list-tests (Files): Likewise.
33514         * modules/rbtree-oset-tests (Files): Likewise.
33515         * modules/rbtreehash-list-tests (Files): Likewise.
33516         * modules/readlink-tests (Files): Likewise.
33517         * modules/remove-tests (Files): Likewise.
33518         * modules/rename-tests (Files): Likewise.
33519         * modules/renameat-tests (Files): Likewise.
33520         * modules/rmdir-tests (Files): Likewise.
33521         * modules/round-tests (Files): Likewise.
33522         * modules/roundf-tests (Files): Likewise.
33523         * modules/roundl-tests (Files): Likewise.
33524         * modules/safe-alloc-tests (Files): Likewise.
33525         * modules/setenv-tests (Files): Likewise.
33526         * modules/sigaction-tests (Files): Likewise.
33527         * modules/signbit-tests (Files): Likewise.
33528         * modules/sleep-tests (Files): Likewise.
33529         * modules/snprintf-posix-tests (Files): Likewise.
33530         * modules/snprintf-tests (Files): Likewise.
33531         * modules/sprintf-posix-tests (Files): Likewise.
33532         * modules/stat-tests (Files): Likewise.
33533         * modules/stat-time-tests (Files): Likewise.
33534         * modules/strcasestr-tests (Files): Likewise.
33535         * modules/strchrnul-tests (Files): Likewise.
33536         * modules/strerror-tests (Files): Likewise.
33537         * modules/striconv-tests (Files): Likewise.
33538         * modules/striconveh-tests (Files): Likewise.
33539         * modules/striconveha-tests (Files): Likewise.
33540         * modules/strsignal-tests (Files): Likewise.
33541         * modules/strstr-tests (Files): Likewise.
33542         * modules/strtod-tests (Files): Likewise.
33543         * modules/strverscmp-tests (Files): Likewise.
33544         * modules/symlink-tests (Files): Likewise.
33545         * modules/symlinkat-tests (Files): Likewise.
33546         * modules/trunc-tests (Files): Likewise.
33547         * modules/truncf-tests (Files): Likewise.
33548         * modules/truncl-tests (Files): Likewise.
33549         * modules/uname-tests (Files): Likewise.
33550         * modules/unicase/cased-tests (Files): Likewise.
33551         * modules/unicase/ignorable-tests (Files): Likewise.
33552         * modules/unicase/locale-language-tests (Files): Likewise.
33553         * modules/unicase/tolower-tests (Files): Likewise.
33554         * modules/unicase/totitle-tests (Files): Likewise.
33555         * modules/unicase/toupper-tests (Files): Likewise.
33556         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33557         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33558         * modules/unicase/u8-casefold-tests (Files): Likewise.
33559         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33560         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33561         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33562         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33563         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33564         * modules/unicase/u8-tolower-tests (Files): Likewise.
33565         * modules/unicase/u8-totitle-tests (Files): Likewise.
33566         * modules/unicase/u8-toupper-tests (Files): Likewise.
33567         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33568         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33569         * modules/unicase/u16-casefold-tests (Files): Likewise.
33570         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33571         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33572         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33573         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33574         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33575         * modules/unicase/u16-tolower-tests (Files): Likewise.
33576         * modules/unicase/u16-totitle-tests (Files): Likewise.
33577         * modules/unicase/u16-toupper-tests (Files): Likewise.
33578         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33579         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33580         * modules/unicase/u32-casefold-tests (Files): Likewise.
33581         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33582         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33583         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33584         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33585         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33586         * modules/unicase/u32-tolower-tests (Files): Likewise.
33587         * modules/unicase/u32-totitle-tests (Files): Likewise.
33588         * modules/unicase/u32-toupper-tests (Files): Likewise.
33589         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33590         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33591         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33592         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33593         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33594         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33595         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33596         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33597         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33598         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33599         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33600         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33601         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33602         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33603         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33604         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33605         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33606         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33607         * modules/unictype/block-list-tests (Files): Likewise.
33608         * modules/unictype/block-of-tests (Files): Likewise.
33609         * modules/unictype/block-test-tests (Files): Likewise.
33610         * modules/unictype/category-C-tests (Files): Likewise.
33611         * modules/unictype/category-Cc-tests (Files): Likewise.
33612         * modules/unictype/category-Cf-tests (Files): Likewise.
33613         * modules/unictype/category-Cn-tests (Files): Likewise.
33614         * modules/unictype/category-Co-tests (Files): Likewise.
33615         * modules/unictype/category-Cs-tests (Files): Likewise.
33616         * modules/unictype/category-L-tests (Files): Likewise.
33617         * modules/unictype/category-Ll-tests (Files): Likewise.
33618         * modules/unictype/category-Lm-tests (Files): Likewise.
33619         * modules/unictype/category-Lo-tests (Files): Likewise.
33620         * modules/unictype/category-Lt-tests (Files): Likewise.
33621         * modules/unictype/category-Lu-tests (Files): Likewise.
33622         * modules/unictype/category-M-tests (Files): Likewise.
33623         * modules/unictype/category-Mc-tests (Files): Likewise.
33624         * modules/unictype/category-Me-tests (Files): Likewise.
33625         * modules/unictype/category-Mn-tests (Files): Likewise.
33626         * modules/unictype/category-N-tests (Files): Likewise.
33627         * modules/unictype/category-Nd-tests (Files): Likewise.
33628         * modules/unictype/category-Nl-tests (Files): Likewise.
33629         * modules/unictype/category-No-tests (Files): Likewise.
33630         * modules/unictype/category-P-tests (Files): Likewise.
33631         * modules/unictype/category-Pc-tests (Files): Likewise.
33632         * modules/unictype/category-Pd-tests (Files): Likewise.
33633         * modules/unictype/category-Pe-tests (Files): Likewise.
33634         * modules/unictype/category-Pf-tests (Files): Likewise.
33635         * modules/unictype/category-Pi-tests (Files): Likewise.
33636         * modules/unictype/category-Po-tests (Files): Likewise.
33637         * modules/unictype/category-Ps-tests (Files): Likewise.
33638         * modules/unictype/category-S-tests (Files): Likewise.
33639         * modules/unictype/category-Sc-tests (Files): Likewise.
33640         * modules/unictype/category-Sk-tests (Files): Likewise.
33641         * modules/unictype/category-Sm-tests (Files): Likewise.
33642         * modules/unictype/category-So-tests (Files): Likewise.
33643         * modules/unictype/category-Z-tests (Files): Likewise.
33644         * modules/unictype/category-Zl-tests (Files): Likewise.
33645         * modules/unictype/category-Zp-tests (Files): Likewise.
33646         * modules/unictype/category-Zs-tests (Files): Likewise.
33647         * modules/unictype/category-and-not-tests (Files): Likewise.
33648         * modules/unictype/category-and-tests (Files): Likewise.
33649         * modules/unictype/category-byname-tests (Files): Likewise.
33650         * modules/unictype/category-name-tests (Files): Likewise.
33651         * modules/unictype/category-none-tests (Files): Likewise.
33652         * modules/unictype/category-of-tests (Files): Likewise.
33653         * modules/unictype/category-or-tests (Files): Likewise.
33654         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33655         * modules/unictype/combining-class-tests (Files): Likewise.
33656         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33657         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33658         * modules/unictype/ctype-blank-tests (Files): Likewise.
33659         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33660         * modules/unictype/ctype-digit-tests (Files): Likewise.
33661         * modules/unictype/ctype-graph-tests (Files): Likewise.
33662         * modules/unictype/ctype-lower-tests (Files): Likewise.
33663         * modules/unictype/ctype-print-tests (Files): Likewise.
33664         * modules/unictype/ctype-punct-tests (Files): Likewise.
33665         * modules/unictype/ctype-space-tests (Files): Likewise.
33666         * modules/unictype/ctype-upper-tests (Files): Likewise.
33667         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33668         * modules/unictype/decimal-digit-tests (Files): Likewise.
33669         * modules/unictype/digit-tests (Files): Likewise.
33670         * modules/unictype/mirror-tests (Files): Likewise.
33671         * modules/unictype/numeric-tests (Files): Likewise.
33672         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33673         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33674         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33675         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33676         Likewise.
33677         * modules/unictype/property-bidi-block-separator-tests (Files):
33678         Likewise.
33679         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33680         Likewise.
33681         * modules/unictype/property-bidi-common-separator-tests (Files):
33682         Likewise.
33683         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33684         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33685         Likewise.
33686         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33687         Likewise.
33688         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33689         Likewise.
33690         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33691         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33692         Likewise.
33693         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33694         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33695         Likewise.
33696         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33697         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33698         * modules/unictype/property-bidi-segment-separator-tests (Files):
33699         Likewise.
33700         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33701         * modules/unictype/property-byname-tests (Files): Likewise.
33702         * modules/unictype/property-combining-tests (Files): Likewise.
33703         * modules/unictype/property-composite-tests (Files): Likewise.
33704         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33705         * modules/unictype/property-dash-tests (Files): Likewise.
33706         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33707         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33708         Likewise.
33709         * modules/unictype/property-deprecated-tests (Files): Likewise.
33710         * modules/unictype/property-diacritic-tests (Files): Likewise.
33711         * modules/unictype/property-extender-tests (Files): Likewise.
33712         * modules/unictype/property-format-control-tests (Files): Likewise.
33713         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33714         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33715         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33716         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33717         * modules/unictype/property-hyphen-tests (Files): Likewise.
33718         * modules/unictype/property-id-continue-tests (Files): Likewise.
33719         * modules/unictype/property-id-start-tests (Files): Likewise.
33720         * modules/unictype/property-ideographic-tests (Files): Likewise.
33721         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33722         * modules/unictype/property-ids-trinary-operator-tests (Files):
33723         Likewise.
33724         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33725         * modules/unictype/property-iso-control-tests (Files): Likewise.
33726         * modules/unictype/property-join-control-tests (Files): Likewise.
33727         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33728         * modules/unictype/property-line-separator-tests (Files): Likewise.
33729         * modules/unictype/property-logical-order-exception-tests (Files):
33730         Likewise.
33731         * modules/unictype/property-lowercase-tests (Files): Likewise.
33732         * modules/unictype/property-math-tests (Files): Likewise.
33733         * modules/unictype/property-non-break-tests (Files): Likewise.
33734         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33735         * modules/unictype/property-numeric-tests (Files): Likewise.
33736         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33737         * modules/unictype/property-other-default-ignorable-code-point-tests
33738         (Files): Likewise.
33739         * modules/unictype/property-other-grapheme-extend-tests (Files):
33740         Likewise.
33741         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33742         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33743         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33744         * modules/unictype/property-other-math-tests (Files): Likewise.
33745         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33746         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33747         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33748         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33749         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33750         * modules/unictype/property-private-use-tests (Files): Likewise.
33751         * modules/unictype/property-punctuation-tests (Files): Likewise.
33752         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33753         * modules/unictype/property-radical-tests (Files): Likewise.
33754         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33755         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33756         * modules/unictype/property-space-tests (Files): Likewise.
33757         * modules/unictype/property-terminal-punctuation-tests (Files):
33758         Likewise.
33759         * modules/unictype/property-test-tests (Files): Likewise.
33760         * modules/unictype/property-titlecase-tests (Files): Likewise.
33761         * modules/unictype/property-unassigned-code-value-tests (Files):
33762         Likewise.
33763         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33764         * modules/unictype/property-uppercase-tests (Files): Likewise.
33765         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33766         * modules/unictype/property-white-space-tests (Files): Likewise.
33767         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33768         * modules/unictype/property-xid-start-tests (Files): Likewise.
33769         * modules/unictype/property-zero-width-tests (Files): Likewise.
33770         * modules/unictype/scripts-tests (Files): Likewise.
33771         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33772         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33773         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33774         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33775         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33776         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33777         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33778         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33779         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33780         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33781         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33782         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33783         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33784         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33785         * modules/uninorm/composition-tests (Files): Likewise.
33786         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33787         * modules/uninorm/decomposition-tests (Files): Likewise.
33788         * modules/uninorm/filter-tests (Files): Likewise.
33789         * modules/uninorm/nfc-tests (Files): Likewise.
33790         * modules/uninorm/nfd-tests (Files): Likewise.
33791         * modules/uninorm/nfkc-tests (Files): Likewise.
33792         * modules/uninorm/nfkd-tests (Files): Likewise.
33793         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33794         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33795         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33796         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33797         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33798         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33799         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33800         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33801         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33802         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33803         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33804         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33805         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33806         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33807         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33808         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33809         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33810         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33811         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33812         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33813         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33814         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33815         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33816         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33817         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33818         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33819         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33820         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33821         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33822         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33823         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33824         * modules/uniwidth/u8-width-tests (Files): Likewise.
33825         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33826         * modules/uniwidth/u16-width-tests (Files): Likewise.
33827         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33828         * modules/uniwidth/u32-width-tests (Files): Likewise.
33829         * modules/uniwidth/width-tests (Files): Likewise.
33830         * modules/unlink-tests (Files): Likewise.
33831         * modules/unsetenv-tests (Files): Likewise.
33832         * modules/usleep-tests (Files): Likewise.
33833         * modules/utimens-tests (Files): Likewise.
33834         * modules/utimensat-tests (Files): Likewise.
33835         * modules/vasnprintf-posix-tests (Files): Likewise.
33836         * modules/vasnprintf-tests (Files): Likewise.
33837         * modules/vasprintf-posix-tests (Files): Likewise.
33838         * modules/vasprintf-tests (Files): Likewise.
33839         * modules/vdprintf-posix-tests (Files): Likewise.
33840         * modules/vfprintf-posix-tests (Files): Likewise.
33841         * modules/vprintf-posix-tests (Files): Likewise.
33842         * modules/vsnprintf-posix-tests (Files): Likewise.
33843         * modules/vsnprintf-tests (Files): Likewise.
33844         * modules/vsprintf-posix-tests (Files): Likewise.
33845         * modules/wcrtomb-tests (Files): Likewise.
33846         * modules/wcsnrtombs-tests (Files): Likewise.
33847         * modules/wcsrtombs-tests (Files): Likewise.
33848         * modules/wctype-tests (Files): Likewise.
33849         * modules/wcwidth-tests (Files): Likewise.
33850         * modules/xmemdup0-tests (Files): Likewise.
33851         * modules/xprintf-posix-tests (Files): Likewise.
33852         * modules/xvasprintf-tests (Files): Likewise.
33853
33854 2009-12-24  Eric Blake  <ebb9@byu.net>
33855
33856         test-nanosleep: fix typo
33857         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33858         patch.
33859         Reported by Bruno Haible.
33860
33861 2009-12-24  Bruno Haible  <bruno@clisp.org>
33862
33863         Reduce namespace pollution on glibc systems.
33864         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33865         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33866         systems.
33867         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33868         <getopt.h> on glibc systems.
33869         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33870         systems.
33871         * lib/fcntl.c: Include <unistd.h> here instead.
33872
33873 2009-12-24  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33876
33877 2009-12-24  Eric Blake  <ebb9@byu.net>
33878
33879         tests: add signature checks
33880         * tests/signature.h (SIGNATURE_CHECK): New file.
33881         * modules/atexit-tests (Files): Use it.
33882         * modules/btowc-tests (Files): Likewise.
33883         * modules/canonicalize-lgpl-tests (Files): Likewise.
33884         * modules/ceilf-tests (Files): Likewise.
33885         * modules/ceill-tests (Files): Likewise.
33886         * modules/chown-tests (Files): Likewise.
33887         * modules/dprintf-posix-tests (Files): Likewise.
33888         * modules/dup2-tests (Files): Likewise.
33889         * modules/dup3-tests (Files): Likewise.
33890         * modules/duplocale-tests (Files): Likewise.
33891         * modules/fchdir-tests (Files): Likewise.
33892         * modules/fcntl-tests (Files): Likewise.
33893         * modules/fdopendir-tests (Files): Likewise.
33894         * modules/fflush-tests (Files): Likewise.
33895         * modules/flock-tests (Files): Likewise.
33896         * modules/floorf-tests (Files): Likewise.
33897         * modules/floorl-tests (Files): Likewise.
33898         * modules/fnmatch-tests (Files): Likewise.
33899         * modules/fopen-tests (Files): Likewise.
33900         * modules/fprintf-posix-tests (Files): Likewise.
33901         * modules/freopen-tests (Files): Likewise.
33902         * modules/frexp-nolibm-tests (Files): Likewise.
33903         * modules/frexp-tests (Files): Likewise.
33904         * modules/frexpl-nolibm-tests (Files): Likewise.
33905         * modules/frexpl-tests (Files): Likewise.
33906         * modules/fseek-tests (Files): Likewise.
33907         * modules/fseeko-tests (Files): Likewise.
33908         * modules/fsync-tests (Files): Likewise.
33909         * modules/ftell-tests (Files): Likewise.
33910         * modules/ftello-tests (Files): Likewise.
33911         * modules/futimens-tests (Files): Likewise.
33912         * modules/getaddrinfo-tests (Files): Likewise.
33913         * modules/getcwd-tests (Files): Likewise.
33914         * modules/getdelim-tests (Files): Likewise.
33915         * modules/getdtablesize-tests (Files): Likewise.
33916         * modules/getgroups-tests (Files): Likewise.
33917         * modules/gethostname-tests (Files): Likewise.
33918         * modules/getline-tests (Files): Likewise.
33919         * modules/getopt-posix-tests (Files): Likewise.
33920         * modules/gettimeofday-tests (Files): Likewise.
33921         * modules/glob-tests (Files): Likewise.
33922         * modules/iconv-tests (Files): Likewise.
33923         * modules/inet_ntop-tests (Files): Likewise.
33924         * modules/inet_pton-tests (Files): Likewise.
33925         * modules/isblank-tests (Files): Likewise.
33926         * modules/lchown-tests (Files): Likewise.
33927         * modules/ldexpl-tests (Files): Likewise.
33928         * modules/link-tests (Files): Likewise.
33929         * modules/linkat-tests (Files): Likewise.
33930         * modules/lseek-tests (Files): Likewise.
33931         * modules/lstat-tests (Files): Likewise.
33932         * modules/mbrtowc-tests (Files): Likewise.
33933         * modules/mbsinit-tests (Files): Likewise.
33934         * modules/mbsnrtowcs-tests (Files): Likewise.
33935         * modules/mbsrtowcs-tests (Files): Likewise.
33936         * modules/memchr-tests (Files): Likewise.
33937         * modules/memcmp-tests (Files): Likewise.
33938         * modules/memmem-tests (Files): Likewise.
33939         * modules/memrchr-tests (Files): Likewise.
33940         * modules/mkdir-tests (Files): Likewise.
33941         * modules/mkfifo-tests (Files): Likewise.
33942         * modules/mkfifoat-tests (Files): Likewise.
33943         * modules/mknod-tests (Files): Likewise.
33944         * modules/nanosleep-tests (Files): Likewise.
33945         * modules/nl_langinfo-tests (Files): Likewise.
33946         * modules/obstack-printf-tests (Files): Likewise.
33947         * modules/open-tests (Files): Likewise.
33948         * modules/openat-tests (Files): Likewise.
33949         * modules/perror-tests (Files): Likewise.
33950         * modules/pipe2-tests (Files): Likewise.
33951         * modules/poll-tests (Files): Likewise.
33952         * modules/popen-tests (Files): Likewise.
33953         * modules/posix_spawn-tests (Files): Likewise.
33954         * modules/posix_spawnp-tests (Files): Likewise.
33955         * modules/pread-tests (Files): Likewise.
33956         * modules/printf-posix-tests (Files): Likewise.
33957         * modules/pty-tests (Files): Likewise.
33958         * modules/random_r-tests (Files): Likewise.
33959         * modules/rawmemchr-tests (Files): Likewise.
33960         * modules/readlink-tests (Files): Likewise.
33961         * modules/remove-tests (Files): Likewise.
33962         * modules/rename-tests (Files): Likewise.
33963         * modules/renameat-tests (Files): Likewise.
33964         * modules/rmdir-tests (Files): Likewise.
33965         * modules/round-tests (Files): Likewise.
33966         * modules/roundf-tests (Files): Likewise.
33967         * modules/roundl-tests (Files): Likewise.
33968         * modules/select-tests (Files): Likewise.
33969         * modules/setenv-tests (Files): Likewise.
33970         * modules/sigaction-tests (Files): Likewise.
33971         * modules/sleep-tests (Files): Likewise.
33972         * modules/snprintf-posix-tests (Files): Likewise.
33973         * modules/snprintf-tests (Files): Likewise.
33974         * modules/sprintf-posix-tests (Files): Likewise.
33975         * modules/stat-tests (Files): Likewise.
33976         * modules/strcasestr-tests (Files): Likewise.
33977         * modules/strchrnul-tests (Files): Likewise.
33978         * modules/strerror-tests (Files): Likewise.
33979         * modules/strsignal-tests (Files): Likewise.
33980         * modules/strstr-tests (Files): Likewise.
33981         * modules/strtod-tests (Files): Likewise.
33982         * modules/strverscmp-tests (Files): Likewise.
33983         * modules/symlink-tests (Files): Likewise.
33984         * modules/symlinkat-tests (Files): Likewise.
33985         * modules/times-tests (Files): Likewise.
33986         * modules/trunc-tests (Files): Likewise.
33987         * modules/truncf-tests (Files): Likewise.
33988         * modules/truncl-tests (Files): Likewise.
33989         * modules/tsearch-tests (Files): Likewise.
33990         * modules/uname-tests (Files): Likewise.
33991         * modules/unlink-tests (Files): Likewise.
33992         * modules/unsetenv-tests (Files): Likewise.
33993         * modules/usleep-tests (Files): Likewise.
33994         * modules/utimensat-tests (Files): Likewise.
33995         * modules/vasprintf-tests (Files): Likewise.
33996         * modules/vdprintf-posix-tests (Files): Likewise.
33997         * modules/vfprintf-posix-tests (Files): Likewise.
33998         * modules/vprintf-posix-tests (Files): Likewise.
33999         * modules/vsnprintf-posix-tests (Files): Likewise.
34000         * modules/vsnprintf-tests (Files): Likewise.
34001         * modules/vsprintf-posix-tests (Files): Likewise.
34002         * modules/wcrtomb-tests (Files): Likewise.
34003         * modules/wcsnrtombs-tests (Files): Likewise.
34004         * modules/wcsrtombs-tests (Files): Likewise.
34005         * modules/wcwidth-tests (Files): Likewise.
34006         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
34007         * tests/test-isinf.c (isinf): Likewise.
34008         * tests/test-isnan.c (isnan): Likewise.
34009         * tests/test-signbit.c (signbit): Likewise.
34010         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
34011         declaration, either as macro or with correct signature.
34012         (select): Ensure function under test is declared with correct
34013         signature in correct header.
34014         * tests/test-atexit.c (atexit): Likewise.
34015         * tests/test-btowc.c (btowc): Likewise.
34016         * tests/test-canonicalize-lgpl.c (realpath)
34017         (canonicalize_file_name): Likewise.
34018         * tests/test-ceilf1.c (ceilf): Likewise.
34019         * tests/test-ceill.c (ceill): Likewise.
34020         * tests/test-chown.c (chown): Likewise.
34021         * tests/test-dprintf-posix.c (dprintf): Likewise.
34022         * tests/test-dup2.c (dup2): Likewise.
34023         * tests/test-dup3.c (dup3): Likewise.
34024         * tests/test-duplocale.c (duplocale): Likewise.
34025         * tests/test-fchdir.c (fchdir): Likewise.
34026         * tests/test-fchownat.c (fchownat): Likewise.
34027         * tests/test-fcntl.c (fcntl): Likewise.
34028         * tests/test-fdopendir.c (fdopendir): Likewise.
34029         * tests/test-fflush.c (fflush): Likewise.
34030         * tests/test-flock.c (flock): Likewise.
34031         * tests/test-floorf1.c (floorf): Likewise.
34032         * tests/test-floorl.c (floorl): Likewise.
34033         * tests/test-fnmatch.c (fnmatch): Likewise.
34034         * tests/test-fopen.c (fopen): Likewise.
34035         * tests/test-fprintf-posix.c (fprintf): Likewise.
34036         * tests/test-freopen.c (freopen): Likewise.
34037         * tests/test-frexp.c (frexp): Likewise.
34038         * tests/test-frexpl.c (frexpl): Likewise.
34039         * tests/test-fseek.c (fseek): Likewise.
34040         * tests/test-fseeko.c (fseeko): Likewise.
34041         * tests/test-fstatat.c (fstatat): Likewise.
34042         * tests/test-fsync.c (fsync): Likewise.
34043         * tests/test-ftell.c (ftell): Likewise.
34044         * tests/test-ftello.c (ftello): Likewise.
34045         * tests/test-futimens.c (futimens): Likewise.
34046         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
34047         (gai_strerror): Likewise.
34048         * tests/test-getcwd.c (getcwd): Likewise.
34049         * tests/test-getdelim.c (getdelim): Likewise.
34050         * tests/test-getdtablesize.c (getdtablesize): Likewise.
34051         * tests/test-getgroups.c (getgroups): Likewise.
34052         * tests/test-gethostname.c (gethostname): Likewise.
34053         * tests/test-getline.c (getline): Likewise.
34054         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
34055         Likewise.
34056         * tests/test-gettimeofday.c (gettimeofday): Likewise.
34057         * tests/test-glob.c (glob, globfree): Likewise.
34058         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
34059         * tests/test-inet_ntop.c (inet_ntop): Likewise.
34060         * tests/test-inet_pton.c (inet_pton): Likewise.
34061         * tests/test-isblank.c (isblank): Likewise.
34062         * tests/test-lchown.c (lchown): Likewise.
34063         * tests/test-ldexpl.c (ldexpl): Likewise.
34064         * tests/test-link.c (link): Likewise.
34065         * tests/test-linkat.c (linkat): Likewise.
34066         * tests/test-lseek.c (lseek): Likewise.
34067         * tests/test-lstat.c (lstat): Likewise.
34068         * tests/test-mbrtowc.c (mbrtowc): Likewise.
34069         * tests/test-mbsinit.c (mbsinit): Likewise.
34070         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
34071         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
34072         * tests/test-memchr.c (memchr): Likewise.
34073         * tests/test-memcmp.c (memcmp): Likewise.
34074         * tests/test-memmem.c (memmem): Likewise.
34075         * tests/test-memrchr.c (memrchr): Likewise.
34076         * tests/test-mkdir.c (mkdir): Likewise.
34077         * tests/test-mkdirat.c (mkdirat): Likewise.
34078         * tests/test-mkfifo.c (mkfifo): Likewise.
34079         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
34080         * tests/test-mknod.c (mknod): Likewise.
34081         * tests/test-nanosleep.c (nanosleep): Likewise.
34082         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
34083         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
34084         Likewise.
34085         * tests/test-open.c (open): Likewise.
34086         * tests/test-openat.c (openat): Likewise.
34087         * tests/test-perror.c (perror): Likewise.
34088         * tests/test-pipe2.c (pipe2): Likewise.
34089         * tests/test-poll.c (poll): Likewise.
34090         * tests/test-popen.c (popen, pclose): Likewise.
34091         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
34092         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
34093         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
34094         (posix_spawn_file_actions_destroy)
34095         (posix_spawn_file_actions_addclose)
34096         (posix_spawn_file_actions_addopen)
34097         (posix_spawn_file_actions_adddup2): Likewise.
34098         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
34099         * tests/test-pread.c (pread): Likewise.
34100         * tests/test-printf-posix.c (printf): Likewise.
34101         * tests/test-pty.c (openpty, forkpty): Likewise.
34102         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
34103         (random_r): Likewise.
34104         * tests/test-rawmemchr.c (rawmemchr): Likewise.
34105         * tests/test-readlink.c (readlink): Likewise.
34106         * tests/test-remove.c (remove): Likewise.
34107         * tests/test-rename.c (rename): Likewise.
34108         * tests/test-renameat.c (renameat): Likewise.
34109         * tests/test-rmdir.c (rmdir): Likewise.
34110         * tests/test-round1.c (round): Likewise.
34111         * tests/test-roundf1.c (roundf): Likewise.
34112         * tests/test-roundl.c (roundl): Likewise.
34113         * tests/test-setenv.c (setenv): Likewise.
34114         * tests/test-sigaction.c (sigaction): Likewise.
34115         * tests/test-sleep.c (sleep): Likewise.
34116         * tests/test-snprintf.c (snprintf): Likewise.
34117         * tests/test-sprintf-posix.c (sprintf): Likewise.
34118         * tests/test-stat.c (stat): Likewise.
34119         * tests/test-stpncpy.c (stpncpy): Likewise.
34120         * tests/test-strcasestr.c (strcasestr): Likewise.
34121         * tests/test-strchrnul.c (strchrnul): Likewise.
34122         * tests/test-strerror.c (strerror): Likewise.
34123         * tests/test-strsignal.c (strsignal): Likewise.
34124         * tests/test-strstr.c (strstr): Likewise.
34125         * tests/test-strtod.c (strtod): Likewise.
34126         * tests/test-strverscmp.c (strverscmp): Likewise.
34127         * tests/test-symlink.c (symlink): Likewise.
34128         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
34129         * tests/test-times.c (times): Likewise.
34130         * tests/test-trunc1.c (trunc): Likewise.
34131         * tests/test-truncf1.c (truncf): Likewise.
34132         * tests/test-truncl.c (truncl): Likewise.
34133         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
34134         Likewise.
34135         * tests/test-uname.c (uname): Likewise.
34136         * tests/test-unlink.c (unlink): Likewise.
34137         * tests/test-unlinkat.c (unlinkat): Likewise.
34138         * tests/test-unsetenv.c (unsetenv): Likewise.
34139         * tests/test-usleep.c (usleep): Likewise.
34140         * tests/test-utimensat.c (utimensat): Likewise.
34141         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
34142         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
34143         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
34144         * tests/test-vprintf-posix.c (vprintf): Likewise.
34145         * tests/test-vsnprintf.c (vsnprintf): Likewise.
34146         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
34147         * tests/test-wcrtomb.c (wcrtomb): Likewise.
34148         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
34149         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
34150         * tests/test-wcwidth.c (wcwidth): Likewise.
34151
34152         build: pull in conditional headers during GNULIB_POSIXCHECK
34153         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
34154         definitions from any conditionally-included headers.
34155         * lib/stdlib.in.h (includes): Likewise.
34156         * lib/unistd.in.h (includes): Likewise.
34157
34158 2009-12-24  Bruno Haible  <bruno@clisp.org>
34159
34160         * tests/test-argv-iter.c: Include header file being tested immediately
34161         after config.h.
34162         * tests/test-base64.c: Likewise.
34163         * tests/test-flock.c: Likewise.
34164         * tests/test-fsync.c: Likewise.
34165         * tests/test-getdate.c: Likewise.
34166         * tests/test-getndelim2.c: Likewise.
34167         * tests/test-isfinite.c: Likewise.
34168         * tests/test-isinf.c: Likewise.
34169         * tests/test-strerror.c: Likewise.
34170         * tests/test-strsignal.c: Likewise.
34171
34172 2009-12-23  Eric Blake  <ebb9@byu.net>
34173
34174         unistd: work around cygwin bug
34175         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
34176         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
34177         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34178
34179 2009-12-23  Bruno Haible  <bruno@clisp.org>
34180
34181         localename: More tests.
34182         * tests/test-localename.c (SIZEOF): New macro.
34183         (categories): New variable.
34184         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
34185         test_locale_name_default): Add test w.r.t. thread locale.
34186         (test_locale_name_thread): New function.
34187         (main): Invoke it.
34188
34189         localename: Make aware of thread locale.
34190         * lib/localename.h (gl_locale_name_thread): New declaration.
34191         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
34192         behaviour with respect to thread locale.
34193         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
34194         <langinfo.h>, glthread/lock.h.
34195         (SIZE_BITS): New macro.
34196         (string_hash): New function.
34197         (struct hash_node): New type.
34198         (HASH_TABLE_SIZE): New macro.
34199         (struniq_hash_table, struniq_lock): New variables.
34200         (struniq): New function.
34201         (gl_locale_name_thread): New function.
34202         (gl_locale_name): Invoke it.
34203         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
34204         * modules/localename (Depends-on): Add lock.
34205         Reported by Mike Gran <spk121@yahoo.com>.
34206
34207 2009-12-23  Eric Blake  <ebb9@byu.net>
34208
34209         va-args: new module
34210         * modules/va-args: New file.
34211         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
34212         * MODULES.html.sh (Core language properties): Mention it.
34213
34214         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
34215         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
34216         named alias for __attribute__((__unused__)).
34217         * lib/chown.c: Update client.
34218         * lib/fchmodat.c: Likewise.
34219         * lib/fts.c: Likewise.
34220         * lib/getdate.y: Likewise.
34221         * lib/getgroups.c: Likewise.
34222         * lib/getopt.c: Likewise.
34223         * lib/getugroups.c: Likewise.
34224         * lib/mkdir.c: Likewise.
34225         * lib/mkfifo.c: Likewise.
34226         * lib/mkfifoat.c: Likewise.
34227         * lib/mknod.c: Likewise.
34228         * lib/mknodat.c: Likewise.
34229         * lib/readlink.c: Likewise.
34230         * lib/se-context.in.h: Likewise.
34231         * lib/se-selinux.in.h: Likewise.
34232         * lib/sockets.c: Likewise.
34233         * lib/symlink.c: Likewise.
34234         * lib/symlinkat.c: Likewise.
34235         * lib/unicodeio.c: Likewise.
34236         * lib/unistr.h: Likewise.
34237         * tests/test-areadlink.c: Likewise.
34238         * tests/test-areadlinkat.c: Likewise.
34239         * tests/test-filenamecat.c: Likewise.
34240         * tests/test-fseeko.c: Likewise.
34241         * tests/test-ftello.c: Likewise.
34242         * tests/test-getdate.c: Likewise.
34243         * tests/test-getgroups.c: Likewise.
34244         * tests/test-gethostname.c: Likewise.
34245         * tests/test-quotearg.c: Likewise.
34246         * tests/test-version-etc.c: Likewise.
34247         * tests/test-xalloc-die.c: Likewise.
34248         * tests/test-xfprintf-posix.c: Likewise.
34249         * tests/test-xprintf-posix.c: Likewise.
34250         * tests/test-xvasprintf.c: Likewise.
34251
34252         tests: avoid compiler warnings
34253         * tests/test-fcntl.c (main): Delete unused parameters.
34254         * tests/test-freopen-safer.c (main): Likewise.
34255         * tests/test-xalloc-die.c (main): Mark unused parameters.
34256         * tests/test-fseeko.c (main): Likewise.
34257         * tests/test-ftello.c (main): Likewise.
34258         * tests/test-nanosleep.c (main): Avoid declaration warning.
34259         * tests/test-sleep.c (main): Likewise.
34260         * tests/test-unsetenv.c (main): Silence warning about string
34261         literal.
34262         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34263
34264 2009-12-23  Bruno Haible  <bruno@clisp.org>
34265
34266         * tests/test-localename.c (test_locale_name): New function, extracted
34267         from main. Also test mixed situations.
34268         (test_locale_name_posix, test_locale_name_environ,
34269         test_locale_name_default): New functions.
34270         (main): Invoke them all.
34271         * modules/localename-tests (configure.ac): Test for newlocale.
34272
34273 2009-12-23  Bruno Haible  <bruno@clisp.org>
34274
34275         unistd: Ensure getcwd gets declared before being overridden.
34276         * lib/unistd.in.h: Conditionally include <io.h>.
34277
34278 2009-12-22  Bruno Haible  <bruno@clisp.org>
34279
34280         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34281         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34282         (gl_WCHAR_H): Invoke it.
34283         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34284         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34285         Reported by Karl Berry <karl@freefriends.org>.
34286
34287 2009-12-22  Eric Blake  <ebb9@byu.net>
34288
34289         math, unistd: avoid redundant includes
34290         * lib/math.in.h (isnan): No need to re-include <math.h>.
34291         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34292
34293         getsubopt: work around cygwin bug
34294         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34295         avoid conflicting with system getsubopt.
34296         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34297         bug.
34298
34299         getopt: synchronize from glibc
34300         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34301         parameter order.  Adjust all callers.
34302         (_getopt_internal_r, main): Adjust quoting in error messages.
34303         Drop considerations for outdated POSIX 1003.2 error message.
34304         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34305         callers.
34306         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34307
34308         test-getopt: test stderr behavior
34309         * modules/getopt-posix-tests (Depends-on): Add dup2.
34310         * tests/test-getopt.c (ASSERT): Avoid stderr.
34311         (main): Move stderr to a temporary file.
34312         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34313         Instead, add parameter to inform caller if output occurred.
34314         (test_getopt): Adjust all existing tests to expect silence, and
34315         add new tests of leading ":".
34316         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34317         glibc shortcomings with leading "-:" or "+:" in optstring.
34318         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34319         Likewise.
34320         * doc/posix-functions/getopt.texi (getopt): Likewise.
34321
34322         test-getopt: enhance test
34323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34324         supports optind=0.
34325         * tests/test-getopt.c (OPTIND_MIN): Move...
34326         * tests/test-getopt.h (OPTIND_MIN): ...here.
34327         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34328         Require that optind=0 works, since modern BSD supports it in
34329         addition to optreset, and since coreutils expects it.
34330         (test_getopt_long_only): New test.
34331         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34332         glibc shortcomings with 'W;', and enforcement of optind=0.
34333         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34334         Likewise.
34335
34336 2009-12-21  Bruno Haible  <bruno@clisp.org>
34337
34338         localename: Improvements for MacOS X and Cygwin.
34339         * lib/localename.h (gl_locale_name_environ): New declaration.
34340         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34341         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34342         (gl_locale_name_posix): Invoke it.
34343         (gl_locale_name_default): Add comments. Use Windows native API also on
34344         Cygwin.
34345
34346 2009-12-21  Bruno Haible  <bruno@clisp.org>
34347
34348         Update list of Win32 locale ids.
34349         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34350         (LANG_SAMI): Renamed from LANG_SAAMI.
34351         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34352         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34353         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34354         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34355         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34356         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34357         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34358         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34359         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34360         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34361         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34362         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34363         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34364         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34365         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34366         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34367         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34368         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34369         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34370         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34371         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34372         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34373         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34374         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34375         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34376         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34377         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34378         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34379         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34380         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34381         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34382         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34383         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34384         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34385         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34386         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34387         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34388         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34389         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34390         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34391         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34392         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34393         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34394         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34395         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34396         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34397         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34398         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34399         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34400         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34401         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34402         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34403         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34404         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34405         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34406         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34407         Add more languages and countries for Sami, Sorbian. Add more countries
34408         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34409         for Pashto. Change country for Syriac, Tswana.
34410
34411 2009-12-21  Eric Blake  <ebb9@byu.net>
34412
34413         test-utimens: avoid spurious failure
34414         * tests/test-chown.h (nap): Factor...
34415         * tests/nap.h: ...into new file.
34416         * tests/test-lchown.h (nap): Avoid duplication.
34417         * tests/test-utimens-common.h (nap): Use shared implementation,
34418         necessary on file systems with 1-second resolution.
34419         * modules/chown-tests (Files): Include new file.
34420         * modules/fdutimensat-tests (Files): Likewise.
34421         * modules/futimens-tests (Files): Likewise.
34422         * modules/lchown-tests (Files): Likewise.
34423         * modules/openat-tests (Files): Likewise.
34424         * modules/utimens-tests (Files): Likewise.
34425         * modules/utimensat-tests (Files): Likewise.
34426
34427 2009-12-19  Eric Blake  <ebb9@byu.net>
34428
34429         futimens, utimensat: work around Linux bug
34430         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34431         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34432         * lib/utimensat.c (rpl_utimensat): Work around it.
34433         * lib/futimens.c (rpl_futimens): Adjust comment.
34434
34435         utimens: work around Linux ctime bug
34436         * lib/utimens.c (detect_ctime_bug): New helper function.
34437         (update_timespec): Differentiate between workaround needed for
34438         this bug vs. what is needed for systems that lack utimensat.
34439         (fdutimens, lutimens): Work around bug.
34440
34441         utimens: check for ctime update
34442         * tests/test-utimens-common.h (check_ctime): Define.
34443         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34444         * tests/test-futimens.h (test_futimens): Likewise.
34445         * tests/test-lutimens.h (test_lutimens): Likewise.
34446         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34447         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34448
34449 2009-12-19  Bruno Haible  <bruno@clisp.org>
34450
34451         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34452         * tests/test-dprintf-posix2.sh: New file.
34453         * tests/test-dprintf-posix2.c: New file.
34454         * modules/dprintf-posix-tests (Files): Add them.
34455         (configure.ac): Check for getrlimit and setrlimit.
34456         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34457
34458 2009-12-19  Bruno Haible  <bruno@clisp.org>
34459
34460         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34461         * tests/test-fprintf-posix3.sh: New file.
34462         * tests/test-fprintf-posix3.c: New file.
34463         * modules/fprintf-posix-tests (Files): Add them.
34464         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34465
34466 2009-12-19  Eric Blake  <ebb9@byu.net>
34467
34468         dirfd: fix prototype
34469         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34470         * lib/dirfd.c (dirfd): Likewise.
34471
34472         canonicalize: reduce memory usage
34473         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34474         allocation to size.
34475         Reported by Solar Designer <solar@openwall.com>.
34476
34477 2009-12-19  Bruno Haible  <bruno@clisp.org>
34478
34479         New module attribute 'Applicability'.
34480         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34481         * gnulib-tool: New option --extract-applicability.
34482         (func_usage): Document it.
34483         (sed_extract_prog): Recognize it.
34484         (func_get_applicability): New function.
34485         (func_import): Generalize handling of 'link-warning' module.
34486         * modules/link-warning (Applicability): New section.
34487         * modules/arg-nonnull (Applicability): New section.
34488         Repoted by Simon Josefsson <simon@josefsson.org>.
34489
34490 2009-12-19  Bruno Haible  <bruno@clisp.org>
34491
34492         fflush: tweak
34493         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34494         * lib/fseeko.c (rpl_fseeko): Likewise.
34495
34496 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34497
34498         * lib/gl_list.h: Fix typo in comment.
34499
34500 2009-12-16  Eric Blake  <ebb9@byu.net>
34501
34502         fcntl: use to simplify other modules
34503         * modules/cloexec (Depends-on): Add fcntl.
34504         * modules/fchdir (Depends-on): Likewise.
34505         * modules/fd-safer-flag (Depends-on): Likewise.
34506         * modules/unistd-safer (Depends-on): Likewise.
34507         * modules/dup3 (configure.ac): Set module indicator.
34508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34509         missing.
34510         * lib/fchdir.c (_gl_register_dup): Fix comment.
34511         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34512         * lib/dup-safer.c (dup_safer): Likewise.
34513         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34514         * lib/dup3.c (dup3): Likewise.
34515         * tests/test-fchdir.c (main): Enhance test.
34516         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34517
34518         fcntl: port portions of fcntl to mingw
34519         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34520         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34521         replacement for mingw.
34522         * modules/fcntl (Description): Update.
34523         (Depends-on): Add dup2.
34524         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34525         * modules/fcntl-h (Makefile.am): Substitute it.
34526         * lib/fcntl.in.h (fcntl): Update declaration.
34527         (F_DUPFD, F_GETFD): New macros, when needed.
34528         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34529         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34530         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34531         we now guarantee.
34532
34533         fcntl: work around cygwin bug in F_DUPFD
34534         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34535         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34536         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34537         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34538         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34539
34540         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34541         * modules/fcntl (Files): List new files.
34542         (configure.ac): Run a test.
34543         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34544         * lib/fcntl.c (rpl_fcntl): Likewise.
34545         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34546         (gl_FCNTL_H): Always replace fcntl.h.
34547         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34548         * lib/fcntl.in.h (fcntl): Declare replacement.
34549         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34550         needed, plus a witness.
34551         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34552         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34553         * tests/test-fcntl.c: New file.
34554         * modules/fcntl-tests: Likewise.
34555
34556         binary-io: avoid potential compilation warning
34557         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34558         directives.
34559
34560         fflush: avoid compilation error on NetBSD
34561         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34562         between off_t and fpos_t, since the latter is sometimes a struct.
34563         * lib/fseeko.c (rpl_fseeko): Likewise.
34564         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34565
34566 2009-12-15  Eric Blake  <ebb9@byu.net>
34567
34568         fcntl-h, stdio, sys_ioctl: fix declarations
34569         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34570         function must not take arguments.
34571         * lib/sys_ioctl.in.h (ioctl): Likewise.
34572         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34573         (open): Add a link warning.
34574
34575 2009-12-15  Jim Meyering  <meyering@redhat.com>
34576
34577         areadlink, areadlink-with-size: relax license to LGPLv2+
34578         * modules/areadlink (License): Relax to LGPLv2+.
34579         * modules/areadlink-with-size (License): Likewise.
34580
34581 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34582             Bruno Haible  <bruno@clisp.org>
34583
34584         *printf: Fix memory leak.
34585         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34586         * lib/vfprintf.c (vfprintf): Likewise.
34587         * lib/dprintf.c (dprintf): Likewise.
34588         * lib/vdprintf.c (vdprintf): Likewise.
34589
34590 2009-12-14  Eric Blake  <ebb9@byu.net>
34591
34592         accept4: adjust module dependencies
34593         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34594
34595         utimens: one more try at avoiding compiler warning
34596         * lib/utimens.c (lutimens): Lower scope of result.
34597
34598 2009-12-13  Bruno Haible  <bruno@clisp.org>
34599
34600         Move the malloc checking from module 'list' to new module 'xlist'.
34601         * modules/xlist: New file.
34602         * lib/gl_xlist.h: New file.
34603         * lib/gl_xlist.c: New file.
34604         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34605         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34606         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34607         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34608         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34609         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34610         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34611         gl_sortedlist_nx_add): New declarations.
34612         (struct gl_list_implementation): Rename and change methods accordingly.
34613         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34614         (gl_list_nx_create): Renamed from gl_list_create.
34615         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34616         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34617         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34618         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34619         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34620         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34621         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34622         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34623         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34624         gl_list_create_empty.
34625         (gl_list_nx_create): Renamed from gl_list_create.
34626         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34627         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34628         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34629         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34630         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34631         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34632         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34633         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34634         * lib/gl_array_list.c: Don't include xalloc.h.
34635         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34636         NULL upon out-of-memory.
34637         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34638         out-of-memory.
34639         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34640         Change return type to 'int'.
34641         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34642         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34643         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34644         upon out-of-memory.
34645         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34646         upon out-of-memory.
34647         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34648         upon out-of-memory.
34649         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34650         upon out-of-memory.
34651         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34652         out-of-memory.
34653         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34654         Update.
34655         (gl_array_list_implementation): Update.
34656         * lib/gl_carray_list.c: Don't include xalloc.h.
34657         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34658         Return NULL upon out-of-memory.
34659         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34660         out-of-memory.
34661         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34662         Change return type to 'int'.
34663         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34664         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34665         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34666         upon out-of-memory.
34667         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34668         upon out-of-memory.
34669         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34670         out-of-memory.
34671         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34672         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34673         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34674         Update.
34675         (gl_carray_list_implementation): Update.
34676         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34677         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34678         gl_linked_create_empty. Return NULL upon out-of-memory.
34679         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34680         out-of-memory.
34681         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34682         Change return type to 'int'. Return -1 upon out-of-memory.
34683         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34684         out-of-memory.
34685         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34686         upon out-of-memory.
34687         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34688         upon out-of-memory.
34689         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34690         NULL upon out-of-memory.
34691         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34692         upon out-of-memory.
34693         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34694         out-of-memory.
34695         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34696         Update.
34697         * lib/gl_linked_list.c: Don't include xalloc.h.
34698         (gl_linked_list_implementation): Update.
34699         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34700         (add_to_bucket): Change return type to 'int'.
34701         (gl_linkedhash_list_implementation): Update.
34702         * lib/gl_anytree_list1.h (free_subtree): New function.
34703         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34704         gl_tree_create_empty. Return NULL upon out-of-memory.
34705         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34706         Change return type to 'int'. Return -1 upon out-of-memory.
34707         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34708         out-of-memory.
34709         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34710         (gl_tree_remove_node): New function, moved here from
34711         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34712         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34713         Update.
34714         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34715         malloc, not xmalloc. Return NULL upon out-of-memory.
34716         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34717         out-of-memory.
34718         (gl_tree_remove_node_from_tree): New function, extracted from
34719         gl_tree_remove_node.
34720         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34721         upon out-of-memory.
34722         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34723         out-of-memory.
34724         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34725         upon out-of-memory.
34726         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34727         upon out-of-memory.
34728         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34729         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34730         not xmalloc. Return NULL upon out-of-memory.
34731         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34732         out-of-memory.
34733         (gl_tree_remove_node_from_tree): New function, extracted from
34734         gl_tree_remove_node.
34735         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34736         upon out-of-memory.
34737         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34738         out-of-memory.
34739         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34740         upon out-of-memory.
34741         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34742         upon out-of-memory.
34743         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34744         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34745         gl_anytree_list1.h before gl_anyavltree_list2.h.
34746         (gl_avltree_list_implementation): Update.
34747         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34748         gl_anytree_list1.h before gl_anyavltree_list2.h.
34749         (gl_rbtree_list_implementation): Update.
34750         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34751         Change return type to 'int'. Return -1 upon out-of-memory. Use
34752         __builtin_expect.
34753         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34754         (gl_avltreehash_list_implementation): Update.
34755         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34756         (gl_rbtreehash_list_implementation): Update.
34757         * modules/array-list (Depends-on): Remove xalloc.
34758         * modules/carray-list (Depends-on): Likewise.
34759         * modules/linked-list (Depends-on): Likewise.
34760         * modules/linkedhash-list (Depends-on): Likewise.
34761         * modules/avltree-list (Depends-on): Likewise.
34762         * modules/rbtree-list (Depends-on): Likewise.
34763         * modules/avltreehash-list (Depends-on): Likewise.
34764         * modules/rbtreehash-list (Depends-on): Likewise.
34765
34766         * modules/xsublist: New file.
34767         * lib/gl_xsublist.h: New file.
34768         * lib/gl_xsublist.c: New file.
34769         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34770         (gl_sublist_nx_create): New declaration.
34771         * lib/gl_sublist.c: Don't include xalloc.h.
34772         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34773         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34774         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34775         Change return type to 'int'. Return -1 upon out-of-memory.
34776         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34777         upon out-of-memory.
34778         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34779         NULL upon out-of-memory.
34780         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34781         upon out-of-memory.
34782         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34783         NULL upon out-of-memory.
34784         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34785         NULL upon out-of-memory.
34786         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34787         upon out-of-memory.
34788         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34789         (gl_sublist_list_implementation): Update.
34790         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34791         upon out-of-memory.
34792         * modules/sublist (Depends-on): Remove xalloc.
34793
34794         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34795         * tests/test-carray_list.c: Likewise.
34796         * tests/test-linked_list.c: Likewise.
34797         * tests/test-linkedhash_list.c: Likewise.
34798         * tests/test-avltree_list.c: Likewise.
34799         * tests/test-rbtree_list.c: Likewise.
34800         * tests/test-avltreehash_list.c: Likewise.
34801         * tests/test-rbtreehash_list.c: Likewise.
34802         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34803         * modules/carray-list-tests (Makefile.am): Likewise.
34804         * modules/linked-list-tests (Makefile.am): Likewise.
34805         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34806         * modules/avltree-list-tests (Makefile.am): Likewise.
34807         * modules/rbtree-list-tests (Makefile.am): Likewise.
34808         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34809         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34810
34811         * NEWS: Mention the changes.
34812
34813         * lib/clean-temp.c: Include gl_xlist.h.
34814         * modules/clean-temp (Depends-on): Add xlist.
34815
34816         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34817         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34818
34819         * tests/test-array_oset.c: Include gl_xlist.h.
34820         * modules/array-oset-tests (Depends-on): Add xlist.
34821
34822         Reported by José E. Marchesi <jemarch@gnu.org>.
34823
34824 2009-12-13  Bruno Haible  <bruno@clisp.org>
34825
34826         Move the malloc checking from module 'oset' to new module 'xoset'.
34827         * modules/xoset: New file.
34828         * lib/gl_xoset.h: New file.
34829         * lib/gl_xoset.c: New file.
34830         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34831         declarations.
34832         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34833         (struct gl_oset_implementation): Rename and change methods accordingly.
34834         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34835         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34836         'int'. Mark as __warn_unused_result__.
34837         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34838         gl_oset_create_empty.
34839         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34840         'int'.
34841         * lib/gl_array_oset.c: Don't include xalloc.h.
34842         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34843         malloc, not xmalloc.
34844         (grow): Change return type to 'int'. Don't call xalloc_die.
34845         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34846         to 'int'.
34847         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34848         'int'.
34849         (gl_array_oset_implementation): Update.
34850         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34851         gl_tree_create_empty.
34852         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34853         'int'.
34854         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34855         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34856         xmalloc.
34857         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34858         not xmalloc.
34859         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34860         xmalloc.
34861         (gl_avltree_oset_implementation): Update.
34862         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34863         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34864         xmalloc.
34865         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34866         not xmalloc.
34867         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34868         xmalloc.
34869         (gl_rbtree_oset_implementation): Update.
34870         * modules/array-oset (Depends-on): Remove xalloc.
34871         * modules/avltree-oset (Depends-on): Likewise.
34872         * modules/rbtree-oset (Depends-on): Likewise.
34873         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34874         * tests/test-avltree_oset.c: Likewise.
34875         * tests/test-rbtree_oset.c: Likewise.
34876         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34877         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34878         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34879         * NEWS: Mention the change.
34880
34881 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34882
34883         maint.mk: allow a project to override release-prep commands
34884         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34885         commands into a new rule.
34886         (release-prep): New rule.
34887         (release-prep-hook): New overridable variable.
34888
34889 2009-12-13  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34892
34893 2009-12-13  Jim Meyering  <meyering@redhat.com>
34894
34895         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34896         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34897
34898 2009-12-12  Bruno Haible  <bruno@clisp.org>
34899
34900         duplocale: Tweak.
34901         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34902
34903 2009-12-12  Karl Berry  <karl@gnu.org>
34904
34905         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34906
34907 2009-12-12  Bruno Haible  <bruno@clisp.org>
34908
34909         * m4/po.m4: Undo incorrect untabification.
34910
34911 2009-12-12  Bruno Haible  <bruno@clisp.org>
34912
34913         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34914         * modules/c-strtod (Depends-on): Add locale.
34915         * modules/c-strtold (Depends-on): Likewise.
34916
34917 2009-12-12  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34920
34921 2009-12-11  Eric Blake  <ebb9@byu.net>
34922
34923         setenv: relax requirement in light of POSIX ruling
34924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34925         not NULL.
34926         * tests/test-setenv.c (main): Relax test.
34927         * tests/test-unsetenv.c (main): Likewise.
34928         * doc/posix-functions/setenv.texi (setenv): Document this.
34929         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34930
34931 2009-12-11  Bruno Haible  <bruno@clisp.org>
34932
34933         New module 'fd-safer-flag'.
34934         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34935         * lib/dup-safer.c (dup_safer_flag): Remove function.
34936         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34937         * lib/fd-safer.c (fd_safer_flag): Remove function.
34938         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34939         * modules/cloexec (configure.ac): Drop indicator macro.
34940         * modules/fd-safer-flag: New file.
34941         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34942         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34943         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34944
34945 2009-12-11  Bruno Haible  <bruno@clisp.org>
34946
34947         Tests for module 'nl_langinfo'.
34948         * modules/nl_langinfo-tests: New file.
34949         * tests/test-nl_langinfo.sh: New file.
34950         * tests/test-nl_langinfo.c: New file.
34951
34952         New module 'nl_langinfo'.
34953         * lib/nl_langinfo.c: New file.
34954         * m4/nl_langinfo.m4: New file.
34955         * modules/nl_langinfo: New file.
34956         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34957
34958 2009-12-11  Bruno Haible  <bruno@clisp.org>
34959
34960         Tests for module 'langinfo'.
34961         * modules/langinfo-tests: New file.
34962         * tests/test-langinfo.c: New file.
34963
34964         New module 'langinfo'.
34965         * lib/langinfo.in.h: New file.
34966         * m4/langinfo_h.m4: New file.
34967         * modules/langinfo: New file.
34968         * doc/posix-headers/langinfo.texi: Mention the new module.
34969
34970 2009-12-11  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/config.charset: Untabify.
34973
34974 2009-12-11  Bruno Haible  <bruno@clisp.org>
34975
34976         * modules/unistd-safer (configure.ac): Drop indicator macro.
34977
34978 2009-12-11  Bruno Haible  <bruno@clisp.org>
34979
34980         Move pipe2-safer code to its own file.
34981         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34982         * lib/pipe-safer.c (pipe2_safer): Remove function.
34983         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34984         (Makefile.am): Add it to lib_SOURCES.
34985
34986 2009-12-10  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34989
34990 2009-12-10  Bruno Haible  <bruno@clisp.org>
34991
34992         Declare which arguments expect non-NULL values, for GCC and clang.
34993         * build-aux/arg-nonnull.h: New file.
34994         * modules/arg-nonnull: New file.
34995         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34996         (inet_ntop, inet_pton): Use it.
34997         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34998         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34999         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
35000         (open, openat): Use it.
35001         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
35002         (fnmatch): Use it.
35003         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
35004         (getopt, getopt_long, getopt_long_only): Use it.
35005         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
35006         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
35007         Use it.
35008         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
35009         (iconv_open): Use it.
35010         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
35011         (strtoimax, strtoumax): Use it.
35012         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
35013         (duplocale): Use it.
35014         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
35015         (frexp, frexpl): Use it.
35016         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
35017         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
35018         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
35019         (tsearch, tfind, tdelete, twalk): Use it.
35020         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
35021         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35022         sigpending): Use it.
35023         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
35024         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35025         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35026         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35027         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35028         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35029         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35030         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35031         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35032         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35033         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35034         Use it.
35035         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
35036         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
35037         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
35038         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
35039         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
35040         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
35041         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
35042         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
35043         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
35044         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
35045         strtoull, unsetenv): Use it.
35046         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
35047         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35048         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35049         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35050         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35051         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
35052         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
35053         (strcasecmp, strncasecmp): Use it.
35054         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
35055         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
35056         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
35057         rpl_setsockopt): Use it.
35058         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
35059         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
35060         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
35061         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
35062         (gettimeofday): Use it.
35063         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
35064         (times): Use it.
35065         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
35066         (uname): Use it.
35067         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
35068         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
35069         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
35070         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
35071         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
35072         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
35073         unlinkat, write): Use it.
35074         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
35075         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
35076         * lib/argv-iter.h: Include arg-nonnull.h.
35077         (_ATTRIBUTE_NONNULL_): Remove macro.
35078         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
35079         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
35080         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
35081         optimization.
35082         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
35083         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
35084         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
35085         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
35086         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
35087         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
35088         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
35089         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
35090         * modules/arpa_inet (Depends-on): Add arg-nonnull.
35091         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
35092         * modules/dirent (Depends-on): Add arg-nonnull.
35093         (Makefile.am): Insert arg-nonnull.h into dirent.h.
35094         * modules/fcntl-h (Depends-on): Add arg-nonnull.
35095         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
35096         * modules/fnmatch (Depends-on): Add arg-nonnull.
35097         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
35098         * modules/getopt-posix (Depends-on): Add arg-nonnull.
35099         (Makefile.am): Insert arg-nonnull.h into getopt.h.
35100         * modules/glob (Depends-on): Add arg-nonnull.
35101         (Makefile.am): Insert arg-nonnull.h into glob.h.
35102         * modules/iconv_open (Depends-on): Add arg-nonnull.
35103         (Makefile.am): Insert arg-nonnull.h into iconv.h.
35104         * modules/inttypes (Depends-on): Add arg-nonnull.
35105         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
35106         * modules/locale (Depends-on): Add arg-nonnull.
35107         (Makefile.am): Insert arg-nonnull.h into locale.h.
35108         * modules/math (Depends-on): Add arg-nonnull.
35109         (Makefile.am): Insert arg-nonnull.h into math.h.
35110         * modules/netdb (Depends-on): Add arg-nonnull.
35111         (Makefile.am): Insert arg-nonnull.h into netdb.h.
35112         * modules/search (Depends-on): Add arg-nonnull.
35113         (Makefile.am): Insert arg-nonnull.h into search.h.
35114         * modules/signal (Depends-on): Add arg-nonnull.
35115         (Makefile.am): Insert arg-nonnull.h into signal.h.
35116         * modules/spawn (Depends-on): Add arg-nonnull.
35117         (Makefile.am): Insert arg-nonnull.h into spawn.h.
35118         * modules/stdio (Depends-on): Add arg-nonnull.
35119         (Makefile.am): Insert arg-nonnull.h into stdio.h.
35120         * modules/stdlib (Depends-on): Add arg-nonnull.
35121         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
35122         * modules/string (Depends-on): Add arg-nonnull.
35123         (Makefile.am): Insert arg-nonnull.h into string.h.
35124         * modules/strings (Depends-on): Add arg-nonnull.
35125         (Makefile.am): Insert arg-nonnull.h into strings.h.
35126         * modules/sys_socket (Depends-on): Add arg-nonnull.
35127         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
35128         * modules/sys_stat (Depends-on): Add arg-nonnull.
35129         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
35130         * modules/sys_time (Depends-on): Add arg-nonnull.
35131         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
35132         * modules/sys_times (Depends-on): Add arg-nonnull.
35133         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
35134         * modules/sys_utsname (Depends-on): Add arg-nonnull.
35135         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
35136         * modules/time (Depends-on): Add arg-nonnull.
35137         (Makefile.am): Insert arg-nonnull.h into time.h.
35138         * modules/unistd (Depends-on): Add arg-nonnull.
35139         (Makefile.am): Insert arg-nonnull.h into unistd.h.
35140         * modules/wchar (Depends-on): Add arg-nonnull.
35141         (Makefile.am): Insert arg-nonnull.h into wchar.h.
35142         * modules/argv-iter (Depends-on): Add arg-nonnull.
35143         * tests/test-canonicalize.c (null_ptr): New function.
35144         (main): Use it.
35145         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
35146         (main): Use it.
35147         * tests/test-memmem.c (null_ptr): New function.
35148         (main): Use it.
35149         Reported by Jim Meyering.
35150
35151 2009-12-10  Bruno Haible  <bruno@clisp.org>
35152
35153         Use spaces for indentation, not tabs.
35154         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
35155         * m4/*.m4: Untabify.
35156         * build-aux/*.h: Untabify.
35157         * tests/**/*.[hc]: Untabify.
35158         * README: New section "Indent with spaces, not TABs", based on
35159         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
35160         * NEWS: Mention the change.
35161
35162 2009-12-10  Bruno Haible  <bruno@clisp.org>
35163
35164         pty test: Fix link error.
35165         * modules/pty-tests (Makefile.am): Add the default LDADD value to
35166         test_pty_LDADD.
35167
35168 2009-12-07  Simon Josefsson  <simon@josefsson.org>
35169
35170         * modules/pty: New file.
35171         * modules/pty-tests: New file.
35172         * m4/pty.m4: New file.
35173         * tests/test-pty.c: New file.
35174         * doc/glibc-headers/pty.texi: Modified.
35175         * doc/glibc-functions/forkpty.texi: Modified.
35176         * doc/glibc-functions/openpty.texi: Modified.
35177
35178 2009-12-10  Bruno Haible  <bruno@clisp.org>
35179
35180         Avoid syntax error in C++ mode.
35181         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
35182
35183 2009-12-10  Bruno Haible  <bruno@clisp.org>
35184
35185         Use sed with option -e.
35186         * gnulib-tool (func_version, func_emit_copyright_notice,
35187         func_emit_initmacro_end, func_import, func_create_testdir): Pass
35188         option -e to sed.
35189         * modules/link-warning (Makefile.am): Likewise.
35190
35191 2009-12-10  Jim Meyering  <meyering@redhat.com>
35192
35193         mgetgroups: do not write bytes beyond end of malloc'd buffer
35194         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
35195         username, we call getgroups with a one-element-shorter buffer,
35196         but still told it the length was original, max_n_groups.
35197
35198 2009-12-09  Eric Blake  <ebb9@byu.net>
35199
35200         cloexec: relax license
35201         * modules/cloexec (Maintainer): Add myself.
35202         (License): Use LGPL, not GPL.
35203
35204         link-warning: optimize generation
35205         * modules/link-warning (Makefile.am): Reduce process usage.
35206
35207 2009-12-09  Bruno Haible  <bruno@clisp.org>
35208
35209         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
35210         workaround was added on 2009-11-17.
35211
35212 2009-12-09  Jim Meyering  <meyering@redhat.com>
35213             Bruno Haible  <bruno@clisp.org>
35214
35215         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
35216         * modules/link-warning (Makefile.am): Make the comment-removing sed
35217         command more robust in the face of bootstrap-prepended comment lines.
35218
35219 2009-12-09  Bruno Haible  <bruno@clisp.org>
35220
35221         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35222         most one group.
35223
35224 2009-12-09  Simon Josefsson <simon@josefsson.org>
35225             Bruno Haible  <bruno@clisp.org>
35226
35227         * build-aux/link-warning.h: Add copyright notice.
35228         * modules/link-warning (Makefile.am): Generate link-warning.h from
35229         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35230         * NEWS: Mention change in link-warning module.
35231         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35232         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35233         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35234         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35235         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35236         * modules/math (Makefile.am): Add dependency to math.h.
35237         * modules/search (Makefile.am): Add dependency to search.h.
35238         * modules/signal (Makefile.am): Add dependency to signal.h.
35239         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35240         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35241         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35242         * modules/string (Makefile.am): Add dependency to string.h.
35243         * modules/strings (Makefile.am): Add dependency to strings.h.
35244         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35245         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35246         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35247         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35248         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35249         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35250         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35251         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35252         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35253
35254 2009-12-09  Bruno Haible  <bruno@clisp.org>
35255
35256         fchdir: Optimize away rpl_fstat when possible.
35257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35258         REPLACE_OPEN_DIRECTORY.
35259         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35260
35261 2009-12-09  Bruno Haible  <bruno@clisp.org>
35262
35263         * lib/fchdir.c: Update comment.
35264
35265 2009-12-09  Bruno Haible  <bruno@clisp.org>
35266
35267         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35268
35269 2009-12-08  Eric Blake  <ebb9@byu.net>
35270
35271         fchdir: avoid memory leak on re-registration.
35272         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35273
35274 2009-12-08  Jim Meyering  <meyering@redhat.com>
35275
35276         init.sh: avoid Solaris 10 /bin/sh portability problem
35277         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35278         sourced script:
35279           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35280           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35281           bar
35282         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35283         and two tests used that idiom.
35284         * tests/init.sh: Update suggested usage comments.
35285         (path_prepend_): New function, to be used in place
35286         of the --src-path=DIR option.
35287         (setup_): Move PATH-prepending code into path_prepend_.
35288         * tests/test-pread.sh: Adapt to new usage.
35289         * tests/test-xalloc-die.sh: Likewise.
35290
35291 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35292
35293         * doc/gnulib.texi (Glibc pty.h): Add.
35294         * doc/glibc-functions/forkpty.texi: Add.
35295         * doc/glibc-functions/openpty.texi: Add.
35296         Suggested by Bruno Haible.
35297
35298 2009-12-08  Eric Blake  <ebb9@byu.net>
35299
35300         fchdir: fix logic bugs
35301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35302         * tests/test-fchdir.c (main): Enhance test.
35303         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35304         is in use.
35305
35306         dup2: fix logic bugs
35307         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35308         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35309         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35310         exists.
35311         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35312
35313 2009-12-07  Eric Blake  <ebb9@byu.net>
35314
35315         unlink: fix m4 detection
35316         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35317
35318         unistd-safer: add unit test
35319         * modules/unistd-safer-tests: New file.
35320         * tests/test-dup-safer.c: Likewise.
35321         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35322         * tests/test-dup2.c (setmode): Likewise.
35323         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35324
35325         cloexec: preserve text vs. binary across dup_cloexec
35326         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35327         mode.
35328         * modules/dup2-tests (Depends-on): Add binary-io.
35329         * modules/cloexec-tests (Depends-on): Likewise.
35330         * tests/test-dup2.c (setmode, is_mode): New helpers.
35331         (main): Add tests that translation mode is preserved.
35332         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35333         Reported by Bruno Haible.
35334
35335         mgetgroups: reduce duplicate listings
35336         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35337         resulting array.
35338         * tests/test-chown.h (test_chown): Simplify client.
35339         * tests/test-lchown.h (test_lchown): Likewise.
35340
35341 2009-12-06  Bruno Haible  <bruno@clisp.org>
35342
35343         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35344         value.
35345
35346 2009-12-06  Bruno Haible  <bruno@clisp.org>
35347
35348         * lib/progname.c: Include stdio.h, stdlib.h.
35349         (set_program_name): Reject a NULL argument.
35350
35351 2009-12-05  Eric Blake  <ebb9@byu.net>
35352
35353         pipe2-safer: new module
35354         * modules/pipe2-safer: New file.
35355         * lib/unistd-safer.h (pipe2_safer): New prototype.
35356         * lib/unistd--.h (pipe2): New wrapper.
35357         * lib/pipe-safer.c (pipe2_safer): New function.
35358         * modules/pipe (Depends-on): Add pipe2-safer.
35359         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35360
35361         stdlib-safer: preserve cloexec flag for mkostemp[s]
35362         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35363         fd_safer_flag.
35364
35365         unistd-safer: allow preservation of cloexec status via flag
35366         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35367         prototypes.
35368         * lib/dup-safer.c (dup_safer_flag): New function.
35369         * lib/fd-safer.c (fd_safer_flag): Likewise.
35370         * modules/cloexec (configure.ac): Set witness.
35371
35372         test-dup2: enhance test
35373         * modules/dup2-tests (Depends-on): Add cloexec.
35374         * tests/test-dup2.c (main): Enhance test.
35375
35376         cloexec: add dup_cloexec
35377         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35378         header and comments.
35379         * lib/cloexec.c (set_cloexec_flag): Add comments.
35380         (dup_cloexec): New function, with mingw implementation borrowed
35381         from...
35382         * lib/w32spawn.h (dup_noinherit): ...here.
35383         * modules/execute (Depends-on): Add cloexec.
35384         * modules/pipe (Depends-on): Likewise.
35385         * modules/cloexec (Depends-on): Add dup2.
35386         * modules/cloexec-tests (Files): New file.
35387         * tests/test-cloexec.c: Likewise.
35388
35389         test-xalloc-die: fix test for mingw
35390         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35391         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35392         directory and .exe suffix off argv[0] output.
35393
35394         test-fseeko: fix test for mingw
35395         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35396         than undefining fseek, so test will pass on mingw.
35397
35398 2009-12-05  Bruno Haible  <bruno@clisp.org>
35399
35400         * lib/progname.h (set_program_name): Clarify specification.
35401         * lib/progname.c (set_program_name): Likewise.
35402         Reported by Jim Meyering.
35403
35404 2009-12-05  Jim Meyering  <meyering@redhat.com>
35405
35406         maint.mk: backslash-escape parens in default regexp
35407         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35408         backslash-escape the literal parentheses.
35409
35410         maint.mk: news-date-check: use grep -E
35411         * top/maint.mk (today): Define a Make variable, not a...
35412         (news-date-check): ...shell variable.
35413         (news-date-regexp): Use the Make variable.
35414         Use grep's -E option.  Change the failing diagnostic to mention
35415         the variable, $(news-date-regexp).
35416
35417 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35418
35419         maintainer-makefile: allow customization of NEWS entry format
35420         * top/maint.mk (news-date-regexp): New overridable variable.
35421         (news-date-check): Use it.
35422
35423 2009-12-04  Eric Blake  <ebb9@byu.net>
35424
35425         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35426         * lib/mgetgroups.h (xgetgroups): New prototype.
35427         * lib/mgetgroups.c (xgetgroups): New wrapper.
35428         (mgetgroups): Handle ENOSYS.
35429         * modules/mgetgroups (Depends-on): Add realloc.
35430         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35431
35432         mgetgroups: avoid argument promotion issues with -1
35433         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35434         for invalid gid_t.
35435         * tests/test-chown.h (getegid, test_chown): Likewise.
35436         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35437
35438 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35439
35440         exclude: Fix header file problems.
35441         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35442
35443 2009-12-01  Jim Meyering  <meyering@redhat.com>
35444
35445         fts: fts_open: do not let an empty string cause immediate failure
35446         This is required in support of GNU rm, for which the command
35447         "rm A '' B" must process and remove both A and B, in spite of
35448         the empty string argument.
35449         * lib/fts.c (fts_open): Do not let the presence of an empty string
35450         cause fts_open to fail immediately.  Most fts-using tools must be
35451         able to process all arguments, in order, and can be expected to
35452         diagnose such arguments themselves.
35453
35454 2009-11-30  Eric Blake  <ebb9@byu.net>
35455
35456         utimens: fix compilation error
35457         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35458         Declare variable at right scope.
35459
35460 2009-11-29  Jim Meyering  <meyering@redhat.com>
35461
35462         bootstrap: handle perl-5.11's changed --version output
35463         * build-aux/bootstrap (get_version): Handle perl separately,
35464         since perl-5.11's --version output is different.
35465
35466 2009-11-28  Jim Meyering  <meyering@redhat.com>
35467
35468         userspec: depend on the inttostr module, too
35469         * modules/userspec (Depends-on): Add inttostr.
35470
35471         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35472         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35473         number of MAXUID when it evaluates to (uid_t) -1.
35474         Likewise for group ID.  Reported by Matt McCutchen in
35475         <http://savannah.gnu.org/bugs/?28113>
35476
35477         userspec: reformat to use spaces, not TABs
35478         * lib/userspec.c: Expand TABs to spaces.
35479         Add Emacs' "indent-tabs-mode: nil" hint.
35480
35481 2009-11-27  Eric Blake  <ebb9@byu.net>
35482
35483         getopt-gnu: flush out another BSD bug
35484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35485         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35486         flush out BSD bug.
35487         * tests/test-getopt.h (test_getopt): End lists with NULL.
35488         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35489         (test_getopt_long_posix): Enhance test.
35490         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35491         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35492         getopt-gnu.
35493         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35494         Likewise.
35495
35496 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35497
35498         * modules/idpriv-droptemp-tests (Notice): Fix text.
35499
35500 2009-11-27  Jim Meyering  <meyering@redhat.com>
35501
35502         test-xalloc-die: avoid spurious failure due to libtool argv difference
35503         In a libtool-enabled project, this test would fail due to a difference
35504         in the emitted program name, e.g.,
35505         -test-xalloc-die: memory exhausted
35506         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35507         Use program to avoid that.
35508         * modules/xalloc-die-tests (Depends-on): Add progname.
35509         * tests/test-xalloc-die.c: Include progname.h".
35510         (program_name): Remove decl.
35511         (main): Call set_program_name.
35512         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35513
35514 2009-11-26  Richard Jones  <rjones@redhat.com>
35515
35516         w32sock: leave win32 error in place.
35517         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35518
35519 2009-11-26  Eric Blake  <ebb9@byu.net>
35520
35521         init.sh: suggest to use skip_ and fail_ functions in comments
35522         * tests/init.sh: Add a sentence.
35523
35524 2009-11-25  Bruno Haible  <bruno@clisp.org>
35525
35526         init.sh: add documentation in comments
35527         * tests/init.sh: Add some developer and user documentation.
35528
35529 2009-11-26  Jim Meyering  <meyering@redhat.com>
35530
35531         init.sh: accommodate even those who specify bogus srcdir manually
35532         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35533         configure-time tests to be sanitized, so that there is no need to
35534         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35535         (with no double quotes) suffices.  However, since tests may be
35536         invoked manually, and since you may explicitly set srcdir to the
35537         name of a directory containing spaces, do quote its uses here.
35538         * tests/test-pread.sh: Likewise.
35539         Suggested by Bruno Haible.
35540
35541         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35542         * tests/test-pread.sh: Write no data into the pipe, because
35543         test-pread actually reads none.  This avoids a diagnostic,
35544         "bash: echo: write error: Broken pipe", that arises in the unusual
35545         event something is ignoring SIGPIPE, and might be interpreted
35546         as some sort of failure.  Reported by Bruno Haible.
35547
35548 2009-11-25  Jim Meyering  <meyering@redhat.com>
35549
35550         test-pread: cover failure with ESPIPE and EINVAL
35551         * tests/test-pread.c (main): Test for failure, too.
35552         * tests/test-pread.sh: Invoke with stdin on a pipe.
35553         Suggested by Eric Blake.
35554
35555         pread: improvement and fix
35556         * modules/pread (Depends-on): Depend on lseek, for portability to
35557         e.g., mingw.  Suggested by Eric Blake.
35558         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35559
35560         unistd.in.h: correct declaration of pread
35561         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35562         Reported by Richard W.M. Jones.
35563
35564         test-pread.sh: distribute the test script
35565         * modules/pread-tests (Files): Include test-pread.sh.
35566
35567         test-pread.sh: clean up
35568         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35569         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35570         That is unnecessary, since it's always ".".
35571         Suggestion from Eric Blake.
35572
35573         test-pread.sh: make executable
35574         * tests/test-pread.sh: Set executable bit.
35575         Reported by Eric Blake.
35576
35577         correct typo in test-pread.sh
35578         * tests/test-pread.sh: Add #! line.
35579
35580         test pread
35581         * tests/test-pread.c: New file.
35582         * tests/test-pread.sh: Likewise.
35583         * modules/pread-tests: Likewise.
35584
35585         pread: new module
35586         * modules/pread: New file.
35587         * lib/unistd.in.h (pread): Define/declare.
35588         * lib/pread.c (pread): New file.
35589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35590         * modules/unistd (Makefile.am): Substitute witnesses.
35591         * doc/posix-functions/pread.texi (pread): Update.
35592         * MODULES.html.sh: Add pread.
35593
35594 2009-11-25  Jim Meyering  <meyering@redhat.com>
35595
35596         tests/init.sh: new file to be used via most *.sh tests
35597         * tests/init.sh: New file.
35598
35599 2009-11-25  Eric Blake  <ebb9@byu.net>
35600
35601         utimens: work around older Linux failure with symlinks
35602         * lib/utimens.c (lutimensat_works_really): New variable.
35603         (fdutimens, lutimens): Use it to manage kernels that support
35604         nanosecond times on files, but not on symlinks.
35605         Reported by OndÅ™ej Vašík.
35606
35607         utimes: fix configure grammar
35608         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35609
35610 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35611
35612         regex: Fix fastmap for multibyte character ranges.
35613         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35614         characters when a multibyte character range is included.
35615
35616 2009-11-22  Andy Wingo  <wingo@pobox.com>
35617
35618         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35619         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35620
35621 2009-11-24  Bruno Haible  <bruno@clisp.org>
35622
35623         doc: Most *_l functions exist in MacOS X 10.5.
35624         * doc/posix-functions/duplocale.texi: Update platforms list.
35625         * doc/posix-functions/freelocale.texi: Likewise.
35626         * doc/posix-functions/newlocale.texi: Likewise.
35627         * doc/posix-functions/uselocale.texi: Likewise.
35628         * doc/posix-functions/isalnum_l.texi: Likewise.
35629         * doc/posix-functions/isalpha_l.texi: Likewise.
35630         * doc/posix-functions/isblank_l.texi: Likewise.
35631         * doc/posix-functions/iscntrl_l.texi: Likewise.
35632         * doc/posix-functions/isdigit_l.texi: Likewise.
35633         * doc/posix-functions/isgraph_l.texi: Likewise.
35634         * doc/posix-functions/islower_l.texi: Likewise.
35635         * doc/posix-functions/isprint_l.texi: Likewise.
35636         * doc/posix-functions/ispunct_l.texi: Likewise.
35637         * doc/posix-functions/isspace_l.texi: Likewise.
35638         * doc/posix-functions/isupper_l.texi: Likewise.
35639         * doc/posix-functions/iswalnum_l.texi: Likewise.
35640         * doc/posix-functions/iswalpha_l.texi: Likewise.
35641         * doc/posix-functions/iswblank_l.texi: Likewise.
35642         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35643         * doc/posix-functions/iswctype_l.texi: Likewise.
35644         * doc/posix-functions/iswdigit_l.texi: Likewise.
35645         * doc/posix-functions/iswgraph_l.texi: Likewise.
35646         * doc/posix-functions/iswlower_l.texi: Likewise.
35647         * doc/posix-functions/iswprint_l.texi: Likewise.
35648         * doc/posix-functions/iswpunct_l.texi: Likewise.
35649         * doc/posix-functions/iswspace_l.texi: Likewise.
35650         * doc/posix-functions/iswupper_l.texi: Likewise.
35651         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35652         * doc/posix-functions/isxdigit_l.texi: Likewise.
35653         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35654         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35655         * doc/posix-functions/strcoll_l.texi: Likewise.
35656         * doc/posix-functions/strfmon_l.texi: Likewise.
35657         * doc/posix-functions/strftime_l.texi: Likewise.
35658         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35659         * doc/posix-functions/strxfrm_l.texi: Likewise.
35660         * doc/posix-functions/tolower_l.texi: Likewise.
35661         * doc/posix-functions/toupper_l.texi: Likewise.
35662         * doc/posix-functions/towctrans_l.texi: Likewise.
35663         * doc/posix-functions/towlower_l.texi: Likewise.
35664         * doc/posix-functions/towupper_l.texi: Likewise.
35665         * doc/posix-functions/wcscoll_l.texi: Likewise.
35666         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35667         * doc/posix-functions/wctrans_l.texi: Likewise.
35668         * doc/posix-functions/wctype_l.texi: Likewise.
35669         * doc/glibc-functions/strptime_l.texi: Likewise.
35670         * doc/glibc-functions/strtod_l.texi: Likewise.
35671         * doc/glibc-functions/strtof_l.texi: Likewise.
35672         * doc/glibc-functions/strtol_l.texi: Likewise.
35673         * doc/glibc-functions/strtold_l.texi: Likewise.
35674         * doc/glibc-functions/strtoll_l.texi: Likewise.
35675         * doc/glibc-functions/strtoul_l.texi: Likewise.
35676         * doc/glibc-functions/strtoull_l.texi: Likewise.
35677         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35678         * doc/glibc-functions/wcstod_l.texi: Likewise.
35679         * doc/glibc-functions/wcstof_l.texi: Likewise.
35680         * doc/glibc-functions/wcstol_l.texi: Likewise.
35681         * doc/glibc-functions/wcstold_l.texi: Likewise.
35682         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35683         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35684         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35685
35686 2009-11-24  Bruno Haible  <bruno@clisp.org>
35687
35688         duplocale: Fix logic bug.
35689         * lib/duplocale.c: Don't include <langinfo.h>.
35690         (_NL_LOCALE_NAME): Remove macro.
35691         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35692         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35693
35694 2009-11-23  Jim Meyering  <meyering@redhat.com>
35695
35696         test-update-copyright: don't hard-code /usr/bin/perl
35697         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35698         perl to print the current year.  Gilles Espinasse reported that
35699         the replaced use of perl was hard-coded as /usr/bin/perl.
35700
35701 2009-11-23  Bruno Haible  <bruno@clisp.org>
35702
35703         duplocale: Add support for glibc 2.3.x.
35704         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35705
35706 2009-11-22  Bruno Haible  <bruno@clisp.org>
35707
35708         vasnprintf: Tiny optimization.
35709         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35710         MacOS X.
35711
35712 2009-11-22  Bruno Haible  <bruno@clisp.org>
35713
35714         Tests for module 'duplocale'.
35715         * modules/duplocale-tests: New file.
35716         * tests/test-duplocale.c: New file.
35717
35718         New module 'duplocale'.
35719         * m4/duplocale.m4: New file.
35720         * lib/locale.in.h (duplocale): New declaration.
35721         * lib/duplocale.c: New file.
35722         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35723         gl_LOCALE_H_DEFAULTS): New macros.
35724         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35725         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35726         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35727         REPLACE_DUPLOCALE.
35728         * modules/duplocale: New file.
35729         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35730
35731 2009-11-22  Bruno Haible  <bruno@clisp.org>
35732
35733         * modules/locale-tests (configure.ac): Test for newlocale function.
35734         * tests/test-locale.c: When the system has extended locale functions,
35735         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35736
35737         locale: Make locale_t available when possible.
35738         * lib/locale.in.h: Include <xlocale.h> when it exists.
35739         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35740         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35741         * modules/locale (Depends-on): Add extensions.
35742         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35743         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35744
35745 2009-11-22  Bruno Haible  <bruno@clisp.org>
35746
35747         Add comments.
35748         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35749         invocation.
35750         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35751         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35752         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35753
35754 2009-11-22  Bruno Haible  <bruno@clisp.org>
35755
35756         error: account for the possibility of freopen (stdout).
35757         * lib/error.c: Include <unistd.h>.
35758         (flush_stdout): New function, extracted from error and error_at_line.
35759         Determine stdout's fd dynamically.
35760         (error, error_at_line): Invoke flush_stdout.
35761         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35762         * modules/error (Depends-on): Add unistd.
35763
35764 2009-11-22  Bruno Haible  <bruno@clisp.org>
35765
35766         diffseq: Add comment.
35767         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35768
35769 2009-11-22  Jim Meyering  <meyering@redhat.com>
35770
35771         c-stack: avoid defining an unused static function
35772         * lib/c-stack.c (find_stack_direction): Do not define this function
35773         when it will not be used.
35774
35775         diffseq: avoid spurious gcc warnings
35776         * lib/diffseq.h (IF_LINT2): Define.
35777         (compareseq): Use it to initialize two members of "part".
35778         This avoids two used-uninitialized warnings.
35779
35780 2009-11-21  Jim Meyering  <meyering@redhat.com>
35781
35782         c-stack: avoid "ignoring return value of `write'" warning
35783         * lib/c-stack.c: Include "ignore-value.h".
35784         (die): Explicitly ignore each write return value.
35785         * modules/c-stack (Depends-on): Add ignore-value.
35786
35787 2009-11-21  Bruno Haible  <bruno@clisp.org>
35788
35789         diffseq: reduce scope of variable 'best'.
35790         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35791         variable, earlier used for two different purposes.
35792
35793 2009-11-21  Jim Meyering  <meyering@redhat.com>
35794
35795         diffseq: remove useless assignment to "best"
35796         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35797         assignment.  At that point "best" is already guaranteed to be zero.
35798
35799 2009-11-20  Eric Blake  <ebb9@byu.net>
35800
35801         build: mention ftp redirector in release announcements
35802         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35803         values that used to come from cfg.mk; mention FTP redirect URL.
35804         * build-aux/announce-gen: Mention the mirror list.
35805         Suggested by Karl Berry.
35806
35807         nanosleep: improve port to mingw
35808         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35810         LIB_NANOSLEEP, but only when needed.
35811         * modules/select (Link): Document LIBSOCKET.
35812         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35813         enough.
35814
35815         nanosleep: work around cygwin bug
35816         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35817         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35818         bug.
35819         (getnow): Delete, not needed.
35820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35821         LIB_CLOCK_GETTIME.
35822         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35823         clock-time, gettime.
35824         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35825         bug.
35826         * modules/nanosleep-tests: New test.
35827         * tests/test-nanosleep.c: New file.
35828
35829         sleep: work around cygwin bug
35830         * lib/sleep.c (rpl_sleep): Work around the bug.
35831         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35832         (gl_PREREQ_SLEEP): Delete unused macro.
35833         * modules/sleep (Depends-on): Add verify.
35834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35835         * modules/unistd (Makefile.am): Substitute witness.
35836         * lib/unistd.in.h (sleep): Update prototype.
35837         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35838         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35839         * modules/sleep-tests (Depends-on): Check for alarm.
35840
35841 2009-11-20  Jim Meyering  <meyering@redhat.com>
35842
35843         maint.mk: improve sc_prohibit_magic_number_exit
35844         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35845         so it does not match uses like System.exit(1).
35846         Add comments showing how to correct all offenders.
35847
35848 2009-11-19  Eric Blake  <ebb9@byu.net>
35849
35850         xalloc-die-tests: add missing library
35851         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35852
35853         test-xvasprintf: silence compiler warnings
35854         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35855         empty string from gcc.
35856
35857 2009-11-19  Jim Meyering  <meyering@redhat.com>
35858
35859         xfreopen: new module, from coreutils
35860         * modules/xfreopen: New module.
35861         * lib/xfreopen.c: New file.
35862         * lib/xfreopen.h: New file.
35863         * MODULES.html.sh (File stream based Input/Output"): Add it.
35864
35865 2009-11-19  Eric Blake  <ebb9@byu.net>
35866
35867         manywarnings: depend on warnings
35868         * modules/manywarnings (Depends-on): Add warnings.
35869
35870         build: avoid compiler warnings
35871         * lib/select.c (rpl_select): Delete unused variable.
35872         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35873
35874 2009-11-18  Eric Blake  <ebb9@byu.net>
35875
35876         tests: avoid false negative with --with-packager
35877         * tests/test-version-etc.sh: Discard packager information.
35878         * tests/test-argp-version-etc-1.sh: Likewise.
35879         Reported by Mike Frysinger.
35880
35881         utimens: fix regression on Solaris
35882         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35883         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35884         can only change fd timestamps via futimesat.  Instead, use an
35885         additional witness macro to avoid BSD bug.
35886         Reported by Jim Meyering.
35887
35888 2009-11-17  Eric Blake  <ebb9@byu.net>
35889
35890         usleep: use it to simplify tests
35891         * modules/stat-time-tests (Depends-on): Add usleep.
35892         (configure.ac): Drop usleep check.
35893         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35894         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35895         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35896         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35897         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35898         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35899         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35900         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35901         Likewise.
35902         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35903         * tests/test-lchown.h (nap): Likewise.
35904         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35905         * tests/test-stat-time.c (nap): Likewise.
35906         * tests/test-utimens-common.h (nap): Update comments.
35907
35908         usleep: new module
35909         * modules/usleep: New file.
35910         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35911         * lib/usleep.c (usleep): Likewise.
35912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35913         * modules/unistd (Makefile.am): Substitute witnesses.
35914         * lib/unistd.in.h (usleep): Add declaration.
35915         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35916         * MODULES.html.sh (Date and time): Likewise.
35917         * modules/usleep-tests (Depends-on): New test.
35918         * tests/test-usleep.c: New file.
35919
35920         chown: work around OpenBSD bug
35921         * lib/chown.c (rpl_chown): Work around the bug.
35922         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35923         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35924         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35925         * modules/chown (Depends-on): Add stdbool.
35926         * modules/lchown (Depends-on): Likewise.
35927         * doc/posix-functions/chown.texi (chown): Document the bug.
35928         * doc/posix-functions/lchown.texi (lchown): Likewise.
35929         * tests/test-lchown.h (test_chown): Relax test.
35930
35931         mkstemp: avoid conflict with C++ keyword template
35932         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35933         * lib/mkostemp.c (mkostemp): Likewise.
35934         * lib/mkostemps.c (mkostemps): Likewise.
35935         * lib/mkstemp.c (mkstemp): Likewise.
35936         * lib/mkstemps.c (mkstemps): Likewise.
35937
35938         xalloc-die-tests: optimize
35939         * tests/test-xalloc-die.sh: Reduce number of processes.
35940
35941 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35942
35943         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35944         patch from ludo@gnu.org (Ludovic Courtès).
35945
35946 2009-11-17  Jim Meyering  <meyering@redhat.com>
35947
35948         version-etc: use proper license string
35949         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35950         * modules/version-etc-fsf: Likewise.
35951
35952 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35953
35954         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35955         printed to stdout.  Deal with EOL differences.
35956
35957 2009-11-17  Eric Blake  <ebb9@byu.net>
35958
35959         unsetenv: work around Solaris bug
35960         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35961         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35962         Reported by Jim Meyering.
35963
35964         vasnprintf: avoid compiler warnings
35965         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35966         variables.
35967         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35968
35969 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35970
35971         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35972         settings since xalloc-die is no longer the self test,
35973         xalloc-die.sh is.
35974
35975 2009-11-17  Jim Meyering  <meyering@redhat.com>
35976
35977         test-xalloc-die.sh: make the code agree with the commit log
35978         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35979         at the end, just in case you happen to have a test-xalloc-die
35980         program in some other PATH directory.
35981
35982         test-xalloc-die.sh: fix a portability bug
35983         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35984         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35985         Otherwise, argv[0] (as often seen in diagnostics) would be too
35986         system-dependent, sometimes with, and sometimes without the leading "./".
35987
35988         version-etc-fsf: relax license to LGPLv3+
35989         * modules/version-etc-fsf (License): Relax license.
35990
35991 2009-11-16  Eric Blake  <ebb9@byu.net>
35992
35993         xalloc-die-tests: avoid printing null pointer
35994         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35995         shell script.
35996         * tests/test-xalloc-die.c (program_name): Declare.
35997         * tests/test-xalloc-die.sh (tmpfiles): New file.
35998
35999         setenv, unsetenv: work around various bugs
36000         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
36001         (setenv) [HAVE_SETENV]: Work around bugs.
36002         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
36003         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
36004         for bugs.
36005         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
36006         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
36007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
36008         * modules/stdlib (Makefile.am): Update substitutions.
36009         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
36010         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
36011         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36012         * modules/setenv-tests: New test.
36013         * modules/unsetenv-tests: Likewise.
36014         * tests/test-setenv.c: New file.
36015         * tests/test-unsetenv.c: Likewise.
36016
36017 2009-11-16  Jim Meyering  <meyering@redhat.com>
36018
36019         version-etc: relax license to LGPLv3+
36020         * modules/version-etc (License): Relax license.
36021
36022         better AC_REQUIRE expanded-before-required-warning avoidance
36023         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
36024         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
36025         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
36026         which is no longer needed.
36027
36028 2009-11-16  Eric Blake  <ebb9@byu.net>
36029
36030         test-freading: clean up temporary file
36031         * tests/test-freading.c (main): Remove file on success, and use
36032         ASSERT more liberally.
36033         Reported by Jim Meyering.
36034
36035 2009-11-16  Jim Meyering  <meyering@redhat.com>
36036
36037         avoid new AC_REQUIRE expanded-before-required warnings
36038         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
36039         merely using it.
36040         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
36041         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
36042
36043 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36044
36045         * tests/test-xalloc-die.c: New file.
36046         * modules/xalloc-die-tests: New file.
36047         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
36048         XFAIL_TESTS so it can be appended by modules.
36049
36050 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36051
36052         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
36053         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
36054
36055 2009-11-14  Eric Blake  <ebb9@byu.net>
36056
36057         fnmatch: avoid compiler warning
36058         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
36059         to silence compiler warning about mismatch signedness in ?:.
36060         Reported by Robert Millan.
36061
36062         intprops: add double-inclusion guard
36063         * lib/intprops.h: Allow idempotent includes.
36064         Suggested by Bruce Korb.
36065
36066         openat: detect Solaris fchownat bug
36067         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
36068         penalizing glibc chownat when only lchownat is broken.
36069         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
36070         trailing slash bugs.
36071         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
36072         * modules/openat-tests (Files): Include more files.
36073         (Depends-on): Add mgetgroups, sleep, stat-time.
36074         (configure.ac): Add additional checks.
36075         (Makefile.am): Build new test.
36076         * tests/test-fchownat.c: New file.
36077
36078         lchown: detect Solaris and FreeBSD bug
36079         * lib/lchown.c (rpl_lchown): Work around bug.
36080         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
36081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36082         * modules/unistd (Makefile.am): Populate it.
36083         * lib/unistd.in.h (lchown): Update declaration.
36084         * doc/posix-functions/lchown.texi (lchown): Document the bug.
36085         * modules/lchown-tests: New file.
36086         * tests/test-lchown.h (test_lchown): Likewise.
36087         * tests/test-lchown.c (main): Likewise.
36088
36089         chown: detect Solaris and FreeBSD bug
36090         * lib/chown.c (rpl_chown): Work around bug.
36091         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
36092         (gl_PREREQ_CHOWN): Delete.
36093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36094         * modules/unistd (Makefile.am): Populate it.
36095         * lib/unistd.in.h (chown): Update declaration.
36096         * lib/lchown.c (chown): Update client.
36097         * modules/lchown (Depends-on): Add lstat.
36098         * doc/posix-functions/chown.texi (chown): Document the bug.
36099         * doc/posix-functions/getgroups.texi (getgroups): Document
36100         getgroups pitfall.
36101         * modules/chown-tests: New file.
36102         * tests/test-chown.h (test_chown): Likewise.
36103         * tests/test-chown.c (main): Likewise.
36104
36105 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
36106
36107         gnulib-tool: correctly detect absence of m4 directories
36108         * gnulib-tool: Avoid extra newline on data passed to wc -l.
36109
36110 2009-11-14  Jim Meyering  <meyering@redhat.com>
36111
36112         maint.mk: Prohibit inclusion of "xalloc.h" without use.
36113         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36114
36115 2009-11-14  John W. Eaton  <jwe@gnu.org>
36116
36117         strftime.h: wrap funtion declaration in extern "C" block
36118         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
36119
36120 2009-11-13  Eric Blake  <ebb9@byu.net>
36121
36122         getgroups: avoid compiler warning
36123         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
36124
36125         getgroups: work around FreeBSD bug
36126         * lib/getgroups.c (rpl_getgroups): Work around the bug.
36127         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
36128         * doc/posix-functions/getgroups.texi (getgroups): Document it.
36129         * tests/test-getgroups.c (main): Fix buffer overrun.
36130
36131         getgroups: avoid compilation failure
36132         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
36133         * modules/getgroups (Depends-on): Add stdint.
36134
36135 2009-11-13  Jim Meyering  <meyering@redhat.com>
36136
36137         test-getgroups: avoid compilation failure
36138         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
36139
36140 2009-11-13  Eric Blake  <ebb9@byu.net>
36141
36142         mgetgroups: new module, taken from coreutils
36143         * modules/mgetgroups: New file.
36144         * lib/mgetgroups.h: Likewise.
36145         * lib/mgetgroups.c (mgetgroups): Likewise.
36146         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
36147         * MODULES.html.sh (Users and groups): Mention it.
36148
36149         getgroups: don't expose GETGROUPS_T to user
36150         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
36151         an element at a time if GETGROUPS_T is wrong size.
36152         * lib/getugroups.h (getugroups): Change signature.
36153         * lib/unistd.in.h (getgroups): Likewise.
36154         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
36155         signature needs fixing.
36156         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
36157         AC_TYPE_GETGROUPS.
36158         * modules/group-member (Depends-on): Add getgroups.
36159         * lib/group-member.c (group_info, get_group_info): Use gid_t.
36160         (group_member): Rely on getgroups replacement.
36161         * lib/getugroups.c (getugroups): Use gid_t.
36162         * tests/test-getgroups.c (main): Likewise.
36163         * NEWS: Mention the signature change.
36164         * doc/posix-functions/getgroups.texi (getgroups): Mention the
36165         problem with signature.
36166         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
36167         GETGROUPS_T is still useful for setgroups.
36168
36169         getgroups, getugroups: provide stubs for mingw
36170         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
36171         * lib/getugroups.c (getugroups): Likewise.
36172         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
36173         function.  Modernize replacement scheme.
36174         (gl_PREREQ_GETGROUPS): Delete.
36175         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
36176         * modules/getgroups (configure.ac): Declare witness.
36177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36178         * modules/unistd (Depends-on): Substitute witness.
36179         * lib/unistd.in.h (getgroups): Declare replacement.
36180
36181         getgroups: avoid calling exit
36182         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
36183         drop xalloc.
36184         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
36185         dependencies.
36186         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
36187         exiting, in the rare case of malloc failure.
36188
36189         getgroups: fix logic error
36190         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
36191         has more than 20 groups.
36192         * modules/getgroups-tests: New test.
36193         * tests/test-getgroups.c: New file.
36194
36195 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36196
36197         * tests/test-base64.c: Improve.
36198
36199 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36200
36201         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
36202         Blake <ebb9@byu.net>.
36203
36204 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36205
36206         * tests/test-xvasprintf.c: Add %s%s related checks.
36207
36208 2009-11-12  Eric Blake  <ebb9@byu.net>
36209
36210         version-etc: match standards.texi style
36211         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
36212         and use <> only for URLs.
36213
36214 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
36215
36216         fts: do not fail on a submount during traversal
36217         * lib/fts.c (fts_build): Read the stat info again after opening
36218         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
36219         Original report at http://bugzilla.redhat.com/501848.
36220
36221 2009-11-12  Jim Meyering  <meyering@redhat.com>
36222
36223         bootstrap: sync from coreutils
36224         * build-aux/bootstrap (bootstrap_epilogue): New function.
36225         Use git_modules_config in one more place.  This make bootstrap's
36226         --gnulib-srcdir option more useful for testing.
36227
36228         bootstrap: generalize autoheader check
36229         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36230         AC_CONFIG_HEADERS.
36231
36232 2009-11-11  Eric Blake  <ebb9@byu.net>
36233
36234         mkfifoat: use new modules for Solaris and BSD bugs
36235         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36236         * lib/mkfifoat.c (mknodat): Split...
36237         * lib/mknodat.c (mknodat): ...into new file.
36238         * modules/mkfifoat (Files): Ship new file.
36239         (Depends-on): Add mkfifo, mknod.
36240         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36241         (Depends-on): Add symlink.
36242         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36243         redundant with test_mkfifo.h.
36244         (do_mkfifoat, do_mknodat): New helpers.
36245
36246         mknod: new module
36247         * modules/mknod: New file.
36248         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36249         * lib/mknod.c (mknod): Likewise.
36250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36251         defaults.
36252         * modules/sys_stat (Makefile.am): Substitute them.
36253         * lib/sys_stat.in.h (mknod): Declare replacement.
36254         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36255         Document it.
36256         * doc/posix-functions/mknod.texi (mknod): Likewise.
36257         * modules/mknod-tests: New test.
36258         * tests/test-mknod.c: Likewise.
36259
36260         mkfifo: new module
36261         * modules/mkfifo: New file.
36262         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36263         * lib/mkfifo.c (mkfifo): Likewise.
36264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36265         defaults.
36266         * modules/sys_stat (Makefile.am): Substitute them.
36267         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36268         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36269         Document it.
36270         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36271         * modules/mkfifo-tests: New test.
36272         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36273         from test-mkfifoat.c.
36274         * tests/test-mkfifo.c: New file.
36275
36276         readlink: detect FreeBSD bug
36277         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36278         slash on symlink.
36279         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36280         * tests/test-readlink.h (test_readlink): Enhance test.
36281
36282         symlink: detect FreeBSD bug
36283         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36284         slash on symlink.
36285         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36286         * tests/test-symlink.h (test_symlink): Enhance test.
36287
36288 2009-11-10  Eric Blake  <ebb9@byu.net>
36289
36290         link: detect FreeBSD bug
36291         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36292         symlink.
36293         * doc/posix-functions/link.texi (link): Document the bug.
36294         * tests/test-link.h (test_link): Enhance test.
36295         * tests/test-linkat.c (main): Update caller.
36296
36297         unlink, remove: detect FreeBSD bug
36298         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36299         slash on symlink.
36300         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36301         * doc/posix-functions/remove.texi (remove): Likewise.
36302         * tests/test-unlink.h (test_unlink): Enhance test.
36303         * tests/test-remove.c (main): Likewise.
36304
36305 2009-11-09  Eric Blake  <ebb9@byu.net>
36306
36307         rename: detect FreeBSD bug
36308         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36309         slash on symlink.
36310         * modules/renameat-tests (Depends-on): Add filenamecat.
36311         * tests/test-rename.h (test_rename): Allow one more errno.
36312         * tests/test-renameat.c (main): Likewise.
36313         * doc/posix-functions/rename.texi (rename): Document the bug.
36314
36315         open: detect FreeBSD bug
36316         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36317         symlink.
36318         * doc/posix-functions/open.texi (open): Document the bug.
36319         * doc/posix-functions/utimes.texi (utimes): Likewise.
36320         * tests/test-open.h (test_open): Add parameters, and test symlink
36321         handling.
36322         * tests/test-open.c (main): Adjust caller.
36323         * tests/test-fcntl-safer.c (main): Likewise.
36324         * modules/open-tests (Depends-on): Add stdbool, symlink.
36325         * modules/fcntl-safer-tests (Depends-on): Likewise.
36326         * tests/test-openat.c (main): Add test-open tests.
36327
36328         stat: detect FreeBSD bug
36329         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36330         symlink.
36331         * doc/posix-functions/stat.texi (stat): Document the bug.
36332         * tests/test-stat.h (test_stat_func): Add argument.
36333         * tests/test-stat.c (main): Adjust caller.
36334         * tests/test-fstatat.c (main): Likewise.
36335         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36336         Reported by Jim Meyering.
36337
36338 2009-11-09  James Youngman  <jay@gnu.org>
36339
36340         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36341         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36342
36343 2009-11-08  Jim Meyering  <meyering@redhat.com>
36344
36345         utimens: remove invalid futimesat call
36346         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36347         It used the file descriptor of the target file as the DIR_FD
36348         parameter and NULL as the file name.  That caused failure with
36349         errno == EFAULT on FreeBSD-8.0-rc2
36350
36351 2009-11-07  Eric Blake  <ebb9@byu.net>
36352
36353         fflush, freadseek: use fseeko, not fseek
36354         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36355         (clear_ungetc_buffer): Avoid potential problems on large files.
36356         * lib/freadseek.c (freadseek): Likewise.
36357         * modules/freadseek (Depends-on): Add fseeko.
36358         * modules/fseek (configure.ac): Set a witness.
36359         * tests/test-fflush.c (main): Use fseeko.
36360         * tests/test-fpurge.c (fseek): Disable link warning.
36361         * tests/test-freadable.c (fseek): Likewise.
36362         * tests/test-freading.c (fseek): Likewise.
36363         * tests/test-fseeko.c (fseek): Likewise.
36364         * tests/test-ftell.c (fseek): Likewise.
36365         * tests/test-ftello.c (fseek): Likewise.
36366         * tests/test-fwritable.c (fseek): Likewise.
36367         * tests/test-fwriting.c (fseek): Likewise.
36368
36369 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36370
36371         * modules/memchr (Depends-on): Drop getpagesize dependency.
36372
36373 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36374
36375         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36376         Reported by Ludovic Courtès.
36377         * build-aux/pmccabe2html: Improve example usage.
36378         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36379
36380 2009-11-06  Jim Meyering  <meyering@redhat.com>
36381
36382         do-release-commit-and-tag: New module.
36383         Automate the release-commit and tag process.
36384         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36385         * modules/do-release-commit-and-tag: New file.
36386         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36387
36388 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36389
36390         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36391         because test-select.c uses inet_pton.
36392
36393 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36394
36395         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36396         GETADDRINFO_LIB.  Bump serial number.
36397         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36398         Suggested by Eric Blake <ebb9@byu.net>.
36399
36400 2009-11-05  Eric Blake  <ebb9@byu.net>
36401
36402         strtod: detect darwin bug
36403         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36404         Reported by Leo Davis.
36405
36406         freopen-safer: new module
36407         * modules/freopen-safer: New module.
36408         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36409         * lib/freopen-safer.c (freopen_safer): New file.
36410         * lib/stdio-safer.h (freopen_safer): New declaration.
36411         * lib/stdio--.h (freopen): New override.
36412         * MODULES.html.sh (File stream based Input/Output): Mention it.
36413         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36414         freopen-safer module.
36415         * doc/posix-functions/stderr.texi (stderr): Likewise.
36416         * doc/posix-functions/stdin.texi (stdin): Likewise.
36417         * doc/posix-functions/stdout.texi (stdout): Likewise.
36418         * modules/freopen-safer-tests: New test.
36419         * tests/test-reopen-safer.c: New file.
36420
36421 2009-11-05  Jim Meyering  <meyering@redhat.com>
36422
36423         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36424         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36425
36426 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36427
36428         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36429
36430 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36431
36432         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36433
36434 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36435
36436         Fix link error.
36437         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36438         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36439
36440 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36441
36442         * tests/test-func.c: Also test value of __func__.
36443
36444 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36445
36446         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36447         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36448
36449 2009-11-05  Bruno Haible  <bruno@clisp.org>
36450
36451         Fix link error.
36452         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36453         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36454         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36455
36456 2009-11-05  Bruno Haible  <bruno@clisp.org>
36457
36458         Tests for module 'inet_pton'.
36459         * modules/inet_pton-tests: New file.
36460         * tests/test-inet_pton.c: New file.
36461
36462 2009-11-05  Bruno Haible  <bruno@clisp.org>
36463
36464         Tests for module 'inet_ntop'.
36465         * modules/inet_ntop-tests: New file.
36466         * tests/test-inet_ntop.c: New file.
36467
36468 2009-11-04  Eric Blake  <ebb9@byu.net>
36469
36470         stdlib-safer: wrap all mkstemp variants
36471         * modules/mkostemp (configure.ac): Set witness.
36472         * modules/mkostemps (configure.ac): Likewise.
36473         * modules/mkstemps (configure.ac): Likewise.
36474         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36475         (mkstemps_safer): Wrap more functions.
36476         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36477         wrapping.
36478         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36479         (mkstemps_safer): Implement the wrappers.
36480
36481         mkstemps, mkostemps: new modules
36482         * modules/mkostemps: New module.
36483         * modules/mkstemps: Likewise.
36484         * lib/mkostemps.c (mkostemps): New file.
36485         * lib/mkstemps.c (mkstemps): Likewise.
36486         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36487         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36489         * modules/stdlib (Makefile.am): Substitute them.
36490         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36491         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36492         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36493         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36494         * MODULES.html.sh (File system functions): Mention them.
36495
36496         tempname: resync from glibc
36497         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36498         same values for __GT_FILE as glibc.  Abort even when assertions
36499         are disabled.
36500         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36501         match its value otherwise.  Allow idempotent inclusion.
36502         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36503         * lib/mkostemp.c (mkostemp): Likewise.
36504         * lib/mkstemp.c (mkstemp): Likewise.
36505         * lib/tmpfile.c (tmpfile): Likewise.
36506         * NEWS: Document this.
36507
36508         utimens: fix use of futimens on older Linux
36509         * lib/utimens.c (fdutimens): Use updated, rather than original,
36510         timespec to avoid bug in older Linux kernel.
36511         Reported by Simon Josefsson.
36512
36513 2009-11-04  Bruno Haible  <bruno@clisp.org>
36514
36515         Make num_processors more flexible and consistent.
36516         * lib/nproc.h (enum nproc_query): New type.
36517         (num_processors): Add a 'query' argument.
36518         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36519         (num_processors): Add a 'query' argument. Test the value of the
36520         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36521         mingw, count the number of CPUs available for the current process.
36522         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36523         Check for sched_getaffinity and sched_getaffinity_np.
36524         * modules/nproc (Depends-on): Add c-ctype, extensions.
36525         * NEWS: Mention the change.
36526
36527 2009-11-03  Bruno Haible  <bruno@clisp.org>
36528
36529         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36530
36531 2009-11-03  Jim Meyering  <meyering@redhat.com>
36532
36533         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36534         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36535         if it is defined.
36536
36537 2009-11-02  Eric Blake  <ebb9@byu.net>
36538
36539         mktime, timegm: share common declaration
36540         * lib/mktime-internal.h: New file.
36541         * lib/mktime.c: Use it rather than open-coding a declaration.
36542         * lib/timegm.c: Likewise.
36543         * modules/mktime (Files): Ship it.
36544         * modules/timegm (Files): Likewise.
36545         Suggested by Bruno Haible.
36546
36547         test-update-copyright: update test to match script changes
36548         * tests/test-update-copyright.sh: Avoid hard-coding perl
36549         location.  Don't update *.bak created by earlier runs.
36550
36551 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36552             Simon Josefsson  <simon@josefsson.org>
36553             Bruno Haible  <bruno@clisp.org>
36554
36555         Fix link error on Solaris 8.
36556         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36557         also in libnsl. Define also INET_PTON_LIB.
36558         * modules/inet_pton (Link): New section.
36559
36560 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36561             Bruno Haible  <bruno@clisp.org>
36562
36563         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36564         * modules/inet_ntop (Link): New section.
36565         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36566
36567 2009-11-02  Eric Blake  <ebb9@byu.net>
36568
36569         maint: avoid compiler warnings in m4 macros
36570         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36572
36573 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36574
36575         * m4/pmccabe2html.m4: Remove file.
36576         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36577         function.  Change maintainer.
36578         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36579         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36580         Courtès).
36581
36582 2009-10-31  Eric Blake  <ebb9@byu.net>
36583
36584         fseeko: fix m4 regression
36585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36586         regression from 2009-10-27.
36587         Reported by Ralf Wildenhues.
36588
36589 2009-10-31  Jim Meyering  <meyering@redhat.com>
36590
36591         inttostr: aesthetics and improved (compile-time) safety
36592         Define inttype_is_signed rather than inttype_is_unsigned,
36593         since the sole use is via "#if inttype_is_signed".
36594         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36595         inttype_is_unsigned.
36596         * lib/offtostr.c (inttype_is_signed): Likewise.
36597         * lib/uinttostr.c (inttype_is_signed): Likewise.
36598         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36599         * lib/inttostr.c (inttostr): Use verify to cross-check the
36600         inttype_is_signed value and the signedness of the actual type.
36601         * modules/inttostr (Depends-on): Add verify.
36602
36603 2009-10-30  Eric Blake  <ebb9@byu.net>
36604
36605         build: avoid compiler warnings
36606         * lib/fchmodat.c (lchmod): Mark unused variables.
36607         * lib/getopt.c (_getopt_initialize): Likewise.
36608         * lib/mktime.c (__mktime_internal): Provide prototype.
36609         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36610         older gcc that do not understand #pragma GCC diagnostic.
36611         * lib/uinttostr.c (inttype_is_unsigned): Define.
36612         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36613
36614 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36615
36616         stat: fix compilation on AIX
36617         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36618         only see struct stat64.
36619
36620 2009-10-30  Eric Blake  <ebb9@byu.net>
36621
36622         exclude: make more robust
36623         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36624         rather than masking a coding bug.
36625         Suggested by Bruno Haible.
36626
36627 2009-10-30  Jim Meyering  <meyering@redhat.com>
36628
36629         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36630         Rather than putting #!/usr/bin/perl on the first line,
36631         start with a variant of what's recommended by "man perlrun" that
36632         invokes the first "perl" program from your shell's search path.
36633         * build-aux/gitlog-to-changelog: Replace #!... as above.
36634         Add a "Local Variables" perl mode setting.
36635         Prompted by a patch from Ludovic Courtès.
36636         Improved by Eric Blake.
36637         * build-aux/useless-if-before-free: Likewise.
36638         * build-aux/announce-gen: Likewise.
36639         * build-aux/update-copyright: Likewise.
36640
36641 2009-10-29  Eric Blake  <ebb9@byu.net>
36642
36643         filenamecat-lgpl: adjust clients
36644         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36645         filenamecat.
36646         * modules/renameat (Depends-on): Likewise.
36647
36648         filenamecat: split into filenamecat-lgpl
36649         * modules/filenamecat-lgpl: New module.
36650         * modules/filenamecat (Files): Move library-safe files into
36651         filenamecat-lgpl.
36652         (Depends-on): Add filenamecat-lgpl.
36653         (configure.ac): Declare witness.
36654         * lib/filenamecat.h (file_name_concat): Only declare when using
36655         GPL module.
36656         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36657         Move...
36658         * lib/filenamecat-lgpl.c: ...into new file.
36659         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36660         (gl_FILE_NAME_CONCAT): Use it.
36661         * MODULES.html.sh (File system functions): Mention new module.
36662
36663         argp: avoid memory leak
36664         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36665         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36666         base_name, since the latter malloc()s and can call exit().
36667         Leak introduced 2006-07-03.
36668
36669         dirname-lgpl: adjust clients that don't need full dirname
36670         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36671         * modules/filenamecat (Depends-on): Likewise.
36672         * modules/linkat (Depends-on): Likewise.
36673         * modules/mkancesdirs (Depends-on): Likewise.
36674         * modules/mkdir (Depends-on): Likewise.
36675         * modules/openat (Depends-on): Likewise.
36676         * modules/savewd (Depends-on): Likewise.
36677         * modules/rename (Depends-on): Likewise.
36678         (License): Relax license.
36679         * modules/mkdir-tests (Depends-on): Drop progname.
36680         (Makefile.am): Delete unneeded LDADD.
36681         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36682
36683         dirname: split into dirname-lgpl
36684         * modules/dirname-lgpl: New module.
36685         * modules/dirname (Files): Move library-safe files into
36686         dirname-lgpl.
36687         (Depends-on): Add dirname-lgpl.
36688         (configure.ac): Declare witness.
36689         * modules/double-slash-root (License): Relax license.
36690         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36691         module.
36692         * lib/dirname.c (dir_len, mdir_name): Move...
36693         * lib/dirname-lgpl.c: ...into new file.
36694         * lib/basename.c (last_component, base_len): Move...
36695         * lib/basename-lgpl.c: ...into new file.
36696         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36697         (gl_DIRNAME): Use it.
36698         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36699         Mention new module.
36700         * modules/dirname-tests (Depends-on): Add progname.
36701         * tests/test-dirname.c (program_name): Delete.
36702
36703         mkdir: make safe for libraries
36704         * modules/mkdir (Depends-on): Drop xalloc.
36705         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36706         exit.
36707
36708         tests: avoid some compiler warnings
36709         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36710         literals.
36711         * tests/test-memchr.c (main): Avoid type mismatch.
36712         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36713         * tests/test-base64.c (main): Likewise.
36714         * tests/test-getdelim.c (main): Likewise.
36715         * tests/test-gethostname.c (main): Likewise.
36716         * tests/test-getline.c (main): Likewise.
36717         * tests/test-netinet_in.c (main): Likewise.
36718         * tests/test-select.c (open_server_socket, main): Likewise.
36719         * tests/test-select-stdin.c (main): Likewise.
36720         * tests/test-sockets.c (main): Likewise.
36721         * tests/test-strsignal.c (main): Likewise.
36722         * tests/test-sys_select.c (main): Likewise.
36723         * tests/test-sys_socket.c (main): Likewise.
36724         * tests/test-u64.c (main): Likewise.
36725         * tests/test-xfprintf-posix.c (main): Likewise.
36726         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36727
36728         sockets: avoid compiler warning
36729         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36730
36731         maint: detect usage(1) and other suspicious exits
36732         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36733
36734 2009-10-29  Jim Meyering  <meyering@redhat.com>
36735
36736         timespec: long-to-int truncation could make timespec_cmp malfunction
36737         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36738         a multiple of 2^32 nanoseconds as no difference.
36739
36740 2009-10-28  Jim Meyering  <meyering@redhat.com>
36741
36742         fprintftime: wrap macro code argument in "do {...} while(0)"
36743         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36744         cpy macro must be a statement that can be followed by a semicolon.
36745         Now that the else clause contains a comment and is hence longer
36746         than one line, I require curly braces.  That in turn requires
36747         that we wrap this code block in the standard do...while(0).
36748
36749         fprintftime: remove stray semicolon from previous change
36750         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36751
36752         fprintftime: avoid a warning about ignored fwrite return value
36753         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36754         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36755         that is unsafe.
36756         * modules/fprintftime (Depends-on): Add ignore-value.
36757
36758         exclude: avoid an unwarranted warning
36759         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36760
36761 2009-10-27  Eric Blake  <ebb9@byu.net>
36762
36763         fseek: avoid compilation failure when fflush is replaced
36764         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36765         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36766         module is in use.
36767         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36768         module is not in use; since REPLACE_FSEEK worked otherwise.
36769         (GNULIB_FTELLO): Likewise for ftell.
36770         Reported by Ian Beckwith and others.
36771
36772 2009-10-27  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36775         Reported by Jim Meyering.
36776
36777 2009-10-27  Jim Meyering  <jim@meyering.net>
36778             Bruno Haible  <bruno@clisp.org>
36779
36780         Avoid warning despite dropping the return value of fwrite.
36781         * lib/unicodeio.c: Include ignore-value.h.
36782         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36783         * modules/unicodeio (Depends-on): Add ignore-value.
36784
36785 2009-10-26  Eric Blake  <ebb9@byu.net>
36786
36787         areadlinkat: fix fallback path
36788         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36789         pointer and zero.
36790
36791 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36792
36793         Use a better IO block size for modern systems
36794         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36795         * lib/md2.c: Likewise.
36796         * lib/md4.c: Likewise.
36797         * lib/md5.c: Likewise.
36798         * lib/sha1.c: Likewise.
36799         * lib/sha256.c: Likewise.
36800         * lib/sha512.c: Likewise.
36801
36802 2009-10-22  Eric Blake  <ebb9@byu.net>
36803
36804         tests: avoid several compiler warnings
36805         * tests/test-getcwd.c (main): Avoid buffer underflow.
36806         * tests/test-getdate.c (main): String literals are not safe with
36807         putenv, so use setenv.  Declare unused argument.
36808         * modules/getdate-tests (Depends-on): Add setenv.
36809         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36810         problems with string literals in char *.
36811         * tests/test-hash.c (main): Avoid shadowing declaration.
36812         (insert_new): Treat string literals as char const *.
36813         * tests/test-getopt.h (test_getopt): Likewise.
36814         (getopt_loop): Alter types to minimize casting elsewhere.
36815         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36816         (test_getopt_long_posix): Likewise.
36817         (do_getopt_long): Add wrapper to minimize casting.
36818         * tests/test-atexit.c (clear_temp_file): Use void.
36819         * tests/test-areadlink-with-size.c (main): Declare unused
36820         arguments.
36821         * tests/test-areadlink.c (main): Likewise.
36822         * tests/test-areadlinkat-with-size.c (main): Likewise.
36823         * tests/test-areadlinkat.c (main): Likewise.
36824         * tests/test-canonicalize-lgpl.c (main): Likewise.
36825         * tests/test-canonicalize.c (main): Likewise.
36826         * tests/test-dirent-safer.c (main): Likewise.
36827         * tests/test-dirname.c (main): Likewise.
36828         * tests/test-dup2.c (main): Likewise.
36829         * tests/test-fchdir.c (main): Likewise.
36830         * tests/test-fcntl-h.c (main): Likewise.
36831         * tests/test-fcntl-safer.c (main): Likewise.
36832         * tests/test-fdopendir.c (main): Likewise.
36833         * tests/test-fdutimensat.c (main): Likewise.
36834         * tests/test-fflush.c (main): Likewise.
36835         * tests/test-filenamecat.c (main): Likewise.
36836         * tests/test-filevercmp.c (main): Likewise.
36837         * tests/test-fopen-safer.c (main): Likewise.
36838         * tests/test-fopen.c (main): Likewise.
36839         * tests/test-fpending.c (main): Likewise.
36840         * tests/test-fpurge.c (main): Likewise.
36841         * tests/test-freading.c (main): Likewise.
36842         * tests/test-fstatat.c (main): Likewise.
36843         * tests/test-fsync.c (main): Likewise.
36844         * tests/test-futimens.c (main): Likewise.
36845         * tests/test-getndelim2.c (main): Likewise.
36846         * tests/test-gettimeofday.c (main): Likewise.
36847         * tests/test-getopt.c (main): Likewise.
36848         * tests/test-i-ring.c (main): Likewise.
36849         * tests/test-inttypes.c (main): Likewise.
36850         * tests/test-link.c (main): Likewise.
36851         * tests/test-lstat.c (main): Likewise.
36852         * tests/test-math.c (main): Likewise.
36853         * tests/test-md5.c (main): Likewise.
36854         * tests/test-memchr2.c (main): Likewise.
36855         * tests/test-memrchr.c (main): Likewise.
36856         * tests/test-mkdir.c (main): Likewise.
36857         * tests/test-mkdirat.c (main): Likewise.
36858         * tests/test-mkfifoat.c (main): Likewise.
36859         * tests/test-open.c (main): Likewise.
36860         * tests/test-openat-safer.c (main): Likewise.
36861         * tests/test-openat.c (main): Likewise.
36862         * tests/test-quotearg.c (main): Likewise.
36863         * tests/test-rawmemchr.c (main): Likewise.
36864         * tests/test-readlink.c (main): Likewise.
36865         * tests/test-remove.c (main): Likewise.
36866         * tests/test-rename.c (main): Likewise.
36867         * tests/test-renameat.c (main): Likewise.
36868         * tests/test-rmdir.c (main): Likewise.
36869         * tests/test-sha1.c (main): Likewise.
36870         * tests/test-signal.c (main): Likewise.
36871         * tests/test-sigaction.c (main): Likewise.
36872         * tests/test-stat.c (main): Likewise.
36873         * tests/test-stat-time.c (main): Likewise.
36874         * tests/test-stddef.c (main): Likewise.
36875         * tests/test-stdint.c (main): Likewise.
36876         * tests/test-stdio.c (main): Likewise.
36877         * tests/test-stdlib.c (main): Likewise.
36878         * tests/test-strchrnul.c (main): Likewise.
36879         * tests/test-strerror.c (main): Likewise.
36880         * tests/test-string.c (main): Likewise.
36881         * tests/test-strtod.c (main): Likewise.
36882         * tests/test-strverscmp.c (main): Likewise.
36883         * tests/test-symlink.c (main): Likewise.
36884         * tests/test-symlinkat.c (main): Likewise.
36885         * tests/test-sys_stat.c (main): Likewise.
36886         * tests/test-sys_time.c (main): Likewise.
36887         * tests/test-time.c (main): Likewise.
36888         * tests/test-unistd.c (main): Likewise.
36889         * tests/test-unlink.c (main): Likewise.
36890         * tests/test-unlinkat.c (main): Likewise.
36891         * tests/test-utimens.c (main): Likewise.
36892         * tests/test-utimensat.c (main): Likewise.
36893         * tests/test-version-etc.c (main): Likewise.
36894         * tests/test-wchar.c (main): Likewise.
36895         * tests/test-wctype.c (main): Likewise.
36896         * tests/test-xprintf-posix.c (main): Likewise.
36897         * tests/test-posixtm.c (main): Likewise.
36898         (STREQ): Delete unused macro.
36899         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36900         shadowed variables.
36901         * tests/test-memchr.c (main): Likewise.
36902
36903 2009-10-21  Eric Blake  <ebb9@byu.net>
36904
36905         areadlinkat: avoid failure on older glibc
36906         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36907         rather than mis-comparing 0 against FUNC_RESULT of char*.
36908
36909 2009-10-21  Bruno Haible  <bruno@clisp.org>
36910
36911         * modules/stpncpy (License): Relicense under LGPLv2+.
36912         Reported by David Lutterkort <lutter@redhat.com>.
36913
36914 2009-10-20  Eric Blake  <ebb9@byu.net>
36915
36916         utimensat: work around Solaris 9 bug
36917         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36918         has trailing slash bugs.
36919         * tests/test-lutimens.h (test_lutimens): Enhance test.
36920         * tests/test-utimens.h (test_utimens): Likewise.
36921         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36922         * doc/posix-functions/utimes.texi (utimes): Likewise.
36923         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36924         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36925         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36926         * doc/posix-functions/futimens.texi (futimens): Likewise.
36927
36928         fdutimensat: new module
36929         * modules/fdutimensat: New file.
36930         * lib/fdutimensat.c (fdutimensat): Likewise.
36931         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36932         * MODULES.html.sh (File system functions): Mention module.
36933         * modules/fdutimensat-tests: New test.
36934         * tests/test-fdutimensat.c: Likewise.
36935
36936         doc: regenerate INSTALL
36937         * doc/INSTALL: Reflect recent autoconf update.
36938         * doc/INSTALL.ISO: Likewise.
36939         * doc/INSTALL.UTF-8: Likewise.
36940
36941 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36942
36943         acl: warn if ACL support is not detected
36944         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36945
36946 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36947
36948         * lib/nproc.h: Add extern "C" block for C++.
36949
36950 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36951             Bruno Haible  <bruno@clisp.org>
36952
36953         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36954         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36955         * doc/posix-functions/isalpha.texi: Likewise.
36956         * doc/posix-functions/isblank.texi: Likewise.
36957         * doc/posix-functions/iscntrl.texi: Likewise.
36958         * doc/posix-functions/isdigit.texi: Likewise.
36959         * doc/posix-functions/isgraph.texi: Likewise.
36960         * doc/posix-functions/islower.texi: Likewise.
36961         * doc/posix-functions/isprint.texi: Likewise.
36962         * doc/posix-functions/ispunct.texi: Likewise.
36963         * doc/posix-functions/isspace.texi: Likewise.
36964         * doc/posix-functions/isupper.texi: Likewise.
36965         * doc/posix-functions/isxdigit.texi: Likewise.
36966
36967 2009-10-18  Bruno Haible  <bruno@clisp.org>
36968
36969         Tests for module 'isblank'.
36970         * modules/isblank-tests: New file.
36971         * tests/test-isblank.c: New file.
36972
36973         New module 'isblank'.
36974         * lib/isblank.c: New file.
36975         * m4/isblank.m4: New file.
36976         * modules/isblank: New file.
36977         * doc/posix-functions/isblank.texi: Mention the new module.
36978
36979 2009-10-18  Bruno Haible  <bruno@clisp.org>
36980
36981         New module 'ctype'.
36982         * lib/ctype.in.h: New file.
36983         * m4/ctype.m4: New file.
36984         * modules/ctype: New file.
36985         * doc/posix-headers/ctype.texi: Mention the new module.
36986
36987 2009-10-18  Jim Meyering  <meyering@redhat.com>
36988
36989         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36990         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36991         right after its initialization, rather than farther down.
36992         Keeping these in close proximity makes it easier to ensure
36993         that each such variable is initialized.  E.g.,
36994
36995             LIB_CLOCK_GETTIME=
36996             AC_SUBST([LIB_CLOCK_GETTIME])
36997
36998         This change also increments these serial numbers.
36999         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
37000         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37002
37003 2009-10-18  Bruno Haible  <bruno@clisp.org>
37004
37005         Don't let environment variables perturb build.
37006         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
37007         (gl_PREREQ_GETHRXTIME): ... not here.
37008
37009 2009-10-18  Bruno Haible  <bruno@clisp.org>
37010
37011         Avoid symlink attack in localcharset module.
37012         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
37013         (O_NOFOLLOW): Define fallback.
37014         (get_charset_aliases): Don't open the file if it is a symbolic link.
37015         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
37016         gl_FCNTL_H.
37017         (gl_FCNTL_H): Require it.
37018         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
37019         * modules/localcharset (Files): Add m4/fcntl_h.m4.
37020         Reported by Fergal Glynn <fglynn@veracode.com>.
37021
37022 2009-10-18  Bruno Haible  <bruno@clisp.org>
37023
37024         Implement nproc for mingw.
37025         * lib/nproc.c: Include <windows.h>
37026         (num_processors): On native Windows platforms, try GetSystemInfo.
37027
37028 2009-10-18  Bruno Haible  <bruno@clisp.org>
37029
37030         Implement nproc for IRIX.
37031         * lib/nproc.c: Include <sys/sysmp.h>.
37032         (num_processors): On IRIX systems, try sysmp.
37033         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
37034
37035 2009-10-18  Bruno Haible  <bruno@clisp.org>
37036
37037         Implement nproc for HP-UX.
37038         * lib/nproc.c: Include <sys/pstat.h>
37039         (num_processors): On HP-UX systems, try pstat_getdynamic.
37040         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
37041         pstat_getdynamic.
37042
37043 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
37044             Bruno Haible  <bruno@clisp.org>
37045
37046         Implement nproc for NetBSD, OpenBSD.
37047         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
37048         (ARRAY_SIZE): New macro.
37049         (num_processors): On BSD systems, try sysctl of HW_NCPU.
37050         * m4/nproc.m4: New file.
37051         * modules/nproc (Files): Add m4/nproc.m4.
37052         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
37053         (Makefile.am): Instead, augment lib_SOURCES.
37054
37055 2009-10-18  Bruno Haible  <bruno@clisp.org>
37056
37057         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
37058         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
37059         sys/param.h.
37060
37061 2009-10-16  Eric Blake  <ebb9@byu.net>
37062
37063         utimensat: new module
37064         * modules/utimensat: New file.
37065         * lib/utimensat.c (utimensat): Likewise.
37066         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37067         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
37068         so we can work around Linux bugs.
37069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37070         * modules/sys_stat (Makefile.am): Substitute them.
37071         * lib/sys_stat.in.h (utimensat): Declare it.
37072         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37073         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37074         * modules/utimensat-tests: New test.
37075         * tests/test-utimensat.c: Likewise.
37076
37077         utimens: let lutimens work on non-symlinks
37078         * lib/utimens.c (lutimens): Fall back to utimens rather than
37079         failing with ENOSYS, when file is not a symlink.
37080         (utimens): Reduce redirection.
37081         * tests/test-lutimens.h (test_lutimens): Update test to cover
37082         non-symlinks.
37083         * tests/test-utimens.h (test_utimens): Update test to cover
37084         symlinks.
37085         * tests/test-utimens.c (main): Update caller.
37086
37087         utimens: cache whether utimensat syscall works
37088         * lib/utimens.c (utimensat_works_really): New cache variable.
37089         (fdutimens, lutimens): Use it to avoid failing syscall.
37090
37091         test-stat-time, test-utimens: improve portability
37092         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
37093         ext4 on alpha, and for cygwin.
37094         * tests/test-utimens-common.h: New file.
37095         (nap): Factor delays into single function.
37096         * tests/test-lutimens.h (test_lutimens): Use new header.
37097         * tests/test-futimens.h (test_futimens): Likewise.
37098         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
37099         timestamps to occur from same machine, as was done previously for
37100         test_utimens.
37101         * modules/utimens-tests (Files): Ship new file.
37102         * modules/futimens-tests (Files): Likewise.
37103         Reported in part by Jim Meyering.
37104
37105         sys_stat: sort replacement declarations
37106         * lib/sys_stat.in.h: Sort declarations.
37107         * lib/futimens.c (futimens): Fix typo.
37108
37109 2009-10-15  Jim Meyering  <meyering@redhat.com>
37110
37111         don't let environment settings perturb build
37112         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
37113         could cause a configure-time and/or build-time malfunction.
37114         Typically, a configure-time function-in-library test is performed
37115         via code like this:
37116
37117           LIB_VAR=
37118           AC_SUBST([LIB_VAR])
37119           prefix_saved_LIBS=$LIBS
37120             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
37121                        [test "$ac_cv_search_FUNC" = "none required" ||
37122                         LIB_VAR=$ac_cv_search_FUNC])
37123           LIBS=$prefix_saved_LIBS
37124
37125         However, in each of the files affected by this change, the LIB_VAR=
37126         initialization was omitted.  Thus, when set in the environment, its
37127         value would propagate into generated Makefiles when FUNC is not found
37128         in LIB_NAME.
37129         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
37130         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37132
37133 2009-10-14  Eric Blake  <ebb9@byu.net>
37134
37135         fchdir: avoid infinite recursion in mingw
37136         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
37137         recursing.
37138
37139         test-stat-time: port to mingw
37140         * tests/test-stat-time.c (force_unlink): Return a value.
37141         (test_ctime) [W32]: Fix compilation error.
37142         (nap): Don't call usleep with too large an argument.  Use
37143         force_unlink.
37144         * doc/pastposix-functions/usleep.texi (usleep): Document the
37145         portability issue.
37146
37147 2009-10-13  Jim Meyering  <meyering@redhat.com>
37148
37149         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
37150         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
37151         * modules/pipe-filter-ii: Likewise.
37152         * modules/sys_socket-tests: Likewise.
37153         * modules/tsearch-tests: Likewise.
37154         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
37155         (check): Depend on it.
37156
37157 2009-10-12  Eric Blake  <ebb9@byu.net>
37158
37159         utimens-tests: port to NFS file systems
37160         * tests/test-utimens.h (test_utimens): Refactor utimecmp
37161         comparisons to avoid spurious failures from timestamp drift
37162         between NFS machines.
37163
37164 2009-10-12  Eric Blake  <ebb9@byu.net>
37165
37166         stat-time-tests: minor cleanups
37167         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
37168         * tests/test-stat-time.c (nap): Separate assignment from call.
37169         Suggested by Paolo Bonzini and Bruno Haible.
37170
37171         sys_stat: guarantee struct timespec
37172         * lib/sys_stat.in.h (includes): Always include <time.h>
37173         * modules/sys_stat (Depends-on): Add time.
37174         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
37175         mode_t permission values.
37176         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
37177         get at subsecond timestamps.
37178
37179 2009-10-10  Eric Blake  <ebb9@byu.net>
37180
37181         futimens: new module
37182         * modules/futimens: New file.
37183         * lib/futimens.c (futimens): Likewise.
37184         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
37185         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
37186         we can work around Linux bugs.
37187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37188         * modules/sys_stat (Makefile.am): Substitute them.
37189         * lib/sys_stat.in.h (futimens): Declare it.
37190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37191         * doc/posix-functions/futimens.texi (futimens): Likewise.
37192         * modules/futimens-tests: New test.
37193         * tests/test-futimens.c: Likewise.
37194
37195         utimens: introduce fdutimens
37196         * lib/utimens.h (fdutimens): New prototype.
37197         * lib/utimens.c (gl_futimens): Move guts...
37198         (fdutimens): ...to new interface.
37199         * tests/test-utimens.c (do_fdutimens): Use it.
37200
37201         utimens: add UTIME_NOW and UTIME_OMIT support
37202         * lib/utimens.c (validate_timespec, update_timespec): New helper
37203         functions.
37204         (gl_futimens, lutimens): Use them.
37205         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
37206         stdbool, sys_stat.
37207         (Link): Mention resulting library dependency.
37208         * modules/utimecmp (Link): Likewise.
37209         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
37210         (Makefile.am): Pick up library dependency.
37211         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
37212         definition.
37213         * tests/test-sys_stat.c: Test the definitions.
37214         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
37215         * NEWS: Document library dependency.
37216
37217         utimecmp: support symlink timestamps
37218         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
37219         hashing when possible.  Use pathconf when available.
37220         (SYSCALL_RESOLUTION): Recognize tighter resolution.
37221         * modules/utimecmp (Depends-on): Add lstat.
37222
37223         utimens: add lutimens interface
37224         * lib/utimens.c (lutimens): New function.
37225         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37226         * lib/utimens.h (lutimens): Declare new interface.
37227         * tests/test-utimens.c (main): Enhance test.
37228         * tests/test-lutimens.h (test_lutimens): New file.
37229         * modules/utimens-tests (Files): Distribute it.
37230         (Depends-on): Add symlink.
37231         (configure.ac): Check for usleep.
37232
37233         utimens: validate futimens usage
37234         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37235         fewer syscalls on failure later on.  Avoid compiler warning on
37236         mingw.
37237         * modules/utimens (Depends-on): Add dup2.
37238
37239         utimens: add test
37240         * modules/utimens-tests: New test.
37241         * tests/test-utimens.h: New file.
37242         * tests/test-futimens.h: Likewise.
37243         * tests/test-utimens.c: Likewise.
37244
37245         doc: mention timestamp portability issues
37246         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37247         instead.
37248         * doc/posix-functions/utime.texi (utime): Likewise.
37249         * doc/posix-functions/utimes.texi (utimes): Likewise.
37250         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37251         instead.
37252         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37253         module.
37254         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37255         Mention weakness with symlink timestamps.
37256         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37257         to utimensat/futimens instead.
37258         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37259
37260         test-dup2: enhance test
37261         * tests/test-dup2.c (main): Also check AT_FDCWD.
37262
37263         test-stat-time: avoid more spurious failures
37264         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37265         xfs; and avoid race if the two timestamps cross quantization edge.
37266
37267         relocatable: prefer 'file system' over 'filesystem'
37268         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37269         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37270         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37271         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37272         * lib/relocatable.c (compute_curr_prefix): Likewise.
37273
37274 2009-10-10  Jim Meyering  <meyering@redhat.com>
37275
37276         stat-time-tests: check for the usleep function
37277         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37278
37279 2009-10-10  Bruno Haible  <bruno@clisp.org>
37280
37281         * modules/xnanosleep: Put the Link section after the Include section.
37282
37283 2009-10-09  Eric Blake  <ebb9@byu.net>
37284
37285         dup2: work around FreeBSD 6.1 bug
37286         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37287         * doc/posix-functions/dup2.texi (dup2): Document it.
37288         Reported by Nelson H. F. Beebe and Jim Meyering.
37289
37290         test-stat-time: port to buggy NFS clients
37291         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37292         (test_ctime): Also skip test if mtime and ctime are skewed.
37293
37294         maint: prefer 'file system' over 'filesystem'
37295         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37296         * doc/posix-functions/lstat.texi (lstat): Likewise.
37297         * lib/file-has-acl.c (file_has_acl): Likewise.
37298         * lib/fwriteerror.c [TEST]: Likewise.
37299         * tests/test-areadlink.h (test_areadlink): Likewise.
37300         * tests/test-areadlinkat-with-size.c (main): Likewise.
37301         * tests/test-areadlinkat.c (main): Likewise.
37302         * tests/test-canonicalize-lgpl.c (main): Likewise.
37303         * tests/test-canonicalize.c (main): Likewise.
37304         * tests/test-fstatat.c (main): Likewise.
37305         * tests/test-linkat.c (main): Likewise.
37306         * tests/test-lstat.h (test_lstat_func): Likewise.
37307         * tests/test-mkdir.h (test_mkdir): Likewise.
37308         * tests/test-readlink.h (test_readlink): Likewise.
37309         * tests/test-remove.c (main): Likewise.
37310         * tests/test-rename.h (test_rename): Likewise.
37311         * tests/test-renameat.c (main): Likewise.
37312         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37313         * tests/test-symlink.h (test_symlink): Likewise.
37314         * tests/test-symlinkat.c (main): Likewise.
37315         * tests/test-unlink.h (test_unlink_func): Likewise.
37316         * tests/test-unlinkat.c (main): Likewise.
37317
37318         maint: make realtime library usage explicit
37319         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37320         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37321         * modules/settime (Link): Likewise.
37322         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37323
37324         test-stat-time: speed up execution
37325         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37326         warning on mingw.
37327         (nap): New helper function.
37328         (prepare_test): Use it to reduce sleep time.
37329         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37330         execution.
37331         * modules/stat-time-tests (configure.ac): Check for usleep.
37332
37333 2009-10-09  Jim Meyering  <meyering@redhat.com>
37334
37335         selinux-h: always use getfilecon wrappers
37336         * lib/getfilecon.c: New file.
37337         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37338         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37339         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37340         (fgetfilecon): Provide a stub.
37341         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37342         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37343         file unconditionally.
37344         When <selinux/selinux.h> is found, arrange to use wrappers.
37345         * modules/selinux-h (Files): Add getfilecon.c.
37346         (Makefile.am): Substitute include-next-related bits
37347         into the now-always-generated selinux/selinux.h file.
37348         * doc/glibc-functions/lgetfilecon.texi: New file.
37349         * doc/glibc-functions/fgetfilecon.texi: New file.
37350         * doc/glibc-functions/getfilecon.texi: New file.
37351         * doc/glibc-functions/getfilecon-desc.texi: New file.
37352         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37353         which to pull in the new files.
37354         * MODULES.html.sh (Misc): Add selinux-h.
37355
37356 2009-10-08  Jim Meyering  <meyering@redhat.com>
37357
37358         unistd: fix comment typo
37359         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37360
37361 2009-10-08  Eric Blake  <ebb9@byu.net>
37362
37363         areadlink: use SIZE_MAX consistently
37364         * modules/areadlink (Depends-on): Add stdint.
37365         * modules/areadlink-with-size (Depends-on): Likewise.
37366         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37367         gives NULL; drop sys/types, since unistd gives size_t; and add
37368         stdint for SIZE_MAX.
37369         (SIZE_MAX): Rely on headers.
37370         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37371         and add stdint.
37372         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37373         (SIZE_MAX): Likewise.
37374         (INITIAL_BUF_SIZE): Turn into enum.
37375         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37376
37377 2009-10-08  Jim Meyering  <meyering@redhat.com>
37378
37379         areadlinkat: avoid compilation failure
37380         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37381         Fix typo in comment.
37382
37383 2009-10-07  Eric Blake  <ebb9@byu.net>
37384
37385         areadlinkat-with-size: new module
37386         * modules/areadlinkat-with-size: New module.
37387         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37388         * lib/areadlink.h (areadlinkat): Declare it.
37389         * MODULES.html.sh (File system functions): Mention it.
37390         * modules/areadlinkat-with-size-tests: New test.
37391         * tests/test-areadlinkat-with-size.c: New file.
37392
37393         xreadlinkat: new module
37394         * modules/xreadlinkat: New module.
37395         * lib/xreadlinkat.c (xreadlinkat): New file.
37396         * lib/xreadlink.h (xreadlinkat): Declare it.
37397         * MODULES.html.sh (File system functions): Mention it.
37398
37399         areadlinkat: new module
37400         * lib/at-func.c (FUNC_FAIL): New define.
37401         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37402         * modules/areadlinkat: New module.
37403         * lib/linkat.c (areadlinkat): Move...
37404         * lib/areadlinkat.c (areadlinkat): ...to new file.
37405         * lib/areadlink.h (areadlinkat): Declare it.
37406         * modules/linkat (Depends-on): Add areadlinkat.
37407         * MODULES.html.sh (File system functions): Mention it.
37408         * modules/areadlinkat-tests: New test.
37409         * tests/test-areadlinkat.c: New file.
37410
37411         areadlink, areadlink-with-size: add tests
37412         * modules/areadlink-tests: New test.
37413         * modules/areadlink-with-size-tests: Likewise.
37414         * tests/test-areadlink.h: New file.
37415         * tests/test-areadlink.c: Likewise.
37416         * tests/test-areadlink-with-size.c: Likewise.
37417
37418         maint: minor cleanups
37419         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37420         _UNUSED_PARAMETER_ instead.
37421         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37422         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37423         * modules/linkat-tests (Files): Distribute test-link.h.
37424
37425         openat, utimens: whitespace cleanup
37426         * lib/openat.c: Prefer space throughout, rather than mix of 8
37427         spaces vs. tabs.
37428         * lib/at-func.c: Likewise.
37429         * lib/utimens.c: Likewise.
37430
37431         openat: avoid using wrong fd
37432         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37433         working directory chooses same fd.
37434         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37435
37436         mkdir, mkdirat: fix cygwin 1.5.x bug
37437         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37438         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37439         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37440         bug.
37441         (gl_PREREQ_MKDIR): Delete unused macro.
37442         * modules/mkdir (Files): Track file rename.
37443         (configure.ac): Update macro name.
37444         * modules/openat (Depends-on): Add mkdir.
37445         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37446
37447         mkdir, mkdirat: add tests
37448         * modules/mkdir-tests: New test.
37449         * tests/test-mkdir.h: New file.
37450         * tests/test-mkdir.c: Likewise.
37451         * tests/test-mkdirat.c: Likewise.
37452         * modules/openat-tests (Files): Add new files.
37453         (Makefile.am): Run new test.
37454
37455 2009-10-06  Eric Blake  <ebb9@byu.net>
37456
37457         doc: tweak *at function documentation
37458         * doc/posix-functions/faccessat.texi (faccessat): Mention
37459         known issue with replacement.
37460         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37461         * doc/posix-functions/linkat.texi (linkat): Likewise.
37462         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37463         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37464         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37465         * doc/posix-functions/renameat.texi (renameat): Likewise.
37466         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37467
37468         openat: fix GNU/Hurd bug in unlinkat
37469         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37470         broken.
37471         * doc/posix-functions/unlink.texi (unlink): Document this.
37472         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37473
37474         fdopendir: fix GNU/Hurd bug
37475         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37476         allowing non-directory fds.
37477         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37478         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37479         * modules/dirent (Makefile.am): Substitute it.
37480         * lib/dirent.in.h (fdopendir): Declare replacement.
37481         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37482         * tests/test-fdopendir.c (main): Test something other than
37483         /dev/null, since on Hurd that behaves like a directory.
37484
37485         test-symlink: port to GNU/Hurd
37486         * tests/test-symlink.h (test_symlink): Relax expected errno.
37487
37488         doc: tweak more cygwin information
37489         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37490         now compatible with glibc.
37491         * doc/posix-functions/getopt.texi (getopt): Likewise.
37492
37493         getopt-gnu: add another test
37494         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37495         guarantee behavior relied on by m4.
37496         * tests/test-getopt.c (main): Use it.
37497         * modules/getopt-posix-tests (Depends-on): Add setenv.
37498         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37499
37500         getopt: fix compilation on darwin
37501         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37502         include.
37503         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37504         Reported by Ludovic Courtès.
37505
37506 2009-10-06  Bruno Haible  <bruno@clisp.org>
37507
37508         * modules/size_max (Description): Discourage its use.
37509         Reported by Simon Josefsson.
37510
37511 2009-10-06  Jim Meyering  <meyering@redhat.com>
37512
37513         linkat: avoid compilation failure
37514         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37515
37516 2009-10-05  Eric Blake  <ebb9@byu.net>
37517
37518         linkat: support Linux 2.6.17
37519         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37520         linkat on Linux, but allow cache variable override.
37521         * lib/linkat.c (rpl_linkat): Define override.
37522         * modules/linkat (Depends-on): Add symlinkat.
37523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37524         * modules/unistd (Makefile.am): Substitute it.
37525         * lib/unistd.in.h (linkat): Declare replacement.
37526         Reported by Pádraig Brady.
37527
37528         quotearg: port test to systems with C.UTF-8 locale
37529         * tests/test-quotearg.c (struct result_strings): Add another
37530         member, differentiating between C.ASCII and C.UTF-8 handling.
37531         (compare_strings): Add parameter.
37532         (main): Adjust all callers.
37533
37534         getopt: avoid clash with FreeBSD _getopt_internal
37535         * lib/getopt.in.h (_getopt_internal): Override the name.
37536         * lib/getopt_int.h (includes): Pick up any overrides.
37537         Reported by Reuben Thomas.
37538
37539         hash: allow C89 compilation
37540         * lib/hash.c (check_tuning): Move declaration before statement.
37541         Reported by Reuben Thomas.
37542
37543 2009-10-05  Karl Berry  <karl@gnu.org>
37544
37545         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37546
37547 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37548             Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/uname.c (uname): Use a table-driven algorithm to compute
37551         Windows NT versions.
37552
37553 2009-10-04  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37556         program_invocation_short_name.
37557         * modules/progname (configure.ac): Test for presence of
37558         program_invocation_short_name.
37559         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37560
37561 2009-10-04  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/progname.c (set_program_name): Fix comment.
37564         Reported by Jim Meyering.
37565
37566 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37567             Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/uname.c: Include <string.h>.
37570         (uname): Do only one call to GetVersionEx in the common case.
37571
37572 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37573             Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37576         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37577         (uname): Add support for Windows CE and various non-x86 CPU types.
37578
37579 2009-10-03  Bruno Haible  <bruno@clisp.org>
37580
37581         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37582         invocation to tests/configure.ac.
37583         Reported by Ian Beckwith <ianb@erislabs.net>.
37584
37585 2009-10-02  Eric Blake  <ebb9@byu.net>
37586
37587         fchdir: avoid compiler warning
37588         * lib/fchdir.c (canonicalize_file_name)
37589         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37590
37591         test-open: support mingw errno values
37592         * tests/test-open.h (test_open): Relax test.
37593         * tests/test-fopen.h (test_fopen): Likewise.
37594         * tests/test-openat-safer.c (main): Likewise.
37595
37596         open: fix opening directory on mingw
37597         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37598
37599         test-open: on GNU/Hurd, /dev/null is a directory
37600         * tests/test-fopen.h (main): Rename...
37601         (test_fopen): ...to this.  Use a guaranteed non-directory when
37602         confirming open behavior on trailing slash.
37603         * tests/test-openat-safer.c (main): Likewise.
37604         * tests/test-open.h (main): Likewise....
37605         (test_open): ...to this.
37606         * tests/test-fopen.c (main): Adjust caller.
37607         * tests/test-fopen-safer.c (main): Likewise.
37608         * tests/test-open.c (main): Likewise.
37609         * tests/test-fcntl-safer.c (main): Likewise.
37610         Reported by Samuel Thibault.
37611
37612         rename, fchdir: don't ignore chdir failure
37613         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37614         * lib/rename.c (rpl_rename) [W32]: Likewise.
37615         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37616         an empty destination directory if source cannot be renamed,
37617         although there is still possibility for failure.
37618         * doc/posix-functions/rename.texi (rename): Document the race.
37619         Reported by Jim Meyering.
37620
37621         maint: cleanup whitespace in recent commits
37622         * lib/rename.c (rpl_rename): Remove tabs.
37623         * tests/test-link.h (test_link): Likewise.
37624         * lib/fchdir.c (get_name): Likewise.
37625         Reported by Jim Meyering.
37626
37627 2009-10-02  Ben Pfaff  <blp@gnu.org>
37628
37629         relocatable-prog-wrapper: Add missing dependency on
37630         double-slash-root.
37631         * modules/relocatable-prog-wrapper: Add dependency.
37632         Reported by Ian Beckwith <ianb@erislabs.net>.
37633
37634 2009-10-02  Eric Blake  <ebb9@byu.net>
37635
37636         renameat: fix Solaris bugs
37637         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37638         needed fixing.
37639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37640         * modules/stdio (Makefile.am): Substitute it.
37641         * lib/stdio.in.h (renameat): Declare replacement.
37642         * lib/renameat.c (rpl_renameat): Implement fix.
37643
37644         renameat: new module
37645         * modules/renameat: New file.
37646         * lib/renameat.c (renameat): Likewise.
37647         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37649         * modules/stdio (Makefile.am): Substitute them.
37650         * lib/stdio.in.h (renameat): Declare it.
37651         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37652         * doc/posix-functions/renameat.texi (renameat): Likewise.
37653         * modules/renameat-tests: New test.
37654         * tests/test-renameat.c: Likewise.
37655
37656         rename: fix mingw bugs
37657         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37658         directory overwrite bugs.
37659
37660         rename: fix another cygwin 1.5 bug
37661         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37662         checks.
37663         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37664         unnecessary cygwin workarounds.  Also work around bug with moving
37665         full directory onto an empty one.
37666         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37667
37668         rename-dest-slash: merge into rename module
37669         * modules/rename-dest-slash (Status): Mark obsolete.
37670         (Depends-on): Add rename.
37671         (Files): Let rename do it all.
37672         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37673         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37674         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37675         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37676         * lib/rename.c (rpl_rename): Update comments.
37677
37678         rename: fix cygwin 1.5.x bugs
37679         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37680         * lib/rename.c (rpl_rename): Work around them.
37681         * modules/rename (Depends-on): Add same-inode.
37682
37683         rename: fix Solaris 10 bug
37684         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37685         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37686         was the only bug.
37687
37688         rename: fix Solaris 9 bug
37689         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37690         on non-directory.  Avoid calling exit.
37691         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37692         strdup.
37693         * modules/rename-tests (Depends-on): Drop lstat.
37694         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37695         (gl_PREREQ_RENAME): Delete unused macro.
37696
37697         rename-dest-slash: fix NetBSD bug
37698         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37699         links.
37700         * modules/rename-dest-slash (Depends-on): Add same-inode.
37701
37702         rename-tests: new test, exposes several platform bugs
37703         * modules/rename-tests: New file.
37704         * tests/test-rename.h: Likewise.
37705         * tests/test-rename.c: Likewise.
37706         * doc/posix-functions/rename.texi (rename): Improve documentation,
37707         including bugs that will eventually be fixed in gnulib.
37708
37709 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37710
37711         * lib/uname.c: Include <stdlib.h>
37712         (uname): Assume version info is available.
37713
37714 2009-10-02  Jim Meyering  <meyering@redhat.com>
37715
37716         gnu-web-doc-update: correct --help output
37717         * build-aux/gnu-web-doc-update: Make --help output relevant.
37718
37719         gnu-web-doc-update: add standard options
37720         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37721
37722         gnu-web-doc-update: New module.
37723         Use this script to automatically update the on-line web documentation
37724         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37725         * modules/gnu-web-doc-update: New file, from coreutils.
37726         * build-aux/gnu-web-doc-update: New script.
37727
37728 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37729
37730         link: LoadLibrary is not needed.
37731         * lib/link.c: Use GetModuleHandle.
37732
37733 2009-10-01  Eric Blake  <ebb9@byu.net>
37734
37735         getopt: bump serial number
37736         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37737         change.
37738
37739         tests: tighten link, rmdir, and remove tests
37740         * tests/test-link.h (includes): No need to use <config.h> here.
37741         Clean up if directory hard link was created, otherwise test for
37742         trailing '.'.
37743         * tests/test-linkat.c (main): Simplify.
37744         * tests/test-remove.c (main): Enhance test for trailing '.'.
37745         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37746
37747 2009-10-01  Jim Meyering  <meyering@redhat.com>
37748
37749         maint.mk: requiring "make major" was annoying, for a "minor" release.
37750         What is intended is "stable", to contrast with alpha and beta,
37751         so require "make stable", not "make major".
37752         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37753         (get_tool_versions): Likewise.
37754         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37755
37756 2009-09-30  Ben Pfaff  <blp@gnu.org>
37757
37758         Fix broken build of replacement for Windows tmpfile().
37759         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37760         flags argument added along with the 'mkostemp' module.
37761
37762 2009-09-28  Bruno Haible  <bruno@clisp.org>
37763
37764         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37765         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37766         to 'remove_elt'.
37767         (gl_list_remove): Update.
37768         * lib/gl_list.c (gl_list_remove): Update.
37769         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37770         to 'remove_elt'.
37771         (gl_oset_remove): Update.
37772         * lib/gl_list.c (gl_oset_remove): Update.
37773         Reported by Eric Blake.
37774
37775 2009-09-28  Eric Blake  <ebb9@byu.net>
37776
37777         doc: mention yet more cygwin 1.7 status
37778         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37779         cygwin.
37780         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37781         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37782
37783         argp: fix test failure
37784         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37785         that are not upper-case.  Pass correct range to tolower.
37786
37787 2009-09-27  Jim Meyering  <meyering@redhat.com>
37788
37789         test-yesno: work around sparc-dash here-document infelicity
37790         Without this change, the literal \177 byte in a here document
37791         would make dash 0.5.5.1-3 access uninitialized memory.
37792         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37793         Instead, use a marker, "@", and filter through tr to create the desired
37794         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37795
37796 2009-09-27  Bruno Haible  <bruno@clisp.org>
37797
37798         Disable untested support for new flavours of ACLs on AIX.
37799         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37800         progress.
37801         * lib/set-mode-acl.c (qset_acl): Likewise.
37802
37803 2008-12-07  Bruno Haible  <bruno@clisp.org>
37804
37805         Add support for new flavours of ACLs on AIX. (Untested.)
37806         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37807         (file_has_acl): Add support for newer AIX.
37808         * lib/set-mode-acl.c (qset_acl): Likewise.
37809         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37810         Rainer Tammer <tammer@tammer.net>.
37811
37812 2009-09-26  Eric Blake  <ebb9@byu.net>
37813
37814         argp: fix compilation of getopt
37815         * lib/getopt.in.h (includes): Use different guard than glibc.
37816         Reported by Sergey Poznyakoff.
37817
37818         doc: mention more cygwin 1.7 status
37819         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37820         bug.
37821         * doc/posix-functions/execl.texi (execl): Likewise.
37822         * doc/posix-functions/execle.texi (execle): Likewise.
37823         * doc/posix-functions/execlp.texi (execlp): Likewise.
37824         * doc/posix-functions/execv.texi (execv): Likewise.
37825         * doc/posix-functions/execve.texi (execve): Likewise.
37826         * doc/posix-functions/execvp.texi (execvp): Likewise.
37827         * doc/glibc-functions/canonicalize_file_name.texi
37828         (canonicalize_file_name): Cygwin 1.7 now provides this.
37829         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37830         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37831         on AT_SYMLINK_NOFOLLOW.
37832
37833 2009-09-24  Eric Blake  <ebb9@byu.net>
37834
37835         test-linkat: make test more robust
37836         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37837
37838         getopt: fix inclusion guards for cygwin
37839         * modules/getopt-posix (Depends-on): Add include-next.
37840         (Makefile.am): Substitute more items in replacement header.
37841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37842         <getopt.h>.
37843         * lib/getopt.in.h (includes): Use split inclusion guard, and
37844         prefer <getopt.h> over include <unistd.h> when one is present.
37845         (option): Also override name of 'struct option'.
37846
37847         same-inode: revert prior change; it is not yet ready
37848         * NEWS: Undo mention of this change.
37849         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37850         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37851         * lib/cycle-check.c (cycle_check): Likewise.
37852         * lib/same.c (same_name): Likewise.
37853         * lib/at-func2.c (at_func2): Likewise.
37854
37855 2009-09-23  Eric Blake  <ebb9@byu.net>
37856
37857         linkat: new module
37858         * modules/linkat: New file.
37859         * lib/at-func2.c (at_func2): Likewise.
37860         * lib/linkat.c (linkat): Likewise.
37861         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37862         * lib/openat-priv.h (at_func2): Add declaration.
37863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37864         * modules/unistd (Makefile.am): Substitute them.
37865         * lib/unistd.in.h (linkat): Declare it.
37866         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37867         * doc/posix-functions/linkat.texi (linkat): Likewise.
37868         * doc/posix-functions/link.texi (link): Tweak wording.
37869         * tests/test-link.c (main): Move guts...
37870         * tests/test-link.h (test_link): ...into new file.
37871         * modules/linkat-tests: New test.
37872         * tests/test-linkat.c: Likewise.
37873         * modules/link-tests (Files): Ship new file.
37874         (Depends-on): Add stdbool.
37875
37876         dirname: add library-safe mdir_name
37877         * lib/dirname.h (mdir_name): New prototype.
37878         * lib/dirname.c (dir_name): Move guts...
37879         (mdir_name): ...to new function that avoids xalloc_die.
37880
37881         fchdir: another mingw fix
37882         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37883         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37884         on mingw (where it has not yet been ported), and make it optional
37885         elsewhere.
37886         (_gl_register_fd): Use it.
37887
37888         same-inode: make SAME_INODE tri-state, to port to mingw
37889         * NEWS: Mention this change.
37890         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37891         st_ino always being 0.
37892         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37893         * lib/cycle-check.c (cycle_check): Likewise.
37894         * lib/same.c (same_name): Likewise.
37895
37896         lstat: avoid mingw compilation error
37897         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37899         lstat ourselves.
37900         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37901         was adequate.
37902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37903         the checks for lstat.
37904         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37905
37906         link: fix test failure on Solaris 9
37907         * lib/link.c (rpl_link): Don't assume link will catch bogus
37908         trailing slash on source.
37909
37910         test-symlinkat: enhance test
37911         * tests/test-readlink.c (main): Move guts...
37912         * tests/test-readlink.h (test_readlink): ...into new file.
37913         * tests/test-symlink.c (main): Move guts...
37914         * tests/test-symlink.h (test_symlink): ...into new file.
37915         * tests/test-symlinkat.c (main): Use new files for further
37916         coverage.
37917         (do_symlink, do_readlink): New helper functions.
37918         * modules/symlink-tests (Files): Ship new file.
37919         (Depends-on): Add stdbool.
37920         * modules/readlink-tests (Files): Ship new file.
37921         (Depends-on): Add stdbool.
37922         * modules/symlinkat-tests (Files): Use new files.
37923
37924 2009-09-23  Eric Blake  <ebb9@byu.net>
37925
37926         readlink: document portability issue with symlink length
37927         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37928         systems have bogus st_size on symlinks, and mention the
37929         areadlink-with-size module.
37930         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37931         * doc/posix-functions/readlink.texi (readlink): Mention the
37932         areadlink module, and ERANGE failure.
37933         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37934         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37935
37936         readlink: fix Solaris 9 bug with trailing slash
37937         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37938         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37939         * doc/posix-functions/readlink.texi (readlink): Document this.
37940         * modules/readlink-tests: New test.
37941         * tests/test-readlink.c: Likewise.
37942
37943         readlink: fix cygwin 1.5.x bug with return type
37944         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37945         * lib/unistd.in.h (readlink): Use ssize_t.
37946         * lib/readlink.c (readlink): Likewise.
37947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37948         * modules/unistd (Makefile.am): Substitute it.
37949         * lib/unistd.in.h (readlink): Declare replacement.
37950         * doc/posix-functions/readlink.texi (readlink): Document this.
37951
37952         symlink: use throughout gnulib
37953         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37954         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37955         symlink is not used.
37956         * modules/symlinkat (Depends-on): Add symlink.
37957         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37958         * modules/canonicalize-tests (Depends-on): Likewise.
37959         * modules/lstat-tests (Depends-on): Likewise.
37960         * modules/openat-tests (Depends-on): Likewise.
37961         * modules/remove-tests (Depends-on): Likewise.
37962         * modules/rmdir-tests (Depends-on): Likewise.
37963         * modules/unlink-tests (Depends-on): Likewise.
37964         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37965         * tests/test-canonicalize.c (symlink): Likewise.
37966         * tests/test-fstatat.c (symlink): Likewise.
37967         * tests/test-lstat.c (symlink): Likewise.
37968         * tests/test-remove.c (symlink): Likewise.
37969         * tests/test-rmdir.c (symlink): Likewise.
37970         * tests/test-unlink.c (symlink): Likewise.
37971         * tests/test-unlinkat.c (symlink): Likewise.
37972
37973         symlink: new module, for Solaris 9 bug
37974         * modules/symlink: New file.
37975         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37976         * lib/symlink.c: Likewise.
37977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37978         * modules/unistd (Makefile.am): Substitute them.
37979         * lib/unistd.in.h (symlink): Declare replacement.
37980         * MODULES.html.sh (File system functions): Mention it.
37981         * doc/posix-functions/symlink.texi (symlink): Likewise.
37982         * modules/symlink-tests: New test.
37983         * tests/test-symlink.c: Likewise.
37984
37985 2009-09-23  Bruno Haible  <bruno@clisp.org>
37986
37987         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37988         when needed.
37989         Test case: gnulib-tool --import --with-tests atexit inttypes.
37990         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37991
37992 2009-09-23  Bruno Haible  <bruno@clisp.org>
37993
37994         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37995         subcommand, not in a subshell.
37996
37997 2009-09-22  Eric Blake  <ebb9@byu.net>
37998
37999         unistd: sort replacement declarations
38000         * lib/unistd.in.h: Sort declarations.
38001
38002         open, openat: minor optimization
38003         * lib/open.c (open): If open succeeded, len is non-zero.
38004         * lib/openat.c (rpl_openat): Likewise.
38005
38006         link-follow: ensure correct result
38007         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
38008         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
38009         distinguish between possible failures.
38010
38011 2009-09-21  Eric Blake  <ebb9@byu.net>
38012
38013         fts: avoid compiler warning
38014         * lib/fts.c (dirent_inode_sort_may_be_useful)
38015         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
38016
38017 2009-09-19  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/progreloc.c (canonicalize_file_name): New declaration.
38020
38021 2009-09-19  Eric Blake  <ebb9@byu.net>
38022
38023         link: fix quoting
38024         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
38025
38026         openat: fix openat bugs on Solaris 9
38027         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
38028         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
38029         * modules/openat (Depends-on): Add open.
38030         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
38031         * modules/fcntl-h (Makefile.am): Substitute it.
38032         * lib/fcntl.in.h (openat): Declare replacement.
38033         * doc/posix-functions/openat.texi (openat): Document this.
38034
38035         openat: move fstatat and unlinkat into correct files
38036         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
38037         compiled.
38038         * lib/openat.c (fstatat, unlinkat): Move...
38039         * lib/fstatat.c (fstatat): ...into correct files.
38040         * lib/unlinkat.c (unlinkat): Likewise.
38041
38042         openat: fix unlinkat bugs on Solaris 9
38043         * lib/unlinkat.c (unlinkat): New file.
38044         * modules/openat (Depends-on): Add unlink.
38045         (Files): Distribute it.
38046         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
38047         trailing slash behavior is broken.
38048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38049         * modules/unistd (Makefile.am): Substitute it.
38050         * lib/unistd.in.h (unlinkat): Declare replacement.
38051         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
38052
38053         openat: fix fstatat bugs on Solaris 9
38054         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
38055         stat.
38056         * doc/posix-functions/fstatat.texi (fstatat): Document this.
38057
38058         test-unlinkat: enhance test, to expose Solaris 9 bug
38059         * tests/test-unlink.c (main): Factor guts...
38060         * tests/test-unlink.h (test_rmdir_func): ...into new file.
38061         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
38062         * tests/test-rmdir.c (main): Adjust caller.
38063         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
38064         (unlinker): New helper function.
38065         (rmdirat): Enhance check.
38066         * modules/rmdir-tests (Depends-on): Add stdbool.
38067         * modules/unlink-tests (Depends-on): Likewise.
38068         (Files): Add test-unlink.h.
38069         * modules/openat-tests (Files): Likewise.
38070         (Depends-on): Add unlinkdir.
38071
38072         test-fstatat: new test, to expose Solaris 9 bugs
38073         * tests/test-stat.c (main): Factor guts...
38074         * tests/test-stat.h (test_stat_func): ...into new file.
38075         * tests/test-lstat.c (main): Factor guts...
38076         * tests/test-lstat.h (test_lstat_func): ...into new file.
38077         * tests/test-fstatat.c: New file.
38078         * modules/stat-tests (Files): Add test-stat.h.
38079         * modules/lstat-tests (Files): Add test-lstat.h.
38080         (Depends-on): Add stdbool.
38081         * modules/openat-tests (Depends-on): Add pathmax.
38082         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
38083         (Makefile.am): Run new test.
38084
38085         remove: new module, for mingw and Solaris 9 bugs
38086         * modules/remove: New file.
38087         * lib/remove.c: Likewise.
38088         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
38089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38090         * modules/stdio (Makefile.am): Use them.
38091         * lib/stdio.in.h (remove): Declare replacement.
38092         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38093         * doc/posix-functions/remove.texi (remove): Likewise.
38094         * modules/remove-tests: New test.
38095         * tests/test-remove.c: Likewise.
38096
38097         unlink: new module, for Solaris 9 bug
38098         * modules/unlink: New file.
38099         * lib/unlink.c: Likewise.
38100         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38102         * modules/unistd (Makefile.am): Use them.
38103         * lib/unistd.in.h (stat): Declare replacement.
38104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38105         * doc/posix-functions/unlink.texi (unlink): Likewise.
38106         * modules/unlink-tests: New test.
38107         * tests/test-unlink.c: Likewise.
38108
38109         lstat: fix Solaris 9 bug
38110         * lib/lstat.c (lstat): Also check for trailing slash on
38111         non-symlink, non-directories.  Use stat module to simplify logic.
38112         * doc/posix-functions/lstat.texi (lstat): Document it.
38113         * modules/lstat-tests (Depends-on): Add errno, same-inode.
38114         (configure.ac): Check for symlink.
38115         * tests/test-lstat.c (main): Add more tests.
38116
38117         stat: add as dependency to other modules
38118         * modules/chown (Depends-on): Add stat.
38119         * modules/euidaccess (Depends-on): Likewise.
38120         * modules/fchdir (Depends-on): Likewise.
38121         * modules/isdir (Depends-on): Likewise.
38122         * modules/link (Depends-on): Likewise.
38123         * modules/lstat (Depends-on): Likewise.
38124         * modules/mkdir-p (Depends-on): Likewise.
38125         * modules/modechange (Depends-on): Likewise.
38126         * modules/open (Depends-on): Likewise.
38127         * modules/readlink (Depends-on): Likewise.
38128         * modules/same (Depends-on): Likewise.
38129
38130         stat: fix Solaris 9 bug
38131         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
38132         slash.
38133         * lib/stat.c (rpl_stat): Work around it.
38134         * doc/posix-functions/stat.texi (stat): Update documentation.
38135
38136         stat: new module, for mingw bug
38137         * modules/stat: New file.
38138         * lib/stat.c: Likewise.
38139         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38141         * modules/sys_stat (Makefile.am): Use them.
38142         * lib/sys_stat.in.h (stat): Declare replacement.
38143         * lib/openat.c (fstatat): Deal with lstat and stat being function
38144         macros.
38145         * modules/openat (Depends-on): Add inline.
38146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38147         * doc/posix-functions/stat.texi (stat): Likewise.
38148         * modules/stat-tests: New test.
38149         * tests/test-stat.c: Likewise.
38150
38151 2009-09-19  Jim Meyering  <meyering@redhat.com>
38152
38153         syntax-check: detect unnecessary inclusion of canonicalize.h
38154         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
38155
38156 2009-09-19  Eric Blake  <ebb9@byu.net>
38157
38158         canonicalize-lgpl: adjust clients to use correct header
38159         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38160         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
38161         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
38162         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
38163         * lib/progreloc.c (includes): Likewise.
38164
38165 2009-09-19  Jim Meyering  <meyering@redhat.com>
38166
38167         test-posixtm.c: correct a comment
38168         * tests/test-posixtm.c: Correct first-line comment.
38169         Spotted by Eric Blake.
38170
38171 2009-09-16  Jim Meyering  <meyering@redhat.com>
38172
38173         posixtm-tests: make T const-correct; add a test case
38174         * tests/test-posixtm.c (T): Declare const.
38175         Add a test for -(2^31+1).
38176         Remove useless can-succeed-only-in-2002 test.
38177
38178         posixtm-tests: adjust the sole failing test
38179         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
38180         expected output matches what mktime now produces.  Cross-checked via
38181         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
38182
38183         posixtm: move #ifdef'd tests into a new module
38184         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
38185         * tests/test-posixtm.c: ... this new file.
38186         * modules/posixtm-tests: New module.
38187
38188 2009-09-19  Eric Blake  <ebb9@byu.net>
38189
38190         openat: simplify use of at-func.c
38191         * lib/at-func.c (includes): Include prerequisites here, to
38192         simplify requirements on client files.
38193         * lib/openat-priv.h: Add double-inclusion guard.
38194         * lib/faccessat.c (includes): Simplify.
38195         * lib/fchmodat.c (includes): Likewise.
38196         * lib/fchownat.c (includes): Likewise.
38197         * lib/mkdirat.c (includes): Likewise.
38198         * lib/mkfifoat.c (includes): Likewise.
38199         * lib/symlinkat.c (includes): Likewise.
38200
38201         openat: allow return of fd 0
38202         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
38203         * modules/save-cwd (Depends-on): Replace fcntl-safer with
38204         unistd-safer.
38205         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
38206         <fcntl.h>; this module does not leak fds.
38207         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
38208         must be allowed to return 0, leaving openat_safer to add the
38209         safety.
38210         (openat_permissive): Avoid writing to just-opened fd 2 if
38211         restoring the current directory fails.
38212         * lib/openat-die.c (openat_restore_fail): Add comment.
38213         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
38214         (save_cwd): Guarantee safe fd, but without use of open_safer.
38215         * tests/test-openat.c: New test.
38216         * modules/openat-tests (Files, Makefile.am): Distribute and build
38217         new file.
38218
38219         relocatable-prog-wrapper: fix build
38220         * modules/relocatable-prog-wrapper (Files): Update name of
38221         canonicalize m4 file, broken on 2009-09-17.
38222         Reported by emad hajjar <aleppos@hotmail.com>.
38223
38224 2009-09-19  Bruno Haible  <bruno@clisp.org>
38225
38226         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38227         * lib/safe-alloc.c: Likewise.
38228         Reported by Ian Beckwith <ianb@erislabs.net>.
38229
38230 2009-09-18  Bruno Haible  <bruno@clisp.org>
38231
38232         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38233         Reported by <erobles@sensacd.com.mx>.
38234
38235 2009-09-17  Eric Blake  <ebb9@byu.net>
38236
38237         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38238         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38239         slashes when checking if last component is missing.
38240         * tests/test-canonicalize.c (main): Test this.
38241
38242         canonicalize, canonicalize-lgpl: honor // if distinct from /
38243         * modules/canonicalize (Files): Add double-slash-root.m4.
38244         * modules/canonicalize-lgpl (Files): Likewise.
38245         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38246         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38247         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38248         fallback definition.
38249         (canonicalize_filename_mode): Use it to protect //.
38250         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38251         (__realpath): Likewise.
38252         * tests/test-canonicalize.c (main): Test this.
38253         * tests/test-canonicalize-lgpl.c (main): Likewise.
38254         * modules/canonicalize-tests (Depends-on): Add same-inode.
38255         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38256
38257         canonicalize-lgpl: fix glibc bug with trailing slash
38258         * m4/canonicalize-lgpl.m4: Move contents...
38259         * m4/canonicalize.m4: ...here.
38260         (gl_CANONICALIZE_LGPL): Factor realpath check...
38261         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38262         glibc 2.3.5 bug, fixed 2005-04-27.
38263         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38264         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38265         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38266         * modules/canonicalize-lgpl (Files): Manage file rename.
38267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38268         * modules/stdlib (Makefile.am): Substitute witness.
38269         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38270         is needed.
38271         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38272         replacement is required.
38273         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38274         * doc/glibc-functions/canonicalize_file_name.texi
38275         (canonicalize_file_name): Document this.
38276         * doc/posix-functions/realpath.texi (realpath): Likewise.
38277
38278         canonicalize-lgpl: reject non-directory with trailing slash
38279         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38280         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38281         catches failures in glibc 2.3.5.
38282         * tests/test-canonicalize.c (main): Likewise.
38283
38284         canonicalize-lgpl: use native realpath if it works
38285         * lib/canonicalize-lgpl.c (realpath): Guard with
38286         FUNC_REALPATH_WORKS.
38287         * lib/stdlib.in.h (realpath): Make declaration optional based on
38288         HAVE_REALPATH.
38289         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38290         native realpath works.
38291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38292         * modules/stdlib (Makefile.am): Substitute witness.
38293
38294         canonicalize, canonicalize-lgpl: use <stdlib.h>
38295         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38296         (Include): Mention <stdlib.h>.
38297         (configure.ac): Mention functions we provide.
38298         * modules/canonicalize (configure.ac): Likewise.
38299         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38300         realpath if canonicalize_file_name is missing.
38301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38302         * modules/stdlib (Makefile.am): Substitute witnesses.
38303         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38304         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38305         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38306         * NEWS: Document this.
38307         * doc/glibc-functions/canonicalize_file_name.texi
38308         (canonicalize_file_name): Likewise.
38309         * doc/posix-functions/realpath.texi (realpath): Likewise.
38310         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38311
38312         test-canonicalize: consolidate into single C program
38313         * tests/test-canonicalize.sh: Delete; move setup into...
38314         * tests/test-canonicalize.c (main): ...the program, making it
38315         easier to run in debugger.  Add some tests.
38316         * modules/canonicalize-tests (Files): Remove unused file.
38317         (Depends-on): Add progname.
38318         (configure.ac, Makefile.am): Simplify.
38319
38320         test-canonicalize-lgpl: consolidate into single C program
38321         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38322         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38323         easier to run in debugger.  Add some tests.
38324         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38325         (configure.ac, Makefile.am): Simplify.
38326
38327         canonicalize: avoid resolvepath
38328         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38329         unnecessary checks.
38330         * lib/canonicalize.c (includes): Simplify.
38331         (canonicalize_file_name): Drop resolvepath implementation.
38332         * modules/canonicalize (Depends-on): Drop filenamecat.
38333
38334         canonicalize: don't lose errno
38335         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38336         over calls to free.
38337
38338         canonicalize: simplify errno handling
38339         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38340         assignment.
38341
38342         canonicalize, canonicalize-lgpl: update module dependencies
38343         * modules/canonicalize (Depends-on): Add extensions, lstat,
38344         pathmax, stdlib.
38345         (Files): Drop pathmax.h.
38346         (configure.ac): Adjust macro name.
38347         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38348         lstat, stdlib, sys_stat.
38349         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38350         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38351         extensions.
38352         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38353         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38354         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38355         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38356         declaration, if available.
38357         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38358         we can rely on the readlink module.
38359         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38360         (includes): Use <unistd.h> unconditionally.
38361
38362 2009-09-17  Eric Blake  <ebb9@byu.net>
38363
38364         maint: make Include sections of modules consistent
38365         * modules/alloca: Use only header name; no need to list #include.
38366         * modules/alloca-opt: Likewise.
38367         * modules/arpa_inet: Likewise.
38368         * modules/canon-host: Likewise.
38369         * modules/configmake: Likewise.
38370         * modules/dirent: Likewise.
38371         * modules/eealloc: Likewise.
38372         * modules/environ: Likewise.
38373         * modules/fchdir: Likewise.
38374         * modules/fcntl: Likewise.
38375         * modules/fcntl-h: Likewise.
38376         * modules/gethrxtime: Likewise.
38377         * modules/gettime: Likewise.
38378         * modules/ignore-value: Likewise.
38379         * modules/inet_ntop: Likewise.
38380         * modules/inet_pton: Likewise.
38381         * modules/inttypes: Likewise.
38382         * modules/isnand-nolibm: Likewise.
38383         * modules/isnanf-nolibm: Likewise.
38384         * modules/mbchar: Likewise.
38385         * modules/mbfile: Likewise.
38386         * modules/mbiter: Likewise.
38387         * modules/mbuiter: Likewise.
38388         * modules/netdb: Likewise.
38389         * modules/netinet_in: Likewise.
38390         * modules/nproc: Likewise.
38391         * modules/pagealign_alloc: Likewise.
38392         * modules/poll: Likewise.
38393         * modules/printf-frexp: Likewise.
38394         * modules/pthread: Likewise.
38395         * modules/putenv: Likewise.
38396         * modules/random_r: Likewise.
38397         * modules/relocatable-prog: Likewise.
38398         * modules/search: Likewise.
38399         * modules/select: Likewise.
38400         * modules/selinux-h: Likewise.
38401         * modules/settime: Likewise.
38402         * modules/signal: Likewise.
38403         * modules/size_max: Likewise.
38404         * modules/socklen: Likewise.
38405         * modules/ssize_t: Likewise.
38406         * modules/stdarg: Likewise.
38407         * modules/stdbool: Likewise.
38408         * modules/stddef: Likewise.
38409         * modules/stdint: Likewise.
38410         * modules/stdio: Likewise.
38411         * modules/stdlib: Likewise.
38412         * modules/string: Likewise.
38413         * modules/strings: Likewise.
38414         * modules/sys_file: Likewise.
38415         * modules/sys_ioctl: Likewise.
38416         * modules/sys_select: Likewise.
38417         * modules/sys_socket: Likewise.
38418         * modules/sys_stat: Likewise.
38419         * modules/sys_time: Likewise.
38420         * modules/sys_times: Likewise.
38421         * modules/sys_utsname: Likewise.
38422         * modules/sys_wait: Likewise.
38423         * modules/sysexits: Likewise.
38424         * modules/time: Likewise.
38425         * modules/times: Likewise.
38426         * modules/tmpfile: Likewise.
38427         * modules/trim: Likewise.
38428         * modules/unistd: Likewise.
38429         * modules/wchar: Likewise.
38430         * modules/wctype: Likewise.
38431
38432 2009-09-17  Bruno Haible  <bruno@clisp.org>
38433
38434         Make getdate.y compile on QNX and NetBSD 5 / i386.
38435         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38436         TIME_T_FITS_IN_LONG_INT.
38437         * lib/getdate.y (long_time_t): New type.
38438         (relative_time): Change type of 'seconds' field to long_time_t.
38439         (get_date): Update types of local variables. Check against overflow
38440         during conversion from long_time_t to time_t.
38441         Reported by Matt Kraai <kraai@ftbfs.org>
38442         and Hasso Tepper <hasso@netbsd.org>.
38443
38444 2009-09-17  Bruno Haible  <bruno@clisp.org>
38445
38446         * modules/COPYING: Update copyright years.
38447         * modules/README: Likeiwse.
38448         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38449         Reported by Ian Beckwith <ianb@erislabs.net>.
38450
38451 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38452
38453         * users.txt: Update references for gnuit package.
38454
38455 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38456
38457         * m4/getdelim.m4: Fix typo in copyright line.
38458
38459 2009-09-17  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/atoll.c: Use the standard header with GPL copyright.
38462         * lib/argz.in.h: Likewise.
38463         * lib/glob.c: Likewise.
38464         * lib/glob-libc.h: Likewise.
38465         * lib/random_r.c: Likewise.
38466         * lib/siglist.h: Likewise.
38467         * lib/strsignal.c: Likewise.
38468         Reported by Ian Beckwith <ianb@erislabs.net>.
38469
38470 2009-09-17  Eric Blake  <ebb9@byu.net>
38471
38472         rmdir: ensure correct dependency order
38473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38474
38475 2009-09-17  Bruno Haible  <bruno@clisp.org>
38476
38477         Disable assertion that fails on NetBSD 5 / i386.
38478         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38479         Reported by Sam Steingold <sds@gnu.org>
38480         and Hasso Tepper <hasso@netbsd.org>.
38481
38482 2009-09-16  Eric Blake  <ebb9@byu.net>
38483
38484         unlinkdir: port to mingw
38485         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38486         on which no one can unlink a directory.
38487
38488         stdlib: sort witness names
38489         * modules/stdlib (Makefile.am): Sort replacements.
38490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38491         * lib/stdlib.in.h: Likewise.
38492
38493         parse-duration-tests: avoid link failure
38494         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38495         LIBINTL.
38496         Reported by Tom G. Christensen.
38497
38498         openat-tests: ensure unlinkat behaves like rmdir
38499         * tests/test-rmdir.c (main): Factor guts...
38500         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38501         * modules/rmdir-tests (Files): Ship new file.
38502         * modules/openat-tests: New test.
38503         * tests/test-unlinkat.c: Likewise.
38504
38505         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38506         * modules/rmdir-errno (Status, Notice): Now obsolete.
38507
38508         rmdir: work around cygwin 1.5.x and mingw bugs
38509         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38510         * lib/rmdir.c (rmdir): Work around it.
38511         * modules/rmdir (Status, Notice): No longer obsolete.
38512         (Files): Add dos.m4.
38513         (Depends-on): Add unistd.
38514         (configure.ac): Set witnesses.
38515         (License): Relax to LGPLv2+.
38516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38517         * modules/unistd (Makefile.am): Substitute witnesses.
38518         * lib/unistd.in.h (rmdir): Declare replacement.
38519         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38520         * modules/rmdir-tests: New tests.
38521         * tests/test-rmdir.c: Likewise.
38522
38523 2009-09-15  Eric Blake  <ebb9@byu.net>
38524
38525         fchdir: improve use of replacement functions
38526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38528         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38529         REPLACE_CLOSEDIR.
38530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38531         * modules/sys_stat (Makefile.am): Substitute correct witness.
38532         * modules/dirent (Makefile.am): Likewise.
38533         * modules/unistd (Makefile.am): Likewise.
38534         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38535         * lib/unistd.in.h (dup): Likewise.
38536         * lib/sys_stat.in.h (fstat): Likewise.
38537
38538         maint: ignore gnulib-tool temp files
38539         * .gitignore: Ignore files created during gnulib-tool --test.
38540
38541 2009-09-13  Jim Meyering  <meyering@redhat.com>
38542
38543         posixtm: don't reject a time that specify "60" as the number of seconds
38544         * lib/posixtm.c (posixtime): The code to reject invalid dates
38545         would also reject a time specified with the .60 suffix.
38546         But POSIX allows that, in order to accommodate leap seconds.
38547         So don't reject it.
38548         (main): Adjust tests accordingly.
38549         * modules/posixtm (Depends-on): Add stpcpy.
38550
38551 2009-09-11  Jim Meyering  <meyering@redhat.com>
38552
38553         announce-gen: include [$release_type] in emitted Subject:
38554         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38555         e.g., [stable] in the emitted Subject: line.
38556
38557 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38558
38559         Remove obsolete macros from several modules.
38560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38561         obsolete Autoconf macros with their modern counterparts.
38562         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38563         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38564         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38565         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38566         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38567         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38569         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38570         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38571         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38572         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38574         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38575         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38576         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38577         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38578         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38579         * m4/time_r.m4 (gl_TIME_R): Likewise.
38580         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38581         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38582         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38583
38584         Fix copyright header in build-aux scripts.
38585         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38586         recommendation.
38587         * build-aux/ncftpput-ftp: Likewise.
38588         * build-aux/update-copyright: Likewise.
38589
38590 2009-09-09  Eric Blake  <ebb9@byu.net>
38591
38592         test-link: allow Linux choice of errno
38593         * tests/test-link.c (main): Relax test for alternate error.
38594
38595         strndup: fix improper m4 caching
38596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38597         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38598         (gl_PREREQ_STRNDUP): Delete.
38599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38600         * modules/string (Makefile.am): Substitute it.
38601         * lib/string.in.h (strndup): Modernize prototype.
38602
38603         getcwd: port to mingw
38604         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38605         different from the POSIX assumptions made throughout the getcwd
38606         module; fortunately, the mingw getcwd does not need replacement.
38607         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38608         * modules/getcwd-tests: New test.
38609         * tests/test-getcwd.c: Likewise.
38610
38611         link: fix platform bugs
38612         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38613         * lib/link.c (link): Work around them.  Fix related mingw bug.
38614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38615         * modules/unistd (Makefile.am): Substitute it.
38616         * lib/unistd.in.h (link): Declare replacement.
38617         * doc/posix-functions/link.texi (link): Document this.
38618         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38619
38620         test-link: consolidate into single C program, test more cases
38621         * tests/test-link.sh: Delete.
38622         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38623         at least Cygwin and Solaris.
38624         * modules/link-tests (Files): Remove unused file.
38625         (Depends-on): Add errno, sys_stat.
38626         (Makefile.am): Simplify.
38627
38628 2009-09-08  Bruno Haible  <bruno@clisp.org>
38629
38630         Work around towlower, towupper bug on mingw.
38631         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38632         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38633         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38634         * doc/posix-functions/towupper.texi: Likewise.
38635         Reported by Eric Blake.
38636
38637 2009-09-08  Jim Meyering  <meyering@redhat.com>
38638
38639         build: don't try to run autoheader if we don't use it
38640         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38641         is not used in configure.ac.
38642
38643 2009-09-08  Eric Blake  <ebb9@byu.net>
38644
38645         euidaccess: fix compilation error
38646         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38647
38648         rawmemchr: relax license
38649         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38650         okay.
38651         Reported by Jim Meyering.
38652
38653         mkfifoat: new module
38654         * modules/mkfifoat: New file.
38655         * lib/mkfifoat.c: Likewise.
38656         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38658         * modules/sys_stat (Makefile.am): Use them.
38659         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38660         * MODULES.html.sh (File system functions): Mention module.
38661         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38662         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38663         * modules/mkfifoat-tests: New test.
38664         * tests/test-mkfifoat.c: Likewise.
38665
38666         strchrnul: relax license
38667         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38668         okay.
38669         Reported by Jim Meyering.
38670
38671 2009-09-08  Eric Blake  <ebb9@byu.net>
38672
38673         fstatat: fix compilation on Solaris
38674         * lib/fstatat.c (includes): Add fcntl.h.
38675         Reported by Pádraig Brady.
38676
38677 2009-09-07  Eric Blake  <ebb9@byu.net>
38678
38679         rename: modernize replacement
38680         * modules/rename (Depends-on): Add stdio.
38681         (configure.ac): Declare witness.
38682         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38683         stdio take care of replacement.
38684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38685         * modules/stdio (Makefile.am): Substitute them.
38686         * lib/stdio.in.h (rename): Declare replacement.
38687         * lib/rename.c (includes): Allow cross-compilation to non-windows
38688         machines.
38689         * doc/posix-functions/rename.texi (rename): Improve
38690         documentation.
38691
38692         stdio: sort witness names
38693         * modules/stdio (Makefile.am): Sort replacements.
38694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38695         * lib/stdio.in.h: Likewise.
38696
38697         getcwd: minor cleanups
38698         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38699         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38700
38701         openat: provide more convenience names
38702         * modules/faccessat (configure.ac): Add C witness.
38703         * lib/unistd.in.h (readlinkat): Fix typo.
38704         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38705         convenience wrappers.
38706         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38707         wrappers in syntax checks.
38708
38709 2009-09-06  Eric Blake  <ebb9@byu.net>
38710
38711         doc: fix comments in recent patches
38712         * lib/faccessat.c: Mention correct function.
38713         * lib/fchmodat.c: Likewise.
38714         * lib/fchownat.c: Likewise.
38715         * lib/symlinkat.c: Likewise.
38716         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38717         constants.
38718
38719         faccessat, symlinkat: continue cleanup of previous patch
38720         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38721         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38722         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38724         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38725         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38726         set.
38727
38728 2009-09-06  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38731         (fstatat): Declare if GNULIB_FSTATAT is set.
38732         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38733         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38734         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38735         * modules/fcntl-h (Files): Remove m4/openat.m4.
38736         * modules/sys_stat (Files): Remove m4/openat.m4.
38737         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38738         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38739         * modules/unistd (Files): Remove m4/openat.m4.
38740         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38741         GNULIB_OPENAT.
38742         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38743         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38745         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38746         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38747         gl_OPENAT_DEFAULTS.
38748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38749         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38750         Don't require gl_OPENAT_DEFAULTS.
38751         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38752         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38753         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38754         (gl_OPENAT_DEFAULTS): Remove macro.
38755
38756 2009-09-06  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/openat (configure.ac): Remove unneeded witness.
38759
38760 2009-09-06  Bruno Haible  <bruno@clisp.org>
38761
38762         Set errno to ENOSYS when a function is entirely unsupported.
38763         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38764         EOPNOTSUPP.
38765         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38766         * modules/chown (Depends-on): Remove errno.
38767
38768 2009-09-06  Bruno Haible  <bruno@clisp.org>
38769
38770         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38771
38772 2009-09-06  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38775
38776 2009-09-06  Ben Pfaff  <blp@gnu.org>
38777             Bruno Haible  <bruno@clisp.org>
38778
38779         Work around a glibc bug in strtok_r.
38780         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38781         Undefine if UNDEFINE_STRTOK_R is set.
38782         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38784         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38786         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38787         UNDEFINE_STRTOK_R.
38788         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38789
38790 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38791
38792         exclude: minor fix
38793         * lib/exclude.c: Include wctype.h
38794
38795 2009-09-06  Akim Demaille  <demaille@gostai.com>
38796
38797         bootstrap: improve error message
38798         * build-aux/bootstrap (find_tool): Upon failure, report the list
38799         of candidates.
38800         Honor the initial value of the envvar.
38801
38802 2009-09-05  Eric Blake  <ebb9@byu.net>
38803
38804         symlinkat: new module
38805         * modules/symlinkat: New file.
38806         * lib/symlinkat.c: Likewise.
38807         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38809         * modules/unistd (Makefile.am): Use them.
38810         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38811         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38812         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38813         * MODULES.html.sh (File system functions): Mention module.
38814         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38815         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38816         * modules/symlinkat-tests: New test.
38817         * tests/test-symlinkat.c: Likewise.
38818
38819         test-openat-safer: add more checks
38820         * tests/test-openat-safer.c (main): Check more code paths.
38821
38822 2009-09-05  Jim Meyering  <meyering@redhat.com>
38823
38824         syntax-check: detect unnecessary inclusion of openat.h
38825         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38826
38827 2009-09-05  Bruno Haible  <bruno@clisp.org>
38828
38829         Support towlower, towupper.
38830         * doc/posix-functions/towlower.texi: Mention module wctype.
38831         * doc/posix-functions/towupper.texi: Likewise.
38832         * lib/wctype.in.h (towlower, towupper): New functions.
38833         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38834         (ASSERT): New macro.
38835         (e): New variable.
38836         (main): Test also towlower, towupper. Test WEOF argument.
38837         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38838
38839 2009-09-05  Bruno Haible  <bruno@clisp.org>
38840
38841         Fix conversion behaviour when the input is invalid.
38842         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38843         mark occurring in first pass of indirect conversion.
38844         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38845         input.
38846         Found by clang's static analyzer.
38847
38848 2009-09-05  Bruno Haible  <bruno@clisp.org>
38849
38850         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38851         where direct conversion is possible.
38852
38853 2009-09-04  Eric Blake  <ebb9@byu.net>
38854
38855         openat: fail with ENOENT on empty name
38856         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38857         buffer.
38858
38859         link-follow: fix logic bug in prior patch
38860         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38861         reversed sense of yes and no in prior patch.  Avoid confusing
38862         compilation failure with desired semantics.
38863
38864         link-follow: accomodate mingw and cross-compilation
38865         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38866         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38867         cross-compilation results to -1, to make linkat easier to
38868         implement when cross-compiling.  Trivially support mingw.
38869         * modules/link-follow (configure.ac): Call new name.
38870         * NEWS: Mention this.
38871
38872 2009-09-03  Eric Blake  <ebb9@byu.net>
38873
38874         faccessat: compile replacement
38875         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38876         needed.
38877
38878         fts: fix compilation error
38879         * lib/fts.c (includes): Re-add "openat.h", for
38880         openat_needs_fchdir.
38881
38882         faccessat: new module
38883         * modules/faccessat: New file.
38884         * lib/faccessat.c: Likewise.
38885         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38887         * modules/unistd (Makefile.am): Use it.
38888         * lib/unistd.in.h (faccessat): Declare it.
38889         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38890         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38891         * MODULES.html.sh (File system functions): Mention it.
38892         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38893         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38894
38895         euidaccess: prefer POSIX over non-standard implementation
38896         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38897         * lib/euidaccess.c (euidaccess): Use it if available.
38898
38899         openat: make template easier to use
38900         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38901         AT_FUNC_F2 to be undefined.
38902         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38903         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38904         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38905         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38906         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38907         Likewise.
38908         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38909         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38910         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38911         Likewise.
38912
38913         openat: declare in POSIX headers
38914         * NEWS: Mention this.
38915         * modules/openat (configure.ac): Declare witnesses.
38916         (Depends-on): Add fcntl-h, sys_stat, unistd.
38917         (Include): Mention correct headers.
38918         * modules/fcntl-h (Depends-on): Add link-warning.
38919         (Files): Add openat.m4.
38920         (Makefile.am): Substitute witnesses.
38921         * modules/sys_stat (Files, Makefile.am): Likewise.
38922         * modules/unistd (Files, Makefile.am): Likewise.
38923         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38924         (gl_OPENAT_DEFAULTS): New macro.
38925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38928         (SYS_STAT_H): Remove unused variable.
38929         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38930         * lib/fcntl--.h (includes): Remove unneeded header.
38931         * lib/openat-safer.c (includes): Likewise.
38932         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38933         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38934         appropriate headers.
38935         (__OPENAT_PREFIX): Delete.
38936         * lib/fcntl.in.h (openat): Provide declaration.
38937         (AT_FDCWD): Fix Solaris bug.
38938         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38939         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38940         * lib/fchmodat.c (includes):  Adjust to find declaration.
38941         * lib/fchownat.c (includes): Likewise.
38942         * lib/mkdirat.c (includes): Likewise.
38943         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38944         still visible.
38945
38946 2009-09-02  Eric Blake  <ebb9@byu.net>
38947
38948         errno: use consistently
38949         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38950         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38951         * lib/canonicalize.c (ELOOP): Likewise.
38952         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38953         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38954         * lib/lchown.c (EOPNOTSUPP): Likewise.
38955         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38956         * lib/savewd.c (ESTALE): Likewise.
38957         * lib/settime.c (ENOSYS): Likewise.
38958         * lib/utimens.c (ENOSYS): Likewise.
38959         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38960         * lib/chdir-safer.c (ELOOP): Likewise.
38961         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38962         * modules/c-stack (Depends-on): Add errno.
38963         * modules/canonicalize (Depends-on): Likewise.
38964         * modules/chdir-safer (Depends-on): Likewise.
38965         * modules/fdopendir (Depends-on): Likewise.
38966         * modules/inet_ntop (Depends-on): Likewise.
38967         * modules/inet_pton (Depends-on): Likewise.
38968         * modules/lchown (Depends-on): Likewise.
38969         * modules/openat (Depends-on): Likewise.
38970         * modules/savewd (Depends-on): Likewise.
38971         * modules/settime (Depends-on): Likewise.
38972         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38973
38974         fts: avoid leaking fds
38975         * modules/fts (Depends-on): Add cloexec.
38976         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38977         flag.
38978
38979         fts: make directory fds more robust
38980         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38981         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38982
38983         backupfile, chdir-long, fts, savedir: make safer
38984         * lib/backupfile.c (includes): Use "dirent--.h", since
38985         numbered_backup can write to stderr during readdir.
38986         * lib/savedir.c (includes): Likewise.
38987         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38988         emulation can write to stderr on failure.
38989         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38990         * lib/getcwd.c: Document why opendir_safer is unused.
38991         * lib/glob.c: Likewise.
38992         * lib/scandir.c: Likewise.
38993         * lib/openat-proc.c: Likewise, for open_safer.
38994         * modules/backupfile (Depends-on): Add dirent-safer.
38995         * modules/savedir (Depends-on): Likewise.
38996         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38997         * modules/chdir-long (Depends-on): Add openat-safer.
38998
38999         openat-safer: new module
39000         * modules/openat-safer: New file.
39001         * lib/openat-safer.c: Likewise.
39002         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
39003         * lib/fcntl-safer.h (openat_safer): Declare.
39004         * lib/fcntl--.h (openat): Override.
39005         * MODULES.html.sh (File descriptor based I/O): Mention it.
39006         * lib/openat.h: Add double-inclusion guards.
39007         * lib/openat.c (includes): Only include "fcntl-safer.h", not
39008         "fcntl--.h", so we can implement openat.
39009         * modules/openat-safer-tests: New test.
39010         * tests/test-openat-safer.c: New file.
39011
39012         dirent-safer: new module
39013         * modules/dirent-safer: New file.
39014         * lib/dirent--.h: Likewise.
39015         * lib/dirent-safer.h: Likewise.
39016         * lib/opendir-safer.c: Likewise.
39017         * m4/dirent-safer.m4: Likewise.
39018         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
39019         * modules/dirent-safer-tests: New test.
39020         * tests/test-dirent-safer.c: New file.
39021         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
39022
39023         fdopendir: optimize on mingw
39024         * lib/unistd.in.h (_gl_directory_name): New prototype.
39025         * lib/fchdir.c (_gl_directory_name): Implement it.
39026         (fchdir): Use it to simplify implementation.
39027         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
39028         fchdir, when available, to avoid calling [f]chdir().
39029
39030         fdopendir: split into its own module
39031         * lib/openat.c (fdopendir): Move...
39032         * lib/fdopendir.c: ...into new file.
39033         * modules/fdopendir: New module.
39034         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
39035         * modules/openat (Depends-on): Add fdopendir.
39036         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
39037         fdopendir here.
39038         * modules/savedir (Depends-on): Only need fdopendir, not full
39039         openat.
39040         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
39041         * lib/openat.h (fdopendir): Drop prototype.
39042         * lib/dirent.in.h (fdopendir): Provide prototype.
39043         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
39044         * modules/dirent (Makefile.am): Substitute them.
39045         * MODULES.html.sh (File system functions): Mention it.
39046         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
39047         * modules/fdopendir-tests: New file.
39048         * tests/test-fdopendir.c: Likewise.
39049
39050         fchdir: use more consistent macro convention
39051         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
39052         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
39053         REPLACE_FCHDIR, rather than relying on config.h macros.
39054         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
39055         inside a single make-time REPLACE_FCHDIR block, rather than using
39056         the config.h FCHDIR_REPLACEMENT.
39057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
39058         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
39059         Manage fstat replacement.
39060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
39061         REPLACE_FCHDIR.
39062         * modules/sys_stat (Files): Add m4/unistd_h.m4.
39063         (Makefile.am): Substitute REPLACE_FCHDIR.
39064         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
39065         FCHDIR_REPLACEMENT.
39066         * lib/dup-safer.c (dup_safer): Likewise.
39067         * lib/dup2.c (rpl_dup2): Likewise.
39068         * lib/dup3.c (rpl_dup3): Likewise.
39069         * lib/open.c (rpl_open): Likewise.
39070
39071         fchdir: simplify error handling, and support dup3
39072         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
39073         stdbool, malloc-posix, realloc-posix.
39074         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
39075         (ensure_dirs_slot): Return false on allocation failure.
39076         (rpl_dup2): Delete.
39077         (_gl_register_dup): New function.
39078         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
39079         (_gl_register_fd): Close fd on allocation failure.
39080         * lib/fcntl.in.h (_gl_register_fd): Update signature.
39081         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
39082         prototype.
39083         (rpl_dup2_fchdir): Delete prototype.
39084         * lib/open.c (open): Update caller.
39085         * lib/dup2.c (dup2): Track fchdir metadata.
39086         * lib/dup3.c (dup3): Likewise.
39087         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
39088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
39089
39090 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39091
39092         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
39093         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
39094         don't pass arguments to AC_OUTPUT.
39095
39096 2009-09-02  Bruno Haible  <bruno@clisp.org>
39097
39098         * modules/mkdtemp (License): Relicense under LGPLv2+.
39099         Reported by Paolo Bonzini.
39100
39101 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39102
39103         Replace uses of obsolete autoconf macros in Jim's modules.
39104         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
39105         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
39106         can evoke a warning from autoconf when run with -Wobsolete
39107         enabled.  They were declared obsolete for good reasons (see
39108         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
39109         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
39110         should not continue using the deprecated macros.
39111         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
39112         obsolete Autoconf macros with modern counterparts.
39113         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39114         * m4/dos.m4 (gl_AC_DOS): Likewise.
39115         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
39116         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39117         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
39118         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
39119         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
39120         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
39121         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
39122         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
39123         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39124         Likewise.
39125         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39126         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39127         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39128         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
39129         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39130         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39131
39132 2009-09-01  Eric Blake  <ebb9@byu.net>
39133
39134         fchdir: fix off-by-one bug in previous patch
39135         * lib/fchdir.c (rpl_fstat): Use correct bounds.
39136         (_gl_unregister_fd): Delete useless if.
39137
39138 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
39139
39140         maint.mk: sort the list of syntax-check rules
39141         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
39142         easier to get a sense of progress when the rules are run sequentially
39143         and take a long time.
39144
39145 2009-09-01  Simon Josefsson  <simon@josefsson.org>
39146
39147         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
39148         * modules/netinet_in: Likewise.
39149         * modules/sys_file: Likewise.
39150         * modules/sys_ioctl: Likewise.
39151         * modules/sys_select: Likewise.
39152         * modules/sys_socket: Likewise.
39153         * modules/sys_stat: Likewise.
39154         * modules/sys_time: Likewise.
39155         * modules/sys_times: Likewise.
39156         * modules/sys_utsname: Likewise.
39157         * modules/sys_wait: Likewise.
39158
39159 2009-09-01  Jim Meyering  <meyering@redhat.com>
39160
39161         fts: help ensure that return values are not ignored
39162         * lib/fts_.h (__GNUC_PREREQ): Define.
39163         (__attribute_warn_unused_result__): Define.
39164         (fts_children, fts_close, fts_open, fts_read): Declare with
39165         __attribute_warn_unused_result__.
39166
39167         fts: fts_close now fails also when closing a dir file descriptor fails
39168         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
39169         and propagate to caller, along with errno.
39170
39171         announce-gen: correct formatting in --help output
39172         * build-aux/announce-gen (usage): Move the one-line description in
39173         --help output "up", to where it belongs, just after Usage:.
39174
39175 2009-08-31  Eric Blake  <ebb9@byu.net>
39176
39177         fchdir: port to mingw
39178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
39179         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
39180         opened, then use a substitute.
39181         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
39182         replacement.
39183         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
39184         (_gl_register_fd): No need to check stat if open already filters
39185         all directories.
39186         (fchdir): Fix error condition to match POSIX.
39187         * modules/fchdir (Depends-on): Add sys_stat.
39188         * doc/posix-functions/open.texi (open): Document the limitation.
39189         * modules/fchdir-tests: New file.
39190         * tests/test-fchdir.c: Likewise.
39191
39192         canonicalize: allow cross-testing from cygwin to mingw
39193         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
39194         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
39195         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
39196         Likewise.
39197         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
39198         target does not support symlinks.
39199         * tests/test-canonicalize-lgpl.sh: Likewise.
39200
39201         chown: avoid compilation warning on mingw
39202         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
39203         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
39204         mingw.
39205         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39206         * modules/chown (Depends-on): Add errno.
39207
39208 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39209
39210         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
39211         command.
39212
39213 2009-08-31  Jim Meyering  <meyering@redhat.com>
39214
39215         canonicalize: remove useless initialization
39216         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
39217         initialization of local, "end".
39218
39219 2009-08-30  Bruno Haible  <bruno@clisp.org>
39220
39221         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39222         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39223         ENOSYS.
39224
39225 2009-08-30  Bruno Haible  <bruno@clisp.org>
39226
39227         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39228         /usr/xpg4/bin/tr when it exists.
39229         * tests/test-pipe-filter-gi1.sh: Likewise.
39230
39231 2009-08-30  Bruno Haible  <bruno@clisp.org>
39232
39233         Work around deficient /usr/bin/id program on Solaris.
39234         * tests/test-file-has-acl.sh (ID): New variable.
39235         * tests/test-set-mode-acl.sh (ID): Likewise.
39236         * tests/test-copy-acl.sh (ID): Likewise.
39237         * tests/test-copy-file.sh (ID): Likewise.
39238
39239 2009-08-30  Bruno Haible  <bruno@clisp.org>
39240
39241         New module 'xstriconveh'.
39242         * lib/xstriconveh.h: New file.
39243         * lib/xstriconveh.c: New file.
39244         * modules/xstriconveh: New file.
39245
39246 2009-08-30  Bruno Haible  <bruno@clisp.org>
39247
39248         Make it easier to use mem_cd_iconveh.
39249         * lib/striconveh.h (iconveh_t): New type.
39250         (iconveh_open, iconveh_close): New declarations.
39251         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39252         with a single 'const iconveh_t *' argument.
39253         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39254         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39255         with a single 'const iconveh_t *' argument.
39256         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39257         * tests/test-striconveh.c (main): Update.
39258         * NEWS: Mention the change.
39259
39260 2009-08-30  Bruno Haible  <bruno@clisp.org>
39261
39262         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39263         problem.
39264
39265 2009-08-30  Bruno Haible  <bruno@clisp.org>
39266
39267         Work around iconv_open problem on Solaris.
39268         * lib/iconv_open-solaris.gperf: New file.
39269         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39270         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39271         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39272         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39273         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39274         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39275
39276 2009-08-29  Jim Meyering  <meyering@redhat.com>
39277
39278         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39279         * top/maint.mk (cvs-check): Remove target; it was just an alias
39280         to the better-named vc-diff-check.
39281         (maintainer-distcheck): Remove rule.  It was used only from
39282         the (alpha/beta/major) target, and all of its commands but one
39283         were coreutils-specific.
39284         (vc-dist): Remove rule.
39285         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39286         Run vc-diff-check, not vc-dist.
39287         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39288
39289 2009-08-27  Bruno Haible  <bruno@clisp.org>
39290
39291         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39292         of 0.
39293
39294 2009-08-27  Bruno Haible  <bruno@clisp.org>
39295
39296         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39297         compilers.
39298         * doc/func.texi: Document the SunPRO C bug.
39299
39300 2009-08-27  Bruno Haible  <bruno@clisp.org>
39301
39302         Fix link error on Solaris.
39303         * tests/test-parse-duration.c (xstrdup): Remove function.
39304
39305 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39306
39307         ignore-value: handle pointer types, too
39308         * lib/ignore-value.h (__attribute__): Remove definition.
39309         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39310         of a more concise and more-often effective "(void) i" statement.
39311         (ignore_ptr): New function to suppress warnings from functions that
39312         return pointers, and to make it explicit that one function doesn't
39313         handle all cases.
39314
39315 2009-08-25  Bruno Haible  <bruno@clisp.org>
39316
39317         dup2: work around a Linux bug.
39318         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39319         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39320         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39321         Reported by Simon Josefsson.
39322
39323 2009-08-25  Jim Meyering  <meyering@redhat.com>
39324
39325         libguestfs uses gnulib
39326         * users.txt: Add libguestfs.
39327
39328 2009-08-24  Eric Blake  <ebb9@byu.net>
39329
39330         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39331         * lib/pipe2.c (includes): Add binary-io.h.
39332         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39333
39334 2009-08-24  Bruno Haible  <bruno@clisp.org>
39335
39336         Tolerate declared but missing accept4 syscall.
39337         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39338         available.
39339         * lib/sys_socket.in.h (accept4): If the function is already present,
39340         override it.
39341         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39342         * modules/accept4 (Makefile.am): Compile accept4.c always.
39343         Reported by Paolo Bonzini and Eric Blake.
39344
39345 2009-08-23  Bruno Haible  <bruno@clisp.org>
39346
39347         New module 'accept4'.
39348         * lib/sys_socket.in.h (accept4): New declaration.
39349         * lib/accept4.c: New file.
39350         * m4/accept4.m4: New file.
39351         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39352         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39353         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39354         HAVE_ACCEPT4.
39355         * modules/accept4: New file.
39356         * doc/glibc-functions/accept4.texi: Mention the new module.
39357
39358 2009-08-24  Jim Meyering  <meyering@redhat.com>
39359
39360         progname: also set global program_invocation_name, when possible
39361         Before this change, a libtool-enabled program that calls glibc's
39362         error function would report the program name as
39363         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39364         * modules/progname (configure.ac): Check for a declaration of
39365         program_invocation_name.
39366         * lib/progname.c:  Include <errno.h>.
39367         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39368         Set program_invocation_name.
39369
39370 2009-08-23  Bruno Haible  <bruno@clisp.org>
39371
39372         * lib/dup3.c: Include <string.h>.
39373
39374 2009-08-23  Bruno Haible  <bruno@clisp.org>
39375
39376         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39377         * lib/pipe2.c (pipe2): Likewise.
39378         Suggested by Eric Blake.
39379
39380 2009-08-23  Bruno Haible  <bruno@clisp.org>
39381
39382         Tolerate declared but missing dup3 syscall.
39383         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39384         * lib/unistd.in.h (dup3): If the function is already present,
39385         override it.
39386         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39387         * modules/dup3 (Makefile.am): Compile dup3.c always.
39388         Reported by Paolo Bonzini.
39389
39390 2009-08-23  Bruno Haible  <bruno@clisp.org>
39391
39392         Tolerate declared but missing pipe2 syscall.
39393         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39394         available.
39395         * lib/unistd.in.h (pipe2): If the function is already present,
39396         override it.
39397         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39398         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39399         Reported by Paolo Bonzini.
39400
39401 2009-08-23  Bruno Haible  <bruno@clisp.org>
39402
39403         * lib/pipe2.c (pipe2): Move #ifs inside function.
39404
39405 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39406
39407         quotearg: document limitations of quote_these_too
39408         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39409         those limitations are created.
39410         * lib/quotearg.h (set_char_quoting): Document that digits and
39411         letters that are special after backslash are not permitted.
39412         (quotearg_char): Cross-reference set_char_quoting documentation.
39413
39414 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39415
39416         quotearg: implement custom_quoting_style
39417         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39418         right_quote fields.
39419         (set_custom_quoting): New public function.
39420         (quotearg_buffer_restyled): Add left_quote and right_quote
39421         arguments, handle them very much like locale quoting, and update
39422         all uses.
39423         (quotearg_n_custom): New public function.
39424         (quotearg_n_custom_mem): New public function.
39425         (quotearg_custom): New public function.
39426         (quotearg_custom_mem): New public function.
39427         * lib/quotearg.h: Prototype and document new public functions.
39428         (enum quoting_style): For escape_quoting_style and
39429         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39430         ignored even though they're otherwise like c_quoting_style.
39431         Add custom_quoting_style member and document with comparison to
39432         clocale_quoting_style.
39433         * tests/test-quotearg.c (custom_quotes): New array.
39434         (custom_results): New array.
39435         (main): Extend to test custom quoting.
39436
39437 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39438
39439         quotearg: fix right quote escaping when it's in quote_these_too
39440         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39441         quote, be sure to prepend only one backslash.
39442         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39443         (main): Test it.
39444
39445 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39446
39447         quotearg-tests: test escaping of embedded locale quotes
39448         * tests/test-quotearg.c (struct result_strings): Add member for
39449         new input.
39450         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39451         (inputs): Add new input.
39452         (results_g): Add expected results.
39453         (flag_results): Likewise.
39454         (locale_results): Likewise.
39455         (compare_strings): Check those.
39456
39457 2009-08-23  Bruno Haible  <bruno@clisp.org>
39458
39459         Tests for module 'dup3'.
39460         * modules/dup3-tests: New file.
39461         * tests/test-dup3.c: New file.
39462
39463         New module 'dup3'.
39464         * lib/unistd.in.h (dup3): New declaration.
39465         * lib/dup3.c: New file.
39466         * m4/dup3.m4: New file.
39467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39468         HAVE_DUP3.
39469         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39470         * modules/dup3: New file.
39471         * doc/glibc-functions/dup3.texi: Mention the new module.
39472
39473 2009-08-23  Bruno Haible  <bruno@clisp.org>
39474
39475         Tweak the dup2 test.
39476         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39477         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39478         the test file is still empty. Fix argument order of lseek.
39479
39480 2009-08-23  Bruno Haible  <bruno@clisp.org>
39481
39482         Avoid test link errors when the modules getopt-gnu, gettext are used.
39483         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39485
39486 2009-08-23  Bruno Haible  <bruno@clisp.org>
39487
39488         Fix getdtablesize() on mingw.
39489         * lib/getdtablesize.c (getdtablesize): Implement differently.
39490         * lib/unistd.in.h (getdtablesize): Improve comment.
39491
39492 2009-08-23  Bruno Haible  <bruno@clisp.org>
39493
39494         New module 'mkostemp'.
39495         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39496         * lib/stdlib.in.h (mksotemp): New declaration.
39497         * lib/mkostemp.c: New file, from glibc with modifications.
39498         * lib/tempname.h (GT_FILE): Remove outdated comment.
39499         (gen_tempname): Add flags argument.
39500         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39501         (__GT_FILE): Map to 1.
39502         (small_open, large_open): Remove macros.
39503         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39504         * lib/mkstemp.c (mkstemp): Update.
39505         * lib/mkdtemp.c (mkdtemp): Likewise.
39506         * m4/mkostemp.m4: New file.
39507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39508         HAVE_MKOSTEMP.
39509         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39510         HAVE_MKOSTEMP.
39511         * modules/mkostemp: New file, based on modules/mkstemp.
39512         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39513         * NEWS: Mention the change.
39514
39515 2009-08-23  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39518         Reported by Eric Blake.
39519
39520 2009-08-23  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39523         Reported by Eric Blake.
39524
39525 2009-08-23  Bruno Haible  <bruno@clisp.org>
39526
39527         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39528         * modules/pipe2 (Depends-on): Likewise.
39529
39530 2009-08-23  Eric Blake  <ebb9@byu.net>
39531
39532         fcntl-h: add O_TTY_INIT support
39533         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39534         * tests/test-fcntl-h.c (o): Test it.
39535         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39536
39537         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39538         * modules/fcntl: Move <fcntl.h> header replacement...
39539         * modules/fcntl-h: ...to new name, so as not to collide with
39540         like-named function.
39541         * tests/test-fcntl.c: Rename...
39542         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39543         * modules/fcntl-tests: Rename...
39544         * modules/fcntl-h-tests: ...to this.  Update test file name.
39545         * modules/chdir-long (Depends-on): Update clients.
39546         * modules/chdir-safer (Depends-on): Likewise.
39547         * modules/fcntl-safer (Depends-on): Likewise.
39548         * modules/fts (Depends-on): Likewise.
39549         * modules/mkancesdirs (Depends-on): Likewise.
39550         * modules/mkdir-p (Depends-on): Likewise.
39551         * modules/open (Depends-on): Likewise.
39552         * modules/savewd (Depends-on): Likewise.
39553         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39554         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39555
39556 2009-08-22  Bruno Haible  <bruno@clisp.org>
39557
39558         * modules/binary-io (License): Relicense under LGPL.
39559         * modules/pipe2 (License): Likewise.
39560
39561 2009-08-22  Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39564         return value.
39565         * lib/pipe-filter-gi.c (filter_init): Likewise.
39566         Reported by Eric Blake.
39567
39568 2009-08-22  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39571         * modules/pipe (Depends-on): Add pipe2.
39572
39573 2009-08-22  Bruno Haible  <bruno@clisp.org>
39574
39575         Tests for module 'pipe2'.
39576         * modules/pipe2-tests: New file.
39577         * tests/test-pipe2.c: New file.
39578
39579         New module 'pipe2'.
39580         * lib/unistd.in.h (pipe2): New declaration.
39581         * lib/pipe2.c: New file.
39582         * m4/pipe2.m4: New file.
39583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39584         HAVE_PIPE2.
39585         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39586         * modules/pipe2: New file.
39587         * doc/glibc-functions/pipe2.texi: Mention the new module.
39588
39589 2009-08-22  Bruno Haible  <bruno@clisp.org>
39590
39591         Reference some new glibc functions.
39592         * doc/glibc-functions/accept4.texi: New file.
39593         * doc/glibc-functions/dup3.texi: New file.
39594         * doc/glibc-functions/mkostemp.texi: New file.
39595         * doc/glibc-functions/pipe2.texi: New file.
39596         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39597         (Glibc sys/socket.h): Refer to accept4.
39598         (Glibc unistd.h): Refer to dup3, pipe2.
39599         Reported by Eric Blake.
39600
39601 2009-08-22  Jim Meyering  <meyering@redhat.com>
39602             Bruno Haible  <bruno@clisp.org>
39603
39604         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39605         This makes it so packages using automake-1.11's silent-rules option
39606         can print e.g., a single "GEN    configmake.h" line, rather than
39607         the 30+ statements that perform the job.  If you want to see the
39608         actual commands, you can still run "make V=1".
39609         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39610         so that make output is abbreviated when those variables are defined
39611         appropriately.
39612         * modules/argz: Likewise.
39613         * modules/arpa_inet: Likewise.
39614         * modules/byteswap: Likewise.
39615         * modules/configmake: Likewise.
39616         * modules/dirent: Likewise.
39617         * modules/errno: Likewise.
39618         * modules/fcntl: Likewise.
39619         * modules/float: Likewise.
39620         * modules/fnmatch: Likewise.
39621         * modules/getopt-posix: Likewise.
39622         * modules/glob: Likewise.
39623         * modules/iconv_open: Likewise.
39624         * modules/inttypes: Likewise.
39625         * modules/localcharset: Likewise.
39626         * modules/locale: Likewise.
39627         * modules/math: Likewise.
39628         * modules/netdb: Likewise.
39629         * modules/netinet_in: Likewise.
39630         * modules/poll: Likewise.
39631         * modules/posix_spawnp-tests: Likewise.
39632         * modules/sched: Likewise.
39633         * modules/search: Likewise.
39634         * modules/selinux-h: Likewise.
39635         * modules/signal: Likewise.
39636         * modules/spawn: Likewise.
39637         * modules/stdarg: Likewise.
39638         * modules/stdbool: Likewise.
39639         * modules/stddef: Likewise.
39640         * modules/stdint: Likewise.
39641         * modules/stdio: Likewise.
39642         * modules/stdlib: Likewise.
39643         * modules/string: Likewise.
39644         * modules/strings: Likewise.
39645         * modules/sys_file: Likewise.
39646         * modules/sys_ioctl: Likewise.
39647         * modules/sys_select: Likewise.
39648         * modules/sys_socket: Likewise.
39649         * modules/sys_stat: Likewise.
39650         * modules/sys_time: Likewise.
39651         * modules/sys_times: Likewise.
39652         * modules/sys_utsname: Likewise.
39653         * modules/sys_wait: Likewise.
39654         * modules/sysexits: Likewise.
39655         * modules/time: Likewise.
39656         * modules/unistd: Likewise.
39657         * modules/wchar: Likewise.
39658         * modules/wctype: Likewise.
39659
39660 2009-08-22  Jim Meyering  <meyering@redhat.com>
39661
39662         announce-gen: detect write failure
39663         * build-aux/announce-gen: Add Coda at end.
39664         Remove equivalent-but-more-verbose block at top.
39665
39666 2009-08-19  Akim Demaille  <demaille@gostai.com>
39667
39668         bootstrap: --help to stdout.
39669         * bootstrap (usage): Don't send --help to stderr.
39670         Use a here doc instead of a long string.
39671
39672 2009-08-21  Eric Blake  <ebb9@byu.net>
39673
39674         test-popen-safer: split from test-popen
39675         * tests/test-popen.c (main): Move...
39676         * tests/test-popen.h: ...into new file.
39677         * tests/test-popen-safer2.c: New file.
39678         * modules/popen-tests (Files): Add test-popen.h.
39679         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39680         Suggested by Bruno Haible.
39681
39682         test-fcntl-safer: split from test-open
39683         * tests/test-open.c (main): Move...
39684         * tests/test-open.h: ...into new file.
39685         * tests/test-fcntl-safer.c: New file.
39686         * modules/open-tests (Files): Add test-open.h.
39687         * modules/fcntl-safer-tests: New file.
39688         Suggested by Bruno Haible.
39689
39690         test-fopen-safer: split from test-fopen
39691         * tests/test-fopen.c (main): Move...
39692         * tests/test-fopen.h: ...into new file.
39693         * tests/test-fopen-safer.c: New file.
39694         * modules/fopen-tests (Files): Add test-fopen.h.
39695         * modules/fopen-safer-tests: New file.
39696         Suggested by Bruno Haible.
39697
39698 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39699
39700         popen-safer: test O_CLOEXEC at run-time.
39701         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39702
39703 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39704
39705         fcntl: move more flags to the header
39706         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39707         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39708         * lib/fcntl.in.h: Do both things here.
39709
39710 2009-08-21  Jim Meyering  <meyering@redhat.com>
39711
39712         consistently remove $@-t before redirecting to it
39713         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39714         * modules/alloca-opt: Likewise.
39715         * modules/byteswap: Likewise.
39716         * modules/fnmatch: Likewise.
39717         * modules/getopt-posix: Likewise.
39718         * modules/glob: Likewise.
39719         * modules/poll: Likewise.
39720         * modules/posix_spawnp-tests: Likewise.
39721         * modules/sys_socket: Likewise.
39722         * modules/sysexits: Likewise.
39723
39724 2009-08-21  Eric Blake  <ebb9@byu.net>
39725
39726         popen: simplify access to original popen
39727         * lib/popen.c (rpl_popen): No need to worry about popen being a
39728         macro.
39729         Reported by Bruno Haible.
39730
39731 2009-08-20  Eric Blake  <ebb9@byu.net>
39732
39733         build: avoid some compiler warnings
39734         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39735         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39736         type.
39737         (new_exclude_segment, excluded_file_pattern_p)
39738         (excluded_file_name_p): Reduce scope.
39739         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39740         old-style declaration.
39741
39742 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39743
39744         * tests/test-exclude1.sh: Handle Windows EOL.
39745         * tests/test-exclude2.sh: Likewise.
39746         * tests/test-exclude3.sh: Likewise.
39747         * tests/test-exclude4.sh: Likewise.
39748         * tests/test-exclude5.sh: Likewise.
39749         * tests/test-exclude6.sh: Likewise.
39750         * tests/test-exclude7.sh: Likewise.
39751
39752 2009-08-19  Akim Demaille  <demaille@gostai.com>
39753
39754         bootstrap: find sha1sum when named gsha1sum.
39755         * bootstrap (find_tool): New.
39756         ($SHA1SUM): New.
39757         Use it.
39758
39759 2009-08-20  Jim Meyering  <meyering@redhat.com>
39760
39761         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39762         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39763         expression that converts "." in a file name to "\." in the resulting
39764         regexp.  Start with a dummy statement, so that prior shell variable
39765         definitions are expanded portably.  Reported by Simon Josefsson.
39766
39767 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39768
39769         Fix polling for writeability of a screen buffer.
39770         * lib/poll.c: Distinguish input and screen buffers for the
39771         Win32 implementation.
39772         * lib/select.c: Likewise.
39773
39774 2009-08-19  Eric Blake  <ebb9@byu.net>
39775
39776         popen-safer: prevent popen from clobbering std descriptors
39777         * modules/popen-safer: New file.
39778         * lib/popen-safer.c: Likewise.
39779         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39780         * lib/stdio--.h (popen): Provide override.
39781         * lib/stdio-safer.h (popen_safer): Provide declaration.
39782         * tests/test-popen.c (includes): Partially test this.
39783         * modules/popen-safer-tests: New file, for more tests.
39784         * tests/test-popen-safer.c: Likewise.
39785         * MODULES.html.sh (file stream based Input/Output): Mention it.
39786
39787         tests: test some of the *-safer modules
39788         * modules/fopen-safer (Depends-on): Add fopen.
39789         * modules/fcntl-safer (Depends-on): Add fcntl.
39790         * modules/stdlib-safer (Depends-on): Add stdlib.
39791         (configure.ac): Set indicator.
39792         * modules/unistd-safer (configure.ac): Likewise.
39793         * modules/tmpfile-safer (configure.ac): Likewise.
39794         (Depends-on): Add tmpfile.
39795         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39796         active.
39797         * tests/test-fopen.c (includes): Test safer versions when they are
39798         in use.
39799         * tests/test-open.c (includes): Likewise.
39800
39801         popen: fix cygwin 1.5 bug when stdin closed
39802         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39803         * modules/popen: New file.
39804         * modules/popen-tests: Likewise.
39805         * tests/test-popen.c: Likewise.
39806         * m4/popen.m4: Likewise.
39807         * lib/popen.c: Likewise.
39808         * lib/stdio.in.h (popen): New declaration.
39809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39810         * modules/stdio (Makefile.am): Likewise.
39811         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39812
39813 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39814
39815         maint.mk: give full control over update-copyright exclusions
39816         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39817         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39818         (update-copyright): Don't force inclusion of top-level
39819         ChangeLog.  Don't force exclusion of all COPYING files, but make
39820         them the default exclusion instead.
39821
39822 2009-08-16  Bruno Haible  <bruno@clisp.org>
39823
39824         Fix test failures on Solaris 10.
39825         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39826         tests when Solaris iconv() is used.
39827         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39828         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39829         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39830         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39831         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39832
39833 2009-08-16  Bruno Haible  <bruno@clisp.org>
39834
39835         Fix test failures on Solaris 10.
39836         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39837         'tr' program and pass it as first argument.
39838         * tests/test-pipe-filter-gi1.sh: Likewise.
39839         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39840         program as first argument.
39841         * tests/test-pipe-filter-gi1.c (main): Likewise.
39842
39843 2009-08-16  Eric Blake  <ebb9@byu.net>
39844
39845         fpurge: fix previous commits
39846         * modules/fpurge (Makefile.am): Make replacement conditional,
39847         partially reverting 2007-04-29 change; missed in previous
39848         attempt.
39849         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39850         is missing.
39851
39852 2009-08-16  Bruno Haible  <bruno@clisp.org>
39853
39854         Clarify fpurge's effect on the file position.
39855         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39856         * tests/test-fpurge.c (main): Make a second pass for checking the file
39857         position.
39858
39859 2009-08-16  Bruno Haible  <bruno@clisp.org>
39860
39861         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39862         declaration of fpurge is missing.
39863         * tests/test-fpurge.c (main): Check that the file has not more contents
39864         than expected. Close the file before removing it.
39865
39866 2009-08-15  Eric Blake  <ebb9@byu.net>
39867
39868         fpurge: don't wrap working cygwin implementation
39869         * lib/fpurge.c (fpurge): Fix comment typo.
39870         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39871         1.7 to avoid replacement.
39872         * tests/test-fpurge.c (main): Enhance test.
39873
39874 2009-08-15  Eric Blake  <ebb9@byu.net>
39875         and Jim Meyering  <meyering@redhat.com>
39876
39877         test-update-copyright: skip if perl is insufficient
39878         * tests/test-update-copyright.sh: Failure to run maintainer tool
39879         should not cause testsuite failure on cygwin 1.5.
39880
39881 2009-08-14  Eric Blake  <ebb9@byu.net>
39882
39883         doc: mention more functions added in cygwin 1.7.0
39884         * doc/posix-headers/limits.texi (limits.h): Update for recent
39885         cygwin additions.
39886         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39887         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39888         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39889         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39890         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39891
39892 2009-08-14  Eric Blake  <ebb9@byu.net>
39893
39894         maint.mk: simplify update-copyright rule
39895         * top/maint.mk (update-copyright-local): Delete, and document how
39896         to do it in cfg.mk instead.
39897         (update-copyright-exclude-regexp): Delete, and document how to do
39898         it in .x-update-copyright instead.
39899         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39900         exclude ChangeLog.
39901
39902 2009-08-14  Bruno Haible  <bruno@clisp.org>
39903
39904         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39905
39906 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39907
39908         maint.mk: support update-copyright-env
39909         * top/maint.mk (update-copyright-env): Define place-holder.
39910         (update-copyright): Expand $(update-copyright-env) before
39911         invoking update-copyright.
39912
39913 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39914
39915         update-copyright: implement forced reformatting
39916         * build-aux/update-copyright: Implement and document
39917         UPDATE_COPYRIGHT_FORCE.
39918         * tests/test-update-copyright.sh: Test it.
39919
39920 2009-08-14  Eric Blake  <ebb9@byu.net>
39921         and Bruno Haible  <bruno@clisp.org>
39922
39923         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39924         * tests/test-locale.c: Revert previous patch related to NULL.
39925         * tests/test-stdio.c: Likewise.
39926         * tests/test-stdlib.c: Likewise.
39927         * tests/test-string.c: Likewise.
39928         * tests/test-unistd.c: Likewise.
39929         * modules/time-tests (Depends-on): Add verify.
39930         * modules/wchar-tests (Depends-on): Likewise.
39931         * tests/test-time.c: Test for NULL compliance.
39932         * tests/test-wchar.c: Likewise.
39933         * modules/locale (Depends-on): Add stddef.
39934         * modules/stdio (Depends-on): Likewise.
39935         * modules/stdlib (Depends-on): Likewise.
39936         * modules/string (Depends-on): Likewise.
39937         * modules/time (Depends-on): Likewise.
39938         * modules/unistd (Depends-on): Likewise.
39939         * modules/wchar (Depends-on): Likewise.
39940         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39941         * lib/stdlib.in.h (includes): Likewise.
39942         * lib/string.in.h (includes): Likewise.
39943         * lib/time.in.h (includes): Likewise.
39944         * lib/unistd.in.h (includes): Likewise.
39945         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39946         replaced.
39947         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39948         * m4/stddef_h.m4: New file.
39949         * modules/stddef: Likewise.
39950         * lib/stddef.in.h: Likewise.
39951         * modules/stddef-tests: Likewise.
39952         * tests/test-stddef.c: Likewise.
39953         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39954         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39955         * doc/posix-headers/locale.texi (locale.h): Likewise.
39956         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39957         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39958         * doc/posix-headers/string.texi (string.h): Likewise.
39959         * doc/posix-headers/time.texi (time.h): Likewise.
39960         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39961         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39962
39963 2009-08-14  Eric Blake  <ebb9@byu.net>
39964
39965         doc: improve git diff of texinfo files
39966         * .gitattributes: Add rule for *.texi files, with hint on how to
39967         use it.
39968         Copied from m4, and based on a report by Bruno Haible.
39969
39970 2009-08-14  Bruno Haible  <bruno@clisp.org>
39971
39972         Disable multithread support by default on Cygwin 1.5.x for real.
39973         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39974
39975 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39976
39977         update-copyright: much ado about intervals
39978         * build-aux/update-copyright: Implement and document
39979         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39980         of copyright year intervals.
39981         Also, document UPDATE_COPYRIGHT_YEAR.
39982         * tests/test-update-copyright.sh: Test it.
39983
39984         update-copyright: convert 2-digit to 4-digit years
39985         * build-aux/update-copyright: Implement and document.
39986         * tests/test-update-copyright.sh: Update.
39987
39988 2009-08-14  Jim Meyering  <meyering@redhat.com>
39989
39990         test-exclude: avoid coreutils "make check" failure
39991         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39992         just as in test-argmatch.c.
39993
39994 2009-08-13  Eric Blake  <ebb9@byu.net>
39995
39996         test-dup2: fix bad assumption
39997         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39998         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39999
40000         test-version-etc: fix CRLF portability issue
40001         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
40002         recognize \r.
40003         * tests/test-argp-version-etc-1.sh: Likewise.
40004
40005         getopt: update client modules
40006         * modules/argp (Depends-on): Use getopt-gnu.
40007         * modules/git-merge-changelog (Depends-on): Likewise.
40008         * modules/long-options (Depends-on): Likewise.
40009         * modules/xstrtol (Depends-on): Likewise.
40010
40011 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40012
40013         * tests/test-version-etc.sh: Don't fail on different
40014         project/version.  Don't fail on CRLF differences.  Rewrite to use
40015         multiple -e instead of multiple sed forks, suggested by Eric Blake
40016         <ebb9@byu.net>.
40017         * tests/test-argp-version-etc-1.sh: Likewise.
40018
40019 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40020
40021         * tests/test-version-etc.sh: Don't fail on different
40022         project/version.
40023
40024 2009-08-12  Bruno Haible  <bruno@clisp.org>
40025
40026         Tests for modules 'getopt-posix', 'getopt-gnu'.
40027         * modules/getopt-posix-tests: New file.
40028         * tests/test-getopt.c: New file.
40029         * tests/test-getopt.h: New file.
40030         * tests/test-getopt_long.h: New file.
40031
40032         New modules 'getopt-posix', 'getopt-gnu'.
40033         * modules/getopt-gnu: New file, renamed from modules/getopt.
40034         * modules/getopt-posix: New file.
40035         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
40036         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
40037         (gl_GETOPT): Remove macro.
40038         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
40039         Disable the test against BSD systems that declare optreset. Test
40040         against mingw bug. Test against lack of support of optional arguments
40041         on many platforms.
40042         * doc/glibc-headers/getopt.texi: Update module name and list of
40043         relevant platforms.
40044         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
40045         'getopt-gnu' and more portability problems.
40046         * NEWS: Mention the changes.
40047
40048 2009-08-12  Bruno Haible  <bruno@clisp.org>
40049
40050         Ensure that optarg etc. get declared by <unistd.h>.
40051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
40052         AC_USE_SYSTEM_EXTENSIONS.
40053         * modules/getopt (Depends-on): Add 'extensions'.
40054
40055 2009-08-12  Bruno Haible  <bruno@clisp.org>
40056
40057         Avoid test link errors.
40058         * modules/pipe-filter-ii-tests (Makefile.am): Define
40059         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
40060         * modules/pipe-filter-gi-tests (Makefile.am): Define
40061         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
40062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40063
40064 2009-08-12  Bruno Haible  <bruno@clisp.org>
40065
40066         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
40067         gl_GETOPT_SUBSTITUTE before.
40068         (gl_GETOPT): Use it.
40069         * m4/argp.m4 (gl_ARGP): Update.
40070         Reported by Sergey Poznyakoff.
40071
40072         * m4/getopt.m4: Reorder macros.
40073         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
40074         (gl_GETOPT_SUBSTITUTE): Remove macro.
40075
40076 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40077
40078         Minor improvement in gitlog-to-changelog
40079
40080         * build-aux/gitlog-to-changelog: New option `--format' makes
40081         output format string configurable.
40082
40083 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40084
40085         Optimize exclude: use hash tables for non-wildcard patterns.
40086
40087         * lib/exclude.c: Include hash.h and mbuiter.h
40088         (struct exclude_pattern, exclude_segment): New data types.
40089         (struct exclude): Rewrite.
40090         (fnmatch_pattern_has_wildcards): New function.
40091         (new_exclude_segment, free_exclude_segment): New functions.
40092         (excluded_file_pattern_p, excluded_file_name_p): New functions.
40093         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
40094         * lib/exclude.h (is_fnmatch_pattern): New prototype.
40095         * modules/exclude: Depend on hash and mbuiter.
40096
40097         * modules/exclude-tests: New file.
40098         * tests/test-exclude.c: New file.
40099         * tests/test-exclude1.sh: New file.
40100         * tests/test-exclude2.sh: New file.
40101         * tests/test-exclude3.sh: New file.
40102         * tests/test-exclude4.sh: New file.
40103         * tests/test-exclude5.sh: New file.
40104         * tests/test-exclude6.sh: New file.
40105         * tests/test-exclude7.sh: New file.
40106
40107 2009-08-12  Bruno Haible  <bruno@clisp.org>
40108
40109         Ensure that getopt() gets declared by <unistd.h>.
40110         * lib/unistd.in.h: Conditionally include getopt.h.
40111         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
40112         Set GNULIB_UNISTD_H_GETOPT.
40113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40114         GNULIB_UNISTD_H_GETOPT.
40115         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
40116
40117 2009-08-12  Bruno Haible  <bruno@clisp.org>
40118
40119         Clarify logic.
40120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
40121         gl_replace_getopt instead of GETOPT_H.
40122
40123 2009-08-12  Bruno Haible  <bruno@clisp.org>
40124
40125         * m4/getopt.m4: Add comments.
40126
40127 2009-08-12  Bruno Haible  <bruno@clisp.org>
40128
40129         Disable multithread support by default on Cygwin 1.5.x.
40130         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
40131         set gl_use_threads=no if not specified otherwise.
40132
40133 2009-08-11  Bruno Haible  <bruno@clisp.org>
40134
40135         Avoid compilation error on NetBSD 5.0.
40136         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
40137         * tests/test-stdio.c: Likewise.
40138         * tests/test-stdlib.c: Likewise.
40139         * tests/test-string.c: Likewise.
40140         * tests/test-unistd.c: Likewise.
40141         Reported by Greg Troxel <gdt@ir.bbn.com>
40142         at <https://savannah.gnu.org/support/?106973>.
40143
40144 2009-08-11  Bruno Haible  <bruno@clisp.org>
40145
40146         * modules/dup2-tests (Depends-on): Remove close.
40147
40148         Undo 2009-07-19 commit.
40149         * modules/acl-tests (Depends-on): Remove close.
40150         * modules/binary-io-tests (Depends-on): Likewise.
40151         * modules/closein-tests (Depends-on): Likewise.
40152         * modules/flock-tests (Depends-on): Likewise.
40153         * modules/fsync-tests (Depends-on): Likewise.
40154         * modules/lseek-tests (Depends-on): Likewise.
40155         * modules/pipe-tests (Depends-on): Likewise.
40156         * modules/posix_spawn-tests (Depends-on): Likewise.
40157         * modules/posix_spawnp-tests (Depends-on): Likewise.
40158         * modules/stat-time-tests (Depends-on): Likewise.
40159         * modules/yesno-tests (Depends-on): Likewise.
40160
40161 2009-08-10  Bruno Haible  <bruno@clisp.org>
40162
40163         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
40164
40165 2009-08-10  Bruno Haible  <bruno@clisp.org>
40166
40167         Fix a gcc warning.
40168         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
40169
40170 2009-08-10  Bruno Haible  <bruno@clisp.org>
40171
40172         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
40173         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
40174         not only the first time.
40175         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
40176         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
40177         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
40178         is 1, not only the the first time.
40179
40180 2009-08-10  Bruno Haible  <bruno@clisp.org>
40181
40182         Make it possible to use module 'gethostname' without module 'close'.
40183         * lib/unistd.in.h (close): Evoke a link error only if
40184         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40186         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40187         * modules/unistd (Makefile.am): Substitute
40188         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40189         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
40190         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40191         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
40192         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40193         * modules/sys_ioctl (Makefile.am): Substitute
40194         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40195         * modules/socket (configure.ac): On native Windows, set
40196         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
40197         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40198         Reported by Sam Steingold <sds@gnu.org>.
40199
40200 2009-08-10  Bruno Haible  <bruno@clisp.org>
40201
40202         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
40203         * modules/ioctl (configure.ac): Likewise.
40204
40205 2009-08-10  Bruno Haible  <bruno@clisp.org>
40206
40207         Avoid collision between gnulib wrapper and libintl wrapper.
40208         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
40209         already defined in intl/printf.c.
40210         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
40211         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
40212
40213 2009-08-09  Bruno Haible  <bruno@clisp.org>
40214
40215         Make <sys/select.h> really self-contained, also on Solaris 10.
40216         * lib/sys_select.in.h: Include <string.h>.
40217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
40218         Solaris 10 problem.
40219         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
40220         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
40221         Reported by Jim Meyering.
40222
40223 2009-08-09  Bruno Haible  <bruno@clisp.org>
40224
40225         Avoid warnings from 'aclocal' that are due to a use of macro name
40226         AM_XGETTEXT_OPTION that is not defined in automake.
40227         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40228         automake.
40229         * modules/error (configure.ac): Likewise.
40230         * modules/propername (configure.ac): Likewise.
40231         * modules/vasprintf (configure.ac): Likewise.
40232         * modules/verror (configure.ac): Likewise.
40233         * modules/xprintf (configure.ac): Likewise.
40234         * modules/xvasprintf (configure.ac): Likewise.
40235
40236 2009-08-08  Bruno Haible  <bruno@clisp.org>
40237
40238         Avoid compilation error in C++ mode.
40239         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40240         Reported by Sam Steingold <sds@gnu.org>.
40241
40242 2009-08-08  Bruno Haible  <bruno@clisp.org>
40243
40244         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40245         for the various Unix platforms.
40246         * doc/posix-headers/limits.texi: Update platforms list regarding
40247         HOST_NAME_MAX.
40248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40249
40250 2009-08-07  Jim Meyering  <meyering@redhat.com>
40251
40252         selinux-at: fix typo in a comment
40253         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40254         Spotted by Paolo Bonzini.
40255
40256         selinux-at: remove redundant m4 code, add documentation
40257         * modules/selinux-at (configure.ac): Remove redundant code.
40258         LIB_SELINUX is already set via the dependent module, selinux-h.
40259         (Include): Add quotes around selinux-at.h.
40260         * lib/selinux-at.h: Add documentation.
40261         Reported by Bruno Haible in
40262         http://marc.info/?l=gnulib-bug&m=124958988300749
40263
40264 2009-08-07  Bruno Haible  <bruno@clisp.org>
40265
40266         Avoid link error on MacOS X 10.3 and 10.4.
40267         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40268         on non-ELF systems.
40269         * lib/argp-pv.c (argp_program_version): Likewise.
40270         Reported by Simon Josefsson.
40271
40272 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40273
40274         * tests/test-version-etc.sh: Use $EXEEXT.
40275
40276 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40277
40278         update-copyright: update documentation to point to maint.mk
40279         * build-aux/update-copyright: Here.
40280
40281 2009-08-06  Jim Meyering  <meyering@redhat.com>
40282
40283         maint.mk: support update-copyright-local
40284         * top/maint.mk (update-copyright-local): Define place-holder.
40285         (update-copyright): Depend on $(update-copyright-local).
40286
40287 2009-08-06  Jim Meyering  <meyering@redhat.com>
40288
40289         selinux-at: new module
40290         Initially written for coreutils, this module will soon be
40291         used by findutils, too.
40292         * MODULES.html.sh [Misc]: Add selinux-at.
40293         * lib/selinux-at.h: New file, from coreutils.
40294         * lib/selinux-at.c: Likewise.
40295         * modules/selinux-at: Likewise.
40296         (License): Change from LGPL to GPL, since it depends
40297         on the GPL'd openat module.
40298
40299         doc: update README
40300         * README: Remove references to cogito.
40301         Remove cvs-repo-updating instructions from 2007.
40302         Don't imply that CVS is better if you have limited disk space.
40303
40304 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40305
40306         update-copyright: support C-style comments
40307         * build-aux/update-copyright: Implement and document.
40308         * tests/test-update-copyright.sh: Test.
40309
40310 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40311
40312         update-copyright: support omitted "(C)"
40313         * build-aux/update-copyright: Implement and document.  Also,
40314         allow variable whitespace before "(C)".
40315         * tests/test-update-copyright.sh: Test.
40316
40317 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40318
40319         update-copyright: don't trip on non-FSF copyright statements
40320         * build-aux/update-copyright: Fix so that the first correctly
40321         formatted FSF copyright statement is recognized no matter what
40322         appears before it.  Update documentation.
40323         * tests/test-update-copyright.sh: Test that.
40324
40325 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40326
40327         update-copyright: clean up code a little
40328         * build-aux/update-copyright: Append "_re" to the name of any
40329         variable holding a regular expression.
40330         Replace "old" and "new" with "stmt" in variable names.
40331         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40332         handled correctly.
40333         Format code more consistently.
40334
40335 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40336
40337         update-copyright-tests: improve portability
40338         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40339         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40340
40341 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40342
40343         update-copyright: support @copyright{} and &copy;
40344         * build-aux/update-copyright: Implement and document.
40345         * tests/test-update-copyright.sh: Test.
40346
40347 2009-08-04  Jim Meyering  <meyering@redhat.com>
40348
40349         update-copyright-tests: correctly test EOL=\r\n handling
40350         * tests/test-update-copyright.sh: Put \r at the end of some lines
40351         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40352
40353         maint.mk: make update-copyright exclusion list more configurable
40354         * top/maint.mk (update-copyright): Default to excluding COPYING,
40355         but allow an override, in case someone does want to update that file.
40356
40357         maint.mk: don't update copyright date in COPYING
40358         * top/maint.mk (update-copyright): Exclude COPYING.
40359
40360         maint.mk: add a copyright-updating rule
40361         * top/maint.mk (update-copyright): New rule.
40362         Derived from coreutils/Makefile.am.
40363
40364         update-copyright: rename some variables
40365         * build-aux/update-copyright: Rename a few variables for clarity.
40366         Tweak syntax.  List Joel E. Denny as coauthor.
40367
40368 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40369
40370         update-copyright: fix bug for 2-digit last year and add tests
40371         * build-aux/update-copyright: Fix bug.
40372         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40373         specified.
40374         * modules/update-copyright-tests: New
40375         * tests/test-update-copyright.sh: New.
40376
40377 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40378
40379         update-copyright: handle leading tabs in line prefix
40380         * build-aux/update-copyright: Count leading tabs as 8 spaces
40381         when computing margin.  This helps with the formatting of
40382         ChangeLogs, for example.
40383         Fix documentation a little.
40384
40385 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40386
40387         update-copyright: support EOL=\r\n
40388         * build-aux/update-copyright: Implement that.
40389
40390 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40391
40392         update-copyright: automatically format copyright statements
40393         * build-aux/update-copyright: Implement that.
40394         Also, be a little more predictable and safer by always failing
40395         when the full copyright format is not perfectly recognized as an
40396         unbroken whole.  Discussed at
40397         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40398         Rewrite documentation.
40399
40400 2009-08-03  Bruno Haible  <bruno@clisp.org>
40401
40402         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40403
40404 2009-08-02  Bruno Haible  <bruno@clisp.org>
40405
40406         Tests for module 'uname'.
40407         * modules/uname-tests: New file.
40408         * tests/test-uname.c: New file.
40409
40410         New module 'uname'.
40411         * lib/uname.c: New file.
40412         * m4/uname.m4: New file.
40413         * modules/uname: New file.
40414         * doc/posix-functions/uname.texi: Mention the new module.
40415
40416 2009-08-02  Bruno Haible  <bruno@clisp.org>
40417
40418         Tests for module 'sys_utsname'.
40419         * modules/sys_utsname-tests: New file.
40420         * tests/test-sys_utsname.c: New file.
40421
40422         New module 'sys_utsname'.
40423         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40424         * m4/sys_utsname_h.m4: New file.
40425         * modules/sys_utsname: New file.
40426         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40427
40428 2009-08-02  Bruno Haible  <bruno@clisp.org>
40429
40430         Implicitly initialize the sockets library.
40431         * lib/gethostname.c: Include sockets.h.
40432         (rpl_gethostname): Invoke gl_sockets_startup.
40433         * lib/socket.c: Include sockets.h.
40434         (rpl_socket): Invoke gl_sockets_startup.
40435         * modules/gethostname (Depends-on): Add sockets.
40436         * modules/socket (Depends-on): Likewise.
40437         * tests/test-poll.c: Don't include sockets.h.
40438         (main): Don't invoke gl_sockets_startup.
40439         * tests/test-select.c: Don't include sockets.h.
40440         (main): Don't invoke gl_sockets_startup.
40441
40442 2009-08-02  Bruno Haible  <bruno@clisp.org>
40443
40444         Allow multiple calls to gl_sockets_startup.
40445         * lib/sockets.c (initialized_sockets_version): New variable.
40446         (gl_sockets_startup): Do nothing if already called for this or a higher
40447         version.
40448         (gl_sockets_cleanup): Reset initialized_sockets_version.
40449
40450 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40451
40452         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40453         different project/version.
40454
40455 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40456             Bruno Haible  <bruno@clisp.org>
40457
40458         Tests for module 'pipe-filter-gi'.
40459         * modules/pipe-filter-gi-tests: New file.
40460         * tests/test-pipe-filter-gi1.sh: New file.
40461         * tests/test-pipe-filter-gi1.c: New file.
40462         * tests/test-pipe-filter-gi2.sh: New file.
40463         * tests/test-pipe-filter-gi2-main.c: New file.
40464         * tests/test-pipe-filter-gi2-child.c: New file.
40465
40466         New module 'pipe-filter-gi'.
40467         * lib/pipe-filter-gi.c: New file.
40468         * modules/pipe-filter-gi: New file.
40469
40470 2009-08-02  Bruno Haible  <bruno@clisp.org>
40471             Paolo Bonzini  <bonzini@gnu.org>
40472
40473         Tests for module 'pipe-filter-ii'.
40474         * modules/pipe-filter-ii-tests: New file.
40475         * tests/test-pipe-filter-ii1.sh: New file.
40476         * tests/test-pipe-filter-ii1.c: New file.
40477         * tests/test-pipe-filter-ii2.sh: New file.
40478         * tests/test-pipe-filter-ii2-main.c: New file.
40479         * tests/test-pipe-filter-ii2-child.c: New file.
40480
40481         New module 'pipe-filter-ii'.
40482         * lib/pipe-filter.h: New file.
40483         * lib/pipe-filter-ii.c: New file.
40484         * lib/pipe-filter-aux.h: New file.
40485         * modules/pipe-filter-ii: New file.
40486
40487 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40488
40489         * lib/gc-libgcrypt.c: Change copyright to FSF.
40490         * lib/gc-gnulib.c: Likewise.
40491
40492 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40493
40494         * lib/gethostname.c: Include limits.h.
40495
40496 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40497             Bruno Haible  <bruno@clisp.org>
40498
40499         Ensure HOST_NAME_MAX as part of the gethostname module.
40500         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40501         define also HOST_NAME_MAX.
40502         * tests/test-gethostname.c: Include <limits.h>.
40503         (main): Check also HOST_NAME_MAX.
40504         * doc/posix-headers/limits.texi: Document the mingw problem.
40505
40506 2009-08-02  Bruno Haible  <bruno@clisp.org>
40507
40508         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40509         Add comments.
40510
40511 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40512
40513         * lib/gethostname.c: Add Windows wrapper.
40514         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40515         * modules/gethostname: Depend on sys_socket & errno, for also
40516         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40517         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40518
40519 2009-07-31  Jim Meyering  <meyering@redhat.com>
40520
40521         getloadavg: fix symbol name in comment
40522         * lib/getloadavg.c: Correct a typo I introduced when adding
40523         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40524         Matt Kraai spotted the problem.
40525
40526 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40527
40528         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40529         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40530         code also if ! defined N_NAME_POINTER.
40531         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40532         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40533         but the n_name member is a 12-byte array.
40534
40535 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40536
40537         update-copyright: generalize comment handling
40538         * build-aux/update-copyright: Handle copyright statements
40539         within more comment styles.
40540         Document usage.
40541         Report any file with an external copyright holder or parse failure.
40542
40543 2009-07-29  Jim Meyering  <meyering@redhat.com>
40544
40545         mktime: correct setting of REPLACE_MKTIME
40546         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40547
40548         update-copyright: new module
40549         * modules/update-copyright: New file.
40550         * build-aux/update-copyright: New file.
40551         * MODULES.html.sh (maint+release support): Add update-copyright.
40552
40553 2009-07-27  Bruno Haible  <bruno@clisp.org>
40554
40555         Fix compilation error when <ctime> is used and mktime is replaced.
40556         * lib/time.in.h (mktime): New declaration.
40557         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40558         REPLACE_MKTIME instead of defining mktime in config.h.
40559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40560         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40561         Reported by Ross McFarland <rwmcfa1@neces.com>.
40562
40563 2009-07-27  Bruno Haible  <bruno@clisp.org>
40564
40565         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40566         Reported by Matt Kraai <mkraai@beckman.com>.
40567
40568 2009-07-25  Jim Meyering  <meyering@redhat.com>
40569
40570         maint.mk: avoid warnings about missing files
40571         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40572         diagnostic when .prev-version does not exist.
40573         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40574         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40575         nonexistent cfg.mk.
40576         Suggestions from Simon Josefsson.
40577
40578 2009-07-25  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40581         defined as macros. Needed on QNX 6.4.1.
40582         Reported by Matt Kraai <mkraai@beckman.com>.
40583
40584 2009-07-23  Jim Meyering  <meyering@redhat.com>
40585
40586         maint.mk: invoke "make dist" with a working value of XZ_OPT
40587         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40588
40589 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40590
40591         Make fseeko.c compile on QNX.
40592         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40593
40594 2009-07-22  Peter Simons  <simons@cryp.to>
40595
40596         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40597         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40598         * lib/md4.h: Likewise.
40599         * lib/md5.h: Likewise.
40600         * lib/sha1.h: Likewise.
40601         * lib/sha256.h: Likewise.
40602         * lib/sha512.h: Likewise.
40603
40604         tests-sha1: don't assign literal string to 'char *' variable
40605         * tests/test-sha1.c (main): Declare locals with "const" to match
40606         attributes of the right hand side.
40607
40608 2009-07-21  Eric Blake  <ebb9@byu.net>
40609
40610         dup2: fix more mingw problems
40611         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40612         fd to itself.
40613         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40614         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40615         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40616         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40617         care of mingw bugs.
40618
40619 2009-07-21  Jim Meyering  <meyering@redhat.com>
40620
40621         vc-list-files: avoid failure when /bin/sh is dash
40622         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40623         On some Debian based systems, /bin/sh is a symlink to dash, and running
40624         this command would omit the "/" following each 'tests' prefix:
40625           dash -x build-aux/vc-list-files -C . tests
40626         That is because bash and dash work differently:
40627           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40628           bash ok
40629           dash odd
40630
40631 2009-07-21  Eric Blake  <ebb9@byu.net>
40632
40633         dup2-tests: test previous patch
40634         * modules/dup2-tests: New file.
40635         * tests/test-dup2.c: Likewise.
40636         * tests/test-open.c (main): Avoid unspecified behavior.
40637         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40638         test.
40639
40640         dup2: work around mingw and cygwin 1.5 bug
40641         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40643         * modules/unistd (Makefile.am): Substitute it.
40644         * lib/unistd.in.h (dup2): Declare the replacement.
40645         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40646         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40647         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40648         * modules/execute (Depends-on): Add dup2.
40649         * modules/fseterr (Depends-on): Likewise.
40650         * modules/pipe (Depends-on): Likewise.
40651         * modules/posix_spawn-internal (Depends-on): Likewise.
40652
40653 2009-07-21  Bruno Haible  <bruno@clisp.org>
40654
40655         * modules/.gitattributes: New file.
40656
40657 2009-07-20  Bruno Haible  <bruno@clisp.org>
40658
40659         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40660         (main): Use it.
40661
40662 2009-07-20  Eric Blake  <ebb9@byu.net>
40663
40664         test-pipe: make a bit more robust.
40665         * tests/test-pipe.c (myerr): Allow error messages regardless of
40666         what we do to stderr.
40667         (test_pipe): Rearrange to avoid deadlock.
40668         (child_main): Try a larger read, to ensure we avoided deadlock.
40669         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40670         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40671         if misused.
40672
40673 2009-07-19  Jim Meyering  <meyering@redhat.com>
40674
40675         fts: avoid false-positive cycle-detection
40676         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40677         for each new command line argument.
40678
40679 2009-07-19  Bruno Haible  <bruno@clisp.org>
40680
40681         Fix build error on mingw with the modules sys_select and unistd.
40682         * modules/acl-tests (Depends-on): Add close.
40683         * modules/binary-io-tests (Depends-on): Likewise.
40684         * modules/closein-tests (Depends-on): Likewise.
40685         * modules/flock-tests (Depends-on): Likewise.
40686         * modules/fsync-tests (Depends-on): Likewise.
40687         * modules/lseek-tests (Depends-on): Likewise.
40688         * modules/pipe-tests (Depends-on): Likewise.
40689         * modules/posix_spawn-tests (Depends-on): Likewise.
40690         * modules/posix_spawnp-tests (Depends-on): Likewise.
40691         * modules/stat-time-tests (Depends-on): Likewise.
40692         * modules/yesno-tests (Depends-on): Likewise.
40693
40694 2009-07-19  Bruno Haible  <bruno@clisp.org>
40695
40696         Unify conditionals.
40697         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40698         macros, not at the compiler macros.
40699         * lib/pipe.c: Likewise.
40700         * lib/execute.c: Likewise.
40701         * lib/spawni.c: Likewise.
40702
40703 2009-07-19  Bruno Haible  <bruno@clisp.org>
40704
40705         Fix handling of closed stdin/stdout/stderr on mingw.
40706         * lib/w32spawn.h: Include unistd.h.
40707         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40708         file descriptor with O_NOINHERIT flag.
40709         (fd_safer_noinherit): New function, based on fd-safer.c.
40710         (dup_safer_noinherit): New function, based on dup-safer.c.
40711         (undup_safer_noinherit): New function.
40712         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40713         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40714         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40715         instead of fd_safer.
40716         * tests/test-pipe.c: Include <windows.h>.
40717         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40718         result.
40719
40720         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40721         from main.
40722         (test_pipe): Pass an extra argument for disambiguation.
40723         (main): Invoke parent_main or child_main.
40724
40725         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40726         consistently.
40727
40728 2009-07-18  Eric Blake  <ebb9@byu.net>
40729
40730         test-pipe: fix mingw build
40731         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40732
40733 2009-07-18  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/pipe-tests (Makefile.am): Fix typo.
40736
40737 2009-07-18  Eric Blake  <ebb9@byu.net>
40738
40739         error: fix mingw build
40740         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40741         Reported by Bruno Haible.
40742
40743         error: avoid undefined use of stdout
40744         * lib/error.c (error, error_at_line): Check that fd 1 is open
40745         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40746         is handling faults and the close_stdout module wants to report the
40747         detection of closed stdout as an error.
40748
40749 2009-07-17  Eric Blake  <ebb9@byu.net>
40750
40751         pipe: be robust in face of closed fds
40752         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40753         should cause child to misbehave.
40754         * modules/pipe-tests: New module.
40755         * tests/test-pipe.c: New file.
40756         * tests/test-pipe.sh: New file.
40757         Reported by Akim Demaille.
40758
40759 2009-07-14  Bruno Haible  <bruno@clisp.org>
40760
40761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40762         Reported by anonymous kc.
40763
40764 2009-07-07  Jim Meyering  <meyering@redhat.com>
40765
40766         maint.mk: don't look for translatable strings in *.m4 or *.mk
40767         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40768         when searching for translatable strings.
40769
40770 2009-07-05  Jim Meyering  <meyering@redhat.com>
40771
40772         remove superfluous parentheses in STREQ definition
40773         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40774         * lib/getugroups.c (STREQ): Likewise.
40775         * lib/fnmatch.c (STREQ): Likewise.
40776         Spotted by Bruno Haible.
40777
40778 2009-07-04  Jim Meyering  <meyering@redhat.com>
40779
40780         argv-iter: new module
40781         * MODULES.html.sh: Add argv-iter.
40782         * lib/argv-iter.c, lib/argv-iter.h: New files.
40783         * modules/argv-iter: New file.
40784         * modules/argv-iter-tests: New file.
40785         * tests/test-argv-iter.c: Test it.
40786
40787 2009-07-04  Bruno Haible  <bruno@clisp.org>
40788
40789         Fix assertion.
40790         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40791         contains more exact copies of a given entry than file2, leave the extra
40792         copies unpaired rather than aborting.
40793         Reported by Eric Blake.
40794
40795 2009-07-02  Bruno Haible  <bruno@clisp.org>
40796
40797         Speedup git-merge-changelog for git cherry-pick.
40798         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40799         (entries_mapping_get): New function, extracted from compute_mapping.
40800         (entries_mapping_reverse_get): New function.
40801         (compute_mapping): Add a 'full' argument. Return the result in a
40802         'struct entries_mapping'.
40803         (main): Update. Access the mappings through entries_mapping_get.
40804         Reported by Eric Blake.
40805
40806 2009-07-02  Bruno Haible  <bruno@clisp.org>
40807
40808         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40809         best_i.
40810
40811 2009-07-02  Bruno Haible  <bruno@clisp.org>
40812
40813         Speed up approximate search for matching ChangeLog entries.
40814         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40815         argument. Call fstrcmp_bounded instead of fstrcmp.
40816         (compute_mapping, try_split_merged_entry, main): Update callers.
40817
40818 2009-07-02  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40821
40822 2009-06-30  Bruno Haible  <bruno@clisp.org>
40823
40824         Reduce the number of uc_is_cased calls.
40825         * lib/unicase.h (casing_suffix_context_t): Add
40826         'first_char_except_ignorable' field.
40827         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40828         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40829         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40830         Update initializer.
40831         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40832         case-ignorable characters.
40833         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40834         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40835         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40836         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40837         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40838
40839 2009-06-30  Bruno Haible  <bruno@clisp.org>
40840
40841         Tests for module 'unicase/ignorable'.
40842         * modules/unicase/ignorable-tests: New file.
40843         * tests/unicase/test-ignorable.c: New file, generated by
40844         gen-uni-tables.
40845
40846         Tests for module 'unicase/cased'.
40847         * modules/unicase/cased-tests: New file.
40848         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40849         * tests/unicase/test-predicate-part1.h: New file, derived from
40850         tests/unictype/test-predicate-part1.h.
40851         * tests/unicase/test-predicate-part2.h: New file, same as
40852         tests/unictype/test-predicate-part2.h.
40853
40854         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40855         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40856         (output_casing_properties): New function.
40857         (main): Call it.
40858         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40859         * lib/unicase/cased.c: Include unictype/bitmap.h.
40860         (uc_is_cased): Define through a bitmap lookup.
40861         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40862         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40863         (uc_is_case_ignorable): Define through a bitmap lookup.
40864         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40865         lib/unictype/bitmap.h.
40866         (Depends-on): Add inline. Clean up.
40867         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40868         lib/unictype/bitmap.h.
40869         (Depends-on): Add inline. Clean up.
40870         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40871         recognition.
40872         * tests/unicase/test-u16-tolower.c (main): Likewise.
40873         * tests/unicase/test-u32-tolower.c (main): Likewise.
40874
40875 2009-06-30  Bruno Haible  <bruno@clisp.org>
40876
40877         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40878         * lib/unicase/u16-casemap.c: Likewise.
40879         * lib/unicase/u32-casemap.c: Likewise.
40880
40881 2009-06-29  Bruno Haible  <bruno@clisp.org>
40882
40883         Define u32_casefold as a wrapper around u32_ct_casefold.
40884         * lib/unicase/u32-casefold.c: Update.
40885         * modules/unicase/u32-casefold (Depends-on): Add
40886         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40887         unicase/empty-suffix-context. Clean up.
40888
40889         Define u16_casefold as a wrapper around u16_ct_casefold.
40890         * lib/unicase/u16-casefold.c: Update.
40891         * modules/unicase/u16-casefold (Depends-on): Add
40892         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40893         unicase/empty-suffix-context. Clean up.
40894
40895         Define u8_casefold as a wrapper around u8_ct_casefold.
40896         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40897         * lib/unicase/u8-casefold.c: Update.
40898         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40899         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40900
40901         Define u32_totitle as a wrapper around u32_ct_totitle.
40902         * lib/unicase/u32-totitle.c: Update.
40903         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40904         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40905
40906         Define u16_totitle as a wrapper around u16_ct_totitle.
40907         * lib/unicase/u16-totitle.c: Update.
40908         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40909         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40910
40911         Define u8_totitle as a wrapper around u8_ct_totitle.
40912         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40913         functions.
40914         (FUNC): Delegate to U_CT_TOTITLE.
40915         * lib/unicase/u8-totitle.c: Update.
40916         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40917         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40918
40919         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40920         invocation.
40921         * modules/unicase/u32-tolower (Depends-on): Add
40922         unicase/empty-prefix-context, unicase/empty-suffix-context.
40923
40924         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40925         invocation.
40926         * modules/unicase/u16-tolower (Depends-on): Add
40927         unicase/empty-prefix-context, unicase/empty-suffix-context.
40928
40929         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40930         * modules/unicase/u8-tolower (Depends-on): Add
40931         unicase/empty-prefix-context, unicase/empty-suffix-context.
40932
40933         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40934         invocation.
40935         * modules/unicase/u32-toupper (Depends-on): Add
40936         unicase/empty-prefix-context, unicase/empty-suffix-context.
40937
40938         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40939         invocation.
40940         * modules/unicase/u16-toupper (Depends-on): Add
40941         unicase/empty-prefix-context, unicase/empty-suffix-context.
40942
40943         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40944         * modules/unicase/u8-toupper (Depends-on): Add
40945         unicase/empty-prefix-context, unicase/empty-suffix-context.
40946
40947         New module 'unicase/u32-ct-casefold'.
40948         * lib/unicase/u32-ct-casefold.c: New file.
40949         * modules/unicase/u32-ct-casefold: New file.
40950
40951         New module 'unicase/u16-ct-casefold'.
40952         * lib/unicase/u16-ct-casefold.c: New file.
40953         * modules/unicase/u16-ct-casefold: New file.
40954
40955         New module 'unicase/u8-ct-casefold'.
40956         * lib/unicase/u8-ct-casefold.c: New file.
40957         * lib/unicase/u-ct-casefold.h: New file, derived from
40958         lib/unicase/u-casefold.h.
40959         * modules/unicase/u8-ct-casefold: New file.
40960
40961         New module 'unicase/u32-ct-totitle'.
40962         * lib/unicase/u32-ct-totitle.c: New file.
40963         * modules/unicase/u32-ct-totitle: New file.
40964
40965         New module 'unicase/u16-ct-totitle'.
40966         * lib/unicase/u16-ct-totitle.c: New file.
40967         * modules/unicase/u16-ct-totitle: New file.
40968
40969         New module 'unicase/u8-ct-totitle'.
40970         * lib/unicase/u8-ct-totitle.c: New file.
40971         * lib/unicase/u-ct-totitle.h: New file, derived from
40972         lib/unicase/u-totitle.h.
40973         * modules/unicase/u8-ct-totitle: New file.
40974
40975         New module 'unicase/u32-ct-tolower'.
40976         * lib/unicase/u32-ct-tolower.c: New file.
40977         * modules/unicase/u32-ct-tolower: New file.
40978
40979         New module 'unicase/u16-ct-tolower'.
40980         * lib/unicase/u16-ct-tolower.c: New file.
40981         * modules/unicase/u16-ct-tolower: New file.
40982
40983         New module 'unicase/u8-ct-tolower'.
40984         * lib/unicase/u8-ct-tolower.c: New file.
40985         * modules/unicase/u8-ct-tolower: New file.
40986
40987         New module 'unicase/u32-ct-toupper'.
40988         * lib/unicase/u32-ct-toupper.c: New file.
40989         * modules/unicase/u32-ct-toupper: New file.
40990
40991         New module 'unicase/u16-ct-toupper'.
40992         * lib/unicase/u16-ct-toupper.c: New file.
40993         * modules/unicase/u16-ct-toupper: New file.
40994
40995         New module 'unicase/u8-ct-toupper'.
40996         * lib/unicase/u8-ct-toupper.c: New file.
40997         * modules/unicase/u8-ct-toupper: New file.
40998
40999         Add context arguments to u*_casemap functions.
41000         * lib/unicase/unicasemap.h: Include unicase.h.
41001         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
41002         suffix_context arguments.
41003         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
41004         functions.
41005         (FUNC): Add prefix_context and suffix_context arguments. Use
41006         uc_is_cased and uc_is_case_ignorable.
41007         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
41008         * lib/unicase/u16-casemap.c: Likewise.
41009         * lib/unicase/u32-casemap.c: Likewise.
41010         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
41011         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41012         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
41013         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41014         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
41015         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41016
41017         New module 'unicase/u32-suffix-context'.
41018         * lib/unicase/u32-suffix-context.c: New file.
41019         * modules/unicase/u32-suffix-context: New file.
41020
41021         New module 'unicase/u16-suffix-context'.
41022         * lib/unicase/u16-suffix-context.c: New file.
41023         * modules/unicase/u16-suffix-context: New file.
41024
41025         New module 'unicase/u8-suffix-context'.
41026         * lib/unicase/u8-suffix-context.c: New file.
41027         * lib/unicase/u-suffix-context.h: New file.
41028         * modules/unicase/u8-suffix-context: New file.
41029
41030         New module 'unicase/empty-suffix-context'.
41031         * lib/unicase/empty-suffix-context.c: New file.
41032         * modules/unicase/empty-suffix-context: New file.
41033
41034         New module 'unicase/u32-prefix-context'.
41035         * lib/unicase/u32-prefix-context.c: New file.
41036         * modules/unicase/u32-prefix-context: New file.
41037
41038         New module 'unicase/u16-prefix-context'.
41039         * lib/unicase/u16-prefix-context.c: New file.
41040         * modules/unicase/u16-prefix-context: New file.
41041
41042         New module 'unicase/u8-prefix-context'.
41043         * lib/unicase/u8-prefix-context.c: New file.
41044         * lib/unicase/u-prefix-context.h: New file.
41045         * lib/unicase/context.h: New file.
41046         * modules/unicase/u8-prefix-context: New file.
41047
41048         New module 'unicase/empty-prefix-context'.
41049         * lib/unicase/empty-prefix-context.c: New file.
41050         * modules/unicase/empty-prefix-context: New file.
41051
41052         New module 'unicase/ignorable'.
41053         * lib/unicase/ignorable.c: New file.
41054         * modules/unicase/ignorable: New file.
41055
41056         New module 'unicase/cased'.
41057         * lib/unicase/caseprop.h: New file.
41058         * lib/unicase/cased.c: New file.
41059         * modules/unicase/cased: New file.
41060
41061         New functions for case mapping of substrings.
41062         * lib/unicase.h (casing_prefix_context_t): New type.
41063         (unicase_empty_prefix_context): New variable.
41064         (u8_casing_prefix_context, u16_casing_prefix_context,
41065         u32_casing_prefix_context, u8_casing_prefixes_context,
41066         u16_casing_prefixes_context, u32_casing_prefixes_context): New
41067         declarations.
41068         (casing_suffix_context_t): New type.
41069         (unicase_empty_suffix_context): New variable.
41070         (u8_casing_suffix_context, u16_casing_suffix_context,
41071         u32_casing_suffix_context, u8_casing_suffixes_context,
41072         u16_casing_suffixes_context, u32_casing_suffixes_context,
41073         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
41074         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
41075         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
41076         declarations.
41077
41078 2009-06-28  Jim Meyering  <meyering@redhat.com>
41079
41080         boostrap: indent only with spaces
41081         * build-aux/bootstrap: Indent only with spaces, never TABs.
41082
41083         bootstrap: split long lines
41084         * build-aux/bootstrap: Keep line length < 80.
41085
41086         bootstrap: sync from coreutils
41087         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
41088         just as autoreconf does.  Verify a list of prerequisite
41089         package-name,version-number pairs if defined in bootstrap.conf.
41090         Refer to README-prereq, if prerequisites are not satisfied.
41091
41092 2009-06-27  Eric Blake  <ebb9@byu.net>
41093
41094         tests: add test for bogus NULL definition
41095         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
41096         * tests/test-stdlib.c: Likewise.
41097         * tests/test-string.c: Likewise.
41098         * tests/test-locale.c: Likewise.
41099         * tests/test-unistd.c: Likewise.
41100         * modules/stdio-tests (Depends-on): Add verify.
41101         * modules/stdlib-tests (Depends-on): Likewise.
41102         * modules/string-tests (Depends-on): Likewise.
41103         * modules/locale-tests (Depends-on): Likewise.
41104         * modules/unistd-tests (Depends-on): Likewise.
41105
41106 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
41107
41108         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
41109         self-explaining comment.
41110         * m4/selinux-selinux-h: Update serial.
41111         (gl_LIBSELINUX): New macro, adding a warning for missing development
41112         packages to code extracted from...
41113         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
41114         Add warning for missing development packages here, too.
41115
41116 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
41117
41118         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
41119
41120 2009-06-25  Eric Blake  <ebb9@byu.net>
41121
41122         version-etc: fix regression
41123         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
41124         gcc.
41125         (version_etc): Use it, to catch bugs with trailing NULL.
41126         * lib/version-etc.c (version_etc_arn): Delete unused argument.
41127         (version_etc_va): Fix logic bug.
41128         * modules/version-etc-tests: Add test.
41129         * tests/test-version-etc.c: New file.
41130         * tests/test-version-etc.sh: Likewise.
41131
41132 2009-06-25  Sam Steingold  <sds@gnu.org>
41133
41134         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
41135         mbtowc declaration.
41136
41137 2009-06-25  Eric Blake  <ebb9@byu.net>
41138
41139         fpurge: migrate into <stdio.h>
41140         * lib/fpurge.h: Delete...
41141         * lib/stdio.in.h (fpurge): ...and declare here, instead.
41142         * lib/fpurge.c (fpurge): Change declaring header.
41143         * modules/fpurge (Files): Drop deleted file.
41144         (Depends-on): Add stdio.
41145         (configure.ac): Set witness.
41146         * modules/stdio (Makefile.am): Support fpurge macros.
41147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41148         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
41149         * lib/fflush.c: Update client.
41150         * tests/test-fpurge.c: Likewise.
41151         * NEWS: Mention the change.
41152
41153 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41154
41155         * lib/argp-version-etc.c (program_authors): Add const
41156         qualifier.
41157         * lib/version-etc.c: Fix typos in the comments.
41158         * modules/argp-version-etc: Depends on version-etc.
41159
41160 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41161
41162         argp-version-etc: new module.
41163
41164         * lib/argp-version-etc.c: New file.
41165         * lib/argp-version-etc.h: New file.
41166         * modules/argp-version-etc: New file.
41167         * modules/argp-version-etc-tests: New file.
41168         * tests/test-argp-version-etc.c: New test.
41169         * tests/test-argp-version-etc-1.sh: New test.
41170
41171 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41172
41173         Provide additional interfaces and documentation for version-etc
41174         module.
41175
41176         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
41177         interfaces.
41178         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
41179         prototypes.
41180
41181 2009-06-24  Bruno Haible  <bruno@clisp.org>
41182
41183         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
41184         HAVE_LIB${NAME} macro.
41185         Reported by Sam Steingold <sds@gnu.org>.
41186
41187 2009-06-23  Simon Josefsson  <simon@josefsson.org>
41188
41189         * modules/hash-tests (test_hash_LDADD): Link to libintl when
41190         needed.
41191
41192 2009-06-21  Bruno Haible  <bruno@clisp.org>
41193
41194         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
41195         work.
41196         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
41197         together with LIB${NAME}, LTLIB${NAME}.
41198         Reported by Sam Steingold <sds@gnu.org>.
41199
41200 2009-06-20  Jim Meyering  <meyering@redhat.com>
41201
41202         tests: make sc_require_test_exit_idiom more generic
41203         * top/maint.mk (Exit_witness_file): New overridable variable.
41204         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
41205         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
41206
41207 2009-06-19  Jim Meyering  <meyering@redhat.com>
41208
41209         hash: reverse order of src/dst parameters in an internal interface
41210         * lib/hash.c (transfer_entries): Reverse order of parameters to
41211         put DST before SRC.  Adjust callers.
41212
41213         tests: test-hash: avoid wholesale duplication
41214         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
41215         Instead, use a loop and add a single conditional.
41216
41217         tests: test-hash: allow seed selection via a command line argument
41218         * tests/test-hash.c (get_seed): New function.
41219         (main): Use it.
41220
41221 2009-06-19  Eric Blake  <ebb9@byu.net>
41222
41223         hash: avoid memory leak on allocation failure
41224         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41225         failure.  Factor repeated algorithm...
41226         (transfer_entries): ...into new helper routine.
41227         (hash_delete): React to hash_rehash return value.
41228
41229         hash: reduce memory pressure in hash_rehash no-op case
41230         * lib/hash.c (next_prime): Avoid overflow.
41231         (hash_initialize): Factor bucket size computation...
41232         (compute_bucket_size): ...into new helper function.
41233         (hash_rehash): Use new function and open coding to reduce memory
41234         pressure, and avoid a memory leak in USE_OBSTACK code.
41235         Reported by Jim Meyering.
41236
41237 2009-06-18  Eric Blake  <ebb9@byu.net>
41238
41239         hash: make rotation more obvious
41240         * modules/hash (Depends-on): Add bitrotate and stdint.
41241         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41242         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41243         (SIZE_MAX): Rely on headers for definition.
41244         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41245         (raw_hasher): Use rotr_sz.
41246         Suggested by Jim Meyering.
41247
41248         hash: fix memory leak in last patch
41249         * lib/hash.c (hash_rehash): Avoid memory leak.
41250
41251         hash: avoid no-op rehashing
41252         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41253
41254         hash: provide default callback functions
41255         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41256         (hash_initialize): Use them as defaults.
41257         * tests/test-hash.c (main): Test this.
41258
41259         hash: minor optimization
41260         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41261         when possible.
41262         (hash_initialize): Document this promise.
41263         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41264         * tests/test-hash.c (hash_compare_strings): Test this.
41265
41266 2009-06-18  Bruno Haible  <bruno@clisp.org>
41267
41268         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41269         going to be replaced anyway.
41270
41271 2009-06-18  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41274         in one place.
41275         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41276         be replaced anyway.
41277
41278 2009-06-18  Eric Blake  <ebb9@byu.net>
41279
41280         hash: check for resize before insertion
41281         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41282         threshold before insertion, so that a pathological hash_rehash
41283         that fills every bucket can still trigger another rehash.
41284
41285 2009-06-18  Jim Meyering  <meyering@redhat.com>
41286
41287         hash-tests: add a loop around the small tests
41288         * tests/test-hash.c (main): Repeat small tests with selected
41289         small initial table sizes.
41290
41291 2009-06-17  Eric Blake  <ebb9@byu.net>
41292
41293         hash: minor cleanups
41294         * lib/hash.h (hash_entry): Make opaque, by moving...
41295         * lib/hash.c (hash_entry): ...here.
41296         (hash_insert): Clarify restrictions on what can be inserted.
41297         (hash_get_next): Clarify when it is safe to remove an element
41298         during traversal.
41299         (check_tuning): Skip verification when tuning is known safe.
41300         (hash_initialize): Clarify restrictions on tuning.
41301
41302 2009-06-17  Jim Meyering  <jim@meyering.net>
41303         and Eric Blake  <ebb9@byu.net>
41304
41305         hash-tests: new module
41306         * modules/hash-tests: New file.
41307         * tests/test-hash.c: New file.
41308
41309 2009-06-17  Eric Blake  <ebb9@byu.net>
41310
41311         strstr-simple: document new module
41312         * MODULES.html.sh: Document new module.
41313
41314         strstr, strcasestr: replace on platforms with broken memchr
41315         * modules/strstr: Split into...
41316         * modules/strstr-simple: ...new module that does not care about
41317         performance, but does care about glibc bug.
41318         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41319         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41320         if platform memchr is broken, per Debian bug 521737.
41321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41322         memchr.
41323         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41324         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41325         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41326         * modules/mountlist (Depends-on): Add strstr-simple.
41327         * modules/gen-uni-tables (Depends-on): Likewise.
41328         * modules/argz (Depends-on): Add strstr.
41329
41330 2009-06-17  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/posix_spawn-internal (Depends-on): Add errno.
41333
41334 2009-06-17  Bruno Haible  <bruno@clisp.org>
41335
41336         Define missing ESTALE on Interix 3.5.
41337         * lib/errno.in.h (ESTALE): Assign a value if missing.
41338         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41339         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41340         missing.
41341         * doc/posix-headers/errno.texi: Mention the Interix bug.
41342         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41343
41344 2009-06-15  Eric Blake  <ebb9@byu.net>
41345
41346         memchr, memchr2: add valgrind exception
41347         * lib/memchr.valgrind: New file.
41348         * lib/memchr2.valgrind: New file.
41349         * modules/memchr (Files): Distribute valgrind file.
41350         * modules/memchr2 (Files): Likewise.
41351
41352         docs: memchr is no longer obsolete
41353         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41354         * lib/string.in.h (memchr): Simplify logic.
41355
41356 2009-06-14  Jim Meyering  <meyering@redhat.com>
41357
41358         link-follow: fix the "checking..." message to not mention trailing slash
41359         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41360         never considered trailing slashes.
41361
41362 2009-06-14  Bruno Haible  <bruno@clisp.org>
41363
41364         * m4/memchr.m4: Mention also the bug on IA-64.
41365         * doc/posix-functions/memchr.texi: Likewise.
41366
41367 2009-06-12  Eric Blake  <ebb9@byu.net>
41368
41369         memchr: detect broken x86_64 and alpha implementations
41370         * modules/memchr-tests (Depends-on): Move mmap detection...
41371         * modules/memchr (Depends-on): ...here.
41372         (configure.ac): Set indicator.
41373         * lib/string.in.h (memchr): Declare replacement.
41374         * modules/string (Makefile.am): Trigger replacement.
41375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41376         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41377         bugs.
41378         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41379         * modules/getpagesize (License): Relax license.
41380
41381 2009-06-11  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/idpriv.h: Add more references.
41384
41385 2009-06-08  Bruno Haible  <bruno@clisp.org>
41386
41387         Tests for module 'idpriv-droptemp'.
41388         * modules/idpriv-droptemp-tests: New file.
41389         * tests/test-idpriv-droptemp.sh: New file.
41390         * tests/test-idpriv-droptemp.su.sh: New file.
41391         * tests/test-idpriv-droptemp.c: New file.
41392
41393         New module 'idpriv-droptemp'.
41394         * lib/idpriv-droptemp.c: New file.
41395         * modules/idpriv-droptemp: New file.
41396
41397 2009-06-08  Bruno Haible  <bruno@clisp.org>
41398
41399         Tests for module 'idpriv-drop'.
41400         * modules/idpriv-drop-tests: New file.
41401         * tests/test-idpriv-drop.sh: New file.
41402         * tests/test-idpriv-drop.su.sh: New file.
41403         * tests/test-idpriv-drop.c: New file.
41404
41405         New module 'idpriv-drop'.
41406         * lib/idpriv.h: New file.
41407         * lib-idpriv-drop.c: New file.
41408         * m4/idpriv.m4: New file.
41409         * modules/idpriv-drop: New file.
41410
41411 2009-06-08  Bruno Haible  <bruno@clisp.org>
41412
41413         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41414         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41415         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41416         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41417         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41418         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41419         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41420
41421 2009-06-08  Eric Blake  <ebb9@byu.net>
41422
41423         test-strstr: use memory fence, when possible
41424         * tests/test-strstr.c (main): Use memory fence, in order to be
41425         more likely to trigger Debian bug 521737.
41426         * modules/strstr-tests (Files): Pull in additional files.
41427
41428         memchr: no longer obsolete, for wider field testing
41429         * modules/memchr (Status, Notice): Delete, this module is no
41430         longer obsolete.
41431         * modules/vasnprintf (Depends-on): Add memchr.
41432
41433 2009-06-07  Jim Meyering  <meyering@redhat.com>
41434
41435         hash: declare some functions with the warn_unused_result attribute
41436         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41437
41438 2009-06-07  Bruno Haible  <bruno@clisp.org>
41439
41440         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41441         Reported by Eric Blake.
41442
41443 2009-06-06  Eric Blake  <ebb9@byu.net>
41444
41445         test-alignof: fix typo with long double
41446         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41447         compiler error.
41448
41449 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41450
41451         Escape non-texinfo { and }s.
41452         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41453         markup error.
41454
41455 2009-06-04  Jim Meyering  <meyering@redhat.com>
41456
41457         gitlog-to-changelog: don't infloop on an empty commit log
41458         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41459         Reported by Boris Petersen <transacid@centerim.org>.
41460
41461 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41462
41463         version-etc: extend for packagers
41464         Add three new configure options, intended for packagers:
41465           --with-packager="packager name"
41466           --with-packager-version="packager-specific version"
41467           --with-packager-bug-reports="packager bug reporting"
41468         An example with coreutils:
41469           $ ./configure \
41470             --with-packager=Gentoo \
41471             --with-packager-bug-report=http://bugs.gentoo.org/ \
41472             --with-packager-version="patchset 1.6"
41473           $ ./src/ls --version | head -n2
41474           ls (GNU coreutils) 7.1-dirty
41475           Packaged by Gentoo (patchset 1.6)
41476         Note that the bug reporting info via --help doesn't show up because
41477         coreutils uses its own custom emit_bug_reporting_address() implementation
41478         in src/system.h.  If it didn't, it'd look like:
41479           $ ./src/ls --help | tail -n4
41480           Report bugs to <bug-coreutils@gnu.org>.
41481           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41482           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41483           General help using GNU software: <http://www.gnu.org/gethelp/>.
41484         * lib/version-etc.c: Print new information, if provided.
41485         * m4/version-etc.m4: New file.
41486         * modules/version-etc (Files): Add m4/version-etc.m4.
41487         (configure.ac): Add gl_VERSION_ETC.
41488
41489 2009-05-31  Bruno Haible  <bruno@clisp.org>
41490
41491         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41492         and 'int64_t'.
41493         * modules/alignof-tests (Dependencies): Add stdint.
41494         Reported by Eric Blake.
41495
41496 2009-05-31  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41499         restriction due to compiler bugs.
41500         Reported by Eric Blake.
41501
41502 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41503             Bruno Haible  <bruno@clisp.org>
41504
41505         Fix test-alignof failure.
41506         * lib/alignof.h (alignof_slot): New macro.
41507         (alignof_type): New macro, with the same semantics as the previous
41508         'alignof'.
41509         (alignof): Alias to alignof_slot.
41510         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41511         check that the results are usable as constant expressions.
41512
41513 2009-05-31  Bruno Haible  <bruno@clisp.org>
41514
41515         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41516         * tests/test-memchr.c (main): Check that memchr does not read past the
41517         first occurrence of the byte.
41518         * tests/test-strstr.c (main): Update comment.
41519         Suggested by Eric Blake.
41520
41521 2009-05-30  Bruno Haible  <bruno@clisp.org>
41522
41523         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41524         detail how to use dumpbin.
41525         Reported by David Byron <dbyron@dbyron.com>.
41526
41527 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41528
41529         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41530
41531 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41532
41533         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41534
41535 2009-05-28  Bruno Haible  <bruno@clisp.org>
41536
41537         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41538         build-aux/ files.
41539
41540 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41541
41542         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41543
41544 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41545
41546         * gnulib-tool (sed_transform_main_lib_file)
41547         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41548         regexps.
41549
41550 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41551
41552         * tests/test-strstr.c: Add another self-test.
41553         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41554         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41555
41556 2009-05-23  Bruno Haible  <bruno@clisp.org>
41557
41558         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41559         change.
41560
41561 2009-05-21  Bruno Haible  <bruno@clisp.org>
41562
41563         Simplify use of mode_t varargs.
41564         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41565         uses 'mode_t' or 'int'.
41566         * lib/openat.c (openat): Likewise.
41567         * lib/open-safer.c (open_safer): Likewise.
41568         * m4/mode_t.m4: New file.
41569         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41570         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41571         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41572         * modules/open (Files): Add m4/mode_t.m4.
41573         * modules/openat (Files): Likewise.
41574         * modules/fcntl-safer (Files): Likewise.
41575         Suggested by Eric Blake.
41576
41577 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41578
41579         * doc/glibc-functions/fallocate.texi: New file.
41580         * doc/gnulib.texi: Include it.
41581
41582 2009-05-21  Eric Blake  <ebb9@byu.net>
41583             Bruno Haible  <bruno@clisp.org>
41584
41585         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41586         invocations.
41587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41588
41589 2009-05-21  Eric Blake  <ebb9@byu.net>
41590             Bruno Haible  <bruno@clisp.org>
41591
41592         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41593         include_next. Fix of 2008-11-20 commit.
41594         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41595         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41596         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41597         NEXT_MATH_H.
41598         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41599         instead of NEXT_MATH_H.
41600
41601 2009-05-21  Bruno Haible  <bruno@clisp.org>
41602
41603         Avoid redefinition warnings for SIZE_MAX.
41604         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41605         Reported by Simon Josefsson.
41606
41607 2009-05-21  Bruno Haible  <bruno@clisp.org>
41608
41609         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41610         AC_CACHE_VAL.
41611
41612 2009-05-20  Bruno Haible  <bruno@clisp.org>
41613
41614         Make zeroptr.h work on mingw.
41615         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41616         mprotect.
41617         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41618         * modules/memchr2-tests (configure.ac): Likewise.
41619         * modules/memcmp-tests (configure.ac): Likewise.
41620         * modules/memmem-tests (configure.ac): Likewise.
41621         * modules/memrchr-tests (configure.ac): Likewise.
41622         Reported by Simon Josefsson.
41623
41624 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41625
41626         * tests/test-glob.c: Include string.h for strcmp prototype.
41627
41628 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41629
41630         * modules/getdelim (Depends-on): Add explicit stdint, although it
41631         was implicitly already pulled in via realloc-posix.
41632         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41633
41634 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41635
41636         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41637         G. Christensen" <tgc@jupiterrise.com>.
41638         * m4/sys_socket_h.m4: Check for sa_family_t.
41639         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41640         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41641         * tests/test-sys_socket.c: Check that sa_family_t works.
41642
41643 2009-05-18  Eric Blake  <ebb9@byu.net>
41644
41645         maint.mk: allow gnulib_dir in VPATH build
41646         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41647
41648 2009-05-15  Jim Meyering  <meyering@redhat.com>
41649
41650         maint.mk: Give gnulib_dir a default definition.
41651         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41652         Thus, most packages no longer need to specify this variable in cfg.mk
41653
41654 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41655
41656         rename.m4: fix typos that would make non-mingw cross-configure fail
41657         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41658
41659 2009-05-13  Eric Blake  <ebb9@byu.net>
41660
41661         mmap-anon: avoid out-of-order autoconf expansion
41662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41663         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41664         * modules/memchr-tests (Depends-on): Add extensions.
41665         * modules/memchr2-tests (Depends-on): Add extensions.
41666         * modules/memcmp-tests (Depends-on): Add extensions.
41667         * modules/memmem-tests (Depends-on): Add extensions.
41668         * modules/memrchr-tests (Depends-on): Add extensions.
41669
41670 2009-05-13  Bruno Haible  <bruno@clisp.org>
41671
41672         Make some tests ISO C 99 compliant.
41673         * tests/zerosize-ptr.h: New file.
41674         * tests/test-memchr.c: Include zerosize-ptr.h.
41675         (main): Use a zero-size object pointer instead of NULL.
41676         * tests/test-memchr2.c: Include zerosize-ptr.h.
41677         (main): Use a zero-size object pointer instead of NULL.
41678         * tests/test-memcmp.c: Include zerosize-ptr.h.
41679         (main): Use a zero-size object pointer instead of NULL.
41680         * tests/test-memmem.c: Include zerosize-ptr.h.
41681         (main): Use a zero-size object pointer instead of NULL.
41682         * tests/test-memrchr.c: Include zerosize-ptr.h.
41683         (main): Use a zero-size object pointer instead of NULL.
41684         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41685         m4/mmap-anon.m4.
41686         (Depends-on): Add getpagesize.
41687         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41688         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41689         m4/mmap-anon.m4.
41690         (Depends-on): Add getpagesize.
41691         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41692         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41693         m4/mmap-anon.m4.
41694         (Depends-on): Add getpagesize.
41695         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41696         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41697         m4/mmap-anon.m4.
41698         (Depends-on): Add getpagesize.
41699         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41700         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41701         m4/mmap-anon.m4.
41702         (Depends-on): Add getpagesize.
41703         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41704
41705 2009-05-12  Bruno Haible  <bruno@clisp.org>
41706
41707         Tests for module 'alignof'.
41708         * modules/alignof-tests: New file.
41709         * tests/test-alignof.c: New file.
41710
41711 2009-05-12  Bruno Haible  <bruno@clisp.org>
41712
41713         Fix alignof macro.
41714         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41715         vendor compilers that are always correct.
41716
41717 2009-05-12  Bruno Haible  <bruno@clisp.org>
41718
41719         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41720         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41721         not whether its fully works.
41722
41723 2009-05-12  Bruno Haible  <bruno@clisp.org>
41724
41725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41726
41727 2009-05-12  Jim Meyering  <meyering@redhat.com>
41728
41729         * top/maint.mk: Adjust backslash alignment.
41730
41731 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41732
41733         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41734
41735 2009-05-11  Eric Blake  <ebb9@byu.net>
41736
41737         argp: avoid undefined behavior
41738         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41739         macros.
41740
41741 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41742
41743         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41744         user.name to prevent git commit from complaining.
41745
41746 2009-05-10  Bruno Haible  <bruno@clisp.org>
41747
41748         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41749         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41750         it rewrites every file name only once.
41751         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41752
41753 2009-05-08  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41756         instead of 'max'.
41757
41758 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41759
41760         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41761         sockaddr_storage test.
41762
41763 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41764
41765         * modules/sys_socket (Makefile.am): Substitute
41766         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41767         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41768         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41769         * tests/test-sys_socket.c: Check sockaddr_storage.
41770
41771 2009-05-08  Bruno Haible  <bruno@clisp.org>
41772
41773         New module 'alignof'.
41774         * lib/alignof.h: New file.
41775         * modules/alignof: New file.
41776
41777 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41778             Bruno Haible  <bruno@clisp.org>
41779
41780         Fix test-file-has-acl on FreeBSD.
41781         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41782         mask is implicitly added.
41783         * tests/test-file-has-acl.c: Include <signal.h>.
41784         (main): Terminate the test after 5 seconds.
41785         * modules/acl-tests (configure.ac): Check for alarm function.
41786
41787 2009-05-04  Bruno Haible  <bruno@clisp.org>
41788
41789         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41790         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41791         * modules/errno (configure.ac): Drop AC_REQUIRE.
41792         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41793         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41794
41795 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41796
41797         * modules/glob-tests: New module.
41798         * tests/test-glob.c: Add.
41799
41800 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41801
41802         * modules/fnmatch-tests: New module.
41803         * tests/test-fnmatch.c: Add.
41804
41805 2009-05-04  Eric Blake  <ebb9@byu.net>
41806
41807         maint: make the new no-submodule-changes rule VPATH-safe
41808         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41809
41810 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41811             Bruno Haible  <bruno@clisp.org>
41812
41813         acl: Fix infinite loop on FreeBSD.
41814         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41815         of return value from acl_get_entry.
41816         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41817         Likewise.
41818
41819 2009-05-03  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/acl-internal.h (acl_entries): Clarify return value.
41822         * lib/acl_entries.c (acl_entries): Likewise.
41823
41824 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41825
41826         Bug fix in acl module.
41827         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41828
41829 2009-05-03  Bruno Haible  <bruno@clisp.org>
41830
41831         Create gperf-generated file in the source dir, not in the build dir.
41832         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41833         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41834         * modules/unicase/locale-language (unicase/locale-languages.h):
41835         Likewise.
41836         * modules/unicase/special-casing (unicase/special-casing-table.h):
41837         Likewise.
41838         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41839         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41840         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41841         Reported by Ralf Wildenhues.
41842
41843 2009-05-03  Bruno Haible  <bruno@clisp.org>
41844
41845         * modules/fnmatch (Description, configure.ac): Taken from
41846         fnmatch-posix.
41847         * modules/fnmatch-posix: Turn into a symbolic reference to the
41848         'fnmatch' module, and deprecate.
41849         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41850
41851 2009-05-03  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41854         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41855         Reported by Ralf Wildenhues.
41856
41857 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41858
41859         * m4/fnmatch.m4: Fix fnmatch re-define.
41860
41861 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41862
41863         priv-set: new module and tests; adapt write-any-file
41864         * lib/priv-set.c: New file.
41865         * lib/priv-set.h: New file.
41866         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41867         * lib/write-any-file.c: Simplify by using priv-set module.
41868         * m4/priv-set.m4: New file.
41869         * modules/priv-set: New file.
41870         * modules/unlinkdir: Add dependency on priv-set module.
41871         * modules/write-any-file: Likewise.
41872
41873         Tests for module 'priv-set'.
41874         * modules/priv-set-tests: New file.
41875         * tests/test-priv-set.c: New file.
41876
41877 2009-05-03  Jim Meyering  <meyering@redhat.com>
41878             Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41881         use the converted UTF-8 variant of the name instead.
41882
41883 2009-05-03  Jim Meyering  <meyering@redhat.com>
41884
41885         tests: tighten some getdate tests
41886         * tests/test-getdate.c (main): Tighten tests: require equality,
41887         not just greater than.  Set TZ envvar to UTC0.
41888
41889 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41890
41891         getdate: correctly interpret "next monday" when run on a Monday
41892         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41893         that e.g., "next tues" (when run on a tuesday) results in a date
41894         that is one week in the future, and not today's date.
41895         I.e., add a week when the wday is the same as the current one.
41896         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41897         and earlier by Martin Bernreuther and Jan Minář.
41898         * tests/test-getdate.c (main): Check that "next DAY" is always in
41899         the future and that "last DAY" is always in the past.
41900
41901 2009-05-02  Jim Meyering  <meyering@redhat.com>
41902
41903         build: ensure that a release build fails when a submodule is unclean
41904         * top/maint.mk (no-submodule-changes): New rule.
41905         (alpha beta major): Depend on it.
41906
41907 2009-05-02  Bruno Haible  <bruno@clisp.org>
41908
41909         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41910         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41911         shell variable gl_fnmatch_required to detect which variant is
41912         requested.
41913         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41914         gl_FUNC_FNMATCH_POSIX.
41915         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41916         exclude fnmatch-posix.
41917
41918 2009-05-02  Bruno Haible  <bruno@clisp.org>
41919
41920         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41921         * modules/mbsrtowcs (License): Change to LGPLv2+.
41922         * modules/strnlen1 (License): Likewise.
41923         Reported by Simon Josefsson.
41924
41925 2009-05-02  Bruno Haible  <bruno@clisp.org>
41926
41927         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41928         "cross".
41929         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41930         gnulib-tool was called with option --source-base=lib.
41931
41932 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41933
41934         Use automake *-local hooks without commands, for extensibility.
41935         * modules/localcharset (Makefile.am): Rename install-exec-local
41936         rule to install-exec-localcharset, and make it a prerequisite of
41937         install-exec-local.  Likewise, rename the uninstall-local rule to
41938         uninstall-localcharset, and make it a prerequisite of the former.
41939
41940 2009-05-01  Bruno Haible  <bruno@clisp.org>
41941
41942         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41943         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41944         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41946         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41947         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41948         m4/locale-zh.m4, m4/codeset.m4.
41949
41950         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41951         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41952         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41953         m4/locale-zh.m4.
41954
41955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41956         REPLACE_WCRTOMB if mbstate_t must be replaced.
41957         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41958         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41959
41960 2009-05-01  Bruno Haible  <bruno@clisp.org>
41961
41962         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41963         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41964         dngettext, dcngettext, textdomain, bindtextdomain,
41965         bind_textdomain_codeset): Undefine before redefining.
41966
41967 2009-04-30  Bruno Haible  <bruno@clisp.org>
41968
41969         Fix bug introduced on 2009-04-25.
41970         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41971         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41972         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41973         is defined.
41974         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41975         is defined.
41976         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41977         is defined.
41978         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41979
41980 2009-04-28  Bruno Haible  <bruno@clisp.org>
41981
41982         Comment tweaks.
41983         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41984         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41985         * lib/unicase.h (u*_casexfrm): Likewise.
41986         Reported by Paolo Bonzini.
41987
41988 2009-04-28  Bruno Haible  <bruno@clisp.org>
41989
41990         Fix a compilation error.
41991         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41992         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41993         Reported by Jim Meyering.
41994
41995 2009-04-27  Bruno Haible  <bruno@clisp.org>
41996
41997         New module 'libunistring'.
41998         * modules/libunistring: New file.
41999         * m4/libunistring.m4: New file.
42000         * MODULES.html.sh (Unicode string functions): Add it.
42001
42002 2009-04-27  Eric Blake  <ebb9@byu.net>
42003
42004         maint.mk: allow package-specific header to provide <config.h>
42005         * top/maint.mk (sc_require_config_h): New variable.
42006         (sc_require_config_h, sc_require_config_h_first): Use it.
42007
42008 2009-04-27  Simon Josefsson  <simon@josefsson.org>
42009
42010         * top/maint.mk (sc_avoid_if_before_free): Except
42011         useless-if-before-free script.
42012
42013 2009-04-27  Eric Blake  <ebb9@byu.net>
42014
42015         maintainer-makefile: depend on all required helper scripts
42016         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
42017         useless-if-before-free.
42018         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
42019         version, rather than assuming gnulib checkout is available.
42020         Reported by Simen Josefsson.
42021
42022 2009-04-26  Bruno Haible  <bruno@clisp.org>
42023
42024         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
42025         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
42026         "../" or "..".
42027
42028 2009-04-26  Bruno Haible  <bruno@clisp.org>
42029
42030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
42031         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
42032         AC_LIB_HAVE_LINKFLAGS.
42033
42034 2009-04-26  Bruno Haible  <bruno@clisp.org>
42035
42036         Simplify calling convention of u*_conv_from_encoding.
42037         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
42038         u32_conv_from_encoding): Expect a resultbuf argument and return the
42039         result directly as a pointer.
42040         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
42041         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
42042         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
42043         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
42044         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
42045         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42046         Update.
42047         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
42048         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
42049         * lib/vasnprintf.c (VASNPRINTF): Update.
42050         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
42051         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
42052         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
42053         * NEWS: Mention the change.
42054
42055 2009-04-26  Bruno Haible  <bruno@clisp.org>
42056
42057         Simplify calling convention of u*_conv_to_encoding.
42058         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42059         u32_conv_to_encoding): Expect a resultbuf argument and return the
42060         result directly as a pointer.
42061         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42062         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
42063         freeing scaled_offsets if mem_iconveha failed.
42064         * lib/unicase/u-casexfrm.h (FUNC): Update.
42065         * lib/uninorm/u-normxfrm.h (FUNC): Update.
42066         * lib/vasnprintf.c (VASNPRINTF): Update.
42067         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
42068         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
42069         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
42070         * NEWS: Mention the change.
42071
42072 2009-04-26  Bruno Haible  <bruno@clisp.org>
42073
42074         Avoid test failures on AIX and OSF/1.
42075         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
42076         malloc(0).
42077         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42078         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42079         Likewise.
42080         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
42081         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
42082         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
42083         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
42084         * doc/posix-functions/malloc.texi: Document the portability problem
42085         related to malloc(0).
42086
42087 2009-04-26  Bruno Haible  <bruno@clisp.org>
42088
42089         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
42090         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
42091         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
42092
42093 2009-04-25  Bruno Haible  <bruno@clisp.org>
42094
42095         Avoid link error when creating a namespace clean library.
42096         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
42097         as macro with arguments if already defined as an alias.
42098         * lib/signbitf.c (gl_signbitf): Don't undefine.
42099         * lib/signbitd.c (gl_signbitd): Don't undefine.
42100         * lib/signbitl.c (gl_signbitl): Don't undefine.
42101
42102 2009-04-25  Jim Meyering  <meyering@redhat.com>
42103
42104         vc-list-files: fix another quoting bug
42105         * build-aux/vc-list-files: Avoid sed backslash expansion
42106         of pathological directory names.
42107
42108 2009-04-25  Eric Blake  <ebb9@byu.net>
42109
42110         vc-list-files: fix shell quoting error
42111         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
42112         timestamp.
42113
42114 2009-04-25  Jim Meyering  <meyering@redhat.com>
42115
42116         vc-list-files: restore lost functionality with subdir argument
42117         * build-aux/vc-list-files: When given a non-"." sub-directory
42118         argument, substitute the $dir/ prefix back onto each resulting name.
42119         Otherwise, coreutils' root_tests check would fail.
42120
42121 2009-04-24  Eric Blake  <ebb9@byu.net>
42122
42123         vc-list-files: ignore git symlinks
42124         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
42125         than ls-files, to ignore git symlinks.
42126
42127         maint.mk: import improvements from m4
42128         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
42129         (move_if_change): Delete unused macro.
42130         (news-date-check, vc-diff-check): Support VPATH builds.
42131         (announcement): Likewise.  Split --bootstrap-tools list...
42132         (boostrap-tools): ...into separate list, which can be overridden
42133         in cfg.mk.
42134         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
42135         requiring dependency on useless-if-before-free module.
42136         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
42137         Support VPATH builds.
42138
42139 2009-04-24  Jim Meyering  <meyering@redhat.com>
42140
42141         maint.mk: remove coreutils-specific rules and variables
42142         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
42143         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
42144         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
42145
42146         maint.mk: remove obsolete rule
42147         * top/maint.mk (rel-check): Remove rule.
42148         (WGET, WGETFLAGS): Remove now-unused variables.
42149
42150 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42151
42152         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
42153         consistency.
42154
42155         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
42156         '$(PATH_SEPARATOR)' instead of ':'.
42157
42158 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42159
42160         * lib/getopt1.c (main): Use 'const' for static array.
42161
42162 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42163
42164         * top/maint.mk: Sync with coreutils.
42165         * NEWS: Explain incompatibilities.
42166
42167 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42168             Bruno Haible  <bruno@clisp.org>
42169
42170         Fix cross-compilation results.
42171         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
42172         statement, as third argument of AC_TRY_RUN.
42173         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42175         Likewise.
42176         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42177         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42178         Likewise.
42179         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
42181         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
42182
42183 2009-04-20  Bruno Haible  <bruno@clisp.org>
42184
42185         Avoid test failure on mingw.
42186         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
42187
42188 2009-04-20  Bruno Haible  <bruno@clisp.org>
42189
42190         Avoid compilation error on mingw.
42191         * modules/localename-tests (Depends-on): Add locale.
42192
42193 2009-04-19  Bruno Haible  <bruno@clisp.org>
42194
42195         Support for building a shared library on Windows platforms.
42196         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
42197         (main): Test the presence of UNINORM_NFC here.
42198         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
42199         (main): Test the presence of UNINORM_NFD here.
42200         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
42201         (main): Test the presence of UNINORM_NFKC here.
42202         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
42203         (main): Test the presence of UNINORM_NFKD here.
42204
42205 2009-04-19  Bruno Haible  <bruno@clisp.org>
42206
42207         Avoid a compiler warning.
42208         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
42209         Change type of variable 'sequence'.
42210
42211 2009-04-19  Bruno Haible  <bruno@clisp.org>
42212
42213         * modules/configmake (Makefile.am): When the contents of configmake.h
42214         does not change, arrange to preserve its modification time.
42215
42216 2009-04-17  Simon Josefsson  <simon@josefsson.org>
42217
42218         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
42219         gettext domain.
42220
42221 2009-04-16  Jim Meyering  <meyering@redhat.com>
42222
42223         useless-if-before-free: improve conversion code
42224         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42225         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42226
42227 2009-04-14  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/fcntl (Depends-on): Add extensions.
42230         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42231
42232 2009-04-12  Ben Pfaff  <blp@gnu.org>
42233
42234         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42235         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42236
42237 2009-03-20  Ben Pfaff  <blp@gnu.org>
42238
42239         Make rename replace existing destinations on Windows.
42240         * m4/rename.m4: Add test for Mingw.
42241         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42242         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42243         * doc/posix-functions/rename.texi: Document.
42244
42245 2009-04-10  Bruno Haible  <bruno@clisp.org>
42246
42247         New include file "iconveh.h".
42248         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42249         * lib/striconveh.h: Include it.
42250         (enum iconv_ilseq_handler): Remove definition.
42251         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42252         striconveh.h.
42253         * lib/striconveha.c: Include striconveh.h.
42254         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42255         * modules/striconveh (Files): Add lib/iconveh.h.
42256         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42257         lib/striconveh.h.
42258
42259 2009-04-10  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/uniconv.h: Update comment.
42262
42263 2009-04-10  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42266         always.
42267         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42268         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42269         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42270         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42271         "unistring-notinline.h", so that the function gets defined always.
42272         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42273         * lib/unistr/u8-uctomb.c: Likewise.
42274         * lib/unistr/u16-mbtouc.c: Likewise.
42275         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42276         * lib/unistr/u16-uctomb.c: Likewise.
42277         * lib/unistr/u32-mbtouc.c: Likewise.
42278         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42279         * lib/unistr/u32-uctomb.c: Likewise.
42280
42281 2009-04-10  Bruno Haible  <bruno@clisp.org>
42282
42283         Mark 'utime' obsolete.
42284         * modules/utime (Status, Notice): New sections.
42285         Suggested by Jim Meyering.
42286
42287         Fix cross-compile guess for utime test.
42288         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42289         autoconf.
42290         * doc/posix-functions/utime.texi: Give more precisions.
42291         Reported by Jan <ipif@ymail.com>.
42292
42293 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42294
42295         filevercmp: correct today's change
42296         * lib/filevercmp.c: Also handle coreutils' test inputs.
42297         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42298
42299         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42300         for reporting it.
42301         * lib/filevercmp.c: Special handle for "", "." and "..".
42302         * tests/test-filevercmp.c: Enlarge the set suite.
42303
42304 2009-04-07  Jim Meyering  <meyering@redhat.com>
42305
42306         useless-if-before-free: show how to remove braced useless free, too
42307         * build-aux/useless-if-before-free: still only in a comment, though.
42308
42309 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42310
42311         maint.mk: import changes to syntax-check macros from coreutils
42312         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42313         Use them in the relevant macros.
42314
42315 2009-04-06  Bruno Haible  <bruno@clisp.org>
42316
42317         Fix unportable use of bit-fields.
42318         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42319         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42320         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42321
42322 2009-04-06  Bruno Haible  <bruno@clisp.org>
42323
42324         Avoid test failures on AIX and OSF/1.
42325         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42326         that malloc(0) = NULL.
42327         * tests/unicase/test-u8-tolower.c (check): Likewise.
42328         * tests/unicase/test-u8-totitle.c (check): Likewise.
42329         * tests/unicase/test-u8-toupper.c (check): Likewise.
42330         * tests/unicase/test-u16-casefold.c (check): Likewise.
42331         * tests/unicase/test-u16-tolower.c (check): Likewise.
42332         * tests/unicase/test-u16-totitle.c (check): Likewise.
42333         * tests/unicase/test-u16-toupper.c (check): Likewise.
42334         * tests/unicase/test-u32-casefold.c (check): Likewise.
42335         * tests/unicase/test-u32-tolower.c (check): Likewise.
42336         * tests/unicase/test-u32-totitle.c (check): Likewise.
42337         * tests/unicase/test-u32-toupper.c (check): Likewise.
42338         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42339         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42340         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42341         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42342         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42343         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42344         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42345         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42346         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42347         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42348         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42349         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42350
42351 2009-04-05  Bruno Haible  <bruno@clisp.org>
42352
42353         Work around an autoconf limitation.
42354         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42355         comment line if it would be longer than 3 KB.
42356
42357 2009-04-05  Bruno Haible  <bruno@clisp.org>
42358
42359         Avoid test failure with libiconv-1.13.
42360         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42361         of the expected test results.
42362
42363 2009-04-05  Bruno Haible  <bruno@clisp.org>
42364
42365         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42366         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42367         that it should be installed.
42368
42369 2009-04-05  Bruno Haible  <bruno@clisp.org>
42370
42371         * gnulib-tool: New option --copy-file.
42372         (func_usage): Document it.
42373         (func_dest_tmpfilename): Moved out of func_import.
42374         (func_add_file, func_update_file): New functions, extracted from
42375         func_import.
42376         (func_import): Update.
42377
42378 2009-04-05  Karl Berry  <karl@gnu.org>
42379
42380         * README: prominently mention gnulib-tool.
42381         Rearrange sections so getting the code is near the top.
42382
42383 2009-04-05  Bruno Haible  <bruno@clisp.org>
42384
42385         * lib/unicase.h: Mention u*_cmp2.
42386         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42387         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42388         * lib/unicase/ulc-casecmp.c: Likewise.
42389         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42390         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42391         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42392         unistr/u8-cmp.
42393         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42394         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42395         unistr/u16-cmp.
42396         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42397         unistr/u32-cmp.
42398
42399         * lib/uninorm.h: Mention u*_cmp2.
42400         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42401         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42402         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42403         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42404         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42405         unistr/u8-cmp.
42406         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42407         unistr/u16-cmp.
42408         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42409         unistr/u32-cmp.
42410
42411         New module 'unistr/u32-cmp2'.
42412         * lib/unistr/u32-cmp2.c: New file.
42413         * modules/unistr/u32-cmp2: New file.
42414
42415         New module 'unistr/u16-cmp2'.
42416         * lib/unistr/u16-cmp2.c: New file.
42417         * modules/unistr/u16-cmp2: New file.
42418
42419         New module 'unistr/u8-cmp2'.
42420         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42421         * lib/unistr/u8-cmp2.c: New file.
42422         * lib/unistr/u-cmp2.h: New file.
42423         * modules/unistr/u8-cmp2: New file.
42424
42425 2009-04-05  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/unictype.h (uc_property_is_valid): New macro.
42428         * tests/unictype/test-pr_byname.c (main): Use it.
42429
42430         * lib/unistr.h: Doc fixes.
42431         * lib/uniconv.h: Doc fixes.
42432         * lib/unictype.h: Doc fixes.
42433
42434 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42435
42436         Port coreutils 7.2 to Solaris 8.
42437
42438         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42439         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42440         for Solaris 8.  This is a bit of a hack, as it means it's the
42441         caller's responsibility to add -lnsl if needed, but most likely it
42442         won't be needed since only getaddrinfo uses this and getaddrinfo
42443         isn't needed on Solaris 8.
42444
42445         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42446         problem to Solaris 8 encountered with coreutils 7.2, which
42447         resulted in a message "fnmatch.c:292: warning: passing argument 4
42448         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42449         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42450
42451 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42452
42453         * m4/ld-version-script.m4: Add FIXME comment.
42454
42455 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42456
42457         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42458         SOVERSION variable.
42459
42460 2009-04-02  Bruno Haible  <bruno@clisp.org>
42461
42462         * Makefile (info, html, dvi, pdf): Combine the rules.
42463         Suggested by Jim Meyering.
42464
42465 2009-04-01  Bruno Haible  <bruno@clisp.org>
42466
42467         * Makefile (info, html, dvi, pdf): New targets.
42468         Reported by Reuben Thomas <rrt@sc3d.org>.
42469
42470 2009-04-01  Bruno Haible  <bruno@clisp.org>
42471
42472         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42473         can be put into PATH.
42474         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42475
42476 2009-04-01  Bruno Haible  <bruno@clisp.org>
42477
42478         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42479
42480 2009-04-01  Bruno Haible  <bruno@clisp.org>
42481
42482         Rename module 'visibility'.
42483         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42484         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42485         * doc/gnulib.texi: Update.
42486         * MODULES.html.sh (Misc): Update.
42487         * NEWS: Mention the change.
42488
42489 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42490
42491         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42492         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42493         Eric Blake <ebb9@byu.net> for review.
42494         * MODULES.html.sh: Add lib-msvc-compat.
42495         * doc/gnulib.texi: Link to new section.
42496         * m4/ld-output-def.m4: New file.
42497         * doc/ld-output-def.texi: New file.
42498
42499 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42500
42501         Rename ld-version-script to lib-symbol-versions.  Suggested by
42502         Bruno Haible <bruno@clisp.org>.
42503         * modules/ld-version-script: Renamed to lib-symbol-versions.
42504         * doc/ld-version-script.texi: Fix module name.
42505         * MODULES.html.sh: Add lib-symbol-versions.
42506
42507 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42508
42509         * modules/u64-tests: New file.
42510         * tests/test-u64.c: New file.
42511
42512 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42513
42514         * MODULES.html.sh: Mention u64.
42515         * modules/u64: New module.
42516         * modules/crypto/sha512: Depend on u64 module instead of providing
42517         u64.h.
42518
42519 2009-03-27  Eric Blake  <ebb9@byu.net>
42520
42521         test-strerror: make debugging EAI_SYSTEM easier
42522         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42523         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42524         failure was EAI_SYSTEM.
42525
42526 2009-03-25  Bruno Haible  <bruno@clisp.org>
42527
42528         Fix a problem with --enable-relocatable on Solaris 7.
42529         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42530         since 2008-02-24.
42531
42532 2009-03-25  Eric Blake  <ebb9@byu.net>
42533
42534         test-sockets: avoid gcc warning
42535         * tests/test-sockets.c (main): Silence compiler warning.
42536
42537 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         New modules nproc, pthread, contributed by Glen Lenker.
42540
42541         * MODULES.html.sh: Add pthread, nproc.
42542         * lib/nproc.c: New file.
42543         * lib/nproc.h: New file.
42544         * lib/pthread.in.h: New file.
42545         * m4/pthread.m4: New file.
42546         * modules/nproc: New file.
42547         * modules/pthread: New file.
42548
42549 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42550
42551         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42552         New variable.
42553
42554 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42555
42556         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42557         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42558         * tests/test-filevercmp.c: Add tests for backup suffixes.
42559
42560 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42561
42562         * modules/stdlib (Depends-on): Add stdint, needed when defining
42563         struct random_data on, for example, HP-UX 10.20.  Reported by
42564         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42565
42566 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42567
42568         * lib/readline.c (readline): Call fflush on stdout after printing
42569         prompt.
42570
42571 2009-03-20  Bruno Haible  <bruno@clisp.org>
42572
42573         Remove dependency from 'close' module to -lws2_32 on native Windows.
42574         * lib/close-hook.h: New file.
42575         * lib/close-hook.c: New file.
42576         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42577         w32sock.h.
42578         (_gl_close_fd_maybe_socket): Remove function.
42579         (rpl_close): Invoke execute_all_close_hooks instead of
42580         _gl_close_fd_maybe_socket.
42581         * lib/sockets.c: Include close-hook.h, w32sock.h.
42582         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42583         (close_sockets_hook): New variable.
42584         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42585         (gl_sockets_cleanup): Unregister it.
42586         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42587         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42588         * modules/close-hook: New file.
42589         * modules/close (Files): Remove lib/w32sock.h.
42590         (Depends-on): Add close-hook.
42591         (Link): Remove section.
42592         * modules/sockets (Files): Add lib/w32sock.h.
42593         (Depends-on): Add close-hook.
42594         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42595         invocation.
42596         * NEWS: Mention that LIB_CLOSE is gone.
42597
42598 2009-03-23  Eric Blake  <ebb9@byu.net>
42599
42600         signal-tests: test previous patch
42601         * tests/test-signal.c: New file.
42602         * modules/signal-tests: Likewise.
42603
42604         signal.h: always support 'volatile sig_atomic_t'
42605         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42606         (gl_SIGNAL_H_DEFAULTS): Add a default.
42607         * modules/signal (Makefile.am): Substitute if needed.
42608         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42609         users can blindly add volatile.
42610         * doc/posix-headers/signal.texi (signal.h): Document it.
42611         Reported by Matthew Woehlke.
42612
42613 2009-03-23  Jim Meyering  <meyering@redhat.com>
42614
42615         pathmax: PATH_MAX: use pathconf only when available
42616         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42617         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42618         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42619         This avoids a link failure in a PSP cross-compilation environment
42620         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42621
42622         * lib/vasnprintf.c (divide): Fix typo in comment.
42623
42624 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42625
42626         * gnulib-tool (func_filter_filelist): Fix comment.
42627
42628 2009-03-20  Bruno Haible  <bruno@clisp.org>
42629
42630         Make sockets.h self-contained.
42631         * lib/sockets.c: Include sockets.h first.
42632         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42633
42634 2009-03-19  Eric Blake  <ebb9@byu.net>
42635
42636         doc: mention more functions added in cygwin 1.7.0
42637         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42638         addition.
42639         * doc/posix-functions/log2f.texi: Likewise.
42640
42641 2009-03-19  Jim Meyering  <meyering@redhat.com>
42642
42643         fsusage: avoid syntax error due to statement-before-declaration
42644         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42645         after all declarations.  Reported by Matthew Woehlke in
42646         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42647
42648 2009-03-18  Eric Blake  <ebb9@byu.net>
42649
42650         build-aux/compile: sync from automake
42651         * build-aux/compile: New file, from automake.
42652         * config/srclist.txt: Mention build-aux/compile.
42653
42654 2009-03-17  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/git-merge-changelog.c: Fix typo in comment.
42657         Reported by Reuben Thomas <rrt@sc3d.org>.
42658
42659 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42660
42661         * m4/regex.m4: update and improve help for
42662         --without-included-regex.
42663
42664 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42665
42666         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42667         failure on missing include files.
42668
42669 2009-03-17  Eric Blake  <ebb9@byu.net>
42670
42671         doc: mention more functions added in cygwin 1.7.0
42672         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42673         addition.
42674         * doc/posix-functions/fwscanf.texi: Likewise.
42675         * doc/posix-functions/swprintf.texi: Likewise.
42676         * doc/posix-functions/swscanf.texi: Likewise.
42677         * doc/posix-functions/vfwprintf.texi: Likewise.
42678         * doc/posix-functions/vfwscanf.texi: Likewise.
42679         * doc/posix-functions/vswprintf.texi: Likewise.
42680         * doc/posix-functions/vswscanf.texi: Likewise.
42681         * doc/posix-functions/vwprintf.texi: Likewise.
42682         * doc/posix-functions/vwscanf.texi: Likewise.
42683         * doc/posix-functions/wcscasecmp.texi: Likewise.
42684         * doc/posix-functions/wcsdup.texi: Likewise.
42685         * doc/posix-functions/wcsftime.texi: Likewise.
42686         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42687         * doc/posix-functions/wprintf.texi: Likewise.
42688         * doc/posix-functions/wscanf.texi: Likewise.
42689         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42690
42691 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42692
42693         maint.mk: really add $(AM_MAKEFLAGS)
42694         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42695         was inadvertently omitted in the last commit.
42696         Spotted by Bruno Haible.
42697
42698         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42699         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42700         $(AM_MAKEFLAGS)' rather than plain `make'.
42701
42702         gnulib-tool: execute $MAKE not make
42703         * gnulib-tool: Default $MAKE to 'make'.
42704         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42705         than make.  Initialize $MAKE in the do-autobuild script.
42706
42707         gnulib-tool: use $MAKE not make in generated files
42708         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42709         make, in generated files.  Initialize $MAKE in the do-autobuild
42710         script.
42711
42712         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42713
42714         GNUmakefile: disable parallelism only for multiple, recursive targets
42715         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42716         additions in the Makefile.
42717         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42718         by Automake.
42719         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42720         are listed on the command line and at least one of them is
42721         listed in $(ALL_RECURSIVE_TARGETS).
42722
42723 2009-03-14  Bruno Haible  <bruno@clisp.org>
42724
42725         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42726         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42727         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42728         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42729         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42730         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42731         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42732         unistr/u8-uctomb.
42733         * modules/unistr/u8-strchr (Depends-on): Likewise.
42734         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42735         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42736         unistr/u16-uctomb.
42737         * modules/unistr/u16-strchr (Depends-on): Likewise.
42738         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42739
42740 2009-03-12  Bruno Haible  <bruno@clisp.org>
42741
42742         Work around select() bug on Interix 3.5.
42743         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42744         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42745         * m4/select.m4: New file.
42746         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42747         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42748         * modules/select (Files): Add m4/select.m4.
42749         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42750         * modules/nanosleep (Depends-on): Add select.
42751         * modules/poll (Depends-on): Likewise.
42752         * doc/posix-functions/select.texi: Mention the Interix bug.
42753         Reported by Markus Duft <mduft@gentoo.org>.
42754
42755         * lib/select.c: Renamed from lib/winsock-select.c.
42756         * modules/select (Files): Add lib/select.c, remove
42757         lib/winsock-select.c.
42758         (configure.ac): Update.
42759
42760 2009-03-12  Jim Meyering  <meyering@redhat.com>
42761
42762         avoid gcc warnings about unused macro definitions
42763         * lib/readtokens.c (STREQ): Remove unused definition.
42764         * lib/xmalloc.c (SIZE_MAX): Likewise.
42765         * lib/openat-die.c (N_): Likewise.
42766         * lib/mountlist.c (SIZE_MAX): Remove definition.
42767         Instead, include <stdint.h>.
42768         * lib/readutmp.c: Likewise.
42769         * modules/readutmp (Depends-on): Add stdint.
42770         * modules/mountlist (Depends-on): Add stdint.
42771         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42772
42773 2009-03-10  Bruno Haible  <bruno@clisp.org>
42774
42775         Tests for module 'mbmemcasecoll'.
42776         * modules/mbmemcasecoll-tests: New file.
42777         * tests/test-mbmemcasecoll1.sh: New file.
42778         * tests/test-mbmemcasecoll2.sh: New file.
42779         * tests/test-mbmemcasecoll3.sh: New file.
42780         * tests/test-mbmemcasecoll.c: New file.
42781
42782         New module 'mbmemcasecoll'.
42783         * lib/mbmemcasecoll.h: New file.
42784         * lib/mbmemcasecoll.c: New file.
42785         * modules/mbmemcasecoll: New file.
42786
42787         * tests/test-mbmemcasecmp.h: New file, extracted from
42788         tests/test-mbmemcasecmp.c.
42789         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42790         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42791         (main): Update.
42792         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42793
42794 2009-03-09  Bruno Haible  <bruno@clisp.org>
42795
42796         Tests for module 'mbmemcasecmp'.
42797         * modules/mbmemcasecmp-tests: New file.
42798         * tests/test-mbmemcasecmp1.sh: New file.
42799         * tests/test-mbmemcasecmp2.sh: New file.
42800         * tests/test-mbmemcasecmp3.sh: New file.
42801         * tests/test-mbmemcasecmp.c: New file.
42802
42803         New module 'mbmemcasecmp'.
42804         * lib/mbmemcasecmp.h: New file.
42805         * lib/mbmemcasecmp.c: New file.
42806         * modules/mbmemcasecmp: New file.
42807
42808 2009-03-09  Bruno Haible  <bruno@clisp.org>
42809
42810         Tests for module 'unicase/ulc-casecoll'.
42811         * modules/unicase/ulc-casecoll-tests: New file.
42812         * tests/unicase/test-ulc-casecoll1.sh: New file.
42813         * tests/unicase/test-ulc-casecoll2.sh: New file.
42814         * tests/unicase/test-ulc-casecoll.c: New file.
42815
42816         New module 'unicase/ulc-casecoll'.
42817         * lib/unicase.h (ulc_casecoll): New declaration.
42818         * lib/unicase/ulc-casecoll.c: New file.
42819         * modules/unicase/ulc-casecoll: New file.
42820
42821         New module 'unicase/ulc-casexfrm'.
42822         * lib/unicase.h (ulc_casexfrm): New declaration.
42823         * lib/unicase/ulc-casexfrm.c: New file.
42824         * modules/unicase/ulc-casexfrm: New file.
42825
42826 2009-03-09  Bruno Haible  <bruno@clisp.org>
42827
42828         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42829         invocations.
42830
42831         * m4/mbscasecmp.m4: Remove file.
42832         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42833         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42834
42835         * m4/mbscasestr.m4: Remove file.
42836         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42837         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42838
42839         * m4/mbschr.m4: Remove file.
42840         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42841         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42842
42843         * m4/mbscspn.m4: Remove file.
42844         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42845         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42846
42847         * m4/mbslen.m4: Remove file.
42848         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42849         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42850
42851         * m4/mbsncasecmp.m4: Remove file.
42852         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42853         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42854
42855         * m4/mbsnlen.m4: Remove file.
42856         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42857         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42858
42859         * m4/mbspbrk.m4: Remove file.
42860         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42861         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42862
42863         * m4/mbspcasecmp.m4: Remove file.
42864         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42865         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42866
42867         * m4/mbsrchr.m4: Remove file.
42868         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42869         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42870
42871         * m4/mbssep.m4: Remove file.
42872         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42873         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42874
42875         * m4/mbsspn.m4: Remove file.
42876         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42877         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42878
42879         * m4/mbsstr.m4: Remove file.
42880         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42881         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42882
42883         * m4/mbstok_r.m4: Remove file.
42884         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42885         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42886
42887         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42888
42889         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42890         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42891
42892         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42893
42894 2009-03-08  Bruno Haible  <bruno@clisp.org>
42895
42896         Tests for module 'unicase/ulc-casecmp'.
42897         * modules/unicase/ulc-casecmp-tests: New file.
42898         * tests/unicase/test-ulc-casecmp1.sh: New file.
42899         * tests/unicase/test-ulc-casecmp2.sh: New file.
42900         * tests/unicase/test-ulc-casecmp.c: New file.
42901
42902         New module 'unicase/ulc-casecmp'.
42903         * lib/unicase.h (ulc_casecmp): New declaration.
42904         * lib/unicase/ulc-casecmp.c: New file.
42905         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42906         'const SRC_UNIT *'.
42907         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42908         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42909         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42910         * modules/unicase/ulc-casecmp: New file.
42911
42912         Tests for module 'unicase/u32-is-cased'.
42913         * modules/unicase/u32-is-cased-tests: New file.
42914         * tests/unicase/test-u32-is-cased.c: New file.
42915
42916         Tests for module 'unicase/u16-is-cased'.
42917         * modules/unicase/u16-is-cased-tests: New file.
42918         * tests/unicase/test-u16-is-cased.c: New file.
42919
42920         Tests for module 'unicase/u8-is-cased'.
42921         * modules/unicase/u8-is-cased-tests: New file.
42922         * tests/unicase/test-u8-is-cased.c: New file.
42923         * tests/unicase/test-is-cased.h: New file.
42924
42925         New module 'unicase/u32-is-cased'.
42926         * lib/unicase/u32-is-cased.c: New file.
42927         * modules/unicase/u32-is-cased: New file.
42928
42929         New module 'unicase/u16-is-cased'.
42930         * lib/unicase/u16-is-cased.c: New file.
42931         * modules/unicase/u16-is-cased: New file.
42932
42933         New module 'unicase/u8-is-cased'.
42934         * lib/unicase/u8-is-cased.c: New file.
42935         * lib/unicase/u-is-cased.h: New file.
42936         * modules/unicase/u8-is-cased: New file.
42937
42938         Tests for module 'unicase/u32-is-casefolded'.
42939         * modules/unicase/u32-is-casefolded-tests: New file.
42940         * tests/unicase/test-u32-is-casefolded.c: New file.
42941
42942         Tests for module 'unicase/u16-is-casefolded'.
42943         * modules/unicase/u16-is-casefolded-tests: New file.
42944         * tests/unicase/test-u16-is-casefolded.c: New file.
42945
42946         Tests for module 'unicase/u8-is-casefolded'.
42947         * modules/unicase/u8-is-casefolded-tests: New file.
42948         * tests/unicase/test-u8-is-casefolded.c: New file.
42949         * tests/unicase/test-is-casefolded.h: New file.
42950
42951         New module 'unicase/u32-is-casefolded'.
42952         * lib/unicase/u32-is-casefolded.c: New file.
42953         * modules/unicase/u32-is-casefolded: New file.
42954
42955         New module 'unicase/u16-is-casefolded'.
42956         * lib/unicase/u16-is-casefolded.c: New file.
42957         * modules/unicase/u16-is-casefolded: New file.
42958
42959         New module 'unicase/u8-is-casefolded'.
42960         * lib/unicase/u8-is-casefolded.c: New file.
42961         * modules/unicase/u8-is-casefolded: New file.
42962
42963         Tests for module 'unicase/u32-is-titlecase'.
42964         * modules/unicase/u32-is-titlecase-tests: New file.
42965         * tests/unicase/test-u32-is-titlecase.c: New file.
42966
42967         Tests for module 'unicase/u16-is-titlecase'.
42968         * modules/unicase/u16-is-titlecase-tests: New file.
42969         * tests/unicase/test-u16-is-titlecase.c: New file.
42970
42971         Tests for module 'unicase/u8-is-titlecase'.
42972         * modules/unicase/u8-is-titlecase-tests: New file.
42973         * tests/unicase/test-u8-is-titlecase.c: New file.
42974         * tests/unicase/test-is-titlecase.h: New file.
42975
42976         New module 'unicase/u32-is-titlecase'.
42977         * lib/unicase/u32-is-titlecase.c: New file.
42978         * modules/unicase/u32-is-titlecase: New file.
42979
42980         New module 'unicase/u16-is-titlecase'.
42981         * lib/unicase/u16-is-titlecase.c: New file.
42982         * modules/unicase/u16-is-titlecase: New file.
42983
42984         New module 'unicase/u8-is-titlecase'.
42985         * lib/unicase/u8-is-titlecase.c: New file.
42986         * modules/unicase/u8-is-titlecase: New file.
42987
42988         Tests for module 'unicase/u32-is-lowercase'.
42989         * modules/unicase/u32-is-lowercase-tests: New file.
42990         * tests/unicase/test-u32-is-lowercase.c: New file.
42991
42992         Tests for module 'unicase/u16-is-lowercase'.
42993         * modules/unicase/u16-is-lowercase-tests: New file.
42994         * tests/unicase/test-u16-is-lowercase.c: New file.
42995
42996         Tests for module 'unicase/u8-is-lowercase'.
42997         * modules/unicase/u8-is-lowercase-tests: New file.
42998         * tests/unicase/test-u8-is-lowercase.c: New file.
42999         * tests/unicase/test-is-lowercase.h: New file.
43000
43001         New module 'unicase/u32-is-lowercase'.
43002         * lib/unicase/u32-is-lowercase.c: New file.
43003         * modules/unicase/u32-is-lowercase: New file.
43004
43005         New module 'unicase/u16-is-lowercase'.
43006         * lib/unicase/u16-is-lowercase.c: New file.
43007         * modules/unicase/u16-is-lowercase: New file.
43008
43009         New module 'unicase/u8-is-lowercase'.
43010         * lib/unicase/u8-is-lowercase.c: New file.
43011         * modules/unicase/u8-is-lowercase: New file.
43012
43013         Tests for module 'unicase/u32-is-uppercase'.
43014         * modules/unicase/u32-is-uppercase-tests: New file.
43015         * tests/unicase/test-u32-is-uppercase.c: New file.
43016
43017         Tests for module 'unicase/u16-is-uppercase'.
43018         * modules/unicase/u16-is-uppercase-tests: New file.
43019         * tests/unicase/test-u16-is-uppercase.c: New file.
43020
43021         Tests for module 'unicase/u8-is-uppercase'.
43022         * modules/unicase/u8-is-uppercase-tests: New file.
43023         * tests/unicase/test-u8-is-uppercase.c: New file.
43024         * tests/unicase/test-is-uppercase.h: New file.
43025
43026         New module 'unicase/u32-is-uppercase'.
43027         * lib/unicase/u32-is-uppercase.c: New file.
43028         * modules/unicase/u32-is-uppercase: New file.
43029
43030         New module 'unicase/u16-is-uppercase'.
43031         * lib/unicase/u16-is-uppercase.c: New file.
43032         * modules/unicase/u16-is-uppercase: New file.
43033
43034         New module 'unicase/u8-is-uppercase'.
43035         * lib/unicase/u8-is-uppercase.c: New file.
43036         * modules/unicase/u8-is-uppercase: New file.
43037
43038         New module 'unicase/u32-is-invariant'.
43039         * lib/unicase/u32-is-invariant.c: New file.
43040         * modules/unicase/u32-is-invariant: New file.
43041
43042         New module 'unicase/u16-is-invariant'.
43043         * lib/unicase/u16-is-invariant.c: New file.
43044         * modules/unicase/u16-is-invariant: New file.
43045
43046         New module 'unicase/u8-is-invariant'.
43047         * lib/unicase/u8-is-invariant.c: New file.
43048         * lib/unicase/invariant.h: New file.
43049         * lib/unicase/u-is-invariant.h: New file.
43050         * modules/unicase/u8-is-invariant: New file.
43051
43052         Tests for module 'unicase/u32-casecoll'.
43053         * modules/unicase/u32-casecoll-tests: New file.
43054         * tests/unicase/test-u32-casecoll.c: New file.
43055
43056         Tests for module 'unicase/u16-casecoll'.
43057         * modules/unicase/u16-casecoll-tests: New file.
43058         * tests/unicase/test-u16-casecoll.c: New file.
43059
43060         Tests for module 'unicase/u8-casecoll'.
43061         * modules/unicase/u8-casecoll-tests: New file.
43062         * tests/unicase/test-u8-casecoll.c: New file.
43063
43064         New module 'unicase/u32-casecoll'.
43065         * lib/unicase/u32-casecoll.c: New file.
43066         * modules/unicase/u32-casecoll: New file.
43067
43068         New module 'unicase/u16-casecoll'.
43069         * lib/unicase/u16-casecoll.c: New file.
43070         * modules/unicase/u16-casecoll: New file.
43071
43072         New module 'unicase/u8-casecoll'.
43073         * lib/unicase/u8-casecoll.c: New file.
43074         * lib/unicase/u-casecoll.h: New file.
43075         * modules/unicase/u8-casecoll: New file.
43076
43077         New module 'unicase/u32-casexfrm'.
43078         * lib/unicase/u32-casexfrm.c: New file.
43079         * modules/unicase/u32-casexfrm: New file.
43080
43081         New module 'unicase/u16-casexfrm'.
43082         * lib/unicase/u16-casexfrm.c: New file.
43083         * modules/unicase/u16-casexfrm: New file.
43084
43085         New module 'unicase/u8-casexfrm'.
43086         * lib/unicase/u8-casexfrm.c: New file.
43087         * lib/unicase/u-casexfrm.h: New file.
43088         * modules/unicase/u8-casexfrm: New file.
43089
43090         Tests for module 'unicase/u32-casecmp'.
43091         * modules/unicase/u32-casecmp-tests: New file.
43092         * tests/unicase/test-u32-casecmp.c: New file.
43093
43094         Tests for module 'unicase/u16-casecmp'.
43095         * modules/unicase/u16-casecmp-tests: New file.
43096         * tests/unicase/test-u16-casecmp.c: New file.
43097
43098         Tests for module 'unicase/u8-casecmp'.
43099         * modules/unicase/u8-casecmp-tests: New file.
43100         * tests/unicase/test-u8-casecmp.c: New file.
43101         * tests/unicase/test-casecmp.h: New file.
43102
43103         New module 'unicase/u32-casecmp'.
43104         * lib/unicase/u32-casecmp.c: New file.
43105         * modules/unicase/u32-casecmp: New file.
43106
43107         New module 'unicase/u16-casecmp'.
43108         * lib/unicase/u16-casecmp.c: New file.
43109         * modules/unicase/u16-casecmp: New file.
43110
43111         New module 'unicase/u8-casecmp'.
43112         * lib/unicase/u8-casecmp.c: New file.
43113         * lib/unicase/u-casecmp.h: New file.
43114         * modules/unicase/u8-casecmp: New file.
43115
43116         Tests for module 'unicase/u32-casefold'.
43117         * modules/unicase/u32-casefold-tests: New file.
43118         * tests/unicase/test-u32-casefold.c: New file.
43119
43120         Tests for module 'unicase/u16-casefold'.
43121         * modules/unicase/u16-casefold-tests: New file.
43122         * tests/unicase/test-u16-casefold.c: New file.
43123
43124         Tests for module 'unicase/u8-casefold'.
43125         * modules/unicase/u8-casefold-tests: New file.
43126         * tests/unicase/test-u8-casefold.c: New file.
43127
43128         New module 'unicase/u32-casefold'.
43129         * lib/unicase/u32-casefold.c: New file.
43130         * modules/unicase/u32-casefold: New file.
43131
43132         New module 'unicase/u16-casefold'.
43133         * lib/unicase/u16-casefold.c: New file.
43134         * modules/unicase/u16-casefold: New file.
43135
43136         New module 'unicase/u8-casefold'.
43137         * lib/unicase/u8-casefold.c: New file.
43138         * lib/unicase/u-casefold.h: New file.
43139         * modules/unicase/u8-casefold: New file.
43140
43141         New module 'unicase/tocasefold'.
43142         * lib/unicase/casefold.h: New file.
43143         * lib/unicase/tocasefold.c: New file.
43144         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
43145         * modules/unicase/tocasefold: New file.
43146
43147         Tests for module 'unicase/u32-totitle'.
43148         * modules/unicase/u32-totitle-tests: New file.
43149         * tests/unicase/test-u32-totitle.c: New file.
43150
43151         Tests for module 'unicase/u16-totitle'.
43152         * modules/unicase/u16-totitle-tests: New file.
43153         * tests/unicase/test-u16-totitle.c: New file.
43154
43155         Tests for module 'unicase/u8-totitle'.
43156         * modules/unicase/u8-totitle-tests: New file.
43157         * tests/unicase/test-u8-totitle.c: New file.
43158
43159         New module 'unicase/u32-totitle'.
43160         * lib/unicase/u32-totitle.c: New file.
43161         * modules/unicase/u32-totitle: New file.
43162
43163         New module 'unicase/u16-totitle'.
43164         * lib/unicase/u16-totitle.c: New file.
43165         * modules/unicase/u16-totitle: New file.
43166
43167         New module 'unicase/u8-totitle'.
43168         * lib/unicase/u8-totitle.c: New file.
43169         * lib/unicase/u-totitle.h: New file.
43170         * modules/unicase/u8-totitle: New file.
43171
43172         Tests for module 'unicase/u32-tolower'.
43173         * modules/unicase/u32-tolower-tests: New file.
43174         * tests/unicase/test-u32-tolower.c: New file.
43175
43176         Tests for module 'unicase/u16-tolower'.
43177         * modules/unicase/u16-tolower-tests: New file.
43178         * tests/unicase/test-u16-tolower.c: New file.
43179
43180         Tests for module 'unicase/u8-tolower'.
43181         * modules/unicase/u8-tolower-tests: New file.
43182         * tests/unicase/test-u8-tolower.c: New file.
43183
43184         New module 'unicase/u32-tolower'.
43185         * lib/unicase/u32-tolower.c: New file.
43186         * modules/unicase/u32-tolower: New file.
43187
43188         New module 'unicase/u16-tolower'.
43189         * lib/unicase/u16-tolower.c: New file.
43190         * modules/unicase/u16-tolower: New file.
43191
43192         New module 'unicase/u8-tolower'.
43193         * lib/unicase/u8-tolower.c: New file.
43194         * modules/unicase/u8-tolower: New file.
43195
43196         Tests for module 'unicase/u32-toupper'.
43197         * modules/unicase/u32-toupper-tests: New file.
43198         * tests/unicase/test-u32-toupper.c: New file.
43199
43200         Tests for module 'unicase/u16-toupper'.
43201         * modules/unicase/u16-toupper-tests: New file.
43202         * tests/unicase/test-u16-toupper.c: New file.
43203
43204         Tests for module 'unicase/u8-toupper'.
43205         * modules/unicase/u8-toupper-tests: New file.
43206         * tests/unicase/test-u8-toupper.c: New file.
43207
43208         New module 'unicase/u32-toupper'.
43209         * lib/unicase/u32-toupper.c: New file.
43210         * modules/unicase/u32-toupper: New file.
43211
43212         New module 'unicase/u16-toupper'.
43213         * lib/unicase/u16-toupper.c: New file.
43214         * modules/unicase/u16-toupper: New file.
43215
43216         New module 'unicase/u8-toupper'.
43217         * lib/unicase/u8-toupper.c: New file.
43218         * modules/unicase/u8-toupper: New file.
43219
43220         New module 'unicase/u32-casemap'.
43221         * lib/unicase/u32-casemap.c: New file.
43222         * modules/unicase/u32-casemap: New file.
43223
43224         New module 'unicase/u16-casemap'.
43225         * lib/unicase/u16-casemap.c: New file.
43226         * modules/unicase/u16-casemap: New file.
43227
43228         New module 'unicase/u8-casemap'.
43229         * lib/unicase/unicasemap.h: New file.
43230         * lib/unicase/u8-casemap.c: New file.
43231         * lib/unicase/u-casemap.h: New file.
43232         * modules/unicase/u8-casemap: New file.
43233
43234         New module 'unicase/special-casing'.
43235         * lib/unicase/special-casing.h: New file.
43236         * lib/unicase/special-casing.c: New file.
43237         * lib/unicase/special-casing-table.gperf: New file, generated by
43238         gen-uni-tables.c.
43239         * modules/unicase/special-casing: New file.
43240
43241         Tests for module 'unicase/locale-language'.
43242         * modules/unicase/locale-language-tests: New file.
43243         * tests/unicase/test-locale-language.sh: New file.
43244         * tests/unicase/test-locale-language.c: New file.
43245
43246         New module 'unicase/locale-language'.
43247         * lib/unicase/locale-language.c: New file.
43248         * lib/unicase/locale-languages.gperf: New file.
43249         * modules/unicase/locale-language: New file.
43250
43251         Generate more tables for case conversion and case folding.
43252         * lib/gen-uni-tables.c (SCC_*): New enum items.
43253         (struct special_casing_rule): New type.
43254         (casing_rules, num_casing_rules, allocated_casing_rules): New
43255         variables.
43256         (add_casing_rule, fill_casing_rules): New functions.
43257         (struct casefold_rule): New type.
43258         (casefolding_rules, num_casefolding_rules,
43259         allocated_casefolding_rules): New variables.
43260         (fill_casefolding_rules): New function.
43261         (unicode_casefold): New variable.
43262         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43263         sort_casing_rules, output_casing_rules): New functions.
43264         (main): Accept to more arguments: SpecialCasing.txt and
43265         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43266         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43267         Output mapping for casefolding.
43268
43269         * lib/unicase.h: Include stdbool.h, uninorm.h.
43270         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43271         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43272         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43273         arguments.
43274         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43275         resultp arguments.
43276         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43277         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43278         resultp arguments.
43279         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43280         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43281         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43282         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43283         declarations.
43284         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43285
43286 2009-03-08  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43289         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43290         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43291         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43292
43293 2009-03-07  Bruno Haible  <bruno@clisp.org>
43294
43295         Adjust u*_normcmp, u*_normcoll API.
43296         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43297         u16_normcoll, u32_normcoll): Change failure conventions.
43298         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43299         errno and return -1.
43300         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43301
43302 2009-03-07  Bruno Haible  <bruno@clisp.org>
43303
43304         Tests for module 'uninorm/u32-normcoll'.
43305         * modules/uninorm/u32-normcoll-tests: New file.
43306         * tests/uninorm/test-u32-normcoll.c: New file.
43307
43308         Tests for module 'uninorm/u16-normcoll'.
43309         * modules/uninorm/u16-normcoll-tests: New file.
43310         * tests/uninorm/test-u16-normcoll.c: New file.
43311
43312         Tests for module 'uninorm/u8-normcoll'.
43313         * modules/uninorm/u8-normcoll-tests: New file.
43314         * tests/uninorm/test-u8-normcoll.c: New file.
43315
43316 2009-03-07  Bruno Haible  <bruno@clisp.org>
43317
43318         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43319         tests/uninorm/test-u32-normcmp.c.
43320         * tests/uninorm/test-u32-normcmp.c: Include it.
43321         (test_nonascii): New function, extracted from main. Add some more
43322         tests.
43323         (main): Invoke test_ascii and test_nonascii.
43324         * modules/uninorm/u32-normcmp-tests (Files): Add
43325         tests/uninorm/test-u32-normcmp.h.
43326         (Depends-on): Remove uninorm/u32-normcmp.
43327
43328         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43329         tests/uninorm/test-u16-normcmp.c.
43330         * tests/uninorm/test-u16-normcmp.c: Include it.
43331         (test_nonascii): New function, extracted from main. Add some more
43332         tests.
43333         (main): Invoke test_ascii and test_nonascii.
43334         * modules/uninorm/u16-normcmp-tests (Files): Add
43335         tests/uninorm/test-u16-normcmp.h.
43336         (Depends-on): Remove uninorm/u16-normcmp.
43337
43338         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43339         tests/uninorm/test-u8-normcmp.c.
43340         * tests/uninorm/test-u8-normcmp.c: Include it.
43341         (test_nonascii): New function, extracted from main. Add some more
43342         tests.
43343         (main): Invoke test_ascii and test_nonascii.
43344         * modules/uninorm/u8-normcmp-tests (Files): Add
43345         tests/uninorm/test-u8-normcmp.h.
43346         (Depends-on): Remove uninorm/u8-normcmp.
43347
43348 2009-03-07  Bruno Haible  <bruno@clisp.org>
43349
43350         New module 'uninorm/u32-normcoll'.
43351         * lib/uninorm/u32-normcoll.c: New file.
43352         * modules/uninorm/u32-normcoll: New file.
43353
43354         New module 'uninorm/u16-normcoll'.
43355         * lib/uninorm/u16-normcoll.c: New file.
43356         * modules/uninorm/u16-normcoll: New file.
43357
43358         New module 'uninorm/u8-normcoll'.
43359         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43360         declarations.
43361         * lib/uninorm/u8-normcoll.c: New file.
43362         * lib/uninorm/u-normcoll.h: New file.
43363         * modules/uninorm/u8-normcoll: New file.
43364
43365         New module 'uninorm/u32-normxfrm'.
43366         * lib/uninorm/u32-normxfrm.c: New file.
43367         * modules/uninorm/u32-normxfrm: New file.
43368
43369         New module 'uninorm/u16-normxfrm'.
43370         * lib/uninorm/u16-normxfrm.c: New file.
43371         * modules/uninorm/u16-normxfrm: New file.
43372
43373         New module 'uninorm/u8-normxfrm'.
43374         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43375         declarations.
43376         * lib/uninorm/u8-normxfrm.c: New file.
43377         * lib/uninorm/u-normxfrm.h: New file.
43378         * modules/uninorm/u8-normxfrm: New file.
43379
43380 2009-03-07  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43383         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43384         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43385
43386 2009-03-07  Bruno Haible  <bruno@clisp.org>
43387
43388         New module 'memxfrm'.
43389         * lib/memxfrm.h: New file.
43390         * lib/memxfrm.c: New file.
43391         * modules/memxfrm: New file.
43392
43393 2009-03-07  Bruno Haible  <bruno@clisp.org>
43394
43395         New module 'memcmp2'.
43396         * lib/memcmp2.h: New file.
43397         * lib/memcmp2.c: New file.
43398         * modules/memcmp2: New file.
43399
43400 2009-03-07  Bruno Haible  <bruno@clisp.org>
43401
43402         Tests for module 'uninorm/decomposing-form'.
43403         * modules/uninorm/decomposing-form-tests: New file.
43404         * tests/uninorm/test-decomposing-form.c: New file.
43405
43406         New module 'uninorm/decomposing-form'.
43407         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43408         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43409         Add 'decomposing_variant' field.
43410         * lib/uninorm/decomposing-form.c: New file.
43411         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43412         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43413         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43414         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43415         * modules/uninorm/decomposing-form: New file.
43416         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43417         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43418
43419 2009-03-07  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43422         strings.
43423
43424 2009-03-06  Bruno Haible  <bruno@clisp.org>
43425
43426         Tests for module 'uninorm/u32-normcmp'.
43427         * tests/uninorm/test-u32-normcmp.c: New file.
43428         * modules/uninorm/u32-normcmp-tests: New file.
43429
43430         Tests for module 'uninorm/u16-normcmp'.
43431         * tests/uninorm/test-u16-normcmp.c: New file.
43432         * modules/uninorm/u16-normcmp-tests: New file.
43433
43434         Tests for module 'uninorm/u8-normcmp'.
43435         * tests/uninorm/test-u8-normcmp.c: New file.
43436         * modules/uninorm/u8-normcmp-tests: New file.
43437
43438         New module 'uninorm/u32-normcmp'.
43439         * lib/uninorm/u32-normcmp.c: New file.
43440         * modules/uninorm/u32-normcmp: New file.
43441
43442         New module 'uninorm/u16-normcmp'.
43443         * lib/uninorm/u16-normcmp.c: New file.
43444         * modules/uninorm/u16-normcmp: New file.
43445
43446         New module 'uninorm/u8-normcmp'.
43447         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43448         declarations.
43449         * lib/uninorm/u8-normcmp.c: New file.
43450         * lib/uninorm/u-normcmp.h: New file.
43451         * modules/uninorm/u8-normcmp: New file.
43452
43453 2009-03-06  Bruno Haible  <bruno@clisp.org>
43454
43455         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43456         Reported by Eric Blake.
43457
43458 2009-03-06  Eric Blake  <ebb9@byu.net>
43459             Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43462         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43463         condition.
43464         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43465         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43466         condition.
43467         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43468
43469 2009-03-06  Eric Blake  <ebb9@byu.net>
43470
43471         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43472         to avoid compiler warnings.
43473         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43474
43475 2009-03-05  Bruno Haible  <bruno@clisp.org>
43476
43477         * tests/test-ftell.c (main): Disable test beyond end of file on
43478         FreeMiNT.
43479         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43480
43481 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43482
43483         * lib/filevercmp.c: Move hidden files up in ordering.
43484         * tests/test-filevercmp.c: Add tests for hidden files.
43485
43486 2009-03-04  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43489         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43490         AM_CFLAGS.
43491         Reported by Simon Josefsson.
43492
43493 2009-03-03  Bruno Haible  <bruno@clisp.org>
43494
43495         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43496         Reported by Simon Josefsson.
43497
43498         * doc/ld-version-script.texi: Update node reference.
43499
43500 2009-03-03  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/visibility (License): Change to 'unlimited'.
43503         Suggested by Simon Josefsson.
43504
43505 2009-03-03  Jim Meyering  <meyering@redhat.com>
43506
43507         unlinkdir: cannot_unlink_dir may modify process state
43508         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43509         it's neither thread-safe nor appropriate for use in a library.
43510
43511 2009-03-03  Eric Blake  <ebb9@byu.net>
43512
43513         test-closein: silence test under Darwin
43514         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43515         care if it dies from EPIPE or EBADF.
43516
43517 2009-03-03  Bruno Haible  <bruno@clisp.org>
43518
43519         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43520         earlier.
43521         * doc/visibility.texi: Fix @node and @section.
43522
43523 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43524
43525         * doc/gnulib.texi: Link to sections for ld version script and
43526         visibility.
43527         * doc/visibility.texi: Add @node and @section.
43528         * modules/ld-version-script: New module.
43529         * m4/ld-version-script.m4: New file.
43530         * doc/ld-version-script.texi: New file.
43531
43532 2009-03-02  David Lutterkort  <lutter@redhat.com>
43533
43534         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43536
43537 2009-03-02  Bruno Haible  <bruno@clisp.org>
43538
43539         * doc/visibility.texi: Mention libtool's -export-symbols option.
43540
43541 2009-03-02  Jim Meyering  <meyering@redhat.com>
43542
43543         announce-gen: new option: --no-print-checksums
43544         * build-aux/announce-gen (usage): Describe it.
43545         (print_checksums): Print a newline here, not in the [*] footnote.
43546         (main): Honor it.
43547
43548 2009-03-01  Bruno Haible  <bruno@clisp.org>
43549
43550         Use socklen_t in the native Windows replacements prototypes.
43551         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43552         instead of 'int'.
43553         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43554         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43555         * modules/getsockopt (Depends-on): Add socklen.
43556         * modules/setsockopt (Depends-on): Add socklen.
43557
43558 2009-03-01  Bruno Haible  <bruno@clisp.org>
43559
43560         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43561         least 4.2.
43562
43563 2009-03-01  Eric Blake  <ebb9@byu.net>
43564             Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43567         error messages.
43568         * lib/wait-process.c (wait_subprocess): Omit error message about
43569         deadly signal sent to the child of termsigp != NULL.
43570
43571 2009-03-01  Eric Blake  <ebb9@byu.net>
43572
43573         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43574
43575 2009-03-01  Bruno Haible  <bruno@clisp.org>
43576
43577         Avoid a gcc warning.
43578         * tests/test-sched.c (b): Make global.
43579         Reported by Eric Blake.
43580
43581 2009-01-19  Martin Lambers  <marlam@marlam.de>
43582
43583         Provide POSIX semantics for socket timeout options on W32.
43584         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43585         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43586         * modules/setsockopt: Depend on sys_time module for struct timeval.
43587         * modules/getsockopt: Depend on sys_time module for struct timeval.
43588
43589 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43590
43591         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43592         __USE_GNU, for consistency with netdb.in.h.
43593         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43594
43595 2009-03-01  Bruno Haible  <bruno@clisp.org>
43596
43597         More support for FreeMiNT.
43598         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43599         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43600
43601 2009-03-01  Bruno Haible  <bruno@clisp.org>
43602
43603         More support for FreeMiNT.
43604         * lib/fpurge.c (fpurge): Correct last commit.
43605         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43606
43607 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43608
43609         Fix unportable awk script in vc-list-files.
43610         * build-aux/vc-list-files: In the replacement awk script, use
43611         substr with a second argument of 1, not zero.
43612         Report by Simon Josefsson.
43613
43614 2009-02-28  Bruno Haible  <bruno@clisp.org>
43615
43616         More support for FreeMiNT.
43617         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43618         to FreeMiNT today.
43619         * lib/fwriting.c (fwriting): Likewise.
43620         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43621
43622 2009-02-28  Bruno Haible  <bruno@clisp.org>
43623
43624         * tests/test-freadseek.c (main): Disable test beyond end of file on
43625         FreeMiNT.
43626         * tests/test-ftello.c (main): Likewise.
43627         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43628
43629 2009-02-28  Bruno Haible  <bruno@clisp.org>
43630
43631         Add tentative support for FreeMiNT.
43632         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43633         * lib/fpurge.c (fpurge): Likewise.
43634         * lib/freadable.c (freadable): Likewise.
43635         * lib/freading.c (freading): Likewise.
43636         * lib/freadptr.c (freadptr): Likewise.
43637         * lib/freadseek.c (freadptrinc): Likewise.
43638         * lib/fseeko.c (rpl_fseeko): Likewise.
43639         * lib/fseterr.c (fseterr): Likewise.
43640         * lib/fwritable.c (fwritable): Likewise.
43641         * lib/fwriting.c (fwriting): Likewise.
43642         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43643         Hourihane.
43644         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43645
43646 2009-02-28  Bruno Haible  <bruno@clisp.org>
43647
43648         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43649         SIGCHLD.
43650         Reported by Jim Meyering.
43651
43652 2009-02-28  Bruno Haible  <bruno@clisp.org>
43653
43654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43655         Mention the results of these tests on various platforms.
43656         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43657         order.
43658         * doc/posix-functions/printf.texi: Likewise.
43659         * doc/posix-functions/snprintf.texi: Likewise.
43660         * doc/posix-functions/sprintf.texi: Likewise.
43661         * doc/posix-functions/vfprintf.texi: Likewise.
43662         * doc/posix-functions/vprintf.texi: Likewise.
43663         * doc/posix-functions/vsnprintf.texi: Likewise.
43664         * doc/posix-functions/vsprintf.texi: Likewise.
43665         * doc/glibc-functions/obstack_printf.texi: Likewise.
43666         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43667
43668 2009-02-28  Bruno Haible  <bruno@clisp.org>
43669
43670         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43671         Reported by Loïc Minier <lool@dooz.org>.
43672
43673 2009-02-27  Bruno Haible  <bruno@clisp.org>
43674
43675         * gnulib-tool (func_import): Make the sed expression used to create the
43676         sed script for updating the .gitignore file POSIX compliant.
43677         Reported by Eric Blake.
43678
43679 2009-02-27  Bruno Haible  <bruno@clisp.org>
43680
43681         * gnulib-tool (sed): Don't alias as "sed --posix".
43682         Reported by Eric Blake.
43683
43684 2009-02-27  Bruno Haible  <bruno@clisp.org>
43685
43686         Avoid test link errors.
43687         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43688         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43689         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43690         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43692
43693 2009-02-27  Bruno Haible  <bruno@clisp.org>
43694
43695         Avoid spurious "(cached)" in configure output.
43696         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43697         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43698         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43699         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43700         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43701         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43702         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43703         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43704         Reported by Eric Blake.
43705
43706 2009-02-27  Eric Blake  <ebb9@byu.net>
43707
43708         printf: fix regression in previous patch
43709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43710
43711 2009-02-27  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43714         value.
43715         * lib/stdint.in.h: Likewise.
43716         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43717
43718 2009-02-27  Eric Blake  <ebb9@byu.net>
43719
43720         doc: mention more functions added in cygwin 1.7.0
43721         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43722         addition.
43723         * doc/posix-functions/open_wmemstream.texi: Likewise.
43724         * doc/posix-functions/wcsnlen.texi: Likewise.
43725         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43726         * doc/posix-functions/wcstod.texi: Likewise.
43727         * doc/posix-functions/wcstof.texi: Likewise.
43728         * doc/posix-functions/wcstoimax.texi: Likewise.
43729         * doc/posix-functions/wcstok.texi: Likewise.
43730         * doc/posix-functions/wcstoumax.texi: Likewise.
43731
43732         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43734         * doc/posix-functions/fprintf.texi: Update.
43735         * doc/posix-functions/printf.texi: Update.
43736         * doc/posix-functions/snprintf.texi: Update.
43737         * doc/posix-functions/sprintf.texi: Update.
43738         * doc/posix-functions/vfprintf.texi: Update.
43739         * doc/posix-functions/vprintf.texi: Update.
43740         * doc/posix-functions/vsnprintf.texi: Update.
43741         * doc/posix-functions/vsprintf.texi: Update.
43742         * doc/glibc-functions/obstack_printf.texi: Update.
43743         * doc/glibc-functions/obstack_vprintf.texi: Update.
43744
43745 2009-02-26  Eric Blake  <ebb9@byu.net>
43746
43747         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43748         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43749         compilation bug by using runtime conversion.
43750         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43751         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43752         * modules/ceill-tests (Files): Use nan.h.
43753         * modules/floorl-tests (Files): Likewise.
43754         * modules/frexpl-tests (Files): Likewise.
43755         * modules/isnanl-tests (Files): Likewise.
43756         * modules/ldexpl-tests (Files): Likewise.
43757         * modules/roundl-tests (Files): Likewise.
43758         * modules/truncl-tests (Files): Likewise.
43759         * tests/test-ceill.c (main): Use a working NaN.
43760         * tests/test-floorl.c (main): Likewise.
43761         * tests/test-frexpl.c (main): Likewise.
43762         * tests/test-isnan.c (test_long_double): Likewise.
43763         * tests/test-isnanl.h (main): Likewise.
43764         * tests/test-ldexpl.h (main): Likewise.
43765         * tests/test-roundl.h (main): Likewise.
43766         * tests/test-truncl.h (main): Likewise.
43767         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43768
43769 2009-02-26  Eric Blake  <ebb9@byu.net>
43770             Bruno Haible  <bruno@clisp.org>
43771
43772         Work around a *printf bug with %ls on Solaris.
43773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43774         precision is specified, sprintf stops converting the wide string
43775         argument when the number of bytes that have been produced by this
43776         conversion equals or exceeds the precision.
43777         * doc/posix-functions/fprintf.texi: Update.
43778         * doc/posix-functions/printf.texi: Update.
43779         * doc/posix-functions/snprintf.texi: Update.
43780         * doc/posix-functions/sprintf.texi: Update.
43781         * doc/posix-functions/vfprintf.texi: Update.
43782         * doc/posix-functions/vprintf.texi: Update.
43783         * doc/posix-functions/vsnprintf.texi: Update.
43784         * doc/posix-functions/vsprintf.texi: Update.
43785         * doc/glibc-functions/obstack_printf.texi: Update.
43786         * doc/glibc-functions/obstack_vprintf.texi: Update.
43787
43788 2009-02-26  Eric Blake  <ebb9@byu.net>
43789
43790         stdlib: favor compiler check of random.h
43791         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43792         to avoid an ObjC random.h installed by Swarm.
43793
43794 2009-02-26  Bruno Haible  <bruno@clisp.org>
43795
43796         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43797         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43798         Reported by Gary V. Vaughan <gary@gnu.org>.
43799
43800 2009-02-26  Bruno Haible  <bruno@clisp.org>
43801
43802         Fix *printf behaviour regarding the %ls directive.
43803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43804         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43805         NEED_PRINTF_DIRECTIVE_LS.
43806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43807         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43809         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43810         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43811         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43817         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43821         * doc/posix-functions/fprintf.texi: Update.
43822         * doc/posix-functions/printf.texi: Update.
43823         * doc/posix-functions/snprintf.texi: Update.
43824         * doc/posix-functions/sprintf.texi: Update.
43825         * doc/posix-functions/vfprintf.texi: Update.
43826         * doc/posix-functions/vprintf.texi: Update.
43827         * doc/posix-functions/vsnprintf.texi: Update.
43828         * doc/posix-functions/vsprintf.texi: Update.
43829         * doc/glibc-functions/obstack_printf.texi: Update.
43830         * doc/glibc-functions/obstack_vprintf.texi: Update.
43831         Reported by Eric Blake.
43832
43833 2009-02-25  Bruno Haible  <bruno@clisp.org>
43834
43835         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43836         with known value.
43837         Reported by Gary V. Vaughan <gary@gnu.org>.
43838
43839 2009-02-25  Bruno Haible  <bruno@clisp.org>
43840
43841         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43842         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43843         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43844         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43845         Reported by Gary V. Vaughan <gary@gnu.org>.
43846
43847 2009-02-25  Bruno Haible  <bruno@clisp.org>
43848
43849         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43850         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43851         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43852         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43853         Reported by Gary V. Vaughan <gary@gnu.org>.
43854
43855 2009-02-25  Eric Blake  <ebb9@byu.net>
43856
43857         tests: skip fseek/ftell tests if ungetc is broken
43858         * m4/ungetc.m4: New file.
43859         * modules/fseek-tests: Split test, so ungetc dependency is
43860         separate from rest of test.
43861         * modules/fseeko-tests: Likewise.
43862         * modules/ftell-tests: Likewise.
43863         * modules/ftello-tests: Likewise.
43864         * tests/test-fseek.c (main): Isolate ungetc dependency.
43865         * tests/test-fseeko.c (main): Likewise.
43866         * tests/test-ftell.c (main): Likewise.
43867         * tests/test-ftello.c (main): Likewise.
43868         * tests/test-fseek2.sh: New file.
43869         * tests/test-fseeko2.sh: Likewise.
43870         * tests/test-ftell2.sh: Likewise.
43871         * tests/test-ftello2.sh: Likewise.
43872
43873 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43874
43875         test-getaddrinfo: fix usage of skip return code 77
43876         * tests/test-gettaddrinfo.c: Return skip code 77 only
43877         for first occurance of skip (4x77 is not 77)
43878
43879 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43880
43881         strtod: avoid C99 decl-after-statement
43882         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43883
43884 2009-02-24  Eric Blake  <ebb9@byu.net>
43885
43886         strtod: detect HP-UX 11.31 bug
43887         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43888         Reported by Gary V. Vaughan.
43889
43890 2009-02-23  Bruno Haible  <bruno@clisp.org>
43891
43892         Fix invalid read past end of memory block.
43893         * lib/vasnprintf.c (DCHAR_SET): Define.
43894         (local_wcslen): Define only when needed.
43895         (local_strnlen, local_wcsnlen): New functions.
43896         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43897         directives that involve a conversion ourselves.
43898         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43899         wcsnlen, mbrtowc, wcrtomb.
43900         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43901         * tests/test-vasprintf-posix.c (test_function): Likewise.
43902         * tests/test-snprintf-posix.h (test_function): Likewise.
43903         * tests/test-sprintf-posix.h (test_function): Likewise.
43904         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43905
43906 2009-02-22  Bruno Haible  <bruno@clisp.org>
43907
43908         Implement new clarified decomposition of Hangul syllables.
43909         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43910         of type LTV, return only a pairwise decomposition.
43911         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43912         Likewise.
43913         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43914         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43915         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43916
43917 2009-02-22  Bruno Haible  <bruno@clisp.org>
43918
43919         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43920         zero-length results and shrink excess allocated memory.
43921         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43922         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43923         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43924         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43925         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43926         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43927         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43928         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43929         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43930         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43931         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43932         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43933
43934 2009-02-21  Bruno Haible  <bruno@clisp.org>
43935
43936         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43937         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43938         spaces after a period. Put a space between a macro name and its
43939         argument list. Trivial rewordings.
43940         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43941         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43942         (main): Return 0 explicitly.
43943
43944 2009-02-21  Bruno Haible  <bruno@clisp.org>
43945
43946         Tests for module 'uninorm/filter'.
43947         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43948         * modules/uninorm/filter-tests: New file.
43949
43950         New module 'uninorm/filter'.
43951         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43952         uninorm_filter_flush, uninorm_filter_free): New declarations.
43953         * lib/uninorm/uninorm-filter.c: New file.
43954         * modules/uninorm/filter: New file.
43955
43956 2009-02-21  Bruno Haible  <bruno@clisp.org>
43957
43958         Tests for module 'uninorm/nfkc'.
43959         * tests/uninorm/test-nfkc.c: New file.
43960         * tests/uninorm/test-u8-nfkc.c: New file.
43961         * tests/uninorm/test-u16-nfkc.c: New file.
43962         * tests/uninorm/test-u32-nfkc.c: New file.
43963         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43964         * tests/uninorm/test-u32-nfkc-big.c: New file.
43965         * modules/uninorm/nfkc-tests: New file.
43966
43967         New module 'uninorm/nfkc'.
43968         * lib/uninorm/nfkc.c: New file.
43969         * modules/uninorm/nfkc: New file.
43970
43971         Tests for module 'uninorm/nfkd'.
43972         * tests/uninorm/test-nfkd.c: New file.
43973         * tests/uninorm/test-u8-nfkd.c: New file.
43974         * tests/uninorm/test-u16-nfkd.c: New file.
43975         * tests/uninorm/test-u32-nfkd.c: New file.
43976         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43977         * tests/uninorm/test-u32-nfkd-big.c: New file.
43978         * modules/uninorm/nfkd-tests: New file.
43979
43980         New module 'uninorm/nfkd'.
43981         * lib/uninorm/nfkd.c: New file.
43982         * modules/uninorm/nfkd: New file.
43983
43984         Tests for module 'uninorm/nfc'.
43985         * tests/uninorm/test-nfc.c: New file.
43986         * tests/uninorm/test-u8-nfc.c: New file.
43987         * tests/uninorm/test-u16-nfc.c: New file.
43988         * tests/uninorm/test-u32-nfc.c: New file.
43989         * tests/uninorm/test-u32-nfc-big.sh: New file.
43990         * tests/uninorm/test-u32-nfc-big.c: New file.
43991         * modules/uninorm/nfc-tests: New file.
43992
43993         New module 'uninorm/nfc'.
43994         * lib/uninorm/nfc.c: New file.
43995         * modules/uninorm/nfc: New file.
43996
43997         Tests for module 'uninorm/nfd'.
43998         * tests/uninorm/test-nfd.c: New file.
43999         * tests/uninorm/test-u8-nfd.c: New file.
44000         * tests/uninorm/test-u16-nfd.c: New file.
44001         * tests/uninorm/test-u32-nfd.c: New file.
44002         * tests/uninorm/test-u32-nfd-big.sh: New file.
44003         * tests/uninorm/test-u32-nfd-big.c: New file.
44004         * tests/uninorm/test-u32-normalize-big.h: New file.
44005         * tests/uninorm/test-u32-normalize-big.c: New file.
44006         * tests/uninorm/NormalizationTest.txt: New file, created from
44007         Unicode 5.1.0 NormalizationTest.txt.
44008         * modules/uninorm/nfd-tests: New file.
44009
44010         New module 'uninorm/nfd'.
44011         * lib/uninorm/nfd.c: New file.
44012         * modules/uninorm/nfd: New file.
44013
44014         New module 'uninorm/u32-normalize'.
44015         * lib/uninorm/u32-normalize.c: New file.
44016         * modules/uninorm/u32-normalize: New file.
44017
44018         New module 'uninorm/u16-normalize'.
44019         * lib/uninorm/u16-normalize.c: New file.
44020         * modules/uninorm/u16-normalize: New file.
44021
44022         New module 'uninorm/u8-normalize'.
44023         * lib/uninorm/u8-normalize.c: New file.
44024         * lib/uninorm/normalize-internal.h: New file.
44025         * lib/uninorm/u-normalize-internal.h: New file.
44026         * modules/uninorm/u8-normalize: New file.
44027
44028         New module 'uninorm/decompose-internal'.
44029         * lib/uninorm/decompose-internal.c: New file.
44030         * modules/uninorm/decompose-internal: New file.
44031
44032         Tests for module 'uninorm/composition'.
44033         * tests/uninorm/test-composition.c: New file.
44034         * modules/uninorm/composition-tests: New file.
44035
44036         New module 'uninorm/composition'.
44037         * lib/uninorm/composition.c: New file.
44038         * lib/uninorm/composition-table.gperf: New file, generated by
44039         gen-uni-tables.
44040         * modules/uninorm/composition: New file.
44041
44042         Tests for module 'uninorm/compat-decomposition'.
44043         * tests/uninorm/test-compat-decomposition.c: New file.
44044         * modules/uninorm/compat-decomposition-tests: New file.
44045
44046         New module 'uninorm/compat-decomposition'.
44047         * lib/uninorm/decompose-internal.h: New file.
44048         * lib/uninorm/compat-decomposition.c: New file.
44049         * modules/uninorm/compat-decomposition: New file.
44050
44051         Tests for module 'uninorm/canonical-decomposition'.
44052         * tests/uninorm/test-canonical-decomposition.c: New file.
44053         * modules/uninorm/canonical-decomposition-tests: New file.
44054
44055         New module 'uninorm/canonical-decomposition'.
44056         * lib/uninorm/canonical-decomposition.c: New file.
44057         * modules/uninorm/canonical-decomposition: New file.
44058
44059         Tests for module 'uninorm/decomposition'.
44060         * tests/uninorm/test-decomposition.c: New file.
44061         * modules/uninorm/decomposition-tests: New file.
44062
44063         New module 'uninorm/decomposition'.
44064         * lib/uninorm/decomposition.c: New file.
44065         * modules/uninorm/decomposition: New file.
44066
44067         New module 'uninorm/decomposition-table'.
44068         * lib/uninorm/decomposition-table.h: New file.
44069         * lib/uninorm/decomposition-table.c: New file.
44070         * lib/uninorm/decomposition-table1.h: New file, generated by
44071         gen-uni-tables.
44072         * lib/uninorm/decomposition-table2.h: New file, generated by
44073         gen-uni-tables.
44074         * modules/uninorm/decomposition-table: New file.
44075
44076         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
44077         (UC_DECOMP_*): New enumeration items.
44078         (get_decomposition): New function.
44079         (struct decomp_table): New type.
44080         (output_decomposition, output_decomposition_tables): New functions.
44081         (unicode_composition_exclusions): New variable.
44082         (fill_composition_exclusions, debug_output_composition_tables): New
44083         functions.
44084         (main): Accept one more argument. Invoke fill_composition_exclusions.
44085         Output decomposition and composition tables.
44086
44087         New module 'uninorm/base'.
44088         * lib/uninorm.h: New file.
44089         * lib/unictype.h: Update comment.
44090         * modules/uninorm/base: New file.
44091
44092 2009-02-21  David Lutterkort  <lutter@redhat.com>
44093
44094         Tests for module 'safe-alloc'.
44095         * tests/test-safe-alloc.c: New file.
44096         * modules/safe-alloc-tests: New file.
44097
44098         New module 'safe-alloc'.
44099         * lib/safe-alloc.h: New file.
44100         * lib/safe-alloc.c: New file.
44101         * m4/safe-alloc.m4: New file.
44102         * modules/safe-alloc: New file.
44103         * doc/safe-alloc.texi: New file.
44104         * doc/gnulib.texi: Include it.
44105         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44106         safe-alloc.
44107
44108 2009-02-18  Bruno Haible  <bruno@clisp.org>
44109
44110         Fix link error on non-glibc systems.
44111         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
44112         variable.
44113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44114
44115 2009-02-18  Jim Meyering  <meyering@redhat.com>
44116
44117         fts: avoid used-uninitialized error due to recent change
44118         * lib/fts.c (fts_read): Guard uses of the new member,
44119         parent->fts_n_dirs_remaining, since it's not relevant for
44120         the parent of a directory specified on the command-line.
44121
44122 2009-02-17  James Youngman  <jay@gnu.org>
44123             Bruno Haible  <bruno@clisp.org>
44124
44125         * m4/include_next.m4: Reformulate comment.
44126
44127 2009-02-16  Jim Meyering  <meyering@redhat.com>
44128
44129         fts: add #if guards so that the fts_lgpl module still builds
44130         * lib/fts.c: Guard just-added hash-table-using parts with
44131         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
44132         Reported by Simon Josefsson.
44133
44134 2009-02-15  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/array-mergesort-tests: New file.
44137         * tests/test-array-mergesort.c: New file.
44138
44139         New module 'array-mergesort'.
44140         * modules/array-mergesort: New file.
44141         * lib/array-mergesort.h: New file.
44142
44143 2009-02-15  Bruno Haible  <bruno@clisp.org>
44144
44145         Fix 2009-02-07 commit.
44146         * lib/gen-uni-tables.c (output_predicate, output_category,
44147         output_combclass, output_bidi_category, output_decimal_digit,
44148         output_digit, output_numeric, output_mirror, output_scripts,
44149         output_ident_category, output_simple_mapping): Fix format directives.
44150         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
44151
44152 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
44153
44154         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
44155         fixes are available from IBM.
44156
44157 2009-02-13  Jim Meyering  <meyering@redhat.com>
44158
44159         fts: arrange not to stat non-directories in more cases
44160         This makes GNU find (when it doesn't need to stat each file)
44161         *much* more efficient at traversing reiserfs file systems.
44162         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
44163         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
44164         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
44165         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
44166         (leaf_optimization_applies): New function.
44167         (LCO_hash, LCO_compare): New helper functions.
44168         (link_count_optimize_ok): New function.
44169         (fts_stat): Initialize new member (if dir).
44170         (fts_read): Decrement parent's fts_n_dirs_remaining count if
44171         we've just stat'ed a directory.  Skip the stat call when possible.
44172         ---
44173         Note this AFS-related exchange:
44174         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
44175         and note find's pioctl call in find/fstype.c.
44176         But that is necessary only if you want to enable the
44177         optimization for AFS, and for now, I don't.
44178
44179         fts: move a function definition "up" (no semantic change)
44180         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
44181         "up" to precede upcoming use of a related function.
44182
44183 2009-02-11  Jim Meyering  <meyering@redhat.com>
44184
44185         fts: correct internal computation of nlinks (optimization-related)
44186         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
44187         whether the current entry is a directory, so don't test it.
44188
44189 2009-02-10  Bruno Haible  <bruno@clisp.org>
44190
44191         Tests for module 'uniwbrk/ulc-wordbreaks'.
44192         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
44193         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
44194         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
44195
44196         Tests for module 'uniwbrk/u32-wordbreaks'.
44197         * modules/uniwbrk/u32-wordbreaks-tests: New file.
44198         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
44199
44200         Tests for module 'uniwbrk/u16-wordbreaks'.
44201         * modules/uniwbrk/u16-wordbreaks-tests: New file.
44202         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
44203
44204         Tests for module 'uniwbrk/u8-wordbreaks'.
44205         * modules/uniwbrk/u8-wordbreaks-tests: New file.
44206         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
44207
44208 2009-02-10  Bruno Haible  <bruno@clisp.org>
44209
44210         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
44211         property.
44212         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
44213         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
44214         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
44215
44216 2009-02-10  Simon Josefsson  <simon@josefsson.org>
44217
44218         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
44219         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
44220
44221 2009-02-10  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44224         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44225         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44226         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44227         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44228         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44229
44230 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44231
44232         * lib/sockets.h (gl_fd_to_handle): New function.
44233
44234         * tests/test-sockets.c: Call gl_fd_to_handle.
44235
44236 2009-02-09  Bruno Haible  <bruno@clisp.org>
44237
44238         * doc/havelib.texi: Document the conventions on bi-arch systems.
44239
44240 2009-02-08  Bruno Haible  <bruno@clisp.org>
44241
44242         Document the AC_LIB_LINKFLAGS macro.
44243         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44244         * doc/gnulib.texi: Include it.
44245
44246 2009-02-08  Bruno Haible  <bruno@clisp.org>
44247
44248         Fix wrong order of sections, compared to TOC.
44249         * doc/gnulib.texi: Include relocatable-maint.texi after the
44250         "Regular expressions" node, not before.
44251
44252 2009-02-08  Bruno Haible  <bruno@clisp.org>
44253
44254         Tests for module 'unicase/totitle'.
44255         * modules/unicase/totitle-tests: New file.
44256
44257         Tests for module 'unicase/tolower'.
44258         * modules/unicase/tolower-tests: New file.
44259
44260         Tests for module 'unicase/toupper'.
44261         * modules/unicase/toupper-tests: New file.
44262         * tests/unicase/test-mapping-part1.h: New file.
44263         * tests/unicase/test-mapping-part2.h: New file.
44264
44265         New module 'unicase/totitle'.
44266         * modules/unicase/totitle: New file.
44267         * lib/unicase/totitle.c: New file.
44268
44269         New module 'unicase/tolower'.
44270         * modules/unicase/tolower: New file.
44271         * lib/unicase/tolower.c: New file.
44272
44273         New module 'unicase/toupper'.
44274         * modules/unicase/toupper: New file.
44275         * lib/unicase/toupper.c: New file.
44276         * lib/unicase/simple-mapping.h: New file.
44277
44278         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44279         (mapping_table): New structure.
44280         (output_simple_mapping): New function.
44281         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44282         * modules/gen-uni-tables (Description): Update.
44283         * lib/unicase/toupper.h: New file, automatically generated by
44284         gen-uni-tables.
44285         * lib/unicase/tolower.h: New file, automatically generated by
44286         gen-uni-tables.
44287         * lib/unicase/totitle.h: New file, automatically generated by
44288         gen-uni-tables.
44289         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44290         gen-uni-tables.
44291         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44292         gen-uni-tables.
44293         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44294         gen-uni-tables.
44295
44296         New module 'unicase/base'.
44297         * modules/unicase/base: New file.
44298         * lib/unicase.h: New file.
44299
44300 2009-02-08  Bruno Haible  <bruno@clisp.org>
44301
44302         New module 'uniwbrk/ulc-wordbreaks'.
44303         * modules/uniwbrk/ulc-wordbreaks: New file.
44304         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44305
44306         New module 'uniwbrk/u32-wordbreaks'.
44307         * modules/uniwbrk/u32-wordbreaks: New file.
44308         * lib/uniwbrk/u32-wordbreaks.c: New file.
44309
44310         New module 'uniwbrk/u16-wordbreaks'.
44311         * modules/uniwbrk/u16-wordbreaks: New file.
44312         * lib/uniwbrk/u16-wordbreaks.c: New file.
44313
44314         New module 'uniwbrk/u8-wordbreaks'.
44315         * modules/uniwbrk/u8-wordbreaks: New file.
44316         * lib/uniwbrk/u8-wordbreaks.c: New file.
44317         * lib/uniwbrk/u-wordbreaks.h: New file.
44318
44319         New module 'uniwbrk/table'.
44320         * modules/uniwbrk/table: New file.
44321         * lib/uniwbrk/wbrktable.h: New file.
44322         * lib/uniwbrk/wbrktable.c: New file.
44323
44324         New module 'uniwbrk/wordbreak-property'.
44325         * modules/uniwbrk/wordbreak-property: New file.
44326         * lib/uniwbrk/wordbreak-property.c: New file.
44327
44328         * lib/gen-uni-tables.c (WBP_*): New enum items.
44329         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44330         (unicode_org_wbp): New variable.
44331         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44332         New functions.
44333         (wbp_table): New structure.
44334         (output_wbp, output_wbrk_tables): New functions.
44335         (main): Accept additional argument. Invoke fill_org_wbp,
44336         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44337         output_wbrk_tables.
44338         * modules/gen-uni-tables (Description): Update.
44339         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44340         gen-uni-tables.
44341
44342         New module 'uniwbrk/base'.
44343         * modules/uniwbrk/base: New file.
44344         * lib/uniwbrk.h: New file.
44345
44346 2009-02-08  Bruno Haible  <bruno@clisp.org>
44347
44348         Update to Unicode 5.1.0.
44349         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44350         U+2185..U+2188.
44351         (is_property_default_ignorable_code_point): Don't include characters
44352         of category Cc or Cs and not-a-characters.
44353         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44354         U+0D79, U+109E, U+109F, U+A60C.
44355         * lib/unictype/bidi_of.h: Regenerated.
44356         * lib/unictype/blocks.h: Regenerated.
44357         * lib/unictype/categ_C.h: Regenerated.
44358         * lib/unictype/categ_Cf.h: Regenerated.
44359         * lib/unictype/categ_Cn.h: Regenerated.
44360         * lib/unictype/categ_L.h: Regenerated.
44361         * lib/unictype/categ_Ll.h: Regenerated.
44362         * lib/unictype/categ_Lm.h: Regenerated.
44363         * lib/unictype/categ_Lo.h: Regenerated.
44364         * lib/unictype/categ_Lu.h: Regenerated.
44365         * lib/unictype/categ_M.h: Regenerated.
44366         * lib/unictype/categ_Mc.h: Regenerated.
44367         * lib/unictype/categ_Me.h: Regenerated.
44368         * lib/unictype/categ_Mn.h: Regenerated.
44369         * lib/unictype/categ_N.h: Regenerated.
44370         * lib/unictype/categ_Nd.h: Regenerated.
44371         * lib/unictype/categ_Nl.h: Regenerated.
44372         * lib/unictype/categ_No.h: Regenerated.
44373         * lib/unictype/categ_P.h: Regenerated.
44374         * lib/unictype/categ_Pd.h: Regenerated.
44375         * lib/unictype/categ_Pe.h: Regenerated.
44376         * lib/unictype/categ_Pf.h: Regenerated.
44377         * lib/unictype/categ_Pi.h: Regenerated.
44378         * lib/unictype/categ_Po.h: Regenerated.
44379         * lib/unictype/categ_Ps.h: Regenerated.
44380         * lib/unictype/categ_S.h: Regenerated.
44381         * lib/unictype/categ_Sk.h: Regenerated.
44382         * lib/unictype/categ_Sm.h: Regenerated.
44383         * lib/unictype/categ_So.h: Regenerated.
44384         * lib/unictype/categ_of.h: Regenerated.
44385         * lib/unictype/combining.h: Regenerated.
44386         * lib/unictype/ctype_alnum.h: Regenerated.
44387         * lib/unictype/ctype_alpha.h: Regenerated.
44388         * lib/unictype/ctype_graph.h: Regenerated.
44389         * lib/unictype/ctype_lower.h: Regenerated.
44390         * lib/unictype/ctype_print.h: Regenerated.
44391         * lib/unictype/ctype_punct.h: Regenerated.
44392         * lib/unictype/ctype_upper.h: Regenerated.
44393         * lib/unictype/decdigit.h: Regenerated.
44394         * lib/unictype/digit.h: Regenerated.
44395         * lib/unictype/mirror.h: Regenerated.
44396         * lib/unictype/numeric.h: Regenerated.
44397         * lib/unictype/pr_alphabetic.h: Regenerated.
44398         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44399         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44400         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44401         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44402         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44403         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44404         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44405         * lib/unictype/pr_combining.h: Regenerated.
44406         * lib/unictype/pr_dash.h: Regenerated.
44407         * lib/unictype/pr_decimal_digit.h: Regenerated.
44408         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44409         * lib/unictype/pr_deprecated.h: Regenerated.
44410         * lib/unictype/pr_diacritic.h: Regenerated.
44411         * lib/unictype/pr_extender.h: Regenerated.
44412         * lib/unictype/pr_format_control.h: Regenerated.
44413         * lib/unictype/pr_grapheme_base.h: Regenerated.
44414         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44415         * lib/unictype/pr_grapheme_link.h: Regenerated.
44416         * lib/unictype/pr_id_continue.h: Regenerated.
44417         * lib/unictype/pr_id_start.h: Regenerated.
44418         * lib/unictype/pr_ideographic.h: Regenerated.
44419         * lib/unictype/pr_ignorable_control.h: Regenerated.
44420         * lib/unictype/pr_lowercase.h: Regenerated.
44421         * lib/unictype/pr_math.h: Regenerated.
44422         * lib/unictype/pr_numeric.h: Regenerated.
44423         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44424         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44425         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44426         * lib/unictype/pr_other_id_continue.h: Regenerated.
44427         * lib/unictype/pr_other_lowercase.h: Regenerated.
44428         * lib/unictype/pr_other_math.h: Regenerated.
44429         * lib/unictype/pr_punctuation.h: Regenerated.
44430         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44431         * lib/unictype/pr_soft_dotted.h: Regenerated.
44432         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44433         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44434         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44435         * lib/unictype/pr_uppercase.h: Regenerated.
44436         * lib/unictype/pr_xid_continue.h: Regenerated.
44437         * lib/unictype/pr_xid_start.h: Regenerated.
44438         * lib/unictype/pr_zero_width.h: Regenerated.
44439         * lib/unictype/scripts.h: Regenerated.
44440         * lib/unictype/scripts_byname.gperf: Regenerated.
44441         * lib/unictype/sy_java_ident.h: Regenerated.
44442         * lib/unilbrk/lbrkprop1.h: Regenerated.
44443         * lib/unilbrk/lbrkprop2.h: Regenerated.
44444         * tests/unictype/test-categ_C.c: Regenerated.
44445         * tests/unictype/test-categ_Cf.c: Regenerated.
44446         * tests/unictype/test-categ_Cn.c: Regenerated.
44447         * tests/unictype/test-categ_L.c: Regenerated.
44448         * tests/unictype/test-categ_Ll.c: Regenerated.
44449         * tests/unictype/test-categ_Lm.c: Regenerated.
44450         * tests/unictype/test-categ_Lo.c: Regenerated.
44451         * tests/unictype/test-categ_Lu.c: Regenerated.
44452         * tests/unictype/test-categ_M.c: Regenerated.
44453         * tests/unictype/test-categ_Mc.c: Regenerated.
44454         * tests/unictype/test-categ_Me.c: Regenerated.
44455         * tests/unictype/test-categ_Mn.c: Regenerated.
44456         * tests/unictype/test-categ_N.c: Regenerated.
44457         * tests/unictype/test-categ_Nd.c: Regenerated.
44458         * tests/unictype/test-categ_Nl.c: Regenerated.
44459         * tests/unictype/test-categ_No.c: Regenerated.
44460         * tests/unictype/test-categ_P.c: Regenerated.
44461         * tests/unictype/test-categ_Pd.c: Regenerated.
44462         * tests/unictype/test-categ_Pe.c: Regenerated.
44463         * tests/unictype/test-categ_Pf.c: Regenerated.
44464         * tests/unictype/test-categ_Pi.c: Regenerated.
44465         * tests/unictype/test-categ_Po.c: Regenerated.
44466         * tests/unictype/test-categ_Ps.c: Regenerated.
44467         * tests/unictype/test-categ_S.c: Regenerated.
44468         * tests/unictype/test-categ_Sk.c: Regenerated.
44469         * tests/unictype/test-categ_Sm.c: Regenerated.
44470         * tests/unictype/test-categ_So.c: Regenerated.
44471         * tests/unictype/test-ctype_alnum.c: Regenerated.
44472         * tests/unictype/test-ctype_alpha.c: Regenerated.
44473         * tests/unictype/test-ctype_graph.c: Regenerated.
44474         * tests/unictype/test-ctype_lower.c: Regenerated.
44475         * tests/unictype/test-ctype_print.c: Regenerated.
44476         * tests/unictype/test-ctype_punct.c: Regenerated.
44477         * tests/unictype/test-ctype_upper.c: Regenerated.
44478         * tests/unictype/test-decdigit.h: Regenerated.
44479         * tests/unictype/test-digit.h: Regenerated.
44480         * tests/unictype/test-numeric.h: Regenerated.
44481         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44482         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44483         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44484         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44485         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44486         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44487         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44488         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44489         * tests/unictype/test-pr_combining.c: Regenerated.
44490         * tests/unictype/test-pr_dash.c: Regenerated.
44491         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44492         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44493         * tests/unictype/test-pr_deprecated.c: Regenerated.
44494         * tests/unictype/test-pr_diacritic.c: Regenerated.
44495         * tests/unictype/test-pr_extender.c: Regenerated.
44496         * tests/unictype/test-pr_format_control.c: Regenerated.
44497         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44498         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44499         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44500         * tests/unictype/test-pr_id_continue.c: Regenerated.
44501         * tests/unictype/test-pr_id_start.c: Regenerated.
44502         * tests/unictype/test-pr_ideographic.c: Regenerated.
44503         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44504         * tests/unictype/test-pr_lowercase.c: Regenerated.
44505         * tests/unictype/test-pr_math.c: Regenerated.
44506         * tests/unictype/test-pr_numeric.c: Regenerated.
44507         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44508         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44509         Regenerated.
44510         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44511         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44512         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44513         * tests/unictype/test-pr_other_math.c: Regenerated.
44514         * tests/unictype/test-pr_punctuation.c: Regenerated.
44515         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44516         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44517         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44518         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44519         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44520         * tests/unictype/test-pr_uppercase.c: Regenerated.
44521         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44522         * tests/unictype/test-pr_xid_start.c: Regenerated.
44523         * tests/unictype/test-pr_zero_width.c: Regenerated.
44524
44525         Update to Unicode 5.1.0.
44526         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44527         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44528         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44529         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44530         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44531         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44532         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44533         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44534         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44535         (nonspacing_table_ind): Update.
44536         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44537
44538         Update to Unicode 5.1.0.
44539         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44540         code transform.
44541         * lib/uniname/uniname.c (unicode_character_name,
44542         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44543         * lib/uniname/uninames.h: Regenerated.
44544         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44545
44546 2009-02-07  Bruno Haible  <bruno@clisp.org>
44547
44548         Merge gen-ctype and gen-lbrk into a single program.
44549         * lib/gen-uni-tables.c: New file, incorporating
44550         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44551         Add directory prefixes to the names of the generated files.
44552         * lib/unictype/gen-ctype.c: Remove file.
44553         * lib/unilbrk/gen-lbrk.c: Remove file.
44554         * modules/gen-uni-tables: New file.
44555         * modules/unictype/gen-ctype: Remove file.
44556         * modules/unilbrk/gen-lbrk: Remove file.
44557
44558 2009-02-07  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44561
44562         New module 'unistr/u32-strcoll'.
44563         * modules/unistr/u32-strcoll: New file.
44564         * lib/unistr/u32-strcoll.c: New file.
44565
44566         New module 'unistr/u16-strcoll'.
44567         * modules/unistr/u16-strcoll: New file.
44568         * lib/unistr/u16-strcoll.c: New file.
44569
44570         New module 'unistr/u8-strcoll'.
44571         * modules/unistr/u8-strcoll: New file.
44572         * lib/unistr/u8-strcoll.c: New file.
44573         * lib/unistr/u-strcoll.h: New file.
44574
44575 2009-02-07  Bruno Haible  <bruno@clisp.org>
44576
44577         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44578         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44579         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44580         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44581         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44582         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44583
44584 2009-02-07  Bruno Haible  <bruno@clisp.org>
44585
44586         Make 64-bit clean.
44587         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44588         output_combclass, output_bidi_category, output_decimal_digit,
44589         output_digit, output_numeric, output_mirror, output_scripts,
44590         output_ident_category): Use proper width specifier in format strings.
44591
44592 2009-02-07  Bruno Haible  <bruno@clisp.org>
44593
44594         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44595         failure behaviour.
44596
44597 2009-02-07  Jim Meyering  <meyering@redhat.com>
44598
44599         regex: avoid compilation failure with upcoming gcc-4.4
44600         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44601         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44602         "... error: integer overflow in preprocessor expression".
44603
44604 2009-02-05  Ben Pfaff  <blp@gnu.org>
44605
44606         Fix link errors on Windows when close module is used.
44607         * modules/close: Add $(LIB_CLOSE) to Link section.
44608         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44609         $(LIB_CLOSE) on Windows.
44610
44611 2009-02-05  Jim Meyering  <meyering@redhat.com>
44612
44613         still avoid unused-parameter warnings, but do it cleanly
44614         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44615         (get_fs_usage): Cast to void instead.
44616         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44617         (dev_from_mount_options, read_file_system_list): Cast to void.
44618         Prompted by Bruno Haible.
44619
44620 2009-02-04  Jim Meyering  <meyering@redhat.com>
44621
44622         fsusage.c: correct copyright year
44623         * lib/fsusage.c: Reflect year in which the change is pushed into
44624
44625         avoid misc. warnings
44626         * lib/fsusage.c (UNUSED_PARAM): Define.
44627         (get_fs_usage): Mark parameter "disk" as unused.
44628         * lib/getugroups.c (getgrent): Use "void" in prototype.
44629         * lib/mountlist.c: Mark unused parameters.
44630         (read_file_system_list): Declare a local with "const".
44631         * lib/nanosleep.c (getnow): Declare static.
44632         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44633
44634         dirfd: set errno upon failure
44635         * lib/dirfd.c: Include <errno.h>.
44636         Set errno to ENOTSUP when returning -1.
44637         * modules/dirfd (Depends-on): Add errno.
44638         Suggested by John Kodis <kodis@comcast.net>.
44639
44640 2009-02-01  Bruno Haible  <bruno@clisp.org>
44641
44642         Don't assume sizeof (long) >= sizeof (void *).
44643         * lib/memcmp.c: Include stdint.h.
44644         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44645         srcp2 to 'const byte *'.
44646         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44647         types to uintptr_t.
44648         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44649         * modules/memcmp (Depends-on): Add stdint.
44650         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44651
44652 2009-01-30  Eric Blake  <ebb9@byu.net>
44653
44654         fix more require-before-expand issues
44655         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44656         expand, AC_PROG_AWK.
44657         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44658
44659 2009-01-28  Eric Blake  <ebb9@byu.net>
44660
44661         version-etc: use consistent URL formatting
44662         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44663         Improve formatting.  Use fputs for string without %.
44664
44665 2009-01-28  Jim Meyering  <meyering@redhat.com>
44666
44667         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44668         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44669         "underquoted definition of NAME" from autoconf-2.59.
44670
44671 2009-01-28  Bruno Haible  <bruno@clisp.org>
44672
44673         * doc/gnulib.texi: Add "Obsolete modules" to index.
44674
44675 2009-01-28  Jim Meyering  <meyering@redhat.com>
44676
44677         useless-if-before-free: recognize more variants
44678         * build-aux/useless-if-before-free: Also recognize e.g.,
44679         if (NULL != p) free (p);
44680
44681 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44682
44683         test-getaddrinfo: skip (don't fail) this test when there's no network
44684         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44685         on the presumption that it means you lack network access.
44686
44687 2009-01-26  Jim Meyering  <meyering@redhat.com>
44688
44689         fflush: avoid warnings on modern systems
44690         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44691         pos and result, into scopes where they're used.
44692
44693 2009-01-26  Eric Blake  <ebb9@byu.net>
44694
44695         Silence warning reintroduced by recent extensions patch.
44696         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44697         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44698         autoconf.
44699
44700         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44701         * m4/00gnulib.m4: New file.
44702         * gnulib-tool (func_get_filelist): Always use it.
44703         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44704         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44705
44706 2009-01-25  Bruno Haible  <bruno@clisp.org>
44707
44708         Make test-quotearg work on MacOS X and AIX.
44709         * tests/test-quotearg.sh: New file.
44710         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44711         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44712         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44713         include <libintl.h>.
44714         (fake_locale): Remove variable.
44715         (gettext, dgettext, dcgettext): Remove functions.
44716         (main): Instead of setting a fake locale, set a real locale. Call
44717         textdomain and bindtextdomain.
44718         * modules/quotearg-tests (Files): Add the new files.
44719         (Depends-on): Add gettext, setenv, unsetenv.
44720         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44721         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44722         Augment TESTS_ENVIRONMENT.
44723
44724 2009-01-25  Bruno Haible  <bruno@clisp.org>
44725
44726         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44727         fr_FR.ISO8859-1 locale on MacOS X.
44728         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44729         ja_JP.eucJP locale on MacOS X.
44730         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44731         zh_CN.GB18030 locale on MacOS X.
44732
44733 2009-01-25  Bruno Haible  <bruno@clisp.org>
44734
44735         Avoid link errors on MacOS X 10.3.
44736         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44737         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44738
44739 2009-01-25  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44742         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44743         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44744         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44745         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44746         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44747         posix_spawnattr_init, posix_spawnattr_setsigmask,
44748         posix_spawnattr_setflags, posix_spawnattr_destroy.
44749
44750         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44751         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44752         * modules/execute (Files): Remove m4/posix_spawn.m4.
44753         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44754         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44755         posix_spawnattr_init, posix_spawnattr_setsigmask,
44756         posix_spawnattr_setflags, posix_spawnattr_destroy.
44757
44758 2009-01-25  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/glthread/threadlib.c: Include <stdlib.h>.
44761
44762 2009-01-25  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/glthread/threadlib.c (dummy): New declaration.
44765
44766 2009-01-25  Bruno Haible  <bruno@clisp.org>
44767
44768         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44769         multibyte characters also for the GB18030 encoding. Don't crash when
44770         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44771
44772 2009-01-25  Bruno Haible  <bruno@clisp.org>
44773
44774         Avoid redefining 'struct random_data' on OSF/1 5.1.
44775         * lib/stdlib.in.h: Include <random.h> if it exists.
44776         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44777         HAVE_RANDOM_H. Include <random.h> when testing whether
44778         'struct random_data' exists.
44779         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44780
44781 2009-01-25  Bruno Haible  <bruno@clisp.org>
44782
44783         Don't install charset.alias on MacOS X >= 10.3.
44784         * lib/localcharset.c (DARWIN7): New macro.
44785         (get_charset_aliases): Hardcode the result for Darwin7.
44786         * modules/localcharset (install-exec-local): Don't install
44787         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44788
44789 2009-01-25  Bruno Haible  <bruno@clisp.org>
44790
44791         Don't install charset.alias on mingw and Cygwin.
44792         * modules/localcharset (install-exec-local): Don't install
44793         charset.alias on mingw and Cygwin, if the file does not yet exist.
44794         The result for these platforms is hardcoded in localcharset.c.
44795
44796 2009-01-25  Bruno Haible  <bruno@clisp.org>
44797
44798         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44800         before requiring AC_USE_SYSTEM_EXTENSIONS.
44801
44802 2009-01-25  Jim Meyering  <meyering@redhat.com>
44803
44804         c-strtod: avoid warnings
44805         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44806         "assignment discards qualifiers from pointer target type" warnings.
44807
44808 2009-01-24  Bruno Haible  <bruno@clisp.org>
44809
44810         Add support for non-UTF-8 locales on MacOS X.
44811         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44812         canonical encodings. For Darwin 7 and newer, don't map traditional
44813         encodings to UTF-8.
44814         Reported by Vincent Lefevre <vincent@vinc17.org>
44815         at <http://savannah.gnu.org/bugs/?25235>.
44816
44817 2009-01-24  Bruno Haible  <bruno@clisp.org>
44818
44819         * doc/gnulib.texi (Obsolete modules): New section.
44820         Reported by Mike Frysinger <vapier@gentoo.org>.
44821
44822 2009-01-24  Bruno Haible  <bruno@clisp.org>
44823
44824         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44825         (%.dvi): New rule.
44826
44827 2009-01-24  Bruno Haible  <bruno@clisp.org>
44828
44829         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44830         Reported by Eric Blake.
44831
44832 2009-01-24  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44835         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44836         Reported by Gary V. Vaughan <gary@gnu.org>.
44837
44838 2009-01-24  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44841
44842 2009-01-23  Bruno Haible  <bruno@clisp.org>
44843
44844         Make c-strtod, c-strtold usable in libraries.
44845         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44846         (C_STRTOD): Call strdup instead of xstrdup.
44847         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44848         * modules/c-strtold (Depends-on): Likewise.
44849         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44850         * NEWS: Mention the change.
44851         Reported by Michael Gold <mgold@ncf.ca>.
44852
44853 2009-01-23  Jim Meyering  <meyering@redhat.com>
44854
44855         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44856         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44857         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44858
44859 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44860
44861         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44862         GNU CoreUtils.
44863         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44864         * modules/version-etc (Description): Update.
44865
44866 2009-01-22  Bruno Haible  <bruno@clisp.org>
44867
44868         Cache the C locale object.
44869         * lib/c-strtod.c (c_locale_cache): New variable.
44870         (c_locale): New function.
44871         (C_STRTOD): Use it, and don't call freelocale.
44872         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44873         Suggested by Paolo Bonzini.
44874
44875 2009-01-21  Bruno Haible  <bruno@clisp.org>
44876
44877         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44878         conditions other than overflow.
44879
44880 2009-01-21  Bruno Haible  <bruno@clisp.org>
44881
44882         * lib/c-strtod.c: Include errno.h.
44883         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44884         value from STRTOD_L and STRTOD.
44885
44886 2009-01-21  Bruno Haible  <bruno@clisp.org>
44887         and Jim Meyering  <meyering@redhat.com>
44888
44889         nanosleep: skip configure test (fail it) for apple universal builds
44890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44891         universal builds, assume that nanosleep does not work.
44892         * modules/nanosleep (Depends-on): Add multiarch.
44893
44894         mktime: skip configure test (fail it) for apple universal builds
44895         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44896         universal builds, assume that mktime does not work.
44897         * modules/mktime (Depends-on): Add multiarch.
44898
44899 2009-01-21  Eric Blake  <ebb9@byu.net>
44900
44901         multiarch: avoid expand-before-require warning
44902         * modules/multiarch (configure.ac): Require, rather than expand,
44903         gl_MULTIARCH.
44904         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44905         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44906         enforce that all clients require it.  Partial reversion of
44907         2008-12-29 patch.
44908
44909         error: avoid expand-before-require warning
44910         * modules/errno (configure.ac): Require, rather than expand,
44911         gl_HEADER_ERRNO_H.
44912         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44913         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44914         enforce that all clients require it.
44915
44916         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44917         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44918         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44919         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44920
44921 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44922
44923         Revert:
44924         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44925
44926         regex: do not depend on obsolete modules.
44927         * modules/regex: Remove memcmp and memmove.
44928
44929 2009-01-20  Bruno Haible  <bruno@clisp.org>
44930
44931         Make the 'link' module link on Windows NT 4.
44932         * lib/link.c (_WIN32_WINNT): Don't define.
44933         (CreateHardLinkFuncType): New type.
44934         (CreateHardLinkFunc, initialized): New variables.
44935         (initialize): New function.
44936         (link): Invoke CreateHardLink indirectly through the function pointer.
44937
44938 2009-01-20  Bruno Haible  <bruno@clisp.org>
44939
44940         Fix compilation failure on mingw.
44941         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44942
44943 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44944
44945         * doc/c-strtod.texi: Mention a couple of restrictions.
44946
44947 2009-01-20  Jim Meyering  <meyering@redhat.com>
44948
44949         gettimeofday: move more declarations out of functions
44950         * lib/gettimeofday.c: Move extern declarations of tzset and
44951         gmtime out of containing functions.  Prompted by Bruno Haible.
44952
44953 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44954
44955         regex: do not depend on obsolete modules.
44956         * modules/regex: Remove memcmp and memmove.
44957
44958 2009-01-19  Bruno Haible  <bruno@clisp.org>
44959
44960         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44961         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44962         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44963         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44964         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44965
44966 2009-01-19  Bruno Haible  <bruno@clisp.org>
44967
44968         * tests/test-link.c: Include <errno.h>.
44969         (main): Exit with code 77 when a hard link cannot be created due to
44970         the file system.
44971         * tests/test-link.sh: Skip test when a hard link cannot be created due
44972         to the file system.
44973         Suggested by Eric Blake.
44974
44975 2009-01-19  Martin Lambers  <marlam@marlam.de>
44976
44977         * modules/link-tests: New file.
44978         * tests/test-link.sh: New file.
44979         * tests/test-link.c: New file.
44980
44981 2009-01-19  Eric Blake  <ebb9@byu.net>
44982
44983         doc: mention another function added in cygwin 1.7.0
44984         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44985         Another new function in cygwin 1.7.
44986
44987 2009-01-19  Bruno Haible  <bruno@clisp.org>
44988
44989         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44990         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44991         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44992         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44993         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44994         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44995         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44996         * m4/md4.m4 (gl_MD4): Likewise.
44997         * m4/md5.m4 (gl_MD5): Likewise.
44998         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44999         * m4/sha1.m4 (gl_SHA1): Likewise.
45000         * m4/sha256.m4 (gl_SHA256): Likewise.
45001         * m4/sha512.m4 (gl_SHA512): Likewise.
45002
45003 2009-01-19  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/uniname/uniname-tests (Depends-on): Add progname.
45006         * tests/uniname/test-uninames.c: Include progname.h.
45007         (main): Call set_program_name.
45008
45009         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
45010         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
45011         (main): Call set_program_name.
45012
45013         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
45014         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
45015         (main): Call set_program_name.
45016
45017         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
45018         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
45019         (main): Call set_program_name.
45020
45021         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
45022         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
45023         (main): Call set_program_name.
45024
45025         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
45026         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
45027         (main): Call set_program_name.
45028
45029         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
45030         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
45031         (main): Call set_program_name.
45032
45033         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
45034         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
45035         (main): Call set_program_name.
45036
45037         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
45038         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
45039         (main): Call set_program_name.
45040
45041 2009-01-19  Eric Blake  <ebb9@byu.net>
45042
45043         test-unistd: test previous patch
45044         * tests/test-unistd.c: Test *_FILENO macros.
45045
45046         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
45047         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45048         Guarantee a definition.
45049         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
45050         * modules/unistd-safer (Depends-on): Add dependency on unistd.
45051         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
45052         * lib/dup-safer.c (STDERR_FILENO): Likewise.
45053         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45054         Likewise.
45055         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
45056         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
45057         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45058         Likewise.
45059         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
45060         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
45061         (STDERR_FILENO): Likewise.
45062         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
45063         (STDERR_FILENO): Likewise.
45064         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
45065         (STDERR_FILENO): Likewise.
45066         Reported by Elbert Pol.
45067
45068 2009-01-19  Eric Blake  <ebb9@byu.net>
45069
45070         doc: mention more functions added in cygwin 1.7.0
45071         * doc/posix-functions/abort.texi (abort): Update wording related
45072         to cygwin.
45073         * doc/posix-functions/daylight.texi (daylight): Likewise.
45074         * doc/posix-functions/optarg.texi (optarg): Likewise.
45075         * doc/posix-functions/optarg.texi (opterr): Likewise.
45076         * doc/posix-functions/optarg.texi (optind): Likewise.
45077         * doc/posix-functions/optarg.texi (optopt): Likewise.
45078         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
45079         worked in 1.5.x, and was withdrawn in 1.7.
45080         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45081         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
45082         cygwin versions.
45083         * doc/posix-functions/perror.texi (perror): Likewise.
45084         * doc/posix-functions/printf.texi (printf): Likewise.
45085         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
45086         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
45087         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45088         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45089         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45090         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
45091         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45092         Likewise.
45093         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45094         Likewise.
45095         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
45096         this function.
45097         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
45098         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
45099         Likewise.
45100         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
45101         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
45102         * doc/posix-functions/confstr.texi (confstr): Likewise.
45103         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
45104         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
45105         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
45106         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
45107         * doc/posix-functions/fputws.texi (fputws): Likewise.
45108         * doc/posix-functions/fwide.texi (fwide): Likewise.
45109         * doc/posix-functions/getwc.texi (getwc): Likewise.
45110         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
45111         * doc/posix-functions/putwc.texi (putwc): Likewise.
45112         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45113         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
45114         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
45115         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45116         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
45117         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
45118         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
45119         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
45120         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
45121         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
45122         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
45123
45124 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45125
45126         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
45127         * lib/ioctl.c: Include <sys/ioctl.h>.
45128
45129 2009-01-19  Simon Josefsson  <simon@josefsson.org>
45130
45131         * modules/getdate-tests (Depends-on): Add progname.
45132         * tests/test-getdate.c: Use progname module, to avoid link errors
45133         on non-glibc systems.
45134
45135 2009-01-18  Simon Josefsson  <simon@josefsson.org>
45136
45137         * modules/filenamecat-tests (Depends-on): Add progname.
45138         * modules/fstrcmp-tests (Depends-on): Likewise.
45139
45140         * tests/test-filenamecat.c: Use progname module, to avoid link
45141         errors on non-glibc systems.
45142         * tests/test-fstrcmp.c: Likewise.
45143
45144 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45145
45146         gettimeofday: avoid warning: nested extern declaration of 'localtime'
45147         * lib/gettimeofday.c: Move extern declaration out of function.
45148
45149 2009-01-18  Bruno Haible  <bruno@clisp.org>
45150
45151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
45152         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
45153         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
45154
45155 2009-01-18  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/strftime.c (MEMPCPY): Remove unused macro.
45158         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
45159
45160 2009-01-18  Martin Lambers  <marlam@marlam.de>
45161
45162         New module 'link'.
45163         * lib/unistd.in.h (link): New declaration.
45164         * lib/link.c: New file.
45165         * m4/link.m4: New file.
45166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
45167         HAVE_LINK.
45168         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
45169         * modules/link: New file.
45170         * doc/posix-functions/link.texi: Mention the new module.
45171
45172 2009-01-18  Bruno Haible  <bruno@clisp.org>
45173
45174         * tests/test-avltree_list.c (main): Call set_program_name.
45175         * tests/test-avltree_oset.c (main): Likewise.
45176         * tests/test-obstack-printf.c: Include progname.h.
45177         (main): Call set_program_name.
45178         * tests/test-quotearg.c: Include progname.h.
45179         (main): Call set_program_name.
45180         * tests/test-xmemdup0.c: Include progname.h.
45181         (main): Call set_program_name.
45182
45183 2009-01-18  Bruno Haible  <bruno@clisp.org>
45184
45185         New module 'alphasort'.
45186         * lib/dirent.in.h (alphasort): New declaration.
45187         * lib/alphasort.c: New file, from glibc with modifications.
45188         * m4/alphasort.m4: New file.
45189         * modules/alphasort: New file.
45190         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
45191         HAVE_ALPHASORT.
45192         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
45193         HAVE_ALPHASORT.
45194         * doc/posix-functions/alphasort.texi: Mention the new module and the
45195         portability problems.
45196
45197 2009-01-18  Bruno Haible  <bruno@clisp.org>
45198
45199         New module 'scandir'.
45200         * lib/dirent.in.h (scandir): New declaration.
45201         * lib/scandir.c: New file, from glibc with modifications.
45202         * m4/scandir.m4: New file.
45203         * modules/scandir: New file.
45204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
45205         HAVE_SCANDIR.
45206         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
45207         HAVE_SCANDIR.
45208         * doc/posix-functions/scandir.texi: Mention the new module and the
45209         portability problems.
45210
45211 2009-01-17  Bruno Haible  <bruno@clisp.org>
45212
45213         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
45214         Update documentation.
45215         (func_remove_suffix): Escape all dots in the suffix. Update
45216         documentation.
45217         (func_filter_filelist): Update documentation.
45218         Reported by Ralf Wildenhues.
45219
45220 2009-01-17  Bruno Haible  <bruno@clisp.org>
45221
45222         * modules/dprintf-posix-tests: New file.
45223         * tests/test-dprintf-posix.sh: New file.
45224         * tests/test-dprintf-posix.c: New file.
45225
45226         New modules 'dprintf', 'dprintf-posix'.
45227         * lib/stdio.in.h (dprintf): New declaration.
45228         * lib/dprintf.c: New file.
45229         * m4/dprintf.m4: New file.
45230         * m4/dprintf-posix.m4: New file.
45231         * modules/dprintf: New file.
45232         * modules/dprintf-posix: New file.
45233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45234         HAVE_DPRINTF, REPLACE_DPRINTF.
45235         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45236         HAVE_DPRINTF, REPLACE_DPRINTF.
45237         * doc/posix-functions/dprintf.texi: Mention the new modules.
45238
45239 2009-01-17  Bruno Haible  <bruno@clisp.org>
45240
45241         * modules/vdprintf-posix-tests: New file.
45242         * tests/test-vdprintf-posix.sh: New file.
45243         * tests/test-vdprintf-posix.c: New file.
45244
45245         New modules 'vdprintf', 'vdprintf-posix'.
45246         * lib/stdio.in.h (vdprintf): New declaration.
45247         * lib/vdprintf.c: New file.
45248         * m4/vdprintf.m4: New file.
45249         * m4/vdprintf-posix.m4: New file.
45250         * modules/vdprintf: New file.
45251         * modules/vdprintf-posix: New file.
45252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45253         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45254         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45255         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45256         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45257
45258 2009-01-17  Bruno Haible  <bruno@clisp.org>
45259
45260         Fix replacement of fopen on mingw.
45261         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45262         mingw.
45263
45264 2009-01-17  Bruno Haible  <bruno@clisp.org>
45265
45266         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45267         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45268
45269 2009-01-17  Bruno Haible  <bruno@clisp.org>
45270
45271         Avoid test-fflush2.sh failure on mingw.
45272         * tests/test-fflush2.c: Include binary-io.h.
45273         (main): Put standard input into binary mode.
45274         * modules/fflush-tests (Depends-on): Add binary-io.
45275
45276 2009-01-17  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/wchar.in.h: In another particular situation, include only the
45279         system's <wchar.h> file.
45280         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45281         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45282         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45283
45284 2009-01-17  Bruno Haible  <bruno@clisp.org>
45285
45286         Support for stripping executables in --enable-relocatable.
45287         * build-aux/install-reloc: Expect one more argument, or an environment
45288         variable RELOC_STRIP_PROG. If set, strip the destination program and
45289         its wrapper.
45290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45291         RELOC_STRIP_PROG.
45292         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45293         to set RELOCATABLE_STRIP.
45294         * NEWS: Mention the new Makefile requirement.
45295
45296 2009-01-17  Bruno Haible  <bruno@clisp.org>
45297
45298         * build-aux/install-reloc: Remove debugging information left over by
45299         C compiler on MacOS X.
45300
45301 2009-01-17  Bruno Haible  <bruno@clisp.org>
45302
45303         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45304         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45305         _NSGetExecutablePath.
45306
45307 2009-01-16  Jim Meyering  <meyering@redhat.com>
45308
45309         strerror: avoid warnings about discarding "const"
45310         * lib/strerror.c (rpl_strerror): Instead of returning a const
45311         string from each and every "case", use a variable, and add a single
45312         cast after the switch.
45313
45314 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45315
45316         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45317
45318 2009-01-16  Bruno Haible  <bruno@clisp.org>
45319
45320         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45321         array initializer syntax that also works in C++ mode.
45322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45323
45324 2009-01-16  Jim Meyering  <meyering@redhat.com>
45325
45326         poll: suppress a warning
45327         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45328         to ignore "...unsigned expression < 0 is always false" warnings.
45329
45330 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45331
45332         poll: remove declarations of unused variables
45333         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45334         sockbuf and optlen.
45335
45336 2009-01-15  Bruno Haible  <bruno@clisp.org>
45337
45338         Make fflush-after-ungetc POSIX compliant on BSD systems.
45339         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45340         (clear_ungetc_buffer): Implement also for other systems.
45341         (rpl_fflush): On glibc systems, invoke
45342         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45343         clear_ungetc_buffer after fetching the stream's position, not before.
45344
45345 2009-01-15  Bruno Haible  <bruno@clisp.org>
45346
45347         Make fflush-after-ungetc POSIX compliant on glibc systems.
45348         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45349         after ungetc.
45350         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45351         (rpl_fflush): On glibc systems, simply call the system's fflush
45352         function after clearing the ungetc buffer.
45353         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45354         Instead, lseek only to the end of file, then use the system's fseeko
45355         for the rest. On glibc systems, reset the EOF indicator bit.
45356
45357 2009-01-15  Jim Meyering  <meyering@redhat.com>
45358
45359         openmp.m4: revert quote-adding change, for portability to older autoconf
45360         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45361         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45362         Simon Josefsson noticed the problem when using autoconf-2.61.
45363
45364 2009-01-15  Bruno Haible  <bruno@clisp.org>
45365
45366         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45367         * tests/test-fflush2.c (ASSERT): Always fail.
45368         (main): Add two tests for fflush() after ungetc(), taking into account
45369         the Austin Group's clarification.
45370         Suggested by Eric Blake.
45371
45372 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45373
45374         mktime.m4: remove K&R-style function prototypes
45375         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45376         for the Sun C++ compiler.
45377
45378 2009-01-14  Bruno Haible  <bruno@clisp.org>
45379
45380         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45381         while including <wchar.h>.
45382         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45383         the system's <wchar.h> file.
45384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45385
45386 2009-01-14  Bruno Haible  <bruno@clisp.org>
45387
45388         * m4/csharp.m4: Don't mention gettext on the serial number line.
45389         * m4/csharpexec.m4: Likewise.
45390         * m4/eaccess.m4: Likewise.
45391         * m4/javaexec.m4: Likewise.
45392         * m4/sig_atomic_t.m4: Likewise.
45393         * m4/tmpdir.m4: Likewise.
45394         * m4/intldir.m4: Bump gettext version.
45395         * m4/lib-ld.m4: Likewise.
45396
45397 2009-01-14  Bruno Haible  <bruno@clisp.org>
45398
45399         * lib/progname.c (set_program_name): Add more comments.
45400         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45401
45402 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45403
45404         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45405         were sys/stat.h does not define it.
45406
45407 2009-01-14  Jim Meyering  <meyering@redhat.com>
45408
45409         many *.m4 files: improve m4 quoting
45410         99% of this change was performed by running the following commands:
45411         git ls-files | grep '\.m4$' | xargs perl -pi \
45412           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45413           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45414           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45415           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45416         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45417         The remainder were to add Copyright dates, increment serial numbers,
45418         undo some changes in comments, exclude m4/intl.m4, and add quotes
45419         around the "1" in ",1" where the unusual spacing prohibited the
45420         above regexps from doing the job.  For more details, see
45421         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45422         * m4/acl.m4: Modified.
45423         * m4/afs.m4: Likewise.
45424         * m4/alloca.m4: Likewise.
45425         * m4/argp.m4: Likewise.
45426         * m4/argz.m4: Likewise.
45427         * m4/atexit.m4: Likewise.
45428         * m4/bison-i18n.m4: Likewise.
45429         * m4/bison.m4: Likewise.
45430         * m4/byteswap.m4: Likewise.
45431         * m4/c-stack.m4: Likewise.
45432         * m4/c-strtod.m4: Likewise.
45433         * m4/calloc.m4: Likewise.
45434         * m4/canonicalize-lgpl.m4: Likewise.
45435         * m4/chown.m4: Likewise.
45436         * m4/clock_time.m4: Likewise.
45437         * m4/codeset.m4: Likewise.
45438         * m4/copy-file.m4: Likewise.
45439         * m4/csharp.m4: Likewise.
45440         * m4/csharpcomp.m4: Likewise.
45441         * m4/csharpexec.m4: Likewise.
45442         * m4/d-ino.m4: Likewise.
45443         * m4/d-type.m4: Likewise.
45444         * m4/dirfd.m4: Likewise.
45445         * m4/double-slash-root.m4: Likewise.
45446         * m4/eaccess.m4: Likewise.
45447         * m4/eealloc.m4: Likewise.
45448         * m4/environ.m4: Likewise.
45449         * m4/errno_h.m4: Likewise.
45450         * m4/euidaccess.m4: Likewise.
45451         * m4/execute.m4: Likewise.
45452         * m4/fatal-signal.m4: Likewise.
45453         * m4/fchdir.m4: Likewise.
45454         * m4/fcntl_h.m4: Likewise.
45455         * m4/fileblocks.m4: Likewise.
45456         * m4/filenamecat.m4: Likewise.
45457         * m4/findprog.m4: Likewise.
45458         * m4/flexmember.m4: Likewise.
45459         * m4/fnmatch.m4: Likewise.
45460         * m4/fopen.m4: Likewise.
45461         * m4/fpending.m4: Likewise.
45462         * m4/fprintf-posix.m4: Likewise.
45463         * m4/free.m4: Likewise.
45464         * m4/frexp.m4: Likewise.
45465         * m4/frexpl.m4: Likewise.
45466         * m4/fsusage.m4: Likewise.
45467         * m4/ftruncate.m4: Likewise.
45468         * m4/gc-camellia.m4: Likewise.
45469         * m4/gc-random.m4: Likewise.
45470         * m4/gc.m4: Likewise.
45471         * m4/getaddrinfo.m4: Likewise.
45472         * m4/getcwd-abort-bug.m4: Likewise.
45473         * m4/getcwd-path-max.m4: Likewise.
45474         * m4/getdate.m4: Likewise.
45475         * m4/getdomainname.m4: Likewise.
45476         * m4/getgroups.m4: Likewise.
45477         * m4/gethostname.m4: Likewise.
45478         * m4/gethrxtime.m4: Likewise.
45479         * m4/getline.m4: Likewise.
45480         * m4/getloadavg.m4: Likewise.
45481         * m4/getndelim2.m4: Likewise.
45482         * m4/getpass.m4: Likewise.
45483         * m4/gettext.m4: Likewise.
45484         * m4/gettime.m4: Likewise.
45485         * m4/gettimeofday.m4: Likewise.
45486         * m4/gnulib-common.m4: Likewise.
45487         * m4/group-member.m4: Likewise.
45488         * m4/host-os.m4: Likewise.
45489         * m4/iconv.m4: Likewise.
45490         * m4/iconv_open.m4: Likewise.
45491         * m4/inet_ntop.m4: Likewise.
45492         * m4/inet_pton.m4: Likewise.
45493         * m4/inline.m4: Likewise.
45494         * m4/intldir.m4: Likewise.
45495         * m4/intlmacosx.m4: Likewise.
45496         * m4/intmax.m4: Likewise.
45497         * m4/intmax_t.m4: Likewise.
45498         * m4/inttypes.m4: Likewise.
45499         * m4/inttypes_h.m4: Likewise.
45500         * m4/inttypes-pri.m4: Likewise.
45501         * m4/isapipe.m4: Likewise.
45502         * m4/isnand.m4: Likewise.
45503         * m4/isnanf.m4: Likewise.
45504         * m4/isnanl.m4: Likewise.
45505         * m4/javacomp.m4: Likewise.
45506         * m4/javaexec.m4: Likewise.
45507         * m4/jm-winsz1.m4: Likewise.
45508         * m4/jm-winsz2.m4: Likewise.
45509         * m4/lchown.m4: Likewise.
45510         * m4/lcmessage.m4: Likewise.
45511         * m4/ldexpl.m4: Likewise.
45512         * m4/lib-ld.m4: Likewise.
45513         * m4/lib-link.m4: Likewise.
45514         * m4/libsigsegv.m4: Likewise.
45515         * m4/link-follow.m4: Likewise.
45516         * m4/localcharset.m4: Likewise.
45517         * m4/locale-fr.m4: Likewise.
45518         * m4/locale-ja.m4: Likewise.
45519         * m4/locale-tr.m4: Likewise.
45520         * m4/locale-zh.m4: Likewise.
45521         * m4/lock.m4: Likewise.
45522         * m4/longlong.m4: Likewise.
45523         * m4/ls-mntd-fs.m4: Likewise.
45524         * m4/lstat.m4: Likewise.
45525         * m4/malloc.m4: Likewise.
45526         * m4/mathl.m4: Likewise.
45527         * m4/mbrtowc.m4: Likewise.
45528         * m4/mbstate_t.m4: Likewise.
45529         * m4/mbswidth.m4: Likewise.
45530         * m4/memchr.m4: Likewise.
45531         * m4/memcmp.m4: Likewise.
45532         * m4/memcpy.m4: Likewise.
45533         * m4/memmem.m4: Likewise.
45534         * m4/memmove.m4: Likewise.
45535         * m4/mempcpy.m4: Likewise.
45536         * m4/memrchr.m4: Likewise.
45537         * m4/memset.m4: Likewise.
45538         * m4/minmax.m4: Likewise.
45539         * m4/mkdir-slash.m4: Likewise.
45540         * m4/mkdtemp.m4: Likewise.
45541         * m4/mktime.m4: Likewise.
45542         * m4/mmap-anon.m4: Likewise.
45543         * m4/mountlist.m4: Likewise.
45544         * m4/nanosleep.m4: Likewise.
45545         * m4/nls.m4: Likewise.
45546         * m4/nocrash.m4: Likewise.
45547         * m4/open.m4: Likewise.
45548         * m4/openat.m4: Likewise.
45549         * m4/openmp.m4: Likewise.
45550         * m4/pathmax.m4: Likewise.
45551         * m4/perl.m4: Likewise.
45552         * m4/physmem.m4: Likewise.
45553         * m4/pipe.m4: Likewise.
45554         * m4/po.m4: Likewise.
45555         * m4/poll.m4: Likewise.
45556         * m4/posixtm.m4: Likewise.
45557         * m4/posixver.m4: Likewise.
45558         * m4/printf-frexp.m4: Likewise.
45559         * m4/printf-frexpl.m4: Likewise.
45560         * m4/printf-posix.m4: Likewise.
45561         * m4/printf-posix-rpl.m4: Likewise.
45562         * m4/printf.m4: Likewise.
45563         * m4/progtest.m4: Likewise.
45564         * m4/putenv.m4: Likewise.
45565         * m4/readline.m4: Likewise.
45566         * m4/readlink.m4: Likewise.
45567         * m4/readutmp.m4: Likewise.
45568         * m4/realloc.m4: Likewise.
45569         * m4/regex.m4: Likewise.
45570         * m4/relocatable.m4: Likewise.
45571         * m4/relocatable-lib.m4: Likewise.
45572         * m4/rename-dest-slash.m4: Likewise.
45573         * m4/rename.m4: Likewise.
45574         * m4/rmdir-errno.m4: Likewise.
45575         * m4/rmdir.m4: Likewise.
45576         * m4/roundf.m4: Likewise.
45577         * m4/roundl.m4: Likewise.
45578         * m4/rpmatch.m4: Likewise.
45579         * m4/save-cwd.m4: Likewise.
45580         * m4/selinux-selinux-h.m4: Likewise.
45581         * m4/setenv.m4: Likewise.
45582         * m4/settime.m4: Likewise.
45583         * m4/sig2str.m4: Likewise.
45584         * m4/sig_atomic_t.m4: Likewise.
45585         * m4/signalblocking.m4: Likewise.
45586         * m4/signbit.m4: Likewise.
45587         * m4/sigpipe.m4: Likewise.
45588         * m4/sockets.m4: Likewise.
45589         * m4/sockpfaf.m4: Likewise.
45590         * m4/st_dm_mode.m4: Likewise.
45591         * m4/stat-time.m4: Likewise.
45592         * m4/stdbool.m4: Likewise.
45593         * m4/stdint.m4: Likewise.
45594         * m4/stdint_h.m4: Likewise.
45595         * m4/stpcpy.m4: Likewise.
45596         * m4/stpncpy.m4: Likewise.
45597         * m4/strcase.m4: Likewise.
45598         * m4/strchrnul.m4: Likewise.
45599         * m4/strcspn.m4: Likewise.
45600         * m4/strdup.m4: Likewise.
45601         * m4/strftime.m4: Likewise.
45602         * m4/strndup.m4: Likewise.
45603         * m4/strnlen.m4: Likewise.
45604         * m4/strpbrk.m4: Likewise.
45605         * m4/strptime.m4: Likewise.
45606         * m4/strsep.m4: Likewise.
45607         * m4/strtod.m4: Likewise.
45608         * m4/strtoimax.m4: Likewise.
45609         * m4/strtok_r.m4: Likewise.
45610         * m4/strtol.m4: Likewise.
45611         * m4/strtoll.m4: Likewise.
45612         * m4/strtoul.m4: Likewise.
45613         * m4/strtoull.m4: Likewise.
45614         * m4/strtoumax.m4: Likewise.
45615         * m4/strverscmp.m4: Likewise.
45616         * m4/threadlib.m4: Likewise.
45617         * m4/timegm.m4: Likewise.
45618         * m4/tm_gmtoff.m4: Likewise.
45619         * m4/tmpdir.m4: Likewise.
45620         * m4/tmpfile.m4: Likewise.
45621         * m4/tzset.m4: Likewise.
45622         * m4/uintmax_t.m4: Likewise.
45623         * m4/unlinkdir.m4: Likewise.
45624         * m4/unlocked-io.m4: Likewise.
45625         * m4/uptime.m4: Likewise.
45626         * m4/userspec.m4: Likewise.
45627         * m4/utimbuf.m4: Likewise.
45628         * m4/utime.m4: Likewise.
45629         * m4/utimes-null.m4: Likewise.
45630         * m4/utimes.m4: Likewise.
45631         * m4/vararrays.m4: Likewise.
45632         * m4/vasnprintf.m4: Likewise.
45633         * m4/vfprintf-posix.m4: Likewise.
45634         * m4/vprintf-posix.m4: Likewise.
45635         * m4/wait-process.m4: Likewise.
45636         * m4/wchar_t.m4: Likewise.
45637         * m4/wint_t.m4: Likewise.
45638         * m4/write-any-file.m4: Likewise.
45639         * m4/yield.m4: Likewise.
45640
45641 2009-01-13  Bruno Haible  <bruno@clisp.org>
45642
45643         Avoid test-copy-file.sh failures when ACL support insufficient.
45644         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45645         TESTS_ENVIRONMENT.
45646         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45647         Reported by Jim Meyering.
45648
45649 2009-01-13  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45652         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45653         * modules/unistdio/u8-printf-parse (Files): Likewise.
45654         * modules/unistdio/u32-printf-parse (Files): Likewise.
45655         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45656
45657 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45658
45659         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45660         and m4/inttypes_h.m4 too.
45661
45662 2009-01-12  Eric Blake  <ebb9@byu.net>
45663
45664         tests: IRIX 6.2 cc can't compile -0.0 into .data
45665         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45666         rather than at compile-time.
45667         * tests/test-floorl.c (minus_zero): Likewise.
45668         * tests/test-frexpl.c (minus_zero): Likewise.
45669         * tests/test-isnan.c (minus_zerol): Likewise.
45670         * tests/test-isnanl.h (minus_zero): Likewise.
45671         * tests/test-ldexpl.c (minus_zero): Likewise.
45672         * tests/test-roundl.c (minus_zero): Likewise.
45673         * tests/test-signbit.c (minus_zerol): Likewise.
45674         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45675         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45676         * tests/test-truncl.c (minus_zero): Likewise.
45677         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45678         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45679         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45680
45681 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45682
45683         regex: fix glibc bug 9697
45684         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45685         handling.
45686
45687 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45688
45689         regex: fix glibc bug 697
45690         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45691         being NULL also if there are no backreferences.
45692
45693 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45694
45695         regex: merge glibc changes
45696         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45697         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45698         re_string_skip_chars, re_string_reconstruct): Likewise.
45699         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45700
45701 2009-01-07  Jim Meyering  <meyering@redhat.com>
45702
45703         poll: filter through cppi
45704         * lib/poll.c: Indent cpp directives to reflect nesting.
45705
45706 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45707
45708         poll: don't return uninitialized
45709         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45710
45711 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45712
45713         avoid compile failure on AIX 6.1
45714         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45715         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45716
45717 2009-01-04  Jim Meyering  <meyering@redhat.com>
45718
45719         remove duplicate inclusion of <stdio.h>
45720         * tests/test-fprintf-posix.c: Likewise.
45721         * tests/test-printf-posix.c: Likewise.
45722         * tests/test-snprintf-posix.c: Likewise.
45723         * tests/test-sprintf-posix.c: Likewise.
45724         * tests/test-vasprintf-posix.c: Likewise.
45725         * tests/test-vfprintf-posix.c: Likewise.
45726         * tests/test-vprintf-posix.c: Likewise.
45727         * tests/test-vsnprintf-posix.c: Likewise.
45728         * tests/test-vsprintf-posix.c: Likewise.
45729
45730 2009-01-03  Jim Meyering  <meyering@redhat.com>
45731
45732         gnulib-tool: fix sed-based filtering
45733         * gnulib-tool (func_filter_filelist): Remove extra backslash
45734         in sed_fff_filter definition.
45735
45736 2009-01-02  Jim Meyering  <meyering@redhat.com>
45737
45738         strftime: avoid compilation failure on Solaris 2.6
45739         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45740         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45741         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45742         be available.  Reported by Tom G. Christensen.  Details in
45743         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45744
45745 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45746             Bruno Haible  <bruno@clisp.org>
45747
45748         Speed up gnulib-tool by doing more string processing through shell
45749         built-ins.
45750         * gnulib-tool (fast_func_append): New variable.
45751         (func_remove_prefix, func_remove_suffix): New functions.
45752         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45753         (func_filter_filelist): New function.
45754         (func_get_dependencies): Use func_remove_suffix instead of sed.
45755         (func_get_automake_snippet): Use func_filter_filelist instead of a
45756         subshell and sed invocation.
45757
45758 2009-01-01  Bruno Haible  <bruno@clisp.org>
45759
45760         Fix a security bug.
45761         * gnulib-tool (func_import, import, update): Don't allow the characters
45762         '"', '$', '`', '\' in macro arguments that become part of commands that
45763         are evaluated.
45764
45765 2009-01-01  Bruno Haible  <bruno@clisp.org>
45766
45767         * gnulib-tool (func_reset_sigpipe): Add more comments.
45768
45769 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45770
45771         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45772         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45773         already know the answer.
45774
45775 2009-01-01  Jim Meyering  <meyering@redhat.com>
45776
45777         * lib/version-etc.c (version_etc_va): Update copyright year.
45778
45779 2008-12-30  Bruno Haible  <bruno@clisp.org>
45780
45781         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45782         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45783         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45784
45785 2008-12-29  Eric Blake  <ebb9@byu.net>
45786
45787         multiarch: avoid autoconf AC_REQUIRE bug
45788         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45789         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45790         2.63 and older.
45791         Reported by Bruno Haible, and analyzed in
45792         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45793
45794 2008-12-29  Bruno Haible  <bruno@clisp.org>
45795
45796         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45797         files in subdirectories correctly.
45798         Reported by Ralf Wildenhues.
45799
45800 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45801
45802         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45803         rather than 'join FILE -', for Solaris join.
45804
45805 2008-12-29  Bruno Haible  <bruno@clisp.org>
45806
45807         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45808         quoting.
45809         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45810         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45811         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45812         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45813         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45814         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45815         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45816         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45817         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45818         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45819         * m4/nls.m4 (AM_NLS): Likewise.
45820         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45821         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45822         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45823         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45824         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45825         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45826         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45827         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45828         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45829         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45830         * m4/xsize.m4 (gl_XSIZE): Likewise.
45831         Suggested by Jim Meyering.
45832
45833 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45834
45835         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45836         * lib/parse-duration.c: use a switch instead of cascading if's.
45837
45838 2008-12-29  Eric Blake  <ebb9@byu.net>
45839
45840         wchar.h: supply WEOF on Irix 5.3
45841         * lib/wchar.in.h (wint_t): Also supply WEOF.
45842         * lib/wctype.in.h (wint_t): Likewise.
45843         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45844         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45845         Reported by Tom G. Christensen.
45846
45847 2008-12-26  Bruno Haible  <bruno@clisp.org>
45848
45849         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45850         i486, i586, i686.
45851
45852 2008-12-26  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45855
45856 2008-12-26  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45859         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45860         not __STDC_CONSTANT_MACROS.
45861         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45862
45863 2008-12-25  Bruno Haible  <bruno@clisp.org>
45864
45865         Add support for universal builds to vasnprintf.
45866         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45867         universal builds, guess no.
45868         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45869         * modules/vasprintf-posix (Depends-on): Likewise.
45870         * modules/fprintf-posix (Depends-on): Likewise.
45871         * modules/vfprintf-posix (Depends-on): Likewise.
45872         * modules/snprintf-posix (Depends-on): Likewise.
45873         * modules/vsnprintf-posix (Depends-on): Likewise.
45874         * modules/sprintf-posix (Depends-on): Likewise.
45875         * modules/vsprintf-posix (Depends-on): Likewise.
45876         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45877         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45878         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45879         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45880         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45881         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45882         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45883
45884         Add support for universal builds to <inttypes.h>.
45885         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45886         _SCNu64_PREFIX): In Apple
45887         universal builds, define directly, using _LP64.
45888         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45889         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45890         * modules/inttypes (Depends-on): Add multiarch.
45891         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45892
45893         Add support for universal builds to <stdint.h>.
45894         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45895         universal builds, define directly, using _LP64.
45896         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45897         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45898         and size_t.
45899         * modules/stdint (Depends-on): Add multiarch.
45900         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45901
45902         New module 'multiarch'.
45903         * modules/multiarch: New file.
45904         * m4/multiarch.m4: New file.
45905
45906 2008-12-25  Bruno Haible  <bruno@clisp.org>
45907
45908         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45909
45910 2008-12-25  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/btowc (License): Relicense under LGPLv2+.
45913         * modules/mbsinit (License): Likewise.
45914         * modules/mbrtowc (License): Likewise.
45915         * modules/wcrtomb (License): Likewise.
45916         * modules/streq (License): Likewise.
45917         Reported by David Lutterkort <lutter@redhat.com>.
45918
45919 2008-12-23  Bruno Haible  <bruno@clisp.org>
45920
45921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45922
45923 2008-12-23  Bruno Haible  <bruno@clisp.org>
45924
45925         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45927         GETADDRINFO_LIB, not in LIBS.
45928         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45929         * modules/canon-host (Link): Likewise.
45930         * NEWS: Mention the change.
45931         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45932         GETADDRINFO_LIB.
45933
45934 2008-12-22  Bruno Haible  <bruno@clisp.org>
45935
45936         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45937         * doc/posix-functions/iswalpha_l.texi: Likewise.
45938         * doc/posix-functions/iswblank_l.texi: Likewise.
45939         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45940         * doc/posix-functions/iswctype_l.texi: Likewise.
45941         * doc/posix-functions/iswdigit_l.texi: Likewise.
45942         * doc/posix-functions/iswgraph_l.texi: Likewise.
45943         * doc/posix-functions/iswlower_l.texi: Likewise.
45944         * doc/posix-functions/iswprint_l.texi: Likewise.
45945         * doc/posix-functions/iswpunct_l.texi: Likewise.
45946         * doc/posix-functions/iswspace_l.texi: Likewise.
45947         * doc/posix-functions/iswupper_l.texi: Likewise.
45948         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45949         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45950         * doc/posix-functions/open_wmemstream.texi: Likewise.
45951         * doc/posix-functions/swscanf.texi: Likewise.
45952         * doc/posix-functions/towctrans_l.texi: Likewise.
45953         * doc/posix-functions/towlower.texi: Likewise.
45954         * doc/posix-functions/towlower_l.texi: Likewise.
45955         * doc/posix-functions/towupper.texi: Likewise.
45956         * doc/posix-functions/towupper_l.texi: Likewise.
45957         * doc/posix-functions/vfwprintf.texi: Likewise.
45958         * doc/posix-functions/vfwscanf.texi: Likewise.
45959         * doc/posix-functions/vswscanf.texi: Likewise.
45960         * doc/posix-functions/vwprintf.texi: Likewise.
45961         * doc/posix-functions/vwscanf.texi: Likewise.
45962         * doc/posix-functions/wcpcpy.texi: Likewise.
45963         * doc/posix-functions/wcpncpy.texi: Likewise.
45964         * doc/posix-functions/wcscasecmp.texi: Likewise.
45965         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45966         * doc/posix-functions/wcscoll_l.texi: Likewise.
45967         * doc/posix-functions/wcsdup.texi: Likewise.
45968         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45969         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45970         * doc/posix-functions/wcsnlen.texi: Likewise.
45971         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45972         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45973         * doc/posix-functions/wctrans_l.texi: Likewise.
45974         * doc/posix-functions/wctype_l.texi: Likewise.
45975         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45976         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45977         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45978         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45979         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45980         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45981         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45982         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45983         * doc/glibc-functions/wcschrnul.texi: Likewise.
45984         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45985         * doc/glibc-functions/wcstod_l.texi: Likewise.
45986         * doc/glibc-functions/wcstof_l.texi: Likewise.
45987         * doc/glibc-functions/wcstol_l.texi: Likewise.
45988         * doc/glibc-functions/wcstold_l.texi: Likewise.
45989         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45990         * doc/glibc-functions/wcstoq.texi: Likewise.
45991         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45992         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45993         * doc/glibc-functions/wcstouq.texi: Likewise.
45994         * doc/glibc-functions/wmempcpy.texi: Likewise.
45995
45996 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45997             Eric Blake  <ebb9@byu.net>
45998             Paolo Bonzini  <bonzini@gnu.org>
45999             Bruno Haible  <bruno@clisp.org>
46000
46001         Make c-stack work on Haiku.
46002         * lib/c-stack.c (SA_ONSTACK): Define fallback.
46003         (c_stack_action): Use SA_ONSTACK flag.
46004
46005 2008-12-22  Bruno Haible  <bruno@clisp.org>
46006
46007         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
46008
46009 2008-12-22  Bruno Haible  <bruno@clisp.org>
46010
46011         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
46012         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
46013         being overridden.
46014         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
46015         New macros.
46016         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
46017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
46018         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
46019         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
46020
46021 2008-12-22  Bruno Haible  <bruno@clisp.org>
46022
46023         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
46024         from test code.
46025
46026 2008-12-22  Eric Blake  <ebb9@byu.net>
46027
46028         Avoid gcc warnings on cygwin.
46029         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
46030         Avoid unused variable.
46031         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
46032         Likewise.
46033
46034 2008-12-22  Bruno Haible  <bruno@clisp.org>
46035
46036         Remove HAVE_MBRTOWC conditionals.
46037         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
46038         (mbscasecmp): Assume mbrtowc function.
46039         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
46040         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
46041         * lib/mbschr.c: Include mbuiter.h unconditionally.
46042         (mbschr): Assume mbrtowc function.
46043         * lib/mbscspn.c: Include mbuiter.h unconditionally.
46044         (mbscspn): Assume mbrtowc function.
46045         * lib/mbslen.c: Include mbuiter.h unconditionally.
46046         (mbslen): Assume mbrtowc function.
46047         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
46048         (mbsncasecmp): Assume mbrtowc function.
46049         * lib/mbsnlen.c: Include mbiter.h unconditionally.
46050         (mbsnlen): Assume mbrtowc function.
46051         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
46052         (mbspbrk): Assume mbrtowc function.
46053         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
46054         (mbspcasecmp): Assume mbrtowc function.
46055         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
46056         (mbsrchr): Assume mbrtowc function.
46057         * lib/mbssep.c: Include mbuiter.h unconditionally.
46058         (mbssep): Assume mbrtowc function.
46059         * lib/mbsspn.c: Include mbuiter.h unconditionally.
46060         (mbsspn): Assume mbrtowc function.
46061         * lib/mbsstr.c: Include mbuiter.h unconditionally.
46062         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
46063         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
46064         (mbstok_r): Assume mbrtowc function.
46065         * lib/propername.c: Include mbuiter.h unconditionally.
46066         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
46067         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
46068         (trim2): Assume mbrtowc function.
46069         * lib/mbswidth.c (mbsinit): Remove fallback definition.
46070         (mbsnwidth): Assume mbrtowc function.
46071         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
46072         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
46073         fallback definitions.
46074         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
46075
46076 2008-12-22  Bruno Haible  <bruno@clisp.org>
46077
46078         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
46079
46080 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
46081
46082         * modules/regex: Request emulations for the mb*/wc* functions we need.
46083         * m4/regex.m4: Don't look for those functions here.
46084         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
46085
46086 2008-12-22  Bruno Haible  <bruno@clisp.org>
46087
46088         * modules/fnmatch (Depends-on): Remove duplicated dependency.
46089
46090 2008-12-21  Bruno Haible  <bruno@clisp.org>
46091
46092         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
46093         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
46094         (Include): Remove conditionalization.
46095         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
46096         (Include): Remove conditionalization.
46097         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
46098         (Include): Remove conditionalization.
46099         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
46100         * m4/mbfile.m4 (gl_MBFILE): Likewise.
46101         * NEWS: Mention the change.
46102         Reported by Alan Hourihane <alanh@fairlite.co.uk>
46103         via Sergey Poznyakoff <gray@gnu.org.ua>.
46104
46105 2008-12-21  Bruno Haible  <bruno@clisp.org>
46106
46107         * MODULES.html.sh (Extended multibyte and wide character utilities
46108         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
46109         wcrtomb, wcsrtombs.
46110         (Support for systems lacking POSIX:2008): Add accept, bind, close,
46111         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
46112         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
46113         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
46114
46115 2008-12-21  Bruno Haible  <bruno@clisp.org>
46116
46117         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
46118
46119 2008-12-21  Bruno Haible  <bruno@clisp.org>
46120
46121         * modules/wcsnrtombs-tests: New file.
46122         * tests/test-wcsnrtombs1.sh: New file.
46123         * tests/test-wcsnrtombs2.sh: New file.
46124         * tests/test-wcsnrtombs3.sh: New file.
46125         * tests/test-wcsnrtombs4.sh: New file.
46126         * tests/test-wcsnrtombs.c: New file.
46127
46128         New module 'wcsnrtombs'.
46129         * lib/wchar.in.h (wcsnrtombs): New declaration.
46130         * lib/wcsnrtombs.c: New file.
46131         * lib/wcsrtombs-state.c: New file.
46132         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
46133         (internal_state): Remove variable.
46134         * m4/wcsnrtombs.m4: New file.
46135         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
46136         compilation units.
46137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
46138         HAVE_WCSNRTOMBS.
46139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
46140         HAVE_WCSNRTOMBS.
46141         * modules/wcsnrtombs: New file.
46142         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
46143         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
46144
46145 2008-12-21  Bruno Haible  <bruno@clisp.org>
46146
46147         * modules/wcsrtombs-tests: New file.
46148         * tests/test-wcsrtombs1.sh: New file.
46149         * tests/test-wcsrtombs2.sh: New file.
46150         * tests/test-wcsrtombs3.sh: New file.
46151         * tests/test-wcsrtombs4.sh: New file.
46152         * tests/test-wcsrtombs.c: New file.
46153
46154         New module 'wcsrtombs'.
46155         * lib/wchar.in.h (wcsrtombs): New declaration.
46156         * lib/wcsrtombs.c: New file.
46157         * m4/wcsrtombs.m4: New file.
46158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
46159         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
46161         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46162         * modules/wcsrtombs: New file.
46163         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
46164         bugs.
46165
46166 2008-12-21  Bruno Haible  <bruno@clisp.org>
46167
46168         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
46169         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
46170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
46171         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
46172         if not correct.
46173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
46174         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
46175         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46176         m4/locale-zh.m4, m4/codeset.m4.
46177         * doc/posix-functions/wcrtomb.texi: Document the bug.
46178
46179 2008-12-21  Bruno Haible  <bruno@clisp.org>
46180
46181         Work around a btowc() bug on IRIX 6.5.
46182         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
46183         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
46184         REPLACE_WTOBC if not.
46185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
46186         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
46187         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
46188
46189 2008-12-21  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/wcrtomb-tests: New file.
46192         * tests/test-wcrtomb.sh: New file.
46193         * tests/test-wcrtomb.c: New file.
46194
46195         New module 'wcrtomb'.
46196         * lib/wchar.in.h (wcrtomb): New declaration.
46197         * lib/wcrtomb.c: New file.
46198         * m4/wcrtomb.m4: New file.
46199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
46200         HAVE_WCRTOMB.
46201         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
46202         HAVE_WCRTOMB.
46203         * modules/wcrtomb: New file.
46204         * doc/posix-functions/wcrtomb.texi: Mention the new module.
46205
46206 2008-12-21  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
46209         * modules/mbsrtowcs (Files): Likewise.
46210         * modules/wctob (Files): Likewise.
46211         * modules/c-strcase-tests (Files): Likewise.
46212         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
46213         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
46214         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
46215         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
46216         * modules/vasnprintf-posix-tests (Files): Likewise.
46217
46218 2008-12-21  William Pursell  <bill.pursell@gmail.com>
46219
46220         gitlog-to-changelog: pass all command-line arguments to git-log
46221         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46222         it is sometimes convenient to filter the commits in various ways.
46223         gitlog-to-changelog only allows --since to specify a start date,
46224         but git-log itself supports many other filtering mechanisms.
46225         At the moment, I want to filter by branch name.  Rather than
46226         adding a --branch option to gitlog-to-changelog, it seems more
46227         flexible to simply pass all options directly to git-log and let
46228         git do the work.  Notice that this effectively makes --since a
46229         redundant option for gitlog-to-changelog, but removing it would
46230         require current usage to change since calls would then require
46231         an additional '--'.
46232
46233 2008-12-21  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/mbsnrtowcs-tests: New file.
46236         * tests/test-mbsnrtowcs1.sh: New file.
46237         * tests/test-mbsnrtowcs2.sh: New file.
46238         * tests/test-mbsnrtowcs3.sh: New file.
46239         * tests/test-mbsnrtowcs4.sh: New file.
46240         * tests/test-mbsnrtowcs.c: New file.
46241
46242         New module 'mbsnrtowcs'.
46243         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46244         * lib/mbsnrtowcs.c: New file.
46245         * lib/mbsrtowcs-state.c: New file.
46246         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46247         (internal_state): Remove variable.
46248         * m4/mbsnrtowcs.m4: New file.
46249         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46250         compilation units.
46251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46252         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46253         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46254         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46255         * modules/mbsnrtowcs: New file.
46256         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46257         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46258         portability problem.
46259
46260 2008-12-21  Bruno Haible  <bruno@clisp.org>
46261
46262         Work around mbsrtowcs bug.
46263         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46264         (gl_FUNC_MBSRTOWCS): Invoke it.
46265         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46266         m4/locale-zh.m4.
46267         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46268
46269 2008-12-21  Bruno Haible  <bruno@clisp.org>
46270
46271         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46272
46273 2008-12-21  Bruno Haible  <bruno@clisp.org>
46274
46275         Update doc for AIX.
46276         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46277         16-bit wchar_t type.
46278         * doc/posix-functions/btowc.texi: Likewise.
46279         * doc/posix-functions/fgetwc.texi: Likewise.
46280         * doc/posix-functions/fgetws.texi: Likewise.
46281         * doc/posix-functions/fputwc.texi: Likewise.
46282         * doc/posix-functions/fputws.texi: Likewise.
46283         * doc/posix-functions/fwide.texi: Likewise.
46284         * doc/posix-functions/fwprintf.texi: Likewise.
46285         * doc/posix-functions/fwscanf.texi: Likewise.
46286         * doc/posix-functions/getwchar.texi: Likewise.
46287         * doc/posix-functions/getwc.texi: Likewise.
46288         * doc/posix-functions/iswalnum.texi: Likewise.
46289         * doc/posix-functions/iswalpha.texi: Likewise.
46290         * doc/posix-functions/iswblank.texi: Likewise.
46291         * doc/posix-functions/iswcntrl.texi: Likewise.
46292         * doc/posix-functions/iswctype.texi: Likewise.
46293         * doc/posix-functions/iswdigit.texi: Likewise.
46294         * doc/posix-functions/iswgraph.texi: Likewise.
46295         * doc/posix-functions/iswlower.texi: Likewise.
46296         * doc/posix-functions/iswprint.texi: Likewise.
46297         * doc/posix-functions/iswpunct.texi: Likewise.
46298         * doc/posix-functions/iswspace.texi: Likewise.
46299         * doc/posix-functions/iswupper.texi: Likewise.
46300         * doc/posix-functions/iswxdigit.texi: Likewise.
46301         * doc/posix-functions/mbrtowc.texi: Likewise.
46302         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46303         * doc/posix-functions/mbstowcs.texi: Likewise.
46304         * doc/posix-functions/mbtowc.texi: Likewise.
46305         * doc/posix-functions/putwchar.texi: Likewise.
46306         * doc/posix-functions/putwc.texi: Likewise.
46307         * doc/posix-functions/swprintf.texi: Likewise.
46308         * doc/posix-functions/tolower.texi: Likewise.
46309         * doc/posix-functions/toupper.texi: Likewise.
46310         * doc/posix-functions/towctrans.texi: Likewise.
46311         * doc/posix-functions/ungetwc.texi: Likewise.
46312         * doc/posix-functions/vswprintf.texi: Likewise.
46313         * doc/posix-functions/wcrtomb.texi: Likewise.
46314         * doc/posix-functions/wcscat.texi: Likewise.
46315         * doc/posix-functions/wcschr.texi: Likewise.
46316         * doc/posix-functions/wcscmp.texi: Likewise.
46317         * doc/posix-functions/wcscoll.texi: Likewise.
46318         * doc/posix-functions/wcscpy.texi: Likewise.
46319         * doc/posix-functions/wcscspn.texi: Likewise.
46320         * doc/posix-functions/wcsftime.texi: Likewise.
46321         * doc/posix-functions/wcslen.texi: Likewise.
46322         * doc/posix-functions/wcsncat.texi: Likewise.
46323         * doc/posix-functions/wcsncmp.texi: Likewise.
46324         * doc/posix-functions/wcsncpy.texi: Likewise.
46325         * doc/posix-functions/wcspbrk.texi: Likewise.
46326         * doc/posix-functions/wcsrchr.texi: Likewise.
46327         * doc/posix-functions/wcsrtombs.texi: Likewise.
46328         * doc/posix-functions/wcsspn.texi: Likewise.
46329         * doc/posix-functions/wcsstr.texi: Likewise.
46330         * doc/posix-functions/wcstod.texi: Likewise.
46331         * doc/posix-functions/wcstof.texi: Likewise.
46332         * doc/posix-functions/wcstoimax.texi: Likewise.
46333         * doc/posix-functions/wcstok.texi: Likewise.
46334         * doc/posix-functions/wcstold.texi: Likewise.
46335         * doc/posix-functions/wcstoll.texi: Likewise.
46336         * doc/posix-functions/wcstol.texi: Likewise.
46337         * doc/posix-functions/wcstombs.texi: Likewise.
46338         * doc/posix-functions/wcstoull.texi: Likewise.
46339         * doc/posix-functions/wcstoul.texi: Likewise.
46340         * doc/posix-functions/wcstoumax.texi: Likewise.
46341         * doc/posix-functions/wcswidth.texi: Likewise.
46342         * doc/posix-functions/wcsxfrm.texi: Likewise.
46343         * doc/posix-functions/wctob.texi: Likewise.
46344         * doc/posix-functions/wctomb.texi: Likewise.
46345         * doc/posix-functions/wctrans.texi: Likewise.
46346         * doc/posix-functions/wctype.texi: Likewise.
46347         * doc/posix-functions/wcwidth.texi: Likewise.
46348         * doc/posix-functions/wmemchr.texi: Likewise.
46349         * doc/posix-functions/wmemcmp.texi: Likewise.
46350         * doc/posix-functions/wmemcpy.texi: Likewise.
46351         * doc/posix-functions/wmemmove.texi: Likewise.
46352         * doc/posix-functions/wmemset.texi: Likewise.
46353         * doc/posix-functions/wprintf.texi: Likewise.
46354         * doc/posix-functions/wscanf.texi: Likewise.
46355
46356 2008-12-21  Bruno Haible  <bruno@clisp.org>
46357
46358         Update doc for HP-UX 11.11.
46359         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46360         in HP-UX version 11.00, not in all versions of HP-UX 11.
46361         * doc/posix-functions/fwide.texi: Likewise.
46362         * doc/posix-functions/fwprintf.texi: Likewise.
46363         * doc/posix-functions/fwscanf.texi: Likewise.
46364         * doc/posix-functions/inet_ntop.texi: Likewise.
46365         * doc/posix-functions/inet_pton.texi: Likewise.
46366         * doc/posix-functions/mbrlen.texi: Likewise.
46367         * doc/posix-functions/mbrtowc.texi: Likewise.
46368         * doc/posix-functions/mbsinit.texi: Likewise.
46369         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46370         * doc/posix-functions/swprintf.texi: Likewise.
46371         * doc/posix-functions/swscanf.texi: Likewise.
46372         * doc/posix-functions/towctrans.texi: Likewise.
46373         * doc/posix-functions/vfwprintf.texi: Likewise.
46374         * doc/posix-functions/vswprintf.texi: Likewise.
46375         * doc/posix-functions/vwprintf.texi: Likewise.
46376         * doc/posix-functions/wcrtomb.texi: Likewise.
46377         * doc/posix-functions/wcsrtombs.texi: Likewise.
46378         * doc/posix-functions/wcsstr.texi: Likewise.
46379         * doc/posix-functions/wctob.texi: Likewise.
46380         * doc/posix-functions/wctrans.texi: Likewise.
46381         * doc/posix-functions/wmemchr.texi: Likewise.
46382         * doc/posix-functions/wmemcmp.texi: Likewise.
46383         * doc/posix-functions/wmemcpy.texi: Likewise.
46384         * doc/posix-functions/wmemmove.texi: Likewise.
46385         * doc/posix-functions/wmemset.texi: Likewise.
46386         * doc/posix-functions/wprintf.texi: Likewise.
46387         * doc/posix-functions/wscanf.texi: Likewise.
46388
46389 2008-12-21  Bruno Haible  <bruno@clisp.org>
46390
46391         Work around a portability problem.
46392         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46393         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46394
46395 2008-12-20  Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46398         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46399         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46401         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46402
46403         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46404         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46405         set.
46406         (GNULIB_defined_mbstate_t): New macro.
46407         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46408         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46409         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46410         reuses the system's mbrtowc function but works around the bugs.
46411         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46412         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46413         macros.
46414         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46415         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46416         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46417         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46418         REPLACE_MBSINIT if mbsinit needs to be overridden.
46419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46420         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46421         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46422         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46423         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46424         m4/locale-zh.m4.
46425         (Depends): Add mbsinit.
46426         * modules/mbsinit (Depends): Add mbrtowc.
46427         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46428
46429 2008-12-20  Bruno Haible  <bruno@clisp.org>
46430
46431         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46432         so that there are no conversion errors on AIX.
46433         * tests/test-mbsrtowcs.c (main): LIkewise.
46434
46435 2008-12-20  Bruno Haible  <bruno@clisp.org>
46436
46437         Work around wctob bug on Solaris <= 9.
46438         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46439         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46441         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46442         * modules/wctob (Files): Add m4/locale-fr.m4.
46443         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46444
46445 2008-12-20  Bruno Haible  <bruno@clisp.org>
46446
46447         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46448         /dev/null.
46449         * tests/test-select-in.sh: Likewise.
46450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46451
46452 2008-12-20  Bruno Haible  <bruno@clisp.org>
46453
46454         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46455         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46456         Cygwin 1.5.x.
46457
46458 2008-12-20  Bruno Haible  <bruno@clisp.org>
46459
46460         Ensure mbstate_t is defined on HP-UX 11.11.
46461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46462         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46463         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46464         AC_USE_SYSTEM_EXTENSIONS.
46465         * modules/fnmatch (Depends-on): Add extensions.
46466         * modules/mbrlen (Depends-on): Likewise.
46467         * modules/mbrtowc (Depends-on): Likewise.
46468         * modules/mbsinit (Depends-on): Likewise.
46469         * modules/mbsrtowcs (Depends-on): Likewise.
46470         * modules/mbswidth (Depends-on): Likewise.
46471         * modules/quotearg (Depends-on): Likewise.
46472         * modules/strftime (Depends-on): Likewise.
46473
46474 2008-12-20  Bruno Haible  <bruno@clisp.org>
46475
46476         Ensure wctob is declared on IRIX 6.5.
46477         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46478         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46479         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46481         of HAVE_WCTOB.
46482         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46483         HAVE_WCTOB.
46484         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46485
46486 2008-12-19  Bruno Haible  <bruno@clisp.org>
46487
46488         * modules/mbsrtowcs-tests: New file.
46489         * tests/test-mbsrtowcs1.sh: New file.
46490         * tests/test-mbsrtowcs2.sh: New file.
46491         * tests/test-mbsrtowcs3.sh: New file.
46492         * tests/test-mbsrtowcs4.sh: New file.
46493         * tests/test-mbsrtowcs.c: New file.
46494
46495         New module 'mbsrtowcs'.
46496         * lib/wchar.in.h (mbsrtowcs): New declaration.
46497         * lib/mbsrtowcs.c: New file.
46498         * m4/mbsrtowcs.m4: New file.
46499         * modules/mbsrtowcs: New file.
46500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46501         HAVE_MBSRTOWCS.
46502         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46503         HAVE_MBSRTOWCS.
46504         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46505
46506 2008-12-19  Bruno Haible  <bruno@clisp.org>
46507
46508         New module 'mbrlen'.
46509         * lib/wchar.in.h (mbrlen): New declaration.
46510         * lib/mbrlen.c: New file.
46511         * m4/mbrlen.m4: New file.
46512         * modules/mbrlen: New file.
46513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46514         HAVE_MBRLEN.
46515         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46516         HAVE_MBRLEN.
46517         * doc/posix-functions/mbrlen.texi: Document the new module.
46518
46519 2008-12-19  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46522         * modules/mbrtowc (Depends-on): Add verify.
46523         Suggested by Paul Eggert.
46524
46525 2008-12-18  Bruno Haible  <bruno@clisp.org>
46526
46527         * modules/mbsinit-tests: New file.
46528         * tests/test-mbsinit.sh: New file.
46529         * tests/test-mbsinit.c: New file.
46530
46531 2008-12-18  Bruno Haible  <bruno@clisp.org>
46532
46533         * modules/mbrtowc-tests: New file.
46534         * tests/test-mbrtowc1.sh: New file.
46535         * tests/test-mbrtowc2.sh: New file.
46536         * tests/test-mbrtowc3.sh: New file.
46537         * tests/test-mbrtowc4.sh: New file.
46538         * tests/test-mbrtowc.c: New file.
46539
46540         New module 'mbrtowc'.
46541         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46542         mbsinit and mbrtowc.
46543         (mbrtowc): New declaration.
46544         * lib/mbrtowc.c: New file.
46545         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46546         * modules/mbrtowc: New file.
46547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46548         HAVE_MBRTOWC.
46549         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46550         HAVE_MBRTOWC.
46551         * doc/posix-functions/mbrtowc.texi: Document the new module.
46552
46553 2008-12-18  Bruno Haible  <bruno@clisp.org>
46554
46555         New module 'wctob'.
46556         * lib/wchar.in.h (wctob): New declaration.
46557         * lib/wctob.c: New file.
46558         * m4/wctob.m4: New file.
46559         * modules/wctob: New file.
46560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46561         HAVE_WCTOB.
46562         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46563         * doc/posix-functions/wctob.texi: Document the new module.
46564
46565 2008-12-18  Bruno Haible  <bruno@clisp.org>
46566
46567         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46568         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46569
46570 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46571
46572         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46573         G. Christensen" <tgc@jupiterrise.com>.
46574
46575         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46576         G. Christensen" <tgc@jupiterrise.com>.
46577
46578         * lib/flock.c: Need to include string.h.  Reported by "Tom
46579         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46580         <ebb9@byu.net>.
46581
46582 2008-12-18  Bruno Haible  <bruno@clisp.org>
46583
46584         * m4/locale-ja.m4: New file, from GNU gettext.
46585
46586 2008-12-17  Bruno Haible  <bruno@clisp.org>
46587
46588         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46589         Suggested by Eric Blake.
46590
46591 2008-12-17  Bruno Haible  <bruno@clisp.org>
46592
46593         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46594
46595 2008-12-17  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46598         * modules/mbsinit (Depends-on): Add verify.
46599         Suggested by Paul Eggert.
46600
46601 2008-12-17  Bruno Haible  <bruno@clisp.org>
46602
46603         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46604         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46605         gl_FUNC_MBRTOWC.
46606         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46607         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46608         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46609         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46610         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46611         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46612         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46613         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46614         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46615         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46616         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46617         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46618         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46619         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46620         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46621         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46622         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46623         * modules/trim (configure.ac): Likewise.
46624
46625 2008-12-17  Bruno Haible  <bruno@clisp.org>
46626
46627         * modules/btowc-tests: New file.
46628         * tests/test-btowc1.sh: New file.
46629         * tests/test-btowc2.sh: New file.
46630         * tests/test-btowc.c: New file.
46631
46632         New module 'btowc'.
46633         * lib/wchar.in.h (btowc): New declaration.
46634         * lib/btowc.c: New file.
46635         * m4/btowc.m4: New file.
46636         * modules/btowc: New file.
46637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46638         HAVE_BTOWC.
46639         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46640         * doc/posix-functions/btowc.texi: Document the new module.
46641
46642 2008-12-17  Bruno Haible  <bruno@clisp.org>
46643
46644         New module 'mbsinit'.
46645         * lib/wchar.in.h (mbsinit): New declaration.
46646         * lib/mbsinit.c: New file.
46647         * m4/mbsinit.m4: New file.
46648         * modules/mbsinit: New file.
46649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46650         HAVE_MBSINIT.
46651         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46652         HAVE_MBSINIT.
46653         * doc/posix-functions/mbsinit.texi: Document the new module.
46654
46655 2008-12-16  Bruno Haible  <bruno@clisp.org>
46656
46657         * lib/unistd.in.h: Add comment.
46658         * tests/test-environ.c: Don't include <stdlib.h>.
46659
46660 2008-12-16  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/parse-duration.h (parse_duration): Document return value
46663         convention.
46664         * lib/parse-duration.c: Include specification header first. Add
46665         comments.
46666         (_): Remove macro.
46667         (parse_year_month_day, parse_hour_minute_second): Move side effects
46668         outside of strchr call.
46669         (parse_non_iso8601): Move side effects outside of isspace call.
46670         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46671         call.
46672
46673 2008-12-16  Bruno Haible  <bruno@clisp.org>
46674
46675         * tests/test-parse-duration.sh: Produce no output when the test
46676         succeeds.
46677
46678 2008-12-16  Bruno Haible  <bruno@clisp.org>
46679
46680         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46681         expressions.
46682
46683 2008-12-15  Bruno Haible  <bruno@clisp.org>
46684
46685         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46686         * doc/glibc-functions/flistxattr.texi: Likewise.
46687         * doc/glibc-functions/fopencookie.texi: Likewise.
46688         * doc/glibc-functions/fremovexattr.texi: Likewise.
46689         * doc/glibc-functions/fsetxattr.texi: Likewise.
46690         * doc/glibc-functions/getxattr.texi: Likewise.
46691         * doc/glibc-functions/lgetxattr.texi: Likewise.
46692         * doc/glibc-functions/listxattr.texi: Likewise.
46693         * doc/glibc-functions/llistxattr.texi: Likewise.
46694         * doc/glibc-functions/lremovexattr.texi: Likewise.
46695         * doc/glibc-functions/lsetxattr.texi: Likewise.
46696         * doc/glibc-functions/removexattr.texi: Likewise.
46697         * doc/glibc-functions/setxattr.texi: Likewise.
46698         * doc/posix-functions/open_memstream.texi: Likewise.
46699
46700 2008-12-15  Eric Blake  <ebb9@byu.net>
46701
46702         Update doc for cygwin 1.7.
46703         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46704         functions.
46705         * doc/posix-functions/fchmodat.texi: Likewise.
46706         * doc/posix-functions/fchownat.texi: Likewise.
46707         * doc/posix-functions/fdopendir.texi: Likewise.
46708         * doc/posix-functions/fmemopen.texi: Likewise.
46709         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46710         * doc/posix-functions/fstatat.texi: Likewise.
46711         * doc/posix-functions/futimens.texi: Likewise.
46712         * doc/posix-functions/gai_strerror.texi: Likewise.
46713         * doc/posix-functions/getaddrinfo.texi: Likewise.
46714         * doc/posix-functions/getnameinfo.texi: Likewise.
46715         * doc/posix-functions/if_freenameindex.texi: Likewise.
46716         * doc/posix-functions/if_indextoname.texi: Likewise.
46717         * doc/posix-functions/if_nameindex.texi: Likewise.
46718         * doc/posix-functions/if_nametoindex.texi: Likewise.
46719         * doc/posix-functions/insque.texi: Likewise.
46720         * doc/posix-functions/linkat.texi: Likewise.
46721         * doc/posix-functions/llrint.texi: Likewise.
46722         * doc/posix-functions/llrintf.texi: Likewise.
46723         * doc/posix-functions/llrintl.texi: Likewise.
46724         * doc/posix-functions/lockf.texi: Likewise.
46725         * doc/posix-functions/lrintl.texi: Likewise.
46726         * doc/posix-functions/mkdirat.texi: Likewise.
46727         * doc/posix-functions/mkfifoat.texi: Likewise.
46728         * doc/posix-functions/mknodat.texi: Likewise.
46729         * doc/posix-functions/mq_close.texi: Likewise.
46730         * doc/posix-functions/mq_getattr.texi: Likewise.
46731         * doc/posix-functions/mq_notify.texi: Likewise.
46732         * doc/posix-functions/mq_open.texi: Likewise.
46733         * doc/posix-functions/mq_receive.texi: Likewise.
46734         * doc/posix-functions/mq_send.texi: Likewise.
46735         * doc/posix-functions/mq_setattr.texi: Likewise.
46736         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46737         * doc/posix-functions/mq_timedsend.texi: Likewise.
46738         * doc/posix-functions/mq_unlink.texi: Likewise.
46739         * doc/posix-functions/open_memstream.texi: Likewise.
46740         * doc/posix-functions/openat.texi: Likewise.
46741         * doc/posix-functions/posix_fadvise.texi: Likewise.
46742         * doc/posix-functions/posix_fallocate.texi: Likewise.
46743         * doc/posix-functions/posix_madvise.texi: Likewise.
46744         * doc/posix-functions/posix_memalign.texi: Likewise.
46745         * doc/posix-functions/posix_openpt.texi: Likewise.
46746         * doc/posix-functions/readlinkat.texi: Likewise.
46747         * doc/posix-functions/remque.texi: Likewise.
46748         * doc/posix-functions/renameat.texi: Likewise.
46749         * doc/posix-functions/rintl.texi: Likewise.
46750         * doc/posix-functions/sem_unlink.texi: Likewise.
46751         * doc/posix-functions/shm_open.texi: Likewise.
46752         * doc/posix-functions/shm_unlink.texi: Likewise.
46753         * doc/posix-functions/signgam.texi: Likewise.
46754         * doc/posix-functions/sigset.texi: Likewise.
46755         * doc/posix-functions/stpcpy.texi: Likewise.
46756         * doc/posix-functions/stpncpy.texi: Likewise.
46757         * doc/posix-functions/strerror.texi: Likewise.
46758         * doc/posix-functions/strtod.texi: Likewise.
46759         * doc/posix-functions/symlinkat.texi: Likewise.
46760         * doc/posix-functions/unlinkat.texi: Likewise.
46761         * doc/posix-functions/utimensat.texi: Likewise.
46762         * doc/glibc-functions/bindresvport.texi: Likewise.
46763         * doc/glibc-functions/dn_expand.texi: Likewise.
46764         * doc/glibc-functions/exp10.texi: Likewise.
46765         * doc/glibc-functions/exp10f.texi: Likewise.
46766         * doc/glibc-functions/fgetxattr.texi: Likewise.
46767         * doc/glibc-functions/flistxattr.texi: Likewise.
46768         * doc/glibc-functions/fopencookie.texi: Likewise.
46769         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46770         * doc/glibc-functions/fremovexattr.texi: Likewise.
46771         * doc/glibc-functions/fsetxattr.texi: Likewise.
46772         * doc/glibc-functions/getifaddrs.texi: Likewise.
46773         * doc/glibc-functions/getxattr.texi: Likewise.
46774         * doc/glibc-functions/lgetxattr.texi: Likewise.
46775         * doc/glibc-functions/listxattr.texi: Likewise.
46776         * doc/glibc-functions/llistxattr.texi: Likewise.
46777         * doc/glibc-functions/lremovexattr.texi: Likewise.
46778         * doc/glibc-functions/lsetxattr.texi: Likewise.
46779         * doc/glibc-functions/pow10.texi: Likewise.
46780         * doc/glibc-functions/pow10f.texi: Likewise.
46781         * doc/glibc-functions/rcmd_af.texi: Likewise.
46782         * doc/glibc-functions/removexattr.texi: Likewise.
46783         * doc/glibc-functions/res_init.texi: Likewise.
46784         * doc/glibc-functions/res_mkquery.texi: Likewise.
46785         * doc/glibc-functions/res_query.texi: Likewise.
46786         * doc/glibc-functions/res_querydomain.texi: Likewise.
46787         * doc/glibc-functions/res_send.texi: Likewise.
46788         * doc/glibc-functions/rresvport_af.texi: Likewise.
46789         * doc/glibc-functions/setxattr.texi: Likewise.
46790         * doc/glibc-functions/strcasestr.texi: Likewise.
46791
46792 2008-12-15  Bruno Haible  <bruno@clisp.org>
46793
46794         Fix compilation error on OSF/1 4.0.
46795         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46796         <sys/time.h>, simply delegate to the system header.
46797         Reported by Daniel Richard G. <oss@teragram.com>.
46798
46799 2008-12-15  Bruno Haible  <bruno@clisp.org>
46800
46801         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46802         * doc/posix-functions/fchmodat.texi: Likewise.
46803         * doc/posix-functions/fchownat.texi: Likewise.
46804         * doc/posix-functions/fdopendir.texi: Likewise.
46805         * doc/posix-functions/fstatat.texi: Likewise.
46806         * doc/posix-functions/mkdirat.texi: Likewise.
46807         * doc/posix-functions/unlinkat.texi: Likewise.
46808
46809 2008-12-14  Bruno Haible  <bruno@clisp.org>
46810
46811         Update doc for POSIX:2008.
46812         * doc/posix-functions/faccessat.texi: New file.
46813         * doc/posix-functions/fchmodat.texi: New file.
46814         * doc/posix-functions/fchownat.texi: New file.
46815         * doc/posix-functions/fdopendir.texi: New file.
46816         * doc/posix-functions/fstatat.texi: New file.
46817         * doc/posix-functions/futimens.texi: New file.
46818         * doc/posix-functions/linkat.texi: New file.
46819         * doc/posix-functions/mkdirat.texi: New file.
46820         * doc/posix-functions/mkfifoat.texi: New file.
46821         * doc/posix-functions/mknodat.texi: New file.
46822         * doc/posix-functions/open_wmemstream.texi: New file.
46823         * doc/posix-functions/openat.texi: New file.
46824         * doc/posix-functions/psiginfo.texi: New file.
46825         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46826         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46827         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46828         * doc/posix-functions/readlinkat.texi: New file.
46829         * doc/posix-functions/renameat.texi: New file.
46830         * doc/posix-functions/strerror_l.texi: New file.
46831         * doc/posix-functions/symlinkat.texi: New file.
46832         * doc/posix-functions/unlinkat.texi: New file.
46833         * doc/posix-functions/utimensat.texi: New file.
46834         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46835
46836 2008-12-14  Bruno Haible  <bruno@clisp.org>
46837
46838         Update doc for POSIX:2008.
46839         * doc/posix-functions/alphasort.texi: Renamed from
46840         doc/glibc-functions/alphasort.texi.
46841         * doc/posix-functions/dirfd.texi: Renamed from
46842         doc/glibc-functions/dirfd.texi.
46843         * doc/posix-functions/dprintf.texi: Renamed from
46844         doc/glibc-functions/dprintf.texi.
46845         * doc/posix-functions/duplocale.texi: Renamed from
46846         doc/glibc-functions/duplocale.texi.
46847         * doc/posix-functions/fexecve.texi: Renamed from
46848         doc/glibc-functions/fexecve.texi.
46849         * doc/posix-functions/fmemopen.texi: Renamed from
46850         doc/glibc-functions/fmemopen.texi.
46851         * doc/posix-functions/freelocale.texi: Renamed from
46852         doc/glibc-functions/freelocale.texi.
46853         * doc/posix-functions/getdate_err.texi: Renamed from
46854         doc/glibc-functions/getdate_err.texi.
46855         * doc/posix-functions/isalnum_l.texi: Renamed from
46856         doc/glibc-functions/isalnum_l.texi.
46857         * doc/posix-functions/isalpha_l.texi: Renamed from
46858         doc/glibc-functions/isalpha_l.texi.
46859         * doc/posix-functions/isblank_l.texi: Renamed from
46860         doc/glibc-functions/isblank_l.texi.
46861         * doc/posix-functions/iscntrl_l.texi: Renamed from
46862         doc/glibc-functions/iscntrl_l.texi.
46863         * doc/posix-functions/isdigit_l.texi: Renamed from
46864         doc/glibc-functions/isdigit_l.texi.
46865         * doc/posix-functions/isgraph_l.texi: Renamed from
46866         doc/glibc-functions/isgraph_l.texi.
46867         * doc/posix-functions/islower_l.texi: Renamed from
46868         doc/glibc-functions/islower_l.texi.
46869         * doc/posix-functions/isprint_l.texi: Renamed from
46870         doc/glibc-functions/isprint_l.texi.
46871         * doc/posix-functions/ispunct_l.texi: Renamed from
46872         doc/glibc-functions/ispunct_l.texi.
46873         * doc/posix-functions/isspace_l.texi: Renamed from
46874         doc/glibc-functions/isspace_l.texi.
46875         * doc/posix-functions/isupper_l.texi: Renamed from
46876         doc/glibc-functions/isupper_l.texi.
46877         * doc/posix-functions/iswalnum_l.texi: Renamed from
46878         doc/glibc-functions/iswalnum_l.texi.
46879         * doc/posix-functions/iswalpha_l.texi: Renamed from
46880         doc/glibc-functions/iswalpha_l.texi.
46881         * doc/posix-functions/iswblank_l.texi: Renamed from
46882         doc/glibc-functions/iswblank_l.texi.
46883         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46884         doc/glibc-functions/iswcntrl_l.texi.
46885         * doc/posix-functions/iswctype_l.texi: Renamed from
46886         doc/glibc-functions/iswctype_l.texi.
46887         * doc/posix-functions/iswdigit_l.texi: Renamed from
46888         doc/glibc-functions/iswdigit_l.texi.
46889         * doc/posix-functions/iswgraph_l.texi: Renamed from
46890         doc/glibc-functions/iswgraph_l.texi.
46891         * doc/posix-functions/iswlower_l.texi: Renamed from
46892         doc/glibc-functions/iswlower_l.texi.
46893         * doc/posix-functions/iswprint_l.texi: Renamed from
46894         doc/glibc-functions/iswprint_l.texi.
46895         * doc/posix-functions/iswpunct_l.texi: Renamed from
46896         doc/glibc-functions/iswpunct_l.texi.
46897         * doc/posix-functions/iswspace_l.texi: Renamed from
46898         doc/glibc-functions/iswspace_l.texi.
46899         * doc/posix-functions/iswupper_l.texi: Renamed from
46900         doc/glibc-functions/iswupper_l.texi.
46901         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46902         doc/glibc-functions/iswxdigit_l.texi.
46903         * doc/posix-functions/isxdigit_l.texi: Renamed from
46904         doc/glibc-functions/isxdigit_l.texi.
46905         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46906         doc/glibc-functions/mbsnrtowcs.texi.
46907         * doc/posix-functions/mkdtemp.texi: Renamed from
46908         doc/glibc-functions/mkdtemp.texi.
46909         * doc/posix-functions/newlocale.texi: Renamed from
46910         doc/glibc-functions/newlocale.texi.
46911         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46912         doc/glibc-functions/nl_langinfo_l.texi.
46913         * doc/posix-functions/open_memstream.texi: Renamed from
46914         doc/glibc-functions/open_memstream.texi.
46915         * doc/posix-functions/opterr.texi: Renamed from
46916         doc/glibc-functions/opterr.texi.
46917         * doc/posix-functions/optind.texi: Renamed from
46918         doc/glibc-functions/optind.texi.
46919         * doc/posix-functions/optopt.texi: Renamed from
46920         doc/glibc-functions/optopt.texi.
46921         * doc/posix-functions/psignal.texi: Renamed from
46922         doc/glibc-functions/psignal.texi.
46923         * doc/posix-functions/scandir.texi: Renamed from
46924         doc/glibc-functions/scandir.texi.
46925         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46926         doc/glibc-functions/sched_get_priority_min.texi.
46927         * doc/posix-functions/signgam.texi: Renamed from
46928         doc/glibc-functions/signgam.texi.
46929         * doc/posix-functions/stpcpy.texi: Renamed from
46930         doc/glibc-functions/stpcpy.texi.
46931         * doc/posix-functions/stpncpy.texi: Renamed from
46932         doc/glibc-functions/stpncpy.texi.
46933         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46934         doc/glibc-functions/strcasecmp_l.texi.
46935         * doc/posix-functions/strcoll_l.texi: Renamed from
46936         doc/glibc-functions/strcoll_l.texi.
46937         * doc/posix-functions/strfmon_l.texi: Renamed from
46938         doc/glibc-functions/strfmon_l.texi.
46939         * doc/posix-functions/strftime_l.texi: Renamed from
46940         doc/glibc-functions/strftime_l.texi.
46941         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46942         doc/glibc-functions/strncasecmp_l.texi.
46943         * doc/posix-functions/strndup.texi: Renamed from
46944         doc/glibc-functions/strndup.texi.
46945         * doc/posix-functions/strnlen.texi: Renamed from
46946         doc/glibc-functions/strnlen.texi.
46947         * doc/posix-functions/strsignal.texi: Renamed from
46948         doc/glibc-functions/strsignal.texi.
46949         * doc/posix-functions/strxfrm_l.texi: Renamed from
46950         doc/glibc-functions/strxfrm_l.texi.
46951         * doc/posix-functions/timer_gettime.texi: Renamed from
46952         doc/glibc-functions/timer_gettime.texi.
46953         * doc/posix-functions/tolower_l.texi: Renamed from
46954         doc/glibc-functions/tolower_l.texi.
46955         * doc/posix-functions/toupper_l.texi: Renamed from
46956         doc/glibc-functions/toupper_l.texi.
46957         * doc/posix-functions/towctrans_l.texi: Renamed from
46958         doc/glibc-functions/towctrans_l.texi.
46959         * doc/posix-functions/towlower_l.texi: Renamed from
46960         doc/glibc-functions/towlower_l.texi.
46961         * doc/posix-functions/towupper_l.texi: Renamed from
46962         doc/glibc-functions/towupper_l.texi.
46963         * doc/posix-functions/uselocale.texi: Renamed from
46964         doc/glibc-functions/uselocale.texi.
46965         * doc/posix-functions/vdprintf.texi: Renamed from
46966         doc/glibc-functions/vdprintf.texi.
46967         * doc/posix-functions/wcpcpy.texi:
46968         Renamed from doc/glibc-functions/wcpcpy.texi.
46969         * doc/posix-functions/wcpncpy.texi: Renamed from
46970         doc/glibc-functions/wcpncpy.texi.
46971         * doc/posix-functions/wcscasecmp.texi: Renamed from
46972         doc/glibc-functions/wcscasecmp.texi.
46973         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46974         doc/glibc-functions/wcscasecmp_l.texi.
46975         * doc/posix-functions/wcscoll_l.texi: Renamed from
46976         doc/glibc-functions/wcscoll_l.texi.
46977         * doc/posix-functions/wcsdup.texi: Renamed from
46978         doc/glibc-functions/wcsdup.texi.
46979         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46980         doc/glibc-functions/wcsncasecmp.texi.
46981         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46982         doc/glibc-functions/wcsncasecmp_l.texi.
46983         * doc/posix-functions/wcsnlen.texi: Renamed from
46984         doc/glibc-functions/wcsnlen.texi.
46985         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46986         doc/glibc-functions/wcsnrtombs.texi.
46987         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46988         doc/glibc-functions/wcsxfrm_l.texi.
46989         * doc/posix-functions/wctrans_l.texi: Renamed from
46990         doc/glibc-functions/wctrans_l.texi.
46991         * doc/posix-functions/wctype_l.texi: Renamed from
46992         doc/glibc-functions/wctype_l.texi.
46993         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46994         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46995         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46996         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46997         these subsections.
46998         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46999         Remove sections.
47000
47001 2008-12-14  Bruno Haible  <bruno@clisp.org>
47002
47003         Update doc for POSIX:2008.
47004         * doc/posix-functions/*.texi: Update URL of POSIX specification.
47005
47006 2008-12-14  Bruno Haible  <bruno@clisp.org>
47007
47008         Update doc for POSIX:2008.
47009         * doc/pastposix-functions/bcmp.texi: Renamed from
47010         doc/posix-functions/bcmp.texi.
47011         * doc/pastposix-functions/bcopy.texi: Renamed from
47012         doc/posix-functions/bcopy.texi.
47013         * doc/pastposix-functions/bsd_signal.texi: Renamed from
47014         doc/posix-functions/bsd_signal.texi.
47015         * doc/pastposix-functions/bzero.texi: Renamed from
47016         doc/posix-functions/bzero.texi.
47017         * doc/pastposix-functions/ecvt.texi: Renamed from
47018         doc/posix-functions/ecvt.texi.
47019         * doc/pastposix-functions/fcvt.texi: Renamed from
47020         doc/posix-functions/fcvt.texi.
47021         * doc/pastposix-functions/ftime.texi: Renamed from
47022         doc/posix-functions/ftime.texi.
47023         * doc/pastposix-functions/gcvt.texi: Renamed from
47024         doc/posix-functions/gcvt.texi.
47025         * doc/pastposix-functions/getcontext.texi: Renamed from
47026         doc/posix-functions/getcontext.texi.
47027         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
47028         doc/posix-functions/gethostbyaddr.texi.
47029         * doc/pastposix-functions/gethostbyname.texi: Renamed from
47030         doc/posix-functions/gethostbyname.texi.
47031         * doc/pastposix-functions/getwd.texi: Renamed from
47032         doc/posix-functions/getwd.texi.
47033         * doc/pastposix-functions/h_errno.texi: Renamed from
47034         doc/posix-functions/h_errno.texi.
47035         * doc/pastposix-functions/index.texi: Renamed from
47036         doc/posix-functions/index.texi.
47037         * doc/pastposix-functions/makecontext.texi: Renamed from
47038         doc/posix-functions/makecontext.texi.
47039         * doc/pastposix-functions/mktemp.texi: Renamed from
47040         doc/posix-functions/mktemp.texi.
47041         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
47042         doc/posix-functions/pthread_attr_getstackaddr.texi.
47043         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
47044         doc/posix-functions/pthread_attr_setstackaddr.texi.
47045         * doc/pastposix-functions/rindex.texi: Renamed from
47046         doc/posix-functions/rindex.texi.
47047         * doc/pastposix-functions/scalb.texi: Renamed from
47048         doc/posix-functions/scalb.texi.
47049         * doc/pastposix-functions/setcontext.texi: Renamed from
47050         doc/posix-functions/setcontext.texi.
47051         * doc/pastposix-functions/swapcontext.texi: Renamed from
47052         doc/posix-functions/swapcontext.texi.
47053         * doc/pastposix-functions/ualarm.texi: Renamed from
47054         doc/posix-functions/ualarm.texi.
47055         * doc/pastposix-functions/usleep.texi: Renamed from
47056         doc/posix-functions/usleep.texi.
47057         * doc/pastposix-functions/vfork.texi: Renamed from
47058         doc/posix-functions/vfork.texi.
47059         * doc/pastposix-functions/wcswcs.texi: Renamed from
47060         doc/posix-functions/wcswcs.texi.
47061         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
47062         (Function Substitutes): Update.
47063
47064 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47065
47066         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
47067         m4/strerror.m4.
47068
47069 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47070             Bruno Haible  <bruno@clisp.org>
47071
47072         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
47073
47074 2008-12-13  Bruno Haible  <bruno@clisp.org>
47075
47076         * modules/strtoull (Depends-on): Remove unistd.
47077
47078 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47079
47080         * modules/strtoull (Depends-on): Add stdlib.
47081
47082 2008-12-11  Simon Josefsson  <simon@josefsson.org>
47083
47084         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
47085
47086 2008-12-10  Jim Meyering  <meyering@redhat.com>
47087
47088         gl_ASSERT: don't say assertions are disabled when they're not
47089         * m4/assert.m4 (gl_ASSERT): Do not make configure report
47090         "checking whether to enable assertions... no", when they are in
47091         fact enabled.  This is solely a bug in the output of configure.
47092         In spite of saying "no", NDEBUG was not defined in that case.
47093         Also, as noted by Eric Blake, leave assertions enabled upon
47094         --enable-assert=INVALID.
47095
47096 2008-12-10  Bruno Haible  <bruno@clisp.org>
47097
47098         Change MODULES.html to refer to POSIX:2008 where possible.
47099         * MODULES.html.sh (POSIX2008_URL): New variable.
47100         (posix_headers): Remove sys/timeb, ucontext.
47101         (posix2001_headers): New variable.
47102         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
47103         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
47104         index, makecontext, mktemp, pthread_attr_getstackaddr,
47105         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
47106         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
47107         (posix2001_functions): New variable.
47108         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
47109         otherwise.
47110
47111 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47112
47113         add missing include to parse-duration.c
47114         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
47115         * modules/parse-duration (Depends-on): Add xalloc.
47116
47117         fix sed script reading maint.mk
47118         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
47119         (syntax-check-rules): Use it.
47120
47121 2008-12-09  Bruno Haible  <bruno@clisp.org>
47122
47123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
47124         MacOS X 10.4/PowerPC.
47125         Reported by Simon Josefsson.
47126
47127 2008-12-08  Jim Meyering  <meyering@redhat.com>
47128
47129         work around mingw's lack of some S_IF definitions
47130         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
47131         Reported by Simon Josefsson.
47132
47133 2008-12-08  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
47136         applied to variables. Needed on MacOS X 10.4/PowerPC.
47137         Reported by Simon Josefsson.
47138
47139 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
47140         and Eric Blake  <ebb9@byu.net>
47141
47142         assert: honor --enable-assert
47143         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
47144         order to honor --enable-assert, rather than treating it as a
47145         synonym for --disable-assert.
47146
47147 2008-12-08  Jim Meyering  <meyering@redhat.com>
47148
47149         * lib/posixtm.c: Remove now-useless declaration of mktime.
47150
47151         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
47152
47153 2008-12-07  Bruno Haible  <bruno@clisp.org>
47154
47155         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
47156         test_once): Mark functions as static.
47157         * tests/test-tls.c (test_tls): Likewise.
47158
47159 2008-12-07  Bruno Haible  <bruno@clisp.org>
47160
47161         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
47162         iconv_register_autodetect.
47163
47164 2008-12-07  Jim Meyering  <meyering@redhat.com>
47165
47166         posixtm.c: avoid a warning
47167         * lib/posixtm.c (posixtime): Don't initialize tm0.
47168         It's no longer needed to placate gcc4's -Wuninitialized,
47169         and the attempt to placate would elicit a new warning.
47170
47171         unicodeio.c: mark unused parameters
47172         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47173         (fallback_failure_callback): Likewise.
47174
47175 2008-12-07  Bruno Haible  <bruno@clisp.org>
47176
47177         * gnulib-tool (func_create_testdir): When building the tests
47178         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
47179         Reported by Simon Josefsson.
47180
47181 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47182
47183         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
47184
47185 2008-12-06  Bruno Haible  <bruno@clisp.org>
47186
47187         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
47188         Suggested by Eric Blake.
47189
47190 2008-12-06  Bruno Haible  <bruno@clisp.org>
47191
47192         Fix a c-stack test failure on MacOS X.
47193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
47194         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
47195         handler for SIGBUS as well.
47196         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
47197         install a signal handler for SIGBUS as well.
47198         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
47199
47200 2008-12-06  Bruno Haible  <bruno@clisp.org>
47201
47202         Advocacy documentation.
47203         * doc/gnulib-intro.texi (Benefits): New section.
47204         * doc/gnulib.texi: Update.
47205
47206 2008-12-06  Bruno Haible  <bruno@clisp.org>
47207
47208         Document the 'manywarnings' module.
47209         * doc/manywarnings.texi: New file.
47210         * doc/gnulib.texi: Include it.
47211
47212 2008-12-05  Eric Blake  <ebb9@byu.net>
47213
47214         tests: silence some gcc warnings
47215         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
47216         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
47217         type mismatches.
47218
47219 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47220             Bruno Haible  <bruno@clisp.org>
47221
47222         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47223
47224 2008-11-29  Jim Meyering  <meyering@redhat.com>
47225
47226         unicodeio.c: mark unused parameters
47227         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47228         (fallback_failure_callback): Likewise.
47229
47230         fts: fix a thinko
47231         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47232         (set_stat_type): Return S_IF*-valued "type" directly.
47233         Prompted by James Youngman's spotting a related bug.
47234         Confirmed by further testing through find.
47235
47236         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47237         * lib/fts.c (D_TYPE): Define.
47238         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47239         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47240         (s_ifmt_shift_bits): New function.
47241         (set_stat_type): New function.
47242         (fts_build): When not calling fts_stat, call set_stat_type
47243         to propagate dirent.d_type info to fts_read caller.
47244         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47245         fts_statp->st_mode type information may be valid.
47246
47247 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47248
47249         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47250         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47251         <sds@gnu.org>.
47252
47253 2008-11-20  Bruno Haible  <bruno@clisp.org>
47254
47255         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47256         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47257         INCLUDE_NEXT.
47258         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47259         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47260         * modules/math (Makefile.am): Substitute
47261         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47262         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47263
47264 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47265             Bruno Haible  <bruno@clisp.org>
47266
47267         * lib/stdint.in.h: Define all type macros so that their expansion is
47268         a single typedef'ed token. Fixes a compilation failure in Boost which
47269         does "using ::int8_t;".
47270
47271 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47272
47273         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47274         gl_MANYWARN_ALL_GCC.
47275         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47276         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47277         * modules/manywarnings: New file.
47278         * MODULES.html.sh: Mention manywarnings module.
47279
47280 2008-11-18  Bruno Haible  <bruno@clisp.org>
47281
47282         * doc/gnulib-tool.texi (Unit tests): New section.
47283
47284 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47285
47286         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47287         paths like 'lib/po/foo.po'.
47288
47289 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47290
47291         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47292         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47293
47294 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47295
47296         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47297         parameter works.
47298
47299 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47300
47301         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47302
47303 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47304
47305         * modules/parse-duration-tests: New file.
47306         * tests/test-parse-duration.sh: New file.
47307         * tests/test-parse-duration.c: New file.
47308
47309         New module 'parse-duration'.
47310         * lib/parse-duration.h: New file.
47311         * lib/parse-duration.c: New file.
47312         * modules/parse-duration: New file.
47313
47314 2008-11-17  Bruno Haible  <bruno@clisp.org>
47315
47316         * tests/test-select-out.sh: Comment out the first pipe test.
47317         Reported by Simon Josefsson.
47318
47319 2008-11-17  Bruno Haible  <bruno@clisp.org>
47320
47321         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47323         gl_HOSTENT.
47324
47325 2008-11-17  Bruno Haible  <bruno@clisp.org>
47326
47327         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47328         -lnetwork and -lnet. Needed for Haiku and BeOS.
47329
47330 2008-11-16  Bruno Haible  <bruno@clisp.org>
47331
47332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47333
47334 2008-11-16  Bruno Haible  <bruno@clisp.org>
47335
47336         Avoid test failure on Haiku.
47337         * tests/test-fsync.c: Include <errno.h>.
47338         (main): Don't require that fsync (0) fails.
47339
47340 2008-11-15  Bruno Haible  <bruno@clisp.org>
47341
47342         New module 'hostent'.
47343         * modules/hostent: New file.
47344         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47345
47346 2008-11-15  Bruno Haible  <bruno@clisp.org>
47347
47348         New module 'servent'.
47349         * modules/servent: New file.
47350         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47351
47352 2008-11-15  Bruno Haible  <bruno@clisp.org>
47353
47354         Avoid generating same test program with two different rules.
47355         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47356         test-frexp to test-frexp-nolibm.
47357         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47358         test-frexpl to test-frexpl-nolibm.
47359
47360 2008-11-15  Bruno Haible  <bruno@clisp.org>
47361
47362         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47363         $(FREXPL_LIBM).
47364
47365 2008-11-15  Bruno Haible  <bruno@clisp.org>
47366
47367         * lib/netdb.in.h: Activate the definitions also when the system's
47368         <netdb.h> has 'struct addrinfo'.
47369         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47370         EAI_OVERFLOW or AI_NUMERICSERV.
47371         * doc/posix-headers/netdb.texi: Document the problem.
47372
47373 2008-11-15  Bruno Haible  <bruno@clisp.org>
47374
47375         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47376
47377         Make the 'sched' module work on platforms where <sched.h> exists but
47378         is incomplete (such as Haiku).
47379         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47380         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47381         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47382         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47383         HAVE_STRUCT_SCHED_PARAM.
47384         * modules/sched (Depends-on): Add include_next.
47385         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47386         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47387         * doc/posix-headers/sched.texi: Document the issue.
47388
47389 2008-11-13  Jim Meyering  <meyering@redhat.com>
47390
47391         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47392         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47393         test would fail due to the difference in the Report bugs to ...
47394         line.  The expected address is empty, "<>", while the actual
47395         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47396
47397 2008-11-12  Bruno Haible  <bruno@clisp.org>
47398
47399         lstat: don't compile lstat.c on systems lacking lstat
47400         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47401         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47402         Reported by Daniel P. Berrange via Jim Meyering.
47403
47404 2008-11-12  Jim Meyering  <meyering@redhat.com>
47405
47406         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47407
47408 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47409
47410         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47411         instead.
47412
47413 2008-11-12  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/unicodeio.c: Include unistr.h.
47416         (utf8_wctomb): Remove function.
47417         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47418
47419 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47420
47421         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47422         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47423         <bruno@clisp.org>.
47424         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47425
47426 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47427
47428         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47429         * doc/gnulib.texi: Add section for warnings.
47430
47431 2008-11-11  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/sockets.h: Add a comment.
47434
47435 2008-11-11  Karl Berry  <karl@gnu.org>
47436
47437         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47438
47439 2008-11-11  Eric Blake  <ebb9@byu.net>
47440
47441         fdl.texi: avoid git symlinks
47442         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47443
47444 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47445
47446         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47447
47448 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47449
47450         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47451         (gl_WARN_ADD): Substitute $2 if literal.
47452
47453 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47454
47455         * m4/warning.m4: Remove.
47456
47457 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47458
47459         * m4/warnings.m4: Almost complete rewrite. :-)
47460
47461 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47462
47463         * modules/warnings: New module.
47464         * m4/warnings.m4: New file.
47465         * MODULES.html.sh: Mention warnings module.
47466         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47467         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47468
47469 2008-11-10  Eric Blake  <ebb9@byu.net>
47470
47471         fdl.texi: make a symlink to the latest version
47472         * doc/standards.texi: Revert today's earlier change.
47473         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47474         * doc/fdl.texi: ...and replace this with a symlink to the newer
47475         fdl-1.3.texi.
47476
47477 2008-11-10  Bruno Haible  <bruno@clisp.org>
47478
47479         * tests/test-select-fd.c (main): Accept the result file name as fourth
47480         argument.
47481         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47482         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47483
47484 2008-11-10  Bruno Haible  <bruno@clisp.org>
47485
47486         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47487         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47488         as autoconf-substituted macros.
47489         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47490         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47491         gl_NETDB_H_DEFAULTS. Set these variables.
47492         * modules/netdb (Makefile.am): Substitute these variables.
47493
47494 2008-11-10  Eric Blake  <ebb9@byu.net>
47495
47496         standards.texi: include correct file for FDL 1.3
47497         * doc/standards.texi (GNU Free Documentation License): Change
47498         include file to pull in FDL 1.3, not 1.2.
47499
47500         fdl.texi: revert accidental change to license
47501         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47502
47503 2008-11-10  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47506         cross-compiling guesses also when the native compile gives no result.
47507
47508 2008-11-10  Bruno Haible  <bruno@clisp.org>
47509
47510         * lib/spawni.c (__spawni): Force variable into the stack.
47511
47512 2008-11-10  Bruno Haible  <bruno@clisp.org>
47513
47514         Add support for Haiku.
47515         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47516         glibc and BeOS, but also on Haiku.
47517         * lib/fpurge.c (fpurge): Likewise.
47518         * lib/freadable.c (freadable): Likewise.
47519         * lib/freadahead.c (freadahead): Likewise.
47520         * lib/freading.c (freading): Likewise.
47521         * lib/freadptr.c (freadptr): Likewise.
47522         * lib/freadseek.c (freadptrinc): Likewise.
47523         * lib/fseeko.c (rpl_fseeko): Likewise.
47524         * lib/fseterr.c (fseterr): Likewise.
47525         * lib/fwritable.c (fwritable): Likewise.
47526         * lib/fwriting.c (fwriting): Likewise.
47527         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47528
47529 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47530
47531         * lib/config.charset: Treat Haiku like BeOS.
47532
47533 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47534
47535         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47536         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47537
47538 2008-11-08  Bruno Haible  <bruno@clisp.org>
47539
47540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47541         AC_CACHE_CHECK.
47542
47543 2008-11-08  Bruno Haible  <bruno@clisp.org>
47544
47545         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47546
47547 2008-11-08  Bruno Haible  <bruno@clisp.org>
47548
47549         * tests/test-select-fd.c: New file.
47550         * tests/test-select-in.sh: New file.
47551         * tests/test-select-out.sh: New file.
47552         * tests/test-select-stdin.c: New file.
47553         * modules/select-tests (Files): Add the new files.
47554         (Depends-on): Add gettimeofday.
47555         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47556         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47557         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47558
47559 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47560             Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47563
47564 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47565
47566         * build-aux/pmccabe2html: Added support for C++ source files.
47567
47568 2008-11-05  Ben Pfaff  <blp@gnu.org>
47569
47570         Fix lib/close.c build on Windows.
47571         * modules/close (Files): Add lib/w32sock.h.
47572
47573 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47574
47575         Accept Bison's NEWS format.
47576         * build-aux/announce-gen (print_news_deltas): Tweak
47577         $re_prefix.
47578
47579 2008-11-04  Bruno Haible  <bruno@clisp.org>
47580
47581         * modules/random_r (Maintainer): Add glibc.
47582
47583 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47584
47585         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47586         by karl@freefriends.org (Karl Berry).
47587         * doc/alloca.texi: Likewise.
47588         * doc/c-ctype.texi: Likewise.
47589         * doc/c-strcase.texi: Likewise.
47590         * doc/c-strcaseeq.texi: Likewise.
47591         * doc/c-strcasestr.texi: Likewise.
47592         * doc/c-strstr.texi: Likewise.
47593         * doc/c-strtod.texi: Likewise.
47594         * doc/c-strtold.texi: Likewise.
47595         * doc/ctime.texi: Likewise.
47596         * doc/error.texi: Likewise.
47597         * doc/fdl.texi: Likewise.
47598         * doc/gcd.texi: Likewise.
47599         * doc/getdate.texi: Likewise.
47600         * doc/gnulib-intro.texi: Likewise.
47601         * doc/gnulib-tool.texi: Likewise.
47602         * doc/gnulib.texi: Likewise.
47603         * doc/inet_ntoa.texi: Likewise.
47604         * doc/maintain.texi: Likewise.
47605         * doc/make-stds.texi: Likewise.
47606         * doc/quote.texi: Likewise.
47607         * doc/regexprops-generic.texi: Likewise.
47608         * doc/standards.texi: Likewise.
47609         * doc/verify.texi: Likewise.
47610         * doc/visibility.texi: Likewise.
47611         * doc/gnulib.texi (GNU Free Documentation License): Include
47612         fdl-1.3.texi instead of fdl.texi.
47613
47614 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47615
47616         * doc/fdl-1.3.texi: New file, from
47617         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47618         * modules/fdl-1.3: Add.
47619         * MODULES.html.sh: Add fdl-1.3.
47620
47621 2008-11-03  Bruno Haible  <bruno@clisp.org>
47622
47623         Make determination of absolute name of header file work with AIX xlc.
47624         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47625         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47626         preprocessing.
47627         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47628         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47629
47630 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47631
47632         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47633         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47634         <ludo@gnu.org>.
47635
47636 2008-11-02  Bruno Haible  <bruno@clisp.org>
47637
47638         Mark 'strpbrk' obsolete.
47639         * modules/strpbrk (Status, Notice): New sections.
47640         * modules/strtok_r (Depends-on): Add strpbrk.
47641
47642 2008-11-02  Bruno Haible  <bruno@clisp.org>
47643
47644         Mark 'strdup' obsolete.
47645         * modules/strdup (Status, Notice): New sections.
47646         * modules/findprog (Depends-on): Add strdup.
47647         * modules/getaddrinfo (Depends-on): Likewise.
47648         * modules/localename (Depends-on): Likewise.
47649         * modules/relocatable-lib (Depends-on): Likewise.
47650         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47651         * modules/relocatable-prog (Depends-on): Likewise.
47652         * modules/trim (Depends-on): Likewise.
47653         * modules/unictype/gen-ctype (Depends-on): Likewise.
47654         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47655
47656 2008-11-02  Bruno Haible  <bruno@clisp.org>
47657
47658         Mark 'strcspn' obsolete.
47659         * modules/strcspn (Status, Notice): New sections.
47660
47661 2008-11-02  Bruno Haible  <bruno@clisp.org>
47662
47663         Mark 'rmdir' obsolete.
47664         * modules/rmdir (Status, Notice): New sections.
47665         * modules/clean-temp (Depends-on): Add rmdir.
47666         * modules/openat (Depends-on): Likewise.
47667
47668 2008-11-02  Bruno Haible  <bruno@clisp.org>
47669
47670         Mark 'raise' obsolete.
47671         * modules/raise (Status, Notice): New sections.
47672         (Include): Specify <signal.h>.
47673         * modules/stdio (Depends-on): Add raise.
47674         * modules/write (Depends-on): Likewise.
47675
47676 2008-11-02  Bruno Haible  <bruno@clisp.org>
47677
47678         Mark 'memset' obsolete.
47679         * modules/memset (Status, Notice): New sections.
47680
47681 2008-11-02  Bruno Haible  <bruno@clisp.org>
47682
47683         Mark 'memmove' obsolete.
47684         * modules/memmove (Status, Notice): New sections.
47685         * modules/argp (Depends-on): Add memmove.
47686         * modules/argz (Depends-on): Likewise.
47687         * modules/canonicalize (Depends-on): Likewise.
47688         * modules/canonicalize-lgpl (Depends-on): Likewise.
47689         * modules/fts (Depends-on): Likewise.
47690         * modules/getcwd (Depends-on): Likewise.
47691         * modules/human (Depends-on): Likewise.
47692         * modules/regex (Depends-on): Likewise.
47693         * modules/striconveh (Depends-on): Likewise.
47694         * modules/trim (Depends-on): Likewise.
47695         * modules/unistr/u8-move (Depends-on): Likewise.
47696         * modules/unistr/u16-move (Depends-on): Likewise.
47697         * modules/unistr/u32-move (Depends-on): Likewise.
47698
47699 2008-11-02  Bruno Haible  <bruno@clisp.org>
47700
47701         Mark 'memcpy' obsolete.
47702         * modules/memcpy (Status, Notice): New sections.
47703
47704 2008-11-02  Bruno Haible  <bruno@clisp.org>
47705
47706         Mark 'memcmp' obsolete.
47707         * modules/memcmp (Status, Notice): New sections.
47708         * modules/argmatch (Depends-on): Add memchr.
47709         * modules/backupfile (Depends-on): Likewise.
47710         * modules/c-strcasestr (Depends-on): Likewise.
47711         * modules/crypto/des (Depends-on): Likewise.
47712         * modules/csharpcomp (Depends-on): Likewise.
47713         * modules/fnmatch (Depends-on): Likewise.
47714         * modules/git-merge-changelog (Depends-on): Likewise.
47715         * modules/isnand (Depends-on): Likewise.
47716         * modules/isnand-nolibm (Depends-on): Likewise.
47717         * modules/isnanf (Depends-on): Likewise.
47718         * modules/isnanf-nolibm (Depends-on): Likewise.
47719         * modules/isnanl (Depends-on): Likewise.
47720         * modules/isnanl-nolibm (Depends-on): Likewise.
47721         * modules/mbchar (Depends-on): Likewise.
47722         * modules/memcoll (Depends-on): Likewise.
47723         * modules/quotearg (Depends-on): Likewise.
47724         * modules/regex (Depends-on): Likewise.
47725         * modules/relocatable-prog (Depends-on): Likewise.
47726         * modules/same (Depends-on): Likewise.
47727         * modules/signbit (Depends-on): Likewise.
47728         * modules/strcasestr-simple (Depends-on): Likewise.
47729         * modules/unictype/gen-ctype (Depends-on): Likewise.
47730         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47731         * modules/uniname/uniname (Depends-on): Likewise.
47732         * modules/unistr/u8-cmp (Depends-on): Likewise.
47733
47734 2008-11-02  Bruno Haible  <bruno@clisp.org>
47735
47736         Mark 'memchr' obsolete.
47737         * modules/memchr (Status, Notice): New sections.
47738         * modules/argp (Depends-on): Add memchr.
47739         * modules/base64 (Depends-on): Likewise.
47740         * modules/c-strcasestr (Depends-on): Likewise.
47741         * modules/chdir-long (Depends-on): Likewise.
47742         * modules/fnmatch (Depends-on): Likewise.
47743         * modules/getsubopt (Depends-on): Likewise.
47744         * modules/git-merge-changelog (Depends-on): Likewise.
47745         * modules/glob (Depends-on): Likewise.
47746         * modules/strcasestr-simple (Depends-on): Likewise.
47747         * modules/strnlen (Depends-on): Likewise.
47748
47749 2008-11-02  Bruno Haible  <bruno@clisp.org>
47750
47751         Mark 'atexit' obsolete.
47752         * modules/atexit (Status, Notice): New sections.
47753         * modules/chdir-long (Depends-on): Add atexit.
47754         * modules/wait-process (Depends-on): Likewise.
47755
47756 2008-11-02  Bruno Haible  <bruno@clisp.org>
47757
47758         * gnulib-tool: New option --with-obsolete.
47759         (func_usage): Document it.
47760         (func_modules_transitive_closure): Drop obsolete dependencies if
47761         incobsolete is not true.
47762         (func_import): Read and save the incobsolete variable to the cache.
47763
47764 2008-11-02  Bruno Haible  <bruno@clisp.org>
47765
47766         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47767         * gnulib-tool: New option --extract-status.
47768         (func_usage): Document it.
47769         (sed_extract_prog): Recognize it.
47770         (func_get_status): New function.
47771
47772 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47773
47774         * modules/sockets (License): Change from LGPL to LGPLv2+.
47775
47776 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47777
47778         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47779
47780 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47781
47782         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47783         Mention times and sys_times.
47784         * modules/sys_times, modules/sys_times-tests: New modules.
47785         * modules/times, modules/times-tests: Likewise
47786         * m4/sys_times_h.m4: New file.
47787         * lib/sys_times.in.h: Likewise
47788         * lib/times.c: Likewise.
47789         * tests/test-sys_times.c: Likewise.
47790         * tests/test-times.c: Likewise.
47791         * doc/posix-headers/sys_times.texi: Update.
47792         * doc/posix-functions/times.texi: Update.
47793
47794 2008-10-28  Jim Meyering  <meyering@redhat.com>
47795
47796         * modules/tempname (Depends-on): Add lstat.
47797
47798         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47799
47800 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47801
47802         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47803         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47804         using idiom used elsewhere in gnulib.
47805
47806 2008-10-27  Jim Meyering  <meyering@redhat.com>
47807
47808         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47809
47810 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47811
47812         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47813         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47814         programs.
47815         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47816
47817 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47818
47819         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47820
47821 2008-10-27  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-lstat.c: Include <stdio.h>.
47824
47825 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47826
47827         * modules/lstat-tests: New module.
47828         * tests/test-lstat.c: New file.
47829
47830 2008-10-26  Jim Meyering  <meyering@redhat.com>
47831
47832         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47833
47834 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47835             Bruno Haible  <bruno@clisp.org>
47836
47837         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47838         * modules/configmake (Include): Add a note that the include must come
47839         after all system headers.
47840         * lib/javaversion.c: Include configmake.h after all other includes.
47841
47842 2008-10-26  Bruno Haible  <bruno@clisp.org>
47843
47844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47845         HAVE_STRUCT_RANDOM_DATA to 1.
47846         (gl_STDLIB_H): Simplify.
47847
47848 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47849
47850         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47851         substitute HAVE_STRUCT_RANDOM_DATA.
47852         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47853         random_data.
47854         * modules/stdlib (Makefile.am): Substitute
47855         HAVE_STRUCT_RANDOM_DATA.
47856
47857 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47858
47859         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47860         * doc/gnulib-intro.texi (Copyright): Likewise.
47861
47862 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47863
47864         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47865         findings.
47866
47867 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47868             Bruno Haible  <bruno@clisp.org>
47869
47870         * lib/unistd.in.h: Include <winsock2.h>.
47871         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47872         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47873         Provide dummy declarations.
47874         (gethostname): Override.
47875         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47877         gl_PREREQ_SYS_H_WINSOCK2.
47878         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47879         * doc/posix-functions/gethostname.texi: More details.
47880
47881 2008-10-25  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47884         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47885         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47886
47887         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47888         here ...
47889         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47890         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47891         gl_UNISTD_H_DEFAULTS.
47892
47893 2008-10-25  Eric Blake  <ebb9@byu.net>
47894
47895         signbit: avoid spurious compiler failure
47896         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47897         declarations inside function.
47898
47899 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47900             Bruno Haible  <bruno@clisp.org>
47901
47902         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47903         * modules/random_r (Depends-on): Add stdint.
47904
47905 2008-10-24  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47908         Eggert.
47909         * modules/strerror (License): Likewise.
47910
47911 2008-10-24  Jim Meyering  <meyering@redhat.com>
47912
47913         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47914         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47915
47916 2008-10-24  Eric Blake  <ebb9@byu.net>
47917
47918         getgroups: fix compilation when getgroups is available
47919         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47920         but with <config.h> override of getgroups disabled.
47921
47922 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47923
47924         * doc/gnulib.texi (Header files): Add note about C++ problems.
47925         Explained by Bruno Haible <bruno@clisp.org>.
47926
47927 2008-10-23  Bruno Haible  <bruno@clisp.org>
47928
47929         Define a dummy SA_NODEFER macro on Interix.
47930         * lib/signal.in.h (SA_NODEFER): Define fallback.
47931         Reported by Aleksey Cheusov <cheusov@tut.by> via
47932         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47933
47934 2008-10-23  Bruno Haible  <bruno@clisp.org>
47935
47936         * modules/freadahead (License): Change to LGPLv2+.
47937         Suggested by Simon Josefsson.
47938
47939 2008-10-23  Jim Meyering  <meyering@redhat.com>
47940
47941         random_r: new module
47942         * modules/random_r: New file.
47943         * m4/random_r.m4: New file.
47944         * lib/random_r.c: New file, from glibc.
47945         * modules/random_r-tests: New file.
47946         * tests/test-random_r.c: New file.
47947         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47948          Declare.
47949         (RAND_MAX): Define.
47950         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47951         * modules/stdlib: Substitute them, too.
47952         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47953         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47954         * doc/glibc-functions/random_r.texi: Likewise.
47955         * doc/glibc-functions/setstate_r.texi: Likewise.
47956         * doc/glibc-functions/srandom_r.texi: Likewise.
47957         * config/srclist.txt: Mention it.
47958
47959 2008-10-23  David Lutterkort  <lutter@redhat.com>
47960
47961         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47962         link requirement
47963
47964 2008-10-23  Jim Meyering  <meyering@redhat.com>
47965
47966         selinux-h: mark parameters of stub functions as intentionally unused
47967         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47968         * lib/se-context.in.h: Likewise.
47969
47970 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47971
47972         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47973
47974 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47975
47976         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47977
47978 2008-10-22  Eric Blake  <ebb9@byu.net>
47979
47980         glthread/thread: avoid compiler warning
47981         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47982         Add unreachable abort to silence compiler.
47983
47984 2008-10-22  Eric Blake  <ebb9@byu.net>
47985
47986         netdb: also supply struct addrinfo for cygwin 1.5.x
47987         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47988         older cygwin.
47989         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47990         cygwin.
47991         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47992
47993 2008-10-22  Bruno Haible  <bruno@clisp.org>
47994
47995         * users.txt: Update entry about pspp.
47996
47997 2008-10-21  Bruno Haible  <bruno@clisp.org>
47998
47999         Simplification.
48000         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
48001         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
48002
48003         Simplification.
48004         * lib/ioctl.c (ioctl): Don't undefine.
48005         * lib/socket.c (socket): Don't undefine.
48006
48007         Remove unused module indicator macros.
48008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
48009         GNULIB_$1 as a C macro.
48010
48011         * doc/posix-functions/close.texi: Undo last change.
48012         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
48013         Windows platforms.
48014
48015 2008-10-21  Bruno Haible  <bruno@clisp.org>
48016
48017         Add gethostname() declaration to <unistd.h>.
48018         * lib/unistd.in.h (gethostname): New declaration.
48019         * lib/gethostname.c: Include <unistd.h>.
48020         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
48021         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
48022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
48023         and HAVE_GETHOSTNAME.
48024         * modules/gethostname (Depends-on): Add unistd.
48025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48026         (Include): Specify <unistd.h>.
48027         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
48028         HAVE_GETHOSTNAME.
48029         * tests/test-gethostname.c: Include <unistd.h> first.
48030
48031 2008-10-21  Bruno Haible  <bruno@clisp.org>
48032
48033         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
48034         * modules/select-tests (Depends-on): Likewise.
48035         Reported by Simon Josefsson.
48036
48037 2008-10-21  Simon Josefsson  <simon@josefsson.org>
48038
48039         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
48040         * lib/accept.c: New file, based on winsock.c.
48041         * lib/bind.c: New file, based on winsock.c.
48042         * lib/connect.c: New file, based on winsock.c.
48043         * lib/getpeername.c: New file, based on winsock.c.
48044         * lib/getsockname.c: New file, based on winsock.c.
48045         * lib/getsockopt.c: New file, based on winsock.c.
48046         * lib/ioctl.c: New file, based on winsock.c.
48047         * lib/listen.c: New file, based on winsock.c.
48048         * lib/recv.c: New file, based on winsock.c.
48049         * lib/recvfrom.c: New file, based on winsock.c.
48050         * lib/send.c: New file, based on winsock.c.
48051         * lib/sendto.c: New file, based on winsock.c.
48052         * lib/setsockopt.c: New file, based on winsock.c.
48053         * lib/shutdown.c: New file, based on winsock.c.
48054         * lib/socket.c: New file, based on winsock.c.
48055         * lib/w32sock.h: New file, based on winsock.c.
48056         * lib/winsock.c: Remove file.
48057         * modules/accept: Likewise.
48058         * modules/bind: Likewise.
48059         * modules/connect: Likewise.
48060         * modules/getpeername: Likewise.
48061         * modules/getsockname: Likewise.
48062         * modules/getsockopt: Likewise.
48063         * modules/ioctl: Likewise.
48064         * modules/listen: Likewise.
48065         * modules/recv: Likewise.
48066         * modules/recvfrom: Likewise.
48067         * modules/send: Likewise.
48068         * modules/sendto: Likewise.
48069         * modules/setsockopt: Likewise.
48070         * modules/shutdown: Likewise.
48071         * modules/socket: Use socket.c instead of winsock.c.
48072         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
48073         * doc/posix-functions/accept.texi: Doc fix.
48074         * doc/posix-functions/bind.texi: Doc fix.
48075         * doc/posix-functions/close.texi: Doc fix.
48076         * doc/posix-functions/connect.texi: Doc fix.
48077         * doc/posix-functions/getpeername.texi: Doc fix.
48078         * doc/posix-functions/getsockname.texi: Doc fix.
48079         * doc/posix-functions/getsockopt.texi: Doc fix.
48080         * doc/posix-functions/ioctl.texi: Doc fix.
48081         * doc/posix-functions/listen.texi: Doc fix.
48082         * doc/posix-functions/recv.texi: Doc fix.
48083         * doc/posix-functions/recvfrom.texi: Doc fix.
48084         * doc/posix-functions/send.texi: Doc fix.
48085         * doc/posix-functions/sendto.texi: Doc fix.
48086         * doc/posix-functions/setsockopt.texi: Doc fix.
48087         * doc/posix-functions/shutdown.texi: Doc fix.
48088         * doc/posix-functions/socket.texi: Doc fix.
48089
48090 2008-10-20  Bruno Haible  <bruno@clisp.org>
48091
48092         Take into account the role of SIGABRT_COMPAT on Windows 2008.
48093         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
48094         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
48095         as an alias for SIGABRT.
48096         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
48097         (sigaction): Map it to SIGABRT.
48098         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
48099
48100 2008-10-20  Bruno Haible  <bruno@clisp.org>
48101
48102         * lib/fts.c: Don't include lstat.h.
48103         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
48104
48105         Move the lstat() declaration to <sys/stat.h>.
48106         * lib/lstat.h: Remove file.
48107         * lib/sys_stat.in.h: Add special invocation convention.
48108         (lstat): New declaration.
48109         * lib/lstat.c (orig_lstat): New function.
48110         (rpl_lstat): Use orig_lstat instead of lstat.
48111         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
48112         AC_C_INLINE. Set REPLACE_LSTAT.
48113         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
48114         and REPLACE_LSTAT.
48115         * modules/lstat (Files): Remove lib/lstat.h.
48116         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48117         (Include): Specify <sys/stat.h> instead of lstat.h.
48118         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
48119         REPLACE_LSTAT.
48120         * NEWS: Mention the change.
48121
48122 2008-10-20  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/posix_spawn-tests: New file.
48125         * tests/test-posix_spawn3.c: New file.
48126
48127 2008-10-20  Bruno Haible  <bruno@clisp.org>
48128
48129         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
48130         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48131         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
48132         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48133         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
48134
48135 2008-10-20  Bruno Haible  <bruno@clisp.org>
48136
48137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
48138         of posix_spawn on AIX 5.3.
48139
48140 2008-10-20  Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
48143
48144 2008-10-20  Bruno Haible  <bruno@clisp.org>
48145
48146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
48147         of AC_LANG_PROGRAM.
48148
48149 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48150
48151         * lib/netdb.in.h: Don't define GNU specific constants until they
48152         are supported or needed.  Reported by Bruno Haible
48153         <bruno@clisp.org>.
48154
48155 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48156
48157         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
48158
48159 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48160
48161         * lib/getaddrinfo.h: Remove file.
48162         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
48163         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
48164         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
48165         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
48166         * modules/netdb: Substitute GNULIB_GETADDRINFO.
48167         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
48168         * tests/test-getaddrinfo.c: Likewise.
48169         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
48170         * NEWS: Mention change.
48171
48172 2008-10-19  Bruno Haible  <bruno@clisp.org>
48173
48174         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
48175
48176 2008-10-19  Bruno Haible  <bruno@clisp.org>
48177
48178         * lib/wait-process.c: Include simply <sys/wait.h>.
48179         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
48180         WIFSTOPPED): Remove fallback definitions.
48181         * modules/wait-process (Depends-on): Add sys_wait.
48182
48183         New module 'sys_wait'.
48184         * modules/sys_wait: New file.
48185         * lib/sys_wait.in.h: New file, partially copied from
48186         lib/wait-process.c.
48187         * m4/sys_wait_h.m4: New file.
48188         * doc/posix-headers/sys_wait.texi: Mention the new module.
48189
48190 2008-10-19  Bruno Haible  <bruno@clisp.org>
48191
48192         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
48193
48194 2008-10-19  Bruno Haible  <bruno@clisp.org>
48195
48196         Assume that waitpid() fills an 'int' status, not a 'union wait'.
48197         * lib/wait-process.c (WAIT_T): Remove type.
48198         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
48199         (wait_subprocess): Update.
48200
48201 2008-10-19  Bruno Haible  <bruno@clisp.org>
48202
48203         New module 'atoll'.
48204         * modules/atoll: New file.
48205         * lib/stdlib.in.h (atoll): New declaration.
48206         * lib/atoll.c: New file, from glibc with modifications.
48207         * m4/atoll.m4: New file.
48208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
48209         HAVE_ATOLL.
48210         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
48211         * doc/posix-functions/atoll.texi: Mention the new module.
48212
48213 2008-10-19  Bruno Haible  <bruno@clisp.org>
48214
48215         Add strtoull() declaration to <stdlib.h>.
48216         * lib/stdlib.in.h (strtoull): New declaration.
48217         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48218         Set HAVE_STRTOULL.
48219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
48220         HAVE_STRTOULL.
48221         * modules/strtoull (Depends-on): Add stdlib.
48222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48223         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48224         HAVE_STRTOULL.
48225
48226 2008-10-19  Bruno Haible  <bruno@clisp.org>
48227
48228         Add strtoll() declaration to <stdlib.h>.
48229         * lib/stdlib.in.h (strtoll): New declaration.
48230         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48231         Set HAVE_STRTOLL.
48232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48233         HAVE_STRTOLL.
48234         * modules/strtoll (Depends-on): Add stdlib.
48235         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48236         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48237
48238 2008-10-19  Bruno Haible  <bruno@clisp.org>
48239
48240         * modules/bcopy (Depends-on): Add strings.
48241         (Include): Specify <strings.h>.
48242
48243 2008-10-19  Bruno Haible  <bruno@clisp.org>
48244
48245         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48246
48247 2008-10-19  Bruno Haible  <bruno@clisp.org>
48248
48249         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48250         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48251         mingw.
48252
48253 2008-10-19  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/atanl.c: Don't include isnanl.h.
48256         * lib/cosl.c: Likewise.
48257         * lib/ldexpl.c: Likewise.
48258         * lib/logl.c: Likewise.
48259         * lib/sinl.c: Likewise.
48260         * lib/sqrtl.c: Likewise.
48261         * lib/tanl.c: Likewise.
48262
48263         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48264         * lib/isnanf.h: Remove file.
48265         * lib/isnand.h: Remove file.
48266         * lib/isnanl.h: Remove file.
48267         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48268         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48269         macros.
48270         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48271         HAVE_ISNANF, don't define it as a C macro.
48272         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48273         HAVE_ISNAND, don't define it as a C macro.
48274         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48275         HAVE_ISNANL, don't define it as a C macro.
48276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48277         HAVE_ISNAN[FDL].
48278         * modules/isnanf (Files): Remove lib/isnanf.h.
48279         (Depends-on): Add math.
48280         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48281         (Include): Specify <math.h> instead of isnanf.h.
48282         * modules/isnand (Files): Remove lib/isnand.h.
48283         (Depends-on): Add math.
48284         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48285         (Include): Specify <math.h> instead of isnand.h.
48286         * modules/isnanl (Files): Remove lib/isnanl.h.
48287         (Depends-on): Add math.
48288         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48289         (Include): Specify <math.h> instead of isnanl.h.
48290         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48291         HAVE_ISNAN[FDL].
48292         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48293         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48294         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48295         * NEWS: Mention the change.
48296
48297 2008-10-18  Bruno Haible  <bruno@clisp.org>
48298
48299         Add getusershell(), setusershell(), endusershell() declarations to
48300         <unistd.h>.
48301         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48302         declarations.
48303         * lib/getusershell.c: Include unistd.h.
48304         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48305         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48306         HAVE_GETUSERSHELL.
48307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48308         and HAVE_GETUSERSHELL.
48309         * modules/getusershell (Depends-on): Add unistd, extensions.
48310         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48311         (Include): Specify <unistd.h>.
48312         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48313         HAVE_GETUSERSHELL.
48314
48315 2008-10-18  Bruno Haible  <bruno@clisp.org>
48316
48317         Add a getloadavg() declaration to <stdlib.h>.
48318         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48319         getloadavg declaration.
48320         (getloadavg): New declaration.
48321         * lib/getloadavg.c: Include <stdlib.h> first.
48322         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48323         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48324         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48326         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48327         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48329         (Include): Specify <stdlib.h>.
48330         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48331         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48332
48333 2008-10-18  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/dirchownmod.c: Don't include lchmod.h.
48336
48337         Move the lchmod() declaration to <sys/stat.h>.
48338         * lib/lchmod.h: Remove file.
48339         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48340         (lchmod): New declaration, moved here from lib/lchown.h.
48341         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48342         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48344         and HAVE_LCHMOD.
48345         * modules/lchmod (Files): Remove lib/lchmod.h.
48346         (Depends-on): Add sys_stat, extensions.
48347         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48348         (Include): Specify <sys/stat.h> instead of lchmod.h.
48349         * modules/sys_stat (Depends-on): Add link-warning.
48350         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48351         definition of GL_LINK_WARNING.
48352         * NEWS: Mention the change.
48353
48354 2008-10-18  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/fchdir.c: Don't include dirfd.h.
48357         * lib/fts.c: Likewise.
48358         * lib/getcwd.c: Likewise.
48359         * lib/glob.c: Likewise.
48360
48361         Move the dirfd() declaration to <dirent.h>.
48362         * lib/dirfd.h: Remove file.
48363         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48364         (dirfd): New declaration.
48365         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48366         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48367         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48368         HAVE_DECL_DIRFD.
48369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48370         HAVE_DECL_DIRFD.
48371         * modules/dirfd (Files): Remove lib/dirfd.h.
48372         (Depends-on): Add dirent, extensions.
48373         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48374         (Include): Specify <dirent.h> instead of dirfd.h.
48375         * modules/dirent (Depends-on): Add link-warning.
48376         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48377         definition of GL_LINK_WARNING.
48378         * NEWS: Mention the change.
48379
48380 2008-10-18  Bruno Haible  <bruno@clisp.org>
48381
48382         Move the euidaccess() declaration to <unistd.h>.
48383         * lib/euidaccess.h: Remove file.
48384         * lib/unistd.in.h (euidaccess): New declaration.
48385         * lib/euidaccess.c: Don't include euidaccess.h.
48386         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48387         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48389         and HAVE_EUIDACCESS.
48390         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48391         (Depends-on): Add unistd.
48392         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48393         (Include): Specify <unistd.h> instead of euidaccess.h.
48394         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48395         HAVE_EUIDACCESS.
48396         * NEWS: Mention the change.
48397
48398 2008-10-18  Bruno Haible  <bruno@clisp.org>
48399
48400         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48401
48402         Move the getdomainname() declaration to <unistd.h>.
48403         * lib/getdomainname.h: Remove file.
48404         * lib/unistd.in.h (getdomainname): New declaration.
48405         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48406         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48407         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48408         HAVE_GETDOMAINNAME.
48409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48410         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48411         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48412         (Depends-on): Add unistd, extensions.
48413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48414         (Includes): Specify <unistd.h> instead of getdomainname.h.
48415         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48416         HAVE_GETDOMAINNAME.
48417         * NEWS: Mention the change.
48418
48419 2008-10-18  Bruno Haible  <bruno@clisp.org>
48420
48421         * modules/dirent: New file.
48422         * m4/dirent_h.m4: New file.
48423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48424         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48425         * modules/fchdir (Files): Remove lib/dirent.in.h.
48426         (Depends-on): Add dirent.
48427         (Makefile.am): Move rules to modules/dirent.
48428         * doc/posix-headers/dirent.texi: Mention the new module.
48429
48430 2008-10-18  Bruno Haible  <bruno@clisp.org>
48431
48432         Avoid -Wunused-parameter warnings in public gnulib header files.
48433         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48434         macro.
48435         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48436
48437 2008-10-18  Bruno Haible  <bruno@clisp.org>
48438
48439         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48440         * doc/glibc-functions/error.texi: Mention the module 'error'.
48441         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48442         * doc/glibc-functions/getdomainname.texi: Mention the module
48443         'getdomainname'.
48444         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48445         * doc/glibc-functions/getpagesize.texi: Mention the module
48446         'getpagesize'.
48447         * doc/glibc-functions/getusershell.texi: Mention the module
48448         'getusershell'.
48449         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48450         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48451         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48452         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48453         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48454         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48455         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48456         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48457         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48458         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48459         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48460         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48461         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48462         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48463
48464 2008-10-17  Bruno Haible  <bruno@clisp.org>
48465
48466         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48467         HP-UX and IRIX, use -0.0L.
48468         * tests/test-ceill.c (minus_zero): Likewise.
48469         * tests/test-floorl.c (minus_zero): Likewise.
48470         * tests/test-frexpl.c (minus_zero): Likewise.
48471         * tests/test-isnan.c (minus_zerol): Likewise.
48472         * tests/test-isnanl.h (minus_zero): Likewise.
48473         * tests/test-ldexpl.c (minus_zero): Likewise.
48474         * tests/test-roundl.c (minus_zero): Likewise.
48475         * tests/test-signbit.c (minus_zerol): Likewise.
48476         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48477         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48478         * tests/test-truncl.c (minus_zero): Likewise.
48479         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48480         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48481         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48482         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48483
48484 2008-10-17  Bruno Haible  <bruno@clisp.org>
48485
48486         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48487         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48488         that it gets activated only for gcc >= 3.0.
48489         * lib/dirent.in.h: Likewise.
48490         * lib/errno.in.h: Likewise.
48491         * lib/fcntl.in.h: Likewise.
48492         * lib/float.in.h: Likewise.
48493         * lib/iconv.in.h: Likewise.
48494         * lib/inttypes.in.h: Likewise.
48495         * lib/locale.in.h: Likewise.
48496         * lib/math.in.h: Likewise.
48497         * lib/netdb.in.h: Likewise.
48498         * lib/netinet_in.in.h: Likewise.
48499         * lib/search.in.h: Likewise.
48500         * lib/signal.in.h: Likewise.
48501         * lib/spawn.in.h: Likewise.
48502         * lib/stdarg.in.h: Likewise.
48503         * lib/stdint.in.h: Likewise.
48504         * lib/stdio.in.h: Likewise.
48505         * lib/stdlib.in.h: Likewise.
48506         * lib/string.in.h: Likewise.
48507         * lib/strings.in.h: Likewise.
48508         * lib/sys_file.in.h: Likewise.
48509         * lib/sys_ioctl.in.h: Likewise.
48510         * lib/sys_select.in.h: Likewise.
48511         * lib/sys_socket.in.h: Likewise.
48512         * lib/sys_stat.in.h: Likewise.
48513         * lib/sys_time.in.h: Likewise.
48514         * lib/sysexits.in.h: Likewise.
48515         * lib/time.in.h: Likewise.
48516         * lib/unistd.in.h: Likewise.
48517         * lib/wchar.in.h: Likewise.
48518         * lib/wctype.in.h: Likewise.
48519         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48520
48521 2008-10-17  Jim Meyering  <meyering@redhat.com>
48522
48523         ignore-value: don't depend on inline module
48524         * modules/ignore-value (Depends-on): Remove 'inline'.
48525         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48526         Suggestion from Bruno Haible.
48527
48528 2008-10-17  Bruno Haible  <bruno@clisp.org>
48529
48530         New implementation of condition variables for Win32.
48531         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48532         (gl_linked_waitqueue_t): New type.
48533         (gl_cond_t): Use it.
48534         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48535         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48536         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48537         (glthread_cond_init_func, glthread_cond_wait_func,
48538         glthread_cond_timedwait_func, glthread_cond_signal_func,
48539         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48540         Reimplemented on the basis of gl_linked_waitqueue_t.
48541         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48542         gl_waitqueue_t.
48543         (gl_rwlock_t): Update.
48544         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48545
48546 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48547
48548         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48549         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48550
48551 2008-10-17  Jim Meyering  <meyering@redhat.com>
48552
48553         ignore-value: new module
48554         * modules/ignore-value: New file.
48555         * lib/ignore-value.h: New file.
48556         * MODULES.html.sh (Compiler warning management): New section,
48557         just for this module.  More to come.
48558
48559 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48560
48561         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48562         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48563         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48564
48565 2008-10-16  Jim Meyering  <meyering@redhat.com>
48566
48567         openat-die.c: avoid 'no previous prototype' warning
48568         * lib/openat-die.c: Include "openat.h".
48569         Reported by Reuben Thomas <rrt@sc3d.org>.
48570
48571 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48572
48573         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48574         * lib/netdb.in.h: Fix typo.
48575         Reported by Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/netdb.in.h: Include sys/socket.h for platforms without
48578         netdb.h, to get structures like hostent on MinGW.
48579         * modules/netdb (Depends-on): Add sys_socket.
48580
48581 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48582
48583         * modules/netdb, modules/netdb-tests: New file.
48584         * m4/netdb_h.m4: New file.
48585         * lib/netdb.in.h: Add, currently just an empty file pending
48586         definitions.
48587         * tests/test-netdb.c: New file.
48588         * doc/posix-headers/netdb.texi: Mention that we replace it if
48589         needed.
48590         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48591         netdb.
48592
48593 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48594
48595         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48596         with code.
48597
48598 2008-10-13  Bruno Haible  <bruno@clisp.org>
48599
48600         * lib/glthread/cond.c (glthread_cond_wait_func,
48601         glthread_cond_timedwait_func): Add a comment.
48602
48603 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48604
48605         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48606         * tests/test-select.c: Likewise,
48607
48608 2008-10-13  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/glthread/cond.c (glthread_cond_wait_func,
48611         glthread_cond_timedwait_func): Fix variable name.
48612         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48613
48614 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48615
48616         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48617         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48618         struct sockaddr.sa_len.
48619         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48620
48621 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48622
48623         * build-aux/pmccabe2html: Add css and css_url parameters.
48624
48625 2008-10-12  Bruno Haible  <bruno@clisp.org>
48626
48627         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48628         calling aclx_get.
48629         Reported by Rainer Tammer <tammer@tammer.net>.
48630
48631 2008-10-12  Bruno Haible  <bruno@clisp.org>
48632
48633         Use msvcrt aware primitives for creation/termination of Win32 threads.
48634         * lib/glthread/thread.c: Include <process.h>.
48635         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48636         (wrapper_func): Update signature.
48637         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48638
48639 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48640             Bruno Haible  <bruno@clisp.org>
48641
48642         Provide a Win32 implementation of the 'cond' module.
48643         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48644         * lib/glthread/cond.c (glthread_cond_init_func,
48645         glthread_cond_wait_func, glthread_cond_timedwait_func,
48646         glthread_cond_signal_func, glthread_cond_broadcast_func,
48647         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48648         * modules/cond (Dependencies): Add gettimeofday.
48649
48650 2008-10-11  Bruno Haible  <bruno@clisp.org>
48651
48652         Make sleep work on older versions of mingw.
48653         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48654         only whether it exists.
48655         * doc/posix-functions/sleep.texi: Mention the problem with older
48656         versions of mingw.
48657
48658 2008-10-11  Bruno Haible  <bruno@clisp.org>
48659
48660         New module 'shutdown'.
48661         * modules/shutdown: New file.
48662         * lib/sys_socket.in.h (shutdown): New declaration.
48663         * lib/winsock.c (shutdown): New function.
48664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48665         GNULIB_SHUTDOWN.
48666         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48667         * doc/posix-functions/shutdown.texi: Document the new module.
48668
48669 2008-10-11  Jim Meyering  <meyering@redhat.com>
48670
48671         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48672
48673 2008-10-11  Bruno Haible  <bruno@clisp.org>
48674
48675         New module 'fclose'.
48676         * modules/fclose: New file.
48677         * lib/stdio.in.h (fclose): New declaration.
48678         * lib/fclose.c: New file.
48679         * m4/fclose.m4: New file.
48680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48681         REPLACE_FCLOSE.
48682         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48683         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48684         REPLACE_FCLOSE.
48685         * modules/close (Depends-on): fclose.
48686         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48687
48688 2008-10-11  Bruno Haible  <bruno@clisp.org>
48689
48690         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48691         set errno and don't call _close.
48692
48693 2008-10-10  Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48696         ACL, not afterwards. Fixes test failure on Cygwin.
48697
48698 2008-10-09  Ben Pfaff  <blp@gnu.org>
48699
48700         * build-aux/announce-gen: Fix gnulib version related part of usage
48701         message.  Die with a useful error message if no tarballs are
48702         found.
48703
48704 2008-10-10  Jim Meyering  <meyering@redhat.com>
48705
48706         bootstrap: use git's --depth=N option only if it's supported
48707         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48708         recognize the --depth option.  Reported by Pádraig Brady.
48709
48710 2008-10-09  Bruno Haible  <bruno@clisp.org>
48711
48712         New module 'ioctl'.
48713         * modules/ioctl: New file.
48714         * lib/sys_socket.in.h (ioctl): Remove declaration.
48715         * lib/winsock.c: Include <sys/ioctl.h>.
48716         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48717         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48718         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48719         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48720         * doc/posix-functions/ioctl.texi: Mention the new module.
48721
48722 2008-10-09  Bruno Haible  <bruno@clisp.org>
48723
48724         New module 'sys_ioctl'.
48725         * lib/sys_ioctl.in.h: New file.
48726         * m4/sys_ioctl_h.m4: New file.
48727         * modules/sys_ioctl: New file.
48728         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48729
48730 2008-10-09  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48733         * lib/winsock.c: Include <stdarg.h>.
48734         (rpl_ioctl): Change to second argument 'int' and then varargs.
48735
48736 2008-10-09  Bruno Haible  <bruno@clisp.org>
48737
48738         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48739         when the sys_socket module is present and the system has <winsock2.h>.
48740
48741 2008-10-09  Bruno Haible  <bruno@clisp.org>
48742
48743         * doc/posix-functions/close.texi: Mention module 'close' instead of
48744         module 'sys_socket'.
48745
48746 2008-10-09  Bruno Haible  <bruno@clisp.org>
48747
48748         * doc/glibc-headers/sys_ioctl.texi: New file.
48749         * doc/gnulib.texi: Include it.
48750
48751 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48752             Bruno Haible  <bruno@clisp.org>
48753
48754         Combine the two replacements of 'close'.
48755         * lib/sys_socket.in.h (close): Define to a reminder to include
48756         <unistd.h>.
48757         (_gl_close_fd_maybe_socket): New declaration.
48758         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48759         * lib/winsock.c (close): Remove undefinition.
48760         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48761         needed for the gnulib module 'close'.
48762         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48763         define to an error symbol or to a warning, if suitable.
48764         * lib/close.c: Include <sys/socket.h>.
48765         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48766         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48767         UNISTD_H_HAVE_WINSOCK2_H.
48768         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48770         UNISTD_H_HAVE_WINSOCK2_H.
48771         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48772         (configure.ac): Set a module indicator.
48773         (Makefile.am): Substitute GNULIB_CLOSE.
48774         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48775         * modules/poll-tests (Depends-on): Add close.
48776         * modules/select-tests (Depends-on): Likewise.
48777
48778 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48779             Bruno Haible  <bruno@clisp.org>
48780
48781         New module 'close'.
48782         * modules/close: New file.
48783         * lib/unistd.in.h (close): Move declaration out of the
48784         FCHDIR_REPLACEMENT scope.
48785         (_gl_unregister_fd): New declaration.
48786         * lib/close.c: New file.
48787         * lib/fchdir.c (rpl_close): Remove function.
48788         * m4/close.m4: New file.
48789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48790         close.
48791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48792         REPLACE_CLOSE.
48793         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48794         REPLACE_CLOSE.
48795         * modules/fchdir (Depends-on): Add close.
48796
48797 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48798             Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/fcntl.in.h (open): Simplify conditionals.
48801         (_gl_register_fd): New declaration.
48802         * lib/fchdir.c (rpl_open): Remove function.
48803         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48804         also.
48805         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48807         open.
48808
48809 2008-10-09  Jim Meyering  <meyering@redhat.com>
48810
48811         GNUmakefile: use the more name-space-friendly "_version"
48812         * top/GNUmakefile (_dummy): Update.
48813         (_version): Rename from "version".
48814
48815 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48816             Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48819         rpl_close.
48820         (_gl_register_fd): New function, extracted from rpl_open.
48821         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48822         (rpl_open, rpl_opendir): Use _gl_register_fd.
48823
48824 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48825
48826         Fix organization of 'open' replacement.
48827         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48828         (gl_FUNC_OPEN): Use it.
48829         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48830
48831 2008-10-08  Bruno Haible  <bruno@clisp.org>
48832
48833         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48834
48835 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48836
48837         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48838         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48839         listen).
48840
48841 2008-10-08  Eric Blake  <ebb9@byu.net>
48842
48843         GNUmakefile: add 'make version' target
48844         * top/GNUmakefile (_curr-ver): Split version update rules...
48845         (version): ...into a target.
48846
48847 2008-10-07  Bruno Haible  <bruno@clisp.org>
48848
48849         Use a more portable replacement expression for -0.0L.
48850         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48851         instead of -0.0L. Fix m4 quotation.
48852
48853         * tests/test-signbit.c: Include <float.h>.
48854         (minus_zero): New variable.
48855         (test_signbitl): Use minus_zero instead of -zero.
48856         * modules/signbit-tests (Depends-on): Add float.
48857
48858         * tests/test-ceill.c: Include <float.h>.
48859         (zero): Remove variable.
48860         (minus_zero): New variable.
48861         (main): Use minus_zero instead of -zero.
48862         * modules/ceill-tests (Depends-on): Add float.
48863
48864         * tests/test-floorl.c: Include <float.h>.
48865         (zero): Remove variable.
48866         (minus_zero): New variable.
48867         (main): Use minus_zero instead of -zero.
48868         * modules/floorl-tests (Depends-on): Add float.
48869
48870         * tests/test-roundl.c: Include <float.h>.
48871         (zero): Remove variable.
48872         (minus_zero): New variable.
48873         (main): Use minus_zero instead of -zero.
48874         * modules/roundl-tests (Depends-on): Add float.
48875
48876         * tests/test-truncl.c: Include <float.h>.
48877         (zero): Remove variable.
48878         (minus_zero): New variable.
48879         (main): Use minus_zero instead of -zero.
48880         * modules/truncl-tests (Depends-on): Add float.
48881
48882         * tests/test-frexpl.c (zero): Remove variable.
48883         (minus_zero): New variable.
48884         (main): Use minus_zero instead of -zero.
48885         * modules/frexpl-tests (Depends-on): Add float.
48886
48887         * tests/test-isnan.c (zerol): Remove variable.
48888         (minus_zerol): New variable.
48889         (test_long_double): Use minus_zerol instead of -zerol.
48890         * modules/isnan-tests (Depends-on): Add float.
48891
48892         * tests/test-isnanl.h (zero): Remove variable.
48893         (minus_zero): New variable.
48894         (main): Use minus_zero instead of -zero.
48895         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48896         * modules/isnanl-tests (Depends-on): Add float.
48897
48898         * tests/test-ldexpl.c (zero): Remove variable.
48899         (minus_zero): New variable.
48900         (main): Use minus_zero instead of -zero.
48901         * modules/ldexpl-tests (Depends-on): Add float.
48902
48903         * tests/test-snprintf-posix.h (zerol): Remove variable.
48904         (minus_zerol): New variable.
48905         (test_function): Use minus_zerol instead of -zerol.
48906         * modules/snprintf-posix-tests (Depends-on): Add float.
48907         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48908
48909         * tests/test-sprintf-posix.h (zerol): Remove variable.
48910         (minus_zerol): New variable.
48911         (test_function): Use minus_zerol instead of -zerol.
48912         * modules/sprintf-posix-tests (Depends-on): Add float.
48913         * modules/vsprintf-posix-tests (Depends-on): Add float.
48914
48915         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48916         (minus_zerol): New variable.
48917         (test_function): Use minus_zerol instead of -zerol.
48918         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48919
48920         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48921         (minus_zerol): New variable.
48922         (test_function): Use minus_zerol instead of -zerol.
48923         * modules/vasprintf-posix-tests (Depends-on): Add float.
48924
48925 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48926
48927         * MODULES.html.sh (Support for building documentation): Mention
48928         pmccabe2html.  Sort entries.
48929
48930         Add pmccabe2html module, from gnupdf.
48931         * build-aux/pmccabe.css: New file.
48932         * build-aux/pmccabe2html: New file.
48933         * m4/pmccabe2html.m4: New file.
48934         * modules/pmccabe2html: New file.
48935
48936 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48937
48938         flock: new module
48939         * MODULES.html.sh: Add to list of modules.
48940         * lib/flock.c: flock implementation for Windows and Unix systems
48941         which have fcntl.
48942         * doc/glibc-functions/flock.texi: Update documentation.
48943         * lib/sys_file.in.h: <sys/file.h> header file.
48944         * m4/flock.m4: M4 macros.
48945         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48946         * modules/flock: flock module.
48947         * modules/flock-tests: flock tests module.
48948         * modules/sys_file: sys/file.h module.
48949         * tests/test-flock.c: test suite for flock.
48950
48951 2008-10-06  Jim Meyering  <meyering@redhat.com>
48952
48953         bootstrap: check for LT_INIT more portably still ;-)
48954         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48955         Spotted by Bruno Haible.
48956
48957 2008-10-06  Eric Blake  <ebb9@byu.net>
48958
48959         test-signbit: avoid tripping Irix cc bug on -0.0L
48960         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48961         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48962         entire testsuite consistent and avoids an Irix 6.2 bug.
48963
48964 2008-10-05  Bruno Haible  <bruno@clisp.org>
48965             Jim Meyering  <jim@meyering.net>
48966
48967         Add an option for ignoring EPIPE during close_stdout.
48968         * lib/closeout.h: Include <stdbool.h>.
48969         (close_stdout_set_ignore_EPIPE): New declaration.
48970         * lib/closeout.c: Include <stdbool.h>.
48971         (ignore_EPIPE): New variable.
48972         (close_stdout_set_ignore_EPIPE): New function.
48973         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48974         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48975         failure.
48976         * modules/closeout (Depends-on): Add stdbool.
48977
48978 2008-10-05  Bruno Haible  <bruno@clisp.org>
48979
48980         * modules/accept: New file.
48981         * modules/bind: New file.
48982         * modules/connect: New file.
48983         * modules/getpeername: New file.
48984         * modules/getsockname: New file.
48985         * modules/getsockopt: New file.
48986         * modules/listen: New file.
48987         * modules/recv: New file.
48988         * modules/recvfrom: New file.
48989         * modules/send: New file.
48990         * modules/sendto: New file.
48991         * modules/setsockopt: New file.
48992         * modules/socket: New file.
48993         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48994         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48995         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48996         the particular module is requested. Add a link warning when the
48997         particular module is not requested.
48998         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48999         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
49000         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
49001         the particular module is requested.
49002         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
49003         gl_SYS_SOCKET_H_DEFAULTS): New macros.
49004         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
49005         * modules/sys_socket (Depends-on): Add link-warning.
49006         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
49007         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
49008         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
49009         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
49010         GL_LINK_WARNING.
49011         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
49012         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
49013         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
49014         * doc/posix-functions/getpeername.texi: Mention the new module
49015         'getpeername'.
49016         * doc/posix-functions/getsockname.texi: Mention the new module
49017         'getsockname'.
49018         * doc/posix-functions/getsockopt.texi: Mention the new module
49019         'getsockopt'.
49020         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
49021         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
49022         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
49023         * doc/posix-functions/send.texi: Mention the new module 'send'.
49024         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
49025         * doc/posix-functions/setsockopt.texi: Mention the new module
49026         'setsockopt'.
49027         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
49028         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
49029         listen, connect, accept.
49030         * modules/select-tests (Depends-on): Likewise.
49031
49032 2008-10-05  Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/winsock.c (strerror): Remove unused #undef.
49035         (rpl_close): Remove unused local variable.
49036
49037         * modules/sys_socket (Depends-on); Add errno.
49038
49039 2008-10-05  Bruno Haible  <bruno@clisp.org>
49040
49041         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
49042         (select): Add a link warning when the 'select' module is not used.
49043         * modules/sys_select (Depends-on): Add link-warning.
49044         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
49045         Suggested by Paolo Bonzini.
49046
49047 2008-10-05  Jim Meyering  <meyering@redhat.com>
49048
49049         bootstrap: check for LT_INIT more portably
49050         * build-aux/bootstrap: Avoid using grep -E, since it's not
49051         portable enough.  Suggestion from Bruno Haible.
49052
49053 2008-10-05  Bruno Haible  <bruno@clisp.org>
49054
49055         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
49056         as being fixed by gnulib.
49057
49058 2008-10-05  Bruno Haible  <bruno@clisp.org>
49059
49060         * modules/select-tests: New file, mostly copied from
49061         modules/sys_select-tests.
49062         * tests/test-select.c: New file, mostly copied from
49063         tests/test-sys_select.c.
49064         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
49065         * modules/sys_select-tests (Depends-on): Remove all dependencies.
49066         (Makefile.am): Remove test_sys_select_LDADD.
49067
49068         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
49069         to an undefined symbol, for an error message.
49070         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
49071         (gl_SYS_SELECT_H_DEFAULTS): New macro.
49072         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
49073         winsock-select.c here.
49074         * modules/sys_select (Files): Remove lib/winsock-select.c.
49075         (Depends-on): Remove alloca.
49076         (Makefile.am): Substitute GNULIB_SELECT.
49077         * modules/select: New file.
49078         * doc/posix-functions/select.texi: Update.
49079
49080 2008-10-05  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
49083         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
49084         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
49085         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
49086         getdtablesize.
49087         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
49088         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
49089
49090 2008-10-05  Bruno Haible  <bruno@clisp.org>
49091
49092         * modules/getdtablesize-tests: New file.
49093         * tests/test-getdtablesize.c: New file.
49094
49095         New module 'getdtablesize'.
49096         * lib/unistd.in.h (getdtablesize): New declaration.
49097         * lib/getdtablesize.c: New file.
49098         * m4/getdtablesize.m4: New file.
49099         * modules/getdtablesize: New file.
49100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49101         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
49102         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
49103         HAVE_GETDTABLESIZE.
49104         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
49105
49106 2008-10-05  Bruno Haible  <bruno@clisp.org>
49107
49108         * modules/sched (Makefile.am): Fix typo.
49109         Reported by Simon Josefsson.
49110
49111 2008-10-05  Jim Meyering  <meyering@redhat.com>
49112
49113         bootstrap: check for LT_INIT, too
49114         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
49115         are deprecated.  Suggestion from Ralf Wildenhues.
49116
49117 2008-10-05  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
49120         overriding them by ours.
49121         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
49122
49123 2008-10-05  Jim Meyering  <meyering@redhat.com>
49124
49125         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
49126         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
49127         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
49128
49129 2008-10-04  Bruno Haible  <bruno@clisp.org>
49130
49131         * modules/dup2 (License): Change to LGPLv2+.
49132         * modules/sleep (License): Likewise.
49133         * modules/perror (License): Likewise.
49134         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
49135         Blake.
49136         * modules/signal (License): Likewise.
49137         * modules/sigprocmask (License): Likewise.
49138         * modules/raise (License): Change to LGPLv2+, with approval by Jim
49139         Meyering.
49140
49141 2008-10-04  Bruno Haible  <bruno@clisp.org>
49142
49143         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
49144         Reported by Rainer Tammer <tammer@tammer.net>.
49145
49146 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
49147             Bruno Haible  <bruno@clisp.org>
49148
49149         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
49150         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
49151         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
49152
49153 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
49154
49155         filevercmp: new module
49156         * lib/filevercmp.h: New function filevercmp comparing version strings.
49157         * lib/filevercmp.c: Implementation of filevercmp function.
49158         * modules/filevercmp: Module metadata.
49159         * tests/test-filevercmp.c: Unit test for new module.
49160         * modules/filevercmp-tests: Unit test metadata.
49161         * MODULES.html.sh: Add filevercmp module.
49162
49163 2008-10-03  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/c-ctype.h: Add comment.
49166         Reported by Jim Meyering.
49167
49168 2008-10-02  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/posix_spawn-internal (Depends-on): Add 'open'.
49171
49172 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49173
49174         * build-aux/bootstrap: Allow renaming bootstrap, and change the
49175         name of bootstrap.conf accordingly.
49176
49177 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49178
49179         * build-aux/bootstrap: Install git-merge-changelog configuration
49180         items into .gitconfig if needed.
49181
49182 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49183
49184         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
49185         git repository, and initialize/update it accordingly.
49186
49187 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
49188
49189         * modules/fsync-tests: New file.
49190         * tests/test-fsync.c: New file.
49191
49192         New module 'fsync'.
49193         * lib/fsync.c: New file.
49194         * m4/fsync.m4: New file.
49195         * modules/fsync: New file.
49196         * lib/unistd.in.h (fsync): New declaration.
49197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
49198         GNULIB_FSYNC and HAVE_FSYNC.
49199         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
49200         * MODULES.html.sh (posix_functions): Add fsync.
49201         * doc/posix-functions/fsync.texi: Mention the new module.
49202
49203 2008-10-02  Jim Meyering  <meyering@redhat.com>
49204
49205         fts.c: sync with similar code from coreutils' remove.c
49206         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
49207         Guard also with "#if defined __linux__", since for now at least,
49208         this code is Linux-kernel-specific.
49209
49210 2008-10-02  Jim Meyering  <meyering@redhat.com>
49211
49212         fts: bug fixes
49213         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
49214         Include <sys/vfs.h>, not <sys/statfs.h>.
49215
49216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
49217         Include <sys/vfs.h>, not <sys/statfs.h>.
49218
49219 2008-10-01  Bruno Haible  <bruno@clisp.org>
49220
49221         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49223         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49224         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49225         * doc/posix-functions/posix_spawnp.texi: Likewise.
49226         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49227         whether posix_spawn actually works.
49228         * m4/pipe.m4 (gl_PIPE): Likewise.
49229         * modules/execute (Files): Add m4/posix_spawn.m4.
49230         * modules/pipe (Files): Add m4/posix_spawn.m4.
49231         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49232
49233 2008-10-01  Jim Meyering  <meyering@redhat.com>
49234
49235         remove trailing spaces
49236         * NEWS: Likewise.
49237         * lib/poll.c (poll): Likewise.
49238         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49239         * lib/winsock.c (rpl_close): Likewise.
49240         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49241         * modules/yield: Likewise.
49242         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49243         * tests/test-sys_select.c (connect_to_socket): Likewise.
49244
49245         fts.c: adjust a new interface to be more generally useful
49246         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49247         (fts_build): Adjust caller.
49248
49249 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49250
49251         * modules/cond-tests: New file.
49252         * tests/test-cond.c: New file.
49253
49254 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49255             Bruno Haible  <bruno@clisp.org>
49256
49257         * modules/cond (Dependencies): Add errno, time.
49258         * lib/glthread/cond.h: Include <time.h>.
49259         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49260         across platforms.
49261
49262 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49263             Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49266
49267 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49268             Bruno Haible  <bruno@clisp.org>
49269
49270         * modules/tls-tests (Depends-on): Add thread, yield.
49271         (configure.ac): Remove all checks.
49272         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49273         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49274         gl_thread_self): Remove definitions. Include glthread/thread.h and
49275         glthread/yield.h instead.
49276         (test_tls): Pass an additional NULL argument to gl_thread_join.
49277
49278 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49279             Bruno Haible  <bruno@clisp.org>
49280
49281         * modules/lock-tests (Depends-on): Add thread, yield.
49282         (configure.ac): Remove all checks.
49283         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49284         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49285         gl_thread_self): Remove definitions. Include glthread/thread.h and
49286         glthread/yield.h instead.
49287         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49288         additional NULL argument to gl_thread_join.
49289
49290 2008-09-30  Bruno Haible  <bruno@clisp.org>
49291
49292         Fix the Win32 implementation of the 'thread' module.
49293         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49294         pointer type.
49295         (gl_thread_self): Invoke gl_thread_self_func.
49296         (gl_thread_self_func): New declaration.
49297         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49298         (do_init_self_key, init_self_key): New functions.
49299         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49300         Remove some fields.
49301         (running_threads, running_lock): Remove variables.
49302         (get_current_thread_handle): New function.
49303         (gl_thread_self_func, wrapper_func, glthread_create_func,
49304         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49305         simplified.
49306
49307 2008-09-30  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49310         files.
49311
49312 2008-09-30  Jim Meyering  <meyering@redhat.com>
49313
49314         fts.m4: correct the test for statfs.f_type
49315         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49316         when checking for statfs.f_type.
49317
49318 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49319
49320         tests: avoid some compiler warnings
49321         * tests/test-memchr.c (main): Pass NULL indirectly.
49322         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49323
49324 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49325
49326         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49327         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49328         exactly specified dayshifts.
49329         (dayshift): New rule.
49330         (rel): Add dayshift.
49331         (relative_time_table) [tomorrow, yesterday, today, now]:
49332         Use tDAY_SHIFT in place of tDAY_UNIT.
49333         * tests/test-getdate.c: Add tests for now-disallowed countable
49334         dayshifts, e.g., "4 yesterday ago".
49335
49336 2008-09-29  Bruno Haible  <bruno@clisp.org>
49337
49338         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49339         * tests/test-posix_spawn1.in.sh: Renamed from
49340         tests/test-posix_spawn.in.sh.
49341         * tests/test-posix_spawn2.c: New file.
49342         * tests/test-posix_spawn2.in.sh: New file.
49343         * modules/posix_spawnp-tests (Files): Update.
49344         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49345
49346 2008-09-29  Bruno Haible  <bruno@clisp.org>
49347
49348         Propagate effects of putenv/setenv/unsetenv to child processes.
49349         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49350         * lib/pipe.c (create_pipe): Likewise.
49351
49352 2008-09-29  Bruno Haible  <bruno@clisp.org>
49353
49354         Enable use of shell scripts as executables in mingw.
49355         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49356         run the program as a shell script.
49357         * lib/pipe.c (create_pipe): Likewise.
49358         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49359         resulting array.
49360
49361 2008-09-29  Eric Blake  <ebb9@byu.net>
49362
49363         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49364
49365 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49366
49367         * doc/posix-functions/accept.texi: Update mingw problems.
49368         * doc/posix-functions/bind.texi: Update mingw problems.
49369         * doc/posix-functions/close.texi: Update mingw problems.
49370         * doc/posix-functions/connect.texi: Update mingw problems.
49371         * doc/posix-functions/getpeername.texi: Update mingw problems.
49372         * doc/posix-functions/getsockname.texi: Update mingw problems.
49373         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49374         * doc/posix-functions/ioctl.texi: Update mingw problems.
49375         * doc/posix-functions/listen.texi: Update mingw problems.
49376         * doc/posix-functions/recv.texi: Update mingw problems.
49377         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49378         * doc/posix-functions/select.texi: Update mingw problems.
49379         * doc/posix-functions/send.texi: Update mingw problems.
49380         * doc/posix-functions/sendto.texi: Update mingw problems.
49381         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49382         * doc/posix-functions/socket.texi: Update mingw problems.
49383
49384 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49385             Bruno Haible  <bruno@clisp.org>
49386
49387         * lib/sys_select.in.h: Include sys/time.h.
49388         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49389         * modules/sys_select: Depend on sys_time.
49390         * tests/test-sys_select.c: Test that sys/select.h defines struct
49391         timeval fully.
49392
49393 2008-09-29  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49396         * lib/sys_select.in.h: Likewise.
49397
49398 2008-09-29  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49401
49402 2008-09-29  Bruno Haible  <bruno@clisp.org>
49403
49404         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49405         Set LIBSOCKET instead of augmenting LIBS.
49406         * modules/sockets (Link): New section.
49407         * modules/sockets-tests (test_sockets_LDADD): New variable.
49408         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49409         * modules/poll-tests (test_poll_LDADD): New variable.
49410         * NEWS: Document the change.
49411
49412 2008-09-29  Bruno Haible  <bruno@clisp.org>
49413
49414         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49415         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49416         ARPA_INET_H directly.
49417         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49418
49419 2008-09-28  Bruno Haible  <bruno@clisp.org>
49420
49421         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49422         from gl_HEADER_SYS_SOCKET.
49423         (gl_HEADER_SYS_SOCKET): Invoke it.
49424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49425
49426 2008-09-28  Bruno Haible  <bruno@clisp.org>
49427
49428         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49429         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49430         Needed on OSF/1 4.0.
49431
49432 2008-09-28  Bruno Haible  <bruno@clisp.org>
49433
49434         Override open more carefully.
49435         * lib/open.c (orig_open): New function.
49436         (rpl_open): Use orig_open instead of open.
49437         * lib/fcntl.in.h: Add special invocation convention.
49438         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49439         (gl_FUNC_OPEN): Invoke it.
49440
49441         Override freopen more carefully.
49442         * lib/freopen.c (orig_freopen): New function.
49443         (rpl_freopen): Use orig_freopen instead of freopen.
49444         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49445         (gl_FUNC_FREOPEN): Invoke it.
49446
49447         Override fopen more carefully.
49448         * lib/fopen.c (orig_fopen): New function.
49449         (rpl_fopen): Use orig_fopen instead of fopen.
49450         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49451         (gl_FUNC_FOPEN): Invoke it.
49452         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49453
49454 2008-09-28  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49457         SIGPIPE.
49458
49459 2008-09-28  Bruno Haible  <bruno@clisp.org>
49460
49461         * tests/test-sigaction.c (handler, main): Disable the check whether
49462         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49463         glibc systems with LinuxThreads.
49464
49465 2008-09-28  Bruno Haible  <bruno@clisp.org>
49466
49467         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49468
49469         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49470         with AIX xlc.
49471         * lib/fcntl.in.h (open): Likewise.
49472         Reported by Rainer Tammer <tammer@tammer.net>.
49473
49474 2008-09-28  Bruno Haible  <bruno@clisp.org>
49475
49476         * modules/posix_spawnp-tests: New file.
49477         * tests/test-posix_spawn.c: New file.
49478         * tests/test-posix_spawn.in.sh: New file.
49479
49480         New module 'posix_spawnp'.
49481         * modules/posix_spawnp: New file.
49482         * lib/spawnp.c: New file, from GNU libc with modifications.
49483         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49484
49485         New module 'posix_spawn'.
49486         * modules/posix_spawn: New file.
49487         * lib/spawn.c: New file, from GNU libc with modifications.
49488         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49489
49490         New module 'posix_spawnattr_destroy'.
49491         * modules/posix_spawnattr_destroy: New file.
49492         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49493         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49494         module.
49495
49496         New module 'posix_spawnattr_setsigmask'.
49497         * modules/posix_spawnattr_setsigmask: New file.
49498         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49499         modifications.
49500         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49501         new module.
49502
49503         New module 'posix_spawnattr_getsigmask'.
49504         * modules/posix_spawnattr_getsigmask: New file.
49505         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49506         modifications.
49507         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49508         new module.
49509
49510         New module 'posix_spawnattr_setsigdefault'.
49511         * modules/posix_spawnattr_setsigdefault: New file.
49512         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49513         modifications.
49514         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49515         new module.
49516
49517         New module 'posix_spawnattr_getsigdefault'.
49518         * modules/posix_spawnattr_getsigdefault: New file.
49519         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49520         modifications.
49521         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49522         new module.
49523
49524         New module 'posix_spawnattr_setschedpolicy'.
49525         * modules/posix_spawnattr_setschedpolicy: New file.
49526         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49527         modifications.
49528         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49529         new module.
49530
49531         New module 'posix_spawnattr_getschedpolicy'.
49532         * modules/posix_spawnattr_getschedpolicy: New file.
49533         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49534         modifications.
49535         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49536         new module.
49537
49538         New module 'posix_spawnattr_setschedparam'.
49539         * modules/posix_spawnattr_setschedparam: New file.
49540         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49541         modifications.
49542         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49543         new module.
49544
49545         New module 'posix_spawnattr_getschedparam'.
49546         * modules/posix_spawnattr_getschedparam: New file.
49547         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49548         modifications.
49549         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49550         new module.
49551
49552         New module 'posix_spawnattr_setpgroup'.
49553         * modules/posix_spawnattr_setpgroup: New file.
49554         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49555         modifications.
49556         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49557         module.
49558
49559         New module 'posix_spawnattr_getpgroup'.
49560         * modules/posix_spawnattr_getpgroup: New file.
49561         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49562         modifications.
49563         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49564         module.
49565
49566         New module 'posix_spawnattr_setflags'.
49567         * modules/posix_spawnattr_setflags: New file.
49568         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49569         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49570         module.
49571
49572         New module 'posix_spawnattr_getflags'.
49573         * modules/posix_spawnattr_getflags: New file.
49574         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49575         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49576         module.
49577
49578         New module 'posix_spawnattr_init'.
49579         * modules/posix_spawnattr_init: New file.
49580         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49581         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49582         module.
49583
49584         New module 'posix_spawn_file_actions_destroy'.
49585         * modules/posix_spawn_file_actions_destroy: New file.
49586         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49587         modifications.
49588         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49589         the new module.
49590
49591         New module 'posix_spawn_file_actions_addopen'.
49592         * modules/posix_spawn_file_actions_addopen: New file.
49593         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49594         modifications.
49595         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49596         the new module.
49597
49598         New module 'posix_spawn_file_actions_adddup2'.
49599         * modules/posix_spawn_file_actions_adddup2: New file.
49600         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49601         modifications.
49602         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49603         the new module.
49604
49605         New module 'posix_spawn_file_actions_addclose'.
49606         * modules/posix_spawn_file_actions_addclose: New file.
49607         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49608         modifications.
49609         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49610         the new module.
49611
49612         New module 'posix_spawn_file_actions_init'.
49613         * modules/posix_spawn_file_actions_init: New file.
49614         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49615         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49616         new module.
49617
49618         New module 'posix_spawn-internal'.
49619         * modules/posix_spawn-internal: New file.
49620         * lib/spawn_int.h: New file, from GNU libc with modifications.
49621         * lib/spawni.c: New file, from GNU libc with modifications.
49622         * m4/posix_spawn.m4: New file.
49623
49624         New module 'spawn'.
49625         * modules/spawn: New file.
49626         * lib/spawn.in.h: New file, from GNU libc with modifications.
49627         * m4/spawn_h.m4: New file.
49628         * doc/posix-headers/spawn.texi: Mention the new module.
49629
49630 2008-09-28  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/sched-tests: New file.
49633         * tests/test-sched.c: New file.
49634
49635         New module 'sched'.
49636         * modules/sched: New file.
49637         * lib/sched.in.h: New file.
49638         * m4/sched_h.m4: New file.
49639         * doc/posix-headers/sched.texi: Mention the new module.
49640
49641 2008-09-27  Eric Blake  <ebb9@byu.net>
49642
49643         Fix previous patch, and tweak references to $0.
49644         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49645         (func_version, func_gnulib_dir): Don't call this program
49646         gnulib-tool.
49647         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49648         with using $0 in function.
49649         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49650         (func_fatal_error): Reuse the name the user invoked us with.
49651
49652 2008-09-27  Bruno Haible  <bruno@clisp.org>
49653
49654         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49655         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49656         (gl_ICONV_H): Not here.
49657         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49658         instead of assigning ICONV_H directly.
49659
49660         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49662         WCHAR_H directly.
49663
49664 2008-09-27  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49667         * modules/arpa_inet (Depends-on): Add link-warning.
49668         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49669         * modules/unistd (Makefile.am): Likewise.
49670
49671 2008-09-26  Bruno Haible  <bruno@clisp.org>
49672
49673         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49674         variables.
49675         (func_version): Essentially copied from gnulib-tool.
49676         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49677         func_readlink): Copied from gnulib-tool.
49678
49679 2008-09-26  Bruno Haible  <bruno@clisp.org>
49680
49681         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49682         invoking git-version-gen.
49683
49684 2008-09-26  Bruno Haible  <bruno@clisp.org>
49685
49686         * posix-modules: Update to directory names changed on 2008-01-19.
49687         Remove commas in output before splitting into words. No more need to
49688         avoid 'ftruncate' since 2007-02-19.
49689
49690 2008-09-26  Bruno Haible  <bruno@clisp.org>
49691
49692         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49693
49694 2008-09-26  Bruno Haible  <bruno@clisp.org>
49695
49696         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49697         * modules/fwriteerror (Depends-on): Add errno.
49698
49699 2008-09-26  Bruno Haible  <bruno@clisp.org>
49700
49701         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49702         * tests/test-vc-list-files-cvs.sh: Likewise.
49703
49704 2008-09-26  Bruno Haible  <bruno@clisp.org>
49705
49706         * doc/posix-headers/sys_resource.texi: Reorder items.
49707
49708 2008-09-26  Jim Meyering  <meyering@redhat.com>
49709
49710         fts: tweak inode comparison function
49711         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49712         inode numbers, as documented.
49713
49714         fts: sort dirent entries on inode number before traversing
49715         This avoids a quadratic, seek-related performance penalty when
49716         operating on a directory containing many entries (measurable at 10k;
49717         3.5 hours at 2 million entries with a cold cache) on certain types
49718         of file systems, including ext3 and ext4, but not tmpfs.
49719         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49720         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49721         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49722         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49723         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49724         (fts_build): Set the stat.st_ino member from D_INO.
49725         If it is likely to be useful, sort dirent entries on inode number.
49726
49727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49728         and the struct statfs.f_type member.
49729         * modules/fts (Depends-on): Add d-ino.
49730
49731 2008-09-26  Bruno Haible  <bruno@clisp.org>
49732
49733         * modules/sigpipe-die (Depends-on): Add sigpipe.
49734
49735         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49736         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49737         and GNULIB_STDIO_H_SIGPIPE are set.
49738         * lib/stdio-write.c: New file.
49739         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49740         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49741         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49742         REPLACE_STDIO_WRITE_FUNCS.
49743         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49744         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49745         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49746         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49747         * modules/stdio (Files): Add lib/stdio-write.c.
49748         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49749         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49750         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49751         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49752         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49753         REPLACE_FPRINTF_POSIX.
49754         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49755         REPLACE_PRINTF_POSIX.
49756         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49757         REPLACE_VFPRINTF_POSIX.
49758         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49759         REPLACE_VPRINTF_POSIX.
49760         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49761         SIGPIPE issue.
49762         * doc/posix-functions/fputc.texi: Likewise.
49763         * doc/posix-functions/fputs.texi: Likewise.
49764         * doc/posix-functions/fwrite.texi: Likewise.
49765         * doc/posix-functions/printf.texi: Likewise.
49766         * doc/posix-functions/putc.texi: Likewise.
49767         * doc/posix-functions/putchar.texi: Likewise.
49768         * doc/posix-functions/puts.texi: Likewise.
49769         * doc/posix-functions/vfprintf.texi: Likewise.
49770         * doc/posix-functions/vprintf.texi: Likewise.
49771
49772         * modules/safe-write (Depends-on): Add write.
49773
49774         * modules/sigpipe-tests: New file.
49775         * tests/test-sigpipe.c: New file.
49776         * tests/test-sigpipe.sh: New file.
49777
49778         * modules/write: New file.
49779         * lib/unistd.in.h: Include <sys/types.h>.
49780         (write): New declaration.
49781         * lib/write.c: New file.
49782         * m4/write.m4: New file.
49783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49784         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49785         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49786         GNULIB_WRITE, REPLACE_WRITE.
49787         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49788         and the SIGPIPE issue.
49789
49790         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49791         (raise): New declaration.
49792         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49793         (ext_signal): New function.
49794         (rpl_raise): New function.
49795         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49796         GNULIB_SIGNAL_H_SIGPIPE.
49797         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49798         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49799
49800         * modules/sigpipe: New file.
49801         * m4/sigpipe.m4: New file.
49802
49803 2008-09-25  Derek Price  <derek@ximbiot.com>
49804             Bruno Haible  <bruno@clisp.org>
49805
49806         * gnulib-tool (func_import): Report all license incompatibilities, not
49807         just the first one.
49808
49809 2008-09-25  Bruno Haible  <bruno@clisp.org>
49810
49811         * gnulib-tool (func_import): When computing the edits, consider not
49812         only the Makefile.ams that exist but also those that will be generated.
49813
49814 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49815
49816         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49817         fixes gnulib-tool --test warning about duplicate dependency.
49818
49819 2008-09-25  Bruno Haible  <bruno@clisp.org>
49820
49821         * gnulib-tool: Don't ask the user to perform edits in the generated
49822         Makefile.ams.
49823         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49824         apply to the Makefile.am being generated.
49825         (func_emit_tests_Makefile_am): Execute edits that apply to the
49826         Makefile.am being generated.
49827         (func_import): Setup list of Makefile.am edits before emitting the
49828         Makefile.ams, not at the end.
49829         (func_create_testdir): Update.
49830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49831
49832 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49833
49834         * gnulib-tool (func_import): Store the --tests-base option in the
49835         comment in gnulib-cache.m4.
49836
49837 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49838
49839         * NEWS: Document increased portability that sys_select now provides.
49840
49841         * lib/sys_select.in.h: Install select wrapper.
49842         * lib/sys_socket.in.h: Use more descriptive name when there is no
49843         select wrapper.
49844         * lib/winsock-select.c: New.
49845         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49846         Require gl_HEADER_SYS_SOCKET.
49847         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49848         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49849         * tests/test-sys_select.c: Add functional tests.
49850
49851 2008-09-24  Eric Blake  <ebb9@byu.net>
49852
49853         open, fopen: close fd leak in last patch
49854         * lib/open.c (rpl_open): Close fd before returning error.
49855         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49856         * doc/posix-functions/open.texi (open): Document that Irix also
49857         has the bug.
49858         * doc/posix-functions/fopen.texi (fopen): Likewise.
49859         Reported by Paolo Bonzini.
49860
49861 2008-09-24  Bruno Haible  <bruno@clisp.org>
49862
49863         Ensure that a filename ending in a slash cannot be used to access a
49864         non-directory.
49865         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49866         to check whether it's really a directory.
49867         * lib/fopen.c: Include fcntl.h, unistd.h.
49868         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49869         and fdopen().
49870         * modules/fopen (Depends-on): Add unistd.
49871         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49872         * tests/test-fopen.c (main): Likewise.
49873         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49874         * doc/posix-functions/fopen.texi: Likewise.
49875         Reported by Eric Blake.
49876
49877 2008-09-23  Eric Blake  <ebb9@byu.net>
49878
49879         c-stack: avoid compiler optimizations when provoking overflow
49880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49881         recursion harder to optimize, to ensure a stack overflow occurs.
49882         * tests/test-c-stack.c (recurse): Likewise.
49883         Borrowed from libsigsegv.
49884
49885         c-stack: work around Irix sigaltstack bug
49886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49887         whether sigaltstack uses wrong end of stack_t (copied in part from
49888         libsigsegv).
49889         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49890         Irix bug, without requiring an over-allocation.
49891         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49892         bug.
49893
49894         fopen: document mingw bug on directories
49895         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49896         not allowing a stream visiting a directory, even though reading
49897         from such a stream is not portable.
49898
49899 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49900
49901         * lib/poll.c: Rewrite.
49902         * modules/poll: Depend on alloca.
49903
49904 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49905
49906         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49907         instead define prototypes for a full set of wrappers.  Ensure
49908         that Cygwin does not use the compatibility code, which is only
49909         for MinGW.
49910         * lib/winsock.c: New.
49911         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49912         * modules/sys_socket: Add lib/winsock.c.
49913
49914         * modules/poll-tests: Add errno and perror.
49915         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49916
49917 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49918
49919         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49920
49921 2008-09-23  Bruno Haible  <bruno@clisp.org>
49922
49923         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49924         * doc/glibc-functions/*: Likewise.
49925
49926 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49927
49928         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49929         success.
49930
49931 2008-09-22  Eric Blake  <ebb9@byu.net>
49932             Bruno Haible  <bruno@clisp.org>
49933
49934         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49935         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49936         supply %A but mishandle pseudo-NaN.
49937         Reported by Simon Josefsson.
49938
49939 2008-09-21  Bruno Haible  <bruno@clisp.org>
49940
49941         * tests/test-lock.c (main): Tweak skip message.
49942         * tests/test-tls.c (main): Likewise.
49943
49944 2008-09-21  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49947         whether 'struct sigaction' has sa_sigaction here...
49948         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49949         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49950
49951 2008-09-21  Bruno Haible  <bruno@clisp.org>
49952
49953         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49954         section.
49955         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49956         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49957         the new section.
49958         (Support for obsolete systems lacking POSIX:2001): New section.
49959         (String handling <string.h>): Move strdup to the new section.
49960         Suggested by Simon Josefsson and Paolo Bonzini.
49961
49962 2008-09-21  Bruno Haible  <bruno@clisp.org>
49963
49964         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49965         exponents in %e and %g results on 'long double'. Needed for mingw's
49966         improved *printf functions.
49967         * tests/test-vasprintf-posix.c (test_function): Likewise.
49968         * tests/test-snprintf-posix.h (test_function): Likewise.
49969         * tests/test-sprintf-posix.h (test_function): Likewise.
49970         Reported by Eric Blake.
49971
49972 2008-09-21  Bruno Haible  <bruno@clisp.org>
49973
49974         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49975         * tests/test-sprintf-posix.h (test_function): Likewise.
49976
49977 2008-09-21  Bruno Haible  <bruno@clisp.org>
49978
49979         * modules/getpass (Depends-on): Add strdup-posix.
49980
49981         New module 'strdup-posix'.
49982         * modules/strdup-posix: New file.
49983         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49984         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49986         REPLACE_STRDUP.
49987         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49988         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49990         strdup-posix.
49991
49992         * modules/strdup (Depends-on): Remove malloc-posix.
49993
49994 2008-09-20  Bruno Haible  <bruno@clisp.org>
49995
49996         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49997         Wildenhues.
49998
49999 2008-09-20  Bruno Haible  <bruno@clisp.org>
50000
50001         Ensure that wint_t gets defined on IRIX 5.3.
50002         * lib/wchar.in.h (wint_t): Define if not defined by the system.
50003         * lib/wctype.in.h (wint_t): Likewise.
50004         (__wctype_wint_t): Remove type.
50005         (isw*): Use wint_t instead of __wctype_wint_t.
50006         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
50007         * modules/wchar (Files): Add m4/wint_t.m4.
50008         (Makefile.am): Substitute HAVE_WINT_T.
50009         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
50010         * tests/test-wctype.c: Check that wint_t is defined.
50011         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
50012         * doc/posix-headers/wctype.texi: Likewise.
50013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50014
50015 2008-09-18  Bruno Haible  <bruno@clisp.org>
50016
50017         * gnulib-tool (func_exit): Update comment.
50018
50019 2008-09-18  Simon Josefsson  <simon@josefsson.org>
50020
50021         * modules/getaddrinfo (Depends-on): Remove strdup, this module
50022         assumes strdup exists and does not depend on strdup to return
50023         ENOMEM on out of memory conditions.
50024
50025 2008-09-18  Bruno Haible  <bruno@clisp.org>
50026
50027         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
50028         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
50029         digits for the exponent.
50030
50031 2008-09-18  Jim Meyering  <meyering@redhat.com>
50032             Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/vasnprintf.c (decimal_point_char): Define also if
50035         NEED_PRINTF_INFINITE_LONG_DOUBLE.
50036
50037 2008-09-16  Bruno Haible  <bruno@clisp.org>
50038         and Eric Blake  <ebb9@byu.net>
50039
50040         vasnprintf: support Irix 5.3
50041         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
50042         that mishandle long double infinity.
50043         Reported by Tom G. Christensen.
50044
50045 2008-09-16  Bruno Haible  <bruno@clisp.org>
50046
50047         * doc/glibc-functions/scandir.texi: Mention the function is missing on
50048         Solaris 9.
50049         * doc/glibc-functions/alphasort.texi: Likewise.
50050         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
50051
50052 2008-09-16  Jim Meyering  <meyering@redhat.com>
50053
50054         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
50055         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
50056         a umask modification leak out of a subshell.  Otherwise, the
50057         opensolaris /bin/sh would be accepted and thus cause unwarranted
50058         failures in the coreutils test suite.
50059
50060 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
50061
50062         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
50063         to succeed.
50064
50065 2008-09-16  Jim Meyering  <meyering@redhat.com>
50066
50067         avoid spurious test failure when library is built without ACL support
50068         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
50069         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
50070         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
50071         * tests/test-copy-acl.sh: Likewise.
50072
50073 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50074
50075         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
50076         based on character occurrence counts.
50077
50078 2008-09-15  Eric Blake  <ebb9@byu.net>
50079
50080         tests: avoid some compiler warnings
50081         * tests/test-memchr.c (main): Pass NULL indirectly.
50082         * tests/test-closein.c (main): Avoid unused variable.
50083
50084 2008-09-15  Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
50087         are missing on OpenBSD 4.0 individually.
50088         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50089
50090 2008-09-15  Bruno Haible  <bruno@clisp.org>
50091
50092         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
50093         * doc/posix-functions/strerror.texi: Mention also Cygwin.
50094         * doc/posix-functions/perror.texi: Likewise.
50095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
50096         is missing.
50097         Reported by Eric Blake.
50098
50099         * lib/errno.in.h: Use replacement values >= 2000.
50100         Reported by Eric Blake.
50101
50102 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50103
50104         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
50105         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
50106         limit.
50107         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
50108         compareseq was aborted.
50109
50110 2008-09-14  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
50113         yvec_edit_count.
50114         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
50115         (fstrcmp_bounded): Simplify result computation accordingly.
50116
50117 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50118
50119         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
50120         (fstrcmp): Define in terms of fstrcmp_bounded.
50121         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
50122         lower_bound argument.
50123         Return quickly if the result is certainly < lower_bound.
50124         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
50125
50126 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50127
50128         * lib/diffseq.h (EARLY_ABORT): New macro.
50129         (compareseq): Change return type to bool. Return true when EARLY_ABORT
50130         evaluates to true.
50131
50132 2008-09-14  Bruno Haible  <bruno@clisp.org>
50133
50134         * modules/perror-tests: New file.
50135         * tests/test-perror.sh: New file.
50136         * tests/test-perror.c: New file.
50137
50138         New module 'perror'.
50139         * lib/stdio.in.h (perror): New declaration.
50140         * lib/perror.c: New file.
50141         * m4/perror.m4: New file.
50142         * modules/perror: New file.
50143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
50144         * doc/posix-functions/perror.texi: Mention the perror module.
50145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
50146         REPLACE_PERROR.
50147         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
50148         REPLACE_PERROR.
50149
50150 2008-09-14  Bruno Haible  <bruno@clisp.org>
50151
50152         * modules/stdio (Makefile.am): Reorder to match the order in
50153         lib/stdio.in.h.
50154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50155
50156 2008-09-13  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
50159
50160 2008-09-13  Bruno Haible  <bruno@clisp.org>
50161
50162         Extend strerror to cover the added errno values.
50163         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
50164         (rpl_strerror): Provide error messages for the added errno values and
50165         for the WSA* values.
50166         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
50167         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
50168         strerror.
50169         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
50170         * modules/strerror (Depends-on): Add errno.
50171         * doc/posix-functions/strerror.texi: Document the change.
50172         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
50173         and EOVERFLOW.
50174
50175 2008-09-13  Bruno Haible  <bruno@clisp.org>
50176
50177         * modules/EOVERFLOW: Remove file.
50178         * m4/eoverflow.m4: Remove file.
50179         * modules/EOVERFLOW-tests: Remove file.
50180         * tests/test-EOVERFLOW.c: Remove file.
50181         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
50182         * modules/ftell (Depends-on): Likewise.
50183         * modules/getdelim (Depends-on): Likewise.
50184         * modules/getugroups (Depends-on): Likewise.
50185         * modules/poll (Depends-on): Likewise.
50186         * modules/snprintf (Depends-on): Likewise.
50187         * modules/sprintf-posix (Depends-on): Likewise.
50188         * modules/vasnprintf (Depends-on): Likewise.
50189         * modules/vasprintf (Depends-on): Likewise.
50190         * modules/vfprintf-posix (Depends-on): Likewise.
50191         * modules/vsnprintf (Depends-on): Likewise.
50192         * modules/vsprintf-posix (Depends-on): Likewise.
50193         * modules/xvasprintf (Depends-on): Likewise.
50194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50195         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
50196         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
50197         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
50198         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50199         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
50200         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
50201         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
50202         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50203         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
50204         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
50205         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
50206         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50207         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
50208         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
50209         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
50210         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50211         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
50212         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
50213         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
50214         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50215         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
50216         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
50217         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
50218         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
50219         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50220         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
50221         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50222         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50223         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50224         * MODULES.html.sh: Remove EOVERFLOW.
50225         * NEWS: Mention the change.
50226
50227 2008-09-13  Bruno Haible  <bruno@clisp.org>
50228
50229         * modules/errno-tests: New file.
50230         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50231
50232         * lib/errno.in.h: New file.
50233         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50234         * modules/errno: New file.
50235         * doc/posix-headers/errno.texi: Update documentation.
50236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50237
50238 2008-09-13  Bruno Haible  <bruno@clisp.org>
50239
50240         * tests/test-poll.c: Use #if for native Windows, rather than testing
50241         __MSVCRT__.
50242
50243 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50244             Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/glob.c: Don't include <pwd.h> on native Windows.
50247         (WINDOWS32): New macro.
50248         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50249
50250 2008-09-13  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50253         (ETIMEDOUT): Remove macro.
50254         (glthread_cond_timedwait_multithreaded): New declaration.
50255         (glthread_cond_timedwait): Use it.
50256         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50257         (glthread_cond_timedwait_multithreaded): New function.
50258
50259 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50260
50261         * modules/poll-tests: Do not check for io.h.
50262         * tests/test-poll.c: Check for __MSVCRT__ instead.
50263
50264 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50265
50266         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50267         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50268         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50269
50270 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50271
50272         * modules/poll-tests: New.
50273         * tests/test-poll.c: New.
50274
50275 2008-09-12  Eric Blake  <ebb9@byu.net>
50276
50277         frexp: test for NetBSD failure on -0.0
50278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50279         not all, bugs from NetBSD 3.0 have been fixed.
50280         * doc/posix-functions/frexp.texi (frexp): Document bug.
50281         Reported by Thomas Klausner.
50282
50283         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50284         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50285         literal -0.0.
50286         Reported by Jonathan C. Patschke <jp@centtech.com>.
50287
50288 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50289
50290         * lib/glthread/cond.h: Use dummy implementation also if
50291         USE_WIN32_THREADS.
50292
50293 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50294
50295         * modules/fnmatch-posix (License): Change to LGPLv2+.
50296         * modules/fnmatch-gnu (License): Likewise.
50297
50298 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50299
50300         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50301
50302 2008-09-11  Jim Meyering  <meyering@redhat.com>
50303
50304         * users.txt: Add gtk-vnc.
50305
50306 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50307
50308         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50309         rotate amounts.
50310
50311         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50312         required for 16-bit and 8-bit rotates.
50313         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50314         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50315         UINT8_MAX instead of hard-coded constants.
50316         Suggested by Paul Eggert.
50317
50318 2008-09-07  Bruno Haible  <bruno@clisp.org>
50319
50320         * tests/test-striconveh.c (main): Check behaviour when converting from
50321         UTF-7.
50322
50323         Make striconveh work better with stateful encodings.
50324         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50325         that iconv does not increment the inptr when returning -1/EINVAL.
50326
50327 2008-09-07  Bruno Haible  <bruno@clisp.org>
50328
50329         * build-aux/config.rpath: Update according to libtool-2.2.6.
50330         * build-aux/config.libpath: Likewise.
50331
50332 2008-09-06  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50335         * lib/freadptr.c (freadptr): Likewise.
50336         * lib/freadseek.c (freadptrinc): Likewise.
50337         Reported by Simon Josefsson.
50338
50339 2008-09-06  Bruno Haible  <bruno@clisp.org>
50340
50341         * modules/freadptr (License): Change to LGPLv2+.
50342         * modules/freadseek (License): Likewise.
50343         Suggested by Eric Blake.
50344
50345         * modules/memchr2 (License): Change to LGPLv2+.
50346         Approved by Eric Blake.
50347
50348 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50349             Bruno Haible  <bruno@clisp.org>
50350
50351         Make gnulib-tool work with native 'sed' on AIX.
50352         * gnulib-tool (sed_noop): New variable.
50353         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50354         func_add_or_update, func_create_testdir): Use it to initialize sed
50355         script variables.
50356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50357
50358 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50359             Bruno Haible  <bruno@clisp.org>
50360
50361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50362         also works after #include directives.
50363
50364 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50365
50366         getdate.y: reject an out-of-range timezone value
50367         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50368         the range [-24...+24].  When specified with only one or two digits,
50369         * tests/test-getdate.c: Tests for the fix.
50370         * doc/getdate.texi: Document this change.
50371
50372 2008-09-03  Bruno Haible  <bruno@clisp.org>
50373
50374         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50375
50376 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50377
50378         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50379         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50380         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50381         Blake <ebb9@byu.net>.
50382
50383         * tests/test-bitrotate.c: Add more test vectors.
50384
50385 2008-09-02  Eric Blake  <ebb9@byu.net>
50386
50387         vasnprintf-posix: handle large precision via %.*d
50388         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50389         when handling it ourselves.
50390         * tests/test-vasnprintf-posix.c (test_function): Add test.
50391         * tests/test-snprintf-posix.h (test_function): Likewise.
50392         * tests/test-sprintf-posix.h (test_function): Likewise.
50393         * tests/test-vasprintf-posix.c (test_function): Likewise.
50394         Reported by Alain Guibert.
50395
50396 2008-09-01  Eric Blake  <ebb9@byu.net>
50397
50398         c-stack: make configure-time check more robust
50399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50400         successful sigaction call.
50401         Reported by Tom G. Christensen.
50402
50403 2008-09-01  Bruno Haible  <bruno@clisp.org>
50404
50405         New module 'findprog-lgpl'.
50406         * modules/findprog-lgpl: New file.
50407         * lib/findprog-lgpl.c: New file.
50408         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50409         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50410         to decide whether to use strdup or xstrdup, concatenated_filename or
50411         xconcatenated_filename.
50412
50413 2008-09-01  Bruno Haible  <bruno@clisp.org>
50414
50415         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50416         'xconcat-filename' (GPL).
50417         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50418         (License): Change to LGPLv2+.
50419         * modules/xconcat-filename: New file.
50420         * lib/concat-filename.h (concatenated_filename): Change specification.
50421         (xconcatenated_filename): New declaration.
50422         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50423         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50424         memory situations.
50425         * lib/xconcat-filename.c: New file.
50426         * NEWS: Mention the change.
50427         * lib/findprog.c: Include concat-filename.h, not filename.h.
50428         (find_in_path): Use xconcatenated_filename instead of
50429         concatenated_filename.
50430         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50431         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50432         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50433         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50434         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50435         instead of concatenated_filename.
50436         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50437         (execute_java_class): Use xconcatenated_filename instead of
50438         concatenated_filename.
50439         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50440         * modules/javacomp (Depends-on): Likewise.
50441         * modules/javaexec (Depends-on): Likewise.
50442
50443 2008-09-01  Bruno Haible  <bruno@clisp.org>
50444
50445         Split module 'filename' into 'filename' and 'concat-filename'.
50446         * modules/filename: Keep only lib/filename.h.
50447         (License): Change to LGPLv2+.
50448         * modules/concat-filename: New file, extracted from modules/filename.
50449         * lib/filename.h (concatenated_filename): Remove declaration.
50450         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50451         * lib/concat-filename.c: Include concat-filename.h.
50452         * NEWS: Mention the change.
50453
50454 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50455
50456         * lib/bitrotate.h (rotl8, rotr8): Add.
50457
50458         * modules/bitrotate (configure.ac): Need
50459         AC_REQUIRE([AC_C_INLINE]).
50460         (Description): Mention stdint.h.  Reported by Bruno Haible
50461         <bruno@clisp.org>.
50462
50463         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50464         Paolo Bonzini <bonzini@gnu.org>.
50465
50466 2008-08-31  Bruno Haible  <bruno@clisp.org>
50467
50468         Assume Solaris specific bi-arch conventions on Solaris systems.
50469         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50470         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50472         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50473         like acl_libdirstem.
50474         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50475         acl_libdirstem.
50476         * NEWS: Mention the change.
50477         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50478
50479 2008-08-31  Jim Meyering  <meyering@redhat.com>
50480
50481         * lib/strftime.h: Add comments describing the two added arguments.
50482
50483         remove duplicate #include directives
50484         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50485         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50486
50487 2008-08-31  Bruno Haible  <bruno@clisp.org>
50488
50489         New module 'sigpipe-die'.
50490         * modules/sigpipe-die: New file.
50491         * lib/sigpipe-die.h: New file.
50492         * lib/sigpipe-die.c: New file.
50493         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50494
50495 2008-08-31  Bruno Haible  <bruno@clisp.org>
50496
50497         Don't override previously installed signal handlers.
50498         * lib/fatal-signal.c (saved_sigactions): New variable.
50499         (uninstall_handlers): Reset the signal to the saved handler, not
50500         to SIG_DFL (except when ignored).
50501         (install_handlers): Save the previous handlers.
50502
50503 2008-08-30  Bruno Haible  <bruno@clisp.org>
50504
50505         * gnulib-tool (func_reset_sigpipe): New function.
50506         (func_get_automake_snippet, func_modules_transitive_closure,
50507         func_import): Invoke it before a join command that reads from stdin,
50508         to avoid "echo: write error: Broken pipe" error messages on stderr.
50509         Reported by Sam Steingold <sds@gnu.org>.
50510
50511 2008-08-30  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50514         Code copied from m4/open.m4.
50515         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50516         access and the filename ends in a slash. Code copied from lib/open.c.
50517         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50518         * tests/test-fopen.c (main): Check against bug with trailing slash.
50519
50520 2008-08-29  Bruno Haible  <bruno@clisp.org>
50521
50522         Avoid some "gcc -pedantic" warnings.
50523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50524         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50525         * lib/dirent.in.h: Likewise.
50526         * lib/fcntl.in.h: Likewise.
50527         * lib/float.in.h: Likewise.
50528         * lib/iconv.in.h: Likewise.
50529         * lib/inttypes.in.h: Likewise.
50530         * lib/locale.in.h: Likewise.
50531         * lib/math.in.h: Likewise.
50532         * lib/netinet_in.in.h: Likewise.
50533         * lib/search.in.h: Likewise.
50534         * lib/signal.in.h: Likewise.
50535         * lib/stdarg.in.h: Likewise.
50536         * lib/stdint.in.h: Likewise.
50537         * lib/stdio.in.h: Likewise.
50538         * lib/stdlib.in.h: Likewise.
50539         * lib/string.in.h: Likewise.
50540         * lib/strings.in.h: Likewise.
50541         * lib/sys_select.in.h: Likewise.
50542         * lib/sys_socket.in.h: Likewise.
50543         * lib/sys_stat.in.h: Likewise.
50544         * lib/sys_time.in.h: Likewise.
50545         * lib/sysexits.in.h: Likewise.
50546         * lib/time.in.h: Likewise.
50547         * lib/unistd.in.h: Likewise.
50548         * lib/wchar.in.h: Likewise.
50549         * lib/wctype.in.h: Likewise.
50550         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50551         * modules/fchdir (Makefile.am): Likewise.
50552         * modules/fcntl (Makefile.am): Likewise.
50553         * modules/float (Makefile.am): Likewise.
50554         * modules/iconv_open (Makefile.am): Likewise.
50555         * modules/inttypes (Makefile.am): Likewise.
50556         * modules/locale (Makefile.am): Likewise.
50557         * modules/math (Makefile.am): Likewise.
50558         * modules/netinet_in (Makefile.am): Likewise.
50559         * modules/search (Makefile.am): Likewise.
50560         * modules/signal (Makefile.am): Likewise.
50561         * modules/stdarg (Makefile.am): Likewise.
50562         * modules/stdint (Makefile.am): Likewise.
50563         * modules/stdio (Makefile.am): Likewise.
50564         * modules/stdlib (Makefile.am): Likewise.
50565         * modules/string (Makefile.am): Likewise.
50566         * modules/strings (Makefile.am): Likewise.
50567         * modules/sys_select (Makefile.am): Likewise.
50568         * modules/sys_socket (Makefile.am): Likewise.
50569         * modules/sys_stat (Makefile.am): Likewise.
50570         * modules/sys_time (Makefile.am): Likewise.
50571         * modules/sysexits (Makefile.am): Likewise.
50572         * modules/time (Makefile.am): Likewise.
50573         * modules/unistd (Makefile.am): Likewise.
50574         * modules/wchar (Makefile.am): Likewise.
50575         * modules/wctype (Makefile.am): Likewise.
50576         Reported by Reuben Thomas <rrt@sc3d.org>.
50577
50578 2008-08-29  Bruno Haible  <bruno@clisp.org>
50579
50580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50581         any more.
50582
50583 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50584
50585         * MODULES.html.sh (Misc): Add bitrotate.
50586
50587         * modules/bitrotate: New file.
50588
50589         * lib/bitrotate.h: New file.
50590
50591         * modules/bitrotate-tests: New file.
50592
50593         * tests/test-bitrotate.c: New file.
50594
50595         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50596         on the bitrotate module.
50597
50598         * lib/arctwo.c: Use new bitrotate module.
50599
50600 2008-08-29  Jim Meyering  <meyering@redhat.com>
50601
50602         bootstrap: merge changes from coreutils
50603         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50604         of copied files.  Remove a kludge, now that this is fixed.
50605         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50606         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50607         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50608
50609 2008-08-29  Bruno Haible  <bruno@clisp.org>
50610
50611         * MODULES.html.sh: Remove --cvs-urls option.
50612
50613 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50614
50615         maint.mk: adjust to file name change
50616         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50617
50618 2008-08-28  Jim Meyering  <meyering@redhat.com>
50619
50620         * modules/getndelim2 (License): Relicense to LGPLv2+.
50621         Approved by Richard Stallman for the version of 1995, and by
50622         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50623
50624 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50625
50626         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50627         dummy if one is not available.  Do not touch them if
50628         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50629         (getc_maybe_unlocked): New.
50630         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50631
50632 2008-08-26  Eric Blake  <ebb9@byu.net>
50633
50634         doc/INSTALL: resync from autoconf
50635         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50636         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50637         moving...
50638         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50639         * INSTALL: Regenerate.
50640         * INSTALL.ISO: New file.
50641         * INSTALL.UTF-8: Likewise.
50642
50643 2008-08-26  Jim Meyering  <meyering@redhat.com>
50644
50645         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50646         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50647         these definitions conditional, so that they may be overridden, too.
50648
50649 2008-08-26  Bruno Haible  <bruno@clisp.org>
50650
50651         Generate INSTALL file variants with prettier quotes.
50652         * doc/Makefile (INSTALL_PRELUDE): New macro.
50653         (INSTALL): Use it.
50654         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50655
50656 2008-08-26  Bruno Haible  <bruno@clisp.org>
50657
50658         Run makeinfo in an English locale.
50659         * doc/Makefile (MAKEINFO): New variable.
50660
50661 2008-08-26  Bruno Haible  <bruno@clisp.org>
50662
50663         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50664         Suggested by Eric Blake.
50665
50666 2008-08-25  Bruno Haible  <bruno@clisp.org>
50667
50668         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50669
50670 2008-08-25  Eric Blake  <ebb9@byu.net>
50671
50672         c-stack: test that stack overflow can be caught
50673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50674         that platform allows handling stack overflow; at least OS/2 EMX
50675         has sigaltstack, but crashes before transferring control to
50676         handler on stack overflow.
50677         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50678         check for HAVE_STACK_OVERFLOW_HANDLING.
50679         Reported by Elbert Pol.
50680
50681 2008-08-25  Bruno Haible  <bruno@clisp.org>
50682
50683         * doc/posix-functions/strftime.texi: Fix description of strftime
50684         module.
50685
50686 2008-08-24  Bruno Haible  <bruno@clisp.org>
50687
50688         * tests/uniwidth/test-uc_width2.c: New file.
50689         * tests/uniwidth/test-uc_width2.sh: New file.
50690         * modules/uniwidth/width-tests (Files): Add the new files.
50691         (TESTS): Add uniwidth/test-uc_width2.sh.
50692         (TESTS_ENVIRONMENT): New variable.
50693         (check_PROGRAMS): Add test-uc_width2.
50694         (test_uc_width2_SOURCES): New variable.
50695
50696         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50697         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50698         not 0x00AB.
50699         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50700
50701 2008-08-22  Eric Blake  <ebb9@byu.net>
50702
50703         test-lock, test-tls: mention why a test is skipped
50704         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50705         skipped.
50706         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50707
50708         count-one-bits: relax license
50709         * modules/count-one-bits (License): Relicense to LGPLv2+.
50710         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50711
50712 2008-08-22  Andreas Schwab  <schwab@suse.de>
50713
50714         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50715         Remove spurious space in assignment.
50716
50717 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50718
50719         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50720         Paul Eggert <eggert@CS.UCLA.EDU>.
50721
50722 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50723
50724         * modules/gettext: Add m4/threadlib.m4.
50725
50726 2008-08-19  Eric Blake  <ebb9@byu.net>
50727
50728         test-c-stack: fix compilation failure on FreeBSD 5.0
50729         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50730         headers before <sys/resource.h>.
50731         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50732         the bug.
50733         Reported by Nelson H. F. Beebe.
50734
50735         strverscmp: migrate from "strverscmp.h" to <string.h>
50736         * modules/string (Makefile.am): Add new hooks.
50737         * modules/strverscmp (Files): Remove strverscmp.h.
50738         (Depends-on): Add string.
50739         (configure.ac): Add indicator.
50740         (Include): Mention new header.
50741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50742         defaults.
50743         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50744         results.
50745         * lib/strverscmp.h: Delete.
50746         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50747         * tests/test-strverscmp.c (includes): Adjust client.
50748         * lib/check-version.c (includes): Likewise.
50749         * NEWS: Document the change.
50750
50751         strverscmp: add unit test
50752         * modules/strverscmp-tests: New file.
50753         * tests/test-strverscmp.c: Likewise.
50754
50755 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50756
50757         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50758         regarding Windows crypto stuff, from Mono.
50759
50760 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50761
50762         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50763         if present, for intel RND.  Return error on failures.
50764
50765 2008-08-18  Ben Pfaff  <blp@gnu.org>
50766
50767         gitlog-to-changelog: give better diagnostic for failed pipe-open
50768         * build-aux/gitlog-to-changelog: Improve error message: suggest
50769         that the version of Git may be too old.
50770
50771 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50772
50773         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50774         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50775
50776 2008-08-18  Bruno Haible  <bruno@clisp.org>
50777
50778         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50779         pthread_in_use().
50780
50781 2008-08-18  Bruno Haible  <bruno@clisp.org>
50782
50783         * lib/glthread/threadlib.c: Include <pthread.h>.
50784
50785 2008-08-18  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50788         glthread_recursive_lock_* macros.
50789         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50790         Fix syntax error.
50791
50792 2008-08-18  Bruno Haible  <bruno@clisp.org>
50793
50794         * lib/glthread/thread.c: Avoid forcing a context switch right after
50795         thread creation.
50796
50797 2008-08-17  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50800         * lib/glthread/thread.h: Provide Win32 specific implementation.
50801         * modules/thread (Files): Add lib/glthread/thread.c.
50802         (Depends-on): Add lock.
50803         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50804
50805 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50806
50807         New module 'yield'.
50808         * modules/yield: New file.
50809         * lib/glthread/yield.h: New file.
50810         * m4/yield.m4: New file.
50811         * MODULES.html.sh (Multithreading): Add yield.
50812
50813 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50814
50815         New module 'thread'.
50816         * modules/thread: New file.
50817         * lib/glthread/thread.h: New file.
50818         * m4/thread.m4: New file.
50819         * MODULES.html.sh (Multithreading): Add thread.
50820
50821 2008-08-17  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/glthread/lock.h: Include <stdlib.h> always.
50824         * lib/glthread/tls.h: Likewise.
50825         * lib/glthread/cond.h: Likewise.
50826
50827 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50828
50829         New module 'cond'.
50830         * modules/cond: New file.
50831         * lib/glthread/cond.h: New file.
50832         * lib/glthread/cond.c: New file.
50833         * m4/cond.m4: New file.
50834         * MODULES.html.sh (Multithreading): Add cond.
50835
50836 2008-08-16  Eric Blake  <ebb9@byu.net>
50837
50838         c-stack: fix regression on Irix 5.3 from 2008-06-21
50839         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50840         sa_sigaction...
50841         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50842         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50843         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50844         * modules/signal (Makefile.am): Use the value.
50845         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50846         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50847         * doc/posix-headers/signal.texi (signal.h): Document this
50848         portability issue.
50849         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50850         Reported by Tom G. Christensen.
50851
50852 2008-08-17  Bruno Haible  <bruno@clisp.org>
50853
50854         New module 'threadlib'.
50855         * modules/threadlib: New file.
50856         * lib/glthread/threadlib.c: New file, extracted from
50857         lib/glthread/lock.c.
50858         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50859         functions.
50860         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50861         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50862         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50863         macros.
50864         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50865         (gl_DISABLE_THREADS): Remove macro.
50866         * modules/lock (Files): Remove build-aux/config.rpath.
50867         (Depends-on): Remove havelib. Add threadlib.
50868         (configure.ac-early): Remove section.
50869         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50870         * modules/tls (Depends-on): Remove lock. Add threadlib.
50871         (Link): New section, copied from threadlib.
50872         * MODULES.html.sh (Multithreading): Add threadlib.
50873
50874 2008-08-14  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50877         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50878         glthread_rwlock_unlock, glthread_rwlock_destroy,
50879         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50880         glthread_recursive_lock_destroy): Define as macros always.
50881         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50882         glthread_lock_lock.
50883         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50884         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50885         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50886         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50887         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50888         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50889         (glthread_recursive_lock_lock_func): Renamed from
50890         glthread_recursive_lock_lock.
50891         (glthread_recursive_lock_unlock_func): Renamed from
50892         glthread_recursive_lock_unlock.
50893         (glthread_recursive_lock_destroy_func): Renamed from
50894         glthread_recursive_lock_destroy.
50895
50896 2008-08-14  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/glthread/lock.h: Renamed from lib/lock.h.
50899         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50900         * lib/glthread/tls.h: Renamed from lib/tls.h.
50901         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50902         * lib/fstrcmp.c: Update includes.
50903         * lib/strsignal.c: Update includes.
50904         * modules/lock (Files, Makefile.am): Update.
50905         (Include): Change to "glthread/lock.h".
50906         * modules/tls (Files, Makefile.am): Update.
50907         (Include): Change to "glthread/tls.h".
50908         * tests/test-lock.c: Update includes.
50909         * tests/test-tls.c: Update includes.
50910         * NEWS: Mention the renamed header files.
50911
50912 2008-08-11  Jim Meyering  <meyering@redhat.com>
50913
50914         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50915
50916 2008-08-11  Eric Blake  <ebb9@byu.net>
50917
50918         test-c-stack: avoid C99-ism
50919         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50920         before statement.
50921         Reported by Alain Guibert.
50922
50923 2008-08-10  Jim Meyering  <meyering@redhat.com>
50924
50925         ensure that return value of uinttostr et al are not ignored
50926         * lib/inttostr.h (__GNUC_PREREQ): Define.
50927         (__attribute_warn_unused_result__): Define.
50928         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50929
50930 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50931
50932         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50933         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50934
50935 2008-08-07  Jim Meyering  <meyering@redhat.com>
50936
50937         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50938
50939         * modules/mkstemp (License): Relicense under LGPLv2+.
50940         * modules/tempname (License): Likewise.
50941
50942 2008-08-06  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/poll.c (poll): Further micro-optimization.
50945
50946 2008-08-06  Jim Meyering  <meyering@redhat.com>
50947
50948         inet_pton.c: use locale-independent tolower
50949         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50950         (inet_pton6): Use c_tolower rather than tolower.
50951         * modules/inet_pton (Depends-on): Add c-ctype.
50952
50953 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50954
50955         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50956         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50957
50958 2008-08-06  Jim Meyering  <meyering@redhat.com>
50959
50960         * modules/inet_pton (License): Relicense under LGPLv2+.
50961
50962 2008-08-03  Bruno Haible  <bruno@clisp.org>
50963
50964         Additional non-aborting API for lock and tls.
50965         * lib/lock.h: Include <errno.h>.
50966         (glthread_lock_init): New macro/function.
50967         (gl_lock_init): Define as wrapper around glthread_lock_init.
50968         (glthread_lock_lock): New macro/function.
50969         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50970         (glthread_lock_unlock): New macro/function.
50971         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50972         (glthread_lock_destroy): New macro/function.
50973         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50974         (glthread_rwlock_init): New macro/function.
50975         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50976         (glthread_rwlock_rdlock): New macro/function.
50977         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50978         (glthread_rwlock_wrlock): New macro/function.
50979         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50980         (glthread_rwlock_unlock): New macro/function.
50981         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50982         (glthread_rwlock_destroy): New macro/function.
50983         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50984         (glthread_recursive_lock_init): New macro/function.
50985         (gl_recursive_lock_init): Define as wrapper around
50986         glthread_recursive_lock_init.
50987         (glthread_recursive_lock_lock): New macro/function.
50988         (gl_recursive_lock_lock): Define as wrapper around
50989         glthread_recursive_lock_lock.
50990         (glthread_recursive_lock_unlock): New macro/function.
50991         (gl_recursive_lock_unlock): Define as wrapper around
50992         glthread_recursive_lock_unlock.
50993         (glthread_recursive_lock_destroy): New macro/function.
50994         (gl_recursive_lock_destroy): Define as wrapper around
50995         glthread_recursive_lock_destroy.
50996         (glthread_once): New macro/function.
50997         (gl_once): Define as wrapper around glthread_once.
50998         Update function declarations.
50999         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
51000         glthread_rwlock_init. Return error code.
51001         (glthread_rwlock_rdlock_multithreaded): Renamed from
51002         glthread_rwlock_rdlock. Return error code.
51003         (glthread_rwlock_wrlock_multithreaded): Renamed from
51004         glthread_rwlock_wrlock. Return error code.
51005         (glthread_rwlock_unlock_multithreaded): Renamed from
51006         glthread_rwlock_unlock. Return error code.
51007         (glthread_rwlock_destroy_multithreaded): Renamed from
51008         glthread_rwlock_destroy. Return error code.
51009         (glthread_recursive_lock_init_multithreaded): Renamed from
51010         glthread_recursive_lock_init. Return error code.
51011         (glthread_recursive_lock_lock_multithreaded): Renamed from
51012         glthread_recursive_lock_lock. Return error code.
51013         (glthread_recursive_lock_unlock_multithreaded): Renamed from
51014         glthread_recursive_lock_unlock. Return error code.
51015         (glthread_recursive_lock_destroy_multithreaded): Renamed from
51016         glthread_recursive_lock_destroy. Return error code.
51017         (glthread_once_call): Make static.
51018         (glthread_once_multithreaded): Renamed from glthread_once.
51019         * lib/tls.h: Include <errno.h>.
51020         (glthread_tls_key_init): New macro/function.
51021         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
51022         (glthread_tls_set): New macro/function.
51023         (gl_tls_set): Define as wrapper around glthread_tls_set.
51024         (glthread_tls_key_destroy): New macro/function.
51025         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
51026         Update function declarations.
51027         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
51028         glthread_tls_get.
51029         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51030
51031 2008-08-04  Eric Blake  <ebb9@byu.net>
51032
51033         gnumakefile: use space, not TAB, outside of targets
51034         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
51035
51036 2008-08-02  Jim Meyering  <meyering@redhat.com>
51037
51038         getdate.y: avoid locale-dependent date parsing failure
51039         In Turkish locales, getdate would fail to recognize keywords
51040         containing a lowercase "i".  The solution is not to rely on
51041         locale-sensitive case-conversion.
51042         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
51043         (lookup_word): Use c_toupper in place of toupper.
51044         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
51045         Reported by Vefa Bicakci <bicave@superonline.com> in
51046         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
51047         * modules/getdate (Depends-on): Add c-ctype.
51048
51049 2008-08-02  Bruno Haible  <bruno@clisp.org>
51050
51051         * gnulib-tool (func_import): When updating or creating a .gitignore
51052         file, prepend each added line with a slash, and ignore leading slashes
51053         from the existing lines.
51054         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51055
51056 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51057
51058         Portability fix for GNU make 3.79.1.
51059         * top/GNUmakefile: Avoid 'else COND', which older GNU make
51060         versions do not understand.
51061
51062 2008-08-01  Bruno Haible  <bruno@clisp.org>
51063
51064         Work around bug of HP-UX 10.20 cc with -0.0 literal.
51065         * tests/test-isnanf.h (zero): New variable.
51066         (main): Avoid literal -0.0f.
51067         * tests/test-isnand.h (zero): New variable.
51068         (main): Avoid literal -0.0.
51069         * tests/test-isnanl.h (zero): New variable.
51070         (main): Avoid literal -0.0L.
51071         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
51072         (test_float, test_double, test_long_double): Avoid literals -0.0f,
51073         -0.0, -0.0L.
51074         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
51075         (test_signbitd): Avoid literal -0.0.
51076         (test_signbitl): Avoid literal -0.0L.
51077         * tests/test-ceilf1.c (zero): New variable.
51078         (main): Avoid literal -0.0f.
51079         * tests/test-ceill.c (zero): New variable.
51080         (main): Avoid literal -0.0L.
51081         * tests/test-floorf1.c (zero): New variable.
51082         (main): Avoid literal -0.0f.
51083         * tests/test-floorl.c (zero): New variable.
51084         (main): Avoid literal -0.0L.
51085         * tests/test-roundf1.c (zero): New variable.
51086         (main): Avoid literal -0.0f.
51087         * tests/test-round1.c (zero): New variable.
51088         (main): Avoid literal -0.0.
51089         * tests/test-roundl.c (zero): New variable.
51090         (main): Avoid literal -0.0L.
51091         * tests/test-truncf1.c (zero): New variable.
51092         (main): Avoid literal -0.0f.
51093         * tests/test-trunc1.c (zero): New variable.
51094         (main): Avoid literal -0.0.
51095         * tests/test-truncl.c (zero): New variable.
51096         (main): Avoid literal -0.0L.
51097         * tests/test-frexp.c (zero): New variable.
51098         (main): Avoid literal -0.0.
51099         * tests/test-frexpl.c (zero): New variable.
51100         (main): Avoid literal -0.0L.
51101         * tests/test-ldexpl.c (zero): New variable.
51102         (main): Avoid literal -0.0L.
51103         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51104         (zerod, zerol): New variables.
51105         (test_function): Avoid literals -0.0, -0.0L.
51106         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51107         (zerod, zerol): New variables.
51108         (test_function): Avoid literals -0.0, -0.0L.
51109         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51110         (zerod, zerol): New variables.
51111         (test_function): Avoid literals -0.0, -0.0L.
51112         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51113         (zerod, zerol): New variables.
51114         (test_function): Avoid literals -0.0, -0.0L.
51115         * tests/test-strtod.c (zero): New variable.
51116         (main): Avoid literal -0.0.
51117         Reported by Jonathan C. Patschke <jp@centtech.com>.
51118
51119 2008-07-31  Jim Meyering  <meyering@redhat.com>
51120
51121         sha256.h: correct definition of SHA224_DIGEST_SIZE
51122         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
51123         Reported by Paulie Pena IV <paulie4@gmail.com>.
51124         Define as 224 / 8, rather than as a literal.
51125         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
51126         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
51127         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
51128
51129 2008-07-31  Bruno Haible  <bruno@clisp.org>
51130
51131         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
51132         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
51133         Reported by Jonathan Patschke <jp@centtech.com>.
51134
51135 2008-07-31  Bruno Haible  <bruno@clisp.org>
51136
51137         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
51138         Reported by Paolo Bonzini <bonzini@gnu.org>.
51139
51140 2008-07-30  Eric Blake  <ebb9@byu.net>
51141
51142         test-strtod: allow compilation without -lm
51143         * tests/test-strtod.c (main): Avoid link dependence on fabs.
51144         Reported by Dennis Clarke <blastwave@gmail.com>.
51145
51146 2008-07-28  Jim Meyering  <meyering@redhat.com>
51147
51148         bootstrap: work also when there are no .po files in po/
51149         * build-aux/bootstrap (update_po_files): Complete the change
51150         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
51151
51152 2008-07-27  Jim Meyering  <meyering@redhat.com>
51153
51154         * users.txt: Add zile.
51155
51156 2008-07-26  Ben Pfaff  <blp@gnu.org>
51157
51158         Add missing dependencies on new m4/exponent[fdl].m4 files.
51159         * modules/isnanf-nolibm: Add m4/exponentf.m4.
51160         * modules/isnand-nolibm: Add m4/exponentd.m4.
51161         * modules/isnanl-nolibm: Add m4/exponentl.m4.
51162         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
51163         m4/isnan[fdl].m4, because the macros actually used moved.
51164         Reported by Jim Meyering.
51165
51166 2008-07-14  Ben Pfaff  <blp@gnu.org>
51167
51168         Add isinf module.
51169         * lib/isinf.c: New file.
51170         * lib/math.in.h: Define isinf macro if we have decided to replace
51171         it.
51172         * m4/isinf.m4: New file.
51173         * m4/math_h.m4: Initialize and substitute variables for isinf
51174         module.
51175         * modules/isinf: New file.
51176         * modules/isinf-tests: New file.
51177         * modules/math: Add substitutions for new module.
51178         * tests/test-isinf.c: New file.
51179         * doc/posix-functions/isinf.texi: Mention new module.
51180         * MODULES.html.sh: Mention new module.
51181
51182 2008-07-14  Ben Pfaff  <blp@gnu.org>
51183
51184         Factor out some macros for use by additional modules.
51185         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
51186         exponentf.m4.
51187         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
51188         exponentd.m4.
51189         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
51190         file exponentl.m4.
51191         * m4/exponentf.m4: New file.
51192         * m4/exponentd.m4: New file.
51193         * m4/exponentl.m4: New file.
51194         * modules/isnanf: Use new file m4/exponentf.m4.
51195         * modules/isnand: Use new file m4/exponentd.m4.
51196         * modules/isnanl: Use new file m4/exponentl.m4.
51197
51198 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
51199
51200         mktime.c: normalize tp->tm_isdst value to -1/0/1.
51201         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
51202         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
51203         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
51204
51205         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
51206         readlink on platforms without PATH_MAX.
51207
51208 2008-07-21  Eric Blake  <ebb9@byu.net>
51209
51210         Warn, not fail, on stale version.
51211         * top/GNUmakefile (_curr-ver): Tone down previous patch.
51212
51213         Don't allow installation with stale devel version number.
51214         * top/GNUmakefile (_is-install-target): New macro.
51215         (_curr-ver): Forbid installation with stale version number.
51216
51217 2008-07-20  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
51220         TESTS_ENVIRONMENT.
51221         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51222
51223 2008-07-20  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/c-stack.h (c_stack_action): Add documentation.
51226         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51227
51228 2008-07-20  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51231         * modules/readlink (License): Likewise.
51232
51233 2008-07-17  Eric Blake  <ebb9@byu.net>
51234
51235         * modules/c-stack (Link): Fix typo.
51236
51237         Make c-stack use libsigsegv, when available.
51238         * modules/c-stack (Depends-on): Add libsigsegv.
51239         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51240         needed.
51241         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51242         (segv_handler, overflow_handler, c_stack_action)
51243         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51244         implementation when libsigsegv is available, but only when using
51245         the library is necessary.
51246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51247         comment, explaining why XSI check fails on Linux.
51248         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51249         * tests/test-c-stack2.sh: Tweak skip message.
51250         * NEWS: Document new link-time requirements.
51251
51252 2008-07-16  Eric Blake  <ebb9@byu.net>
51253
51254         c-stack: Expose false positives when not using libsigsegv.
51255         * modules/c-stack-tests (Files): Expand test.
51256         * tests/test-c-stack.c (main): Add means to conditionally trigger
51257         non-overflow SIGSEGV.
51258         * tests/test-c-stack2.sh: New file.
51259
51260 2008-07-14  Bruno Haible  <bruno@clisp.org>
51261
51262         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51263         Reported by Eric Blake.
51264
51265 2008-07-14  Sam Steingold  <sds@gnu.org>
51266             Bruno Haible  <bruno@clisp.org>
51267
51268         New module libsigsegv.
51269         * modules/libsigsegv: New file.
51270         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51271         modifications.
51272         * MODULES.html.sh (Signal handling): New section.
51273
51274 2008-07-14  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/unictype/ctype-* (Description): Add the word "function".
51277         Improves the resulting doc in MODULES.html.
51278
51279 2008-07-12  Ben Pfaff  <blp@gnu.org>
51280
51281         Add longlong module.
51282         * modules/longlong: New file.
51283
51284 2008-07-12  Bruno Haible  <bruno@clisp.org>
51285
51286         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51287         to empty.
51288
51289 2008-07-10  Ben Pfaff  <blp@gnu.org>
51290
51291         Add isnan module.
51292         * doc/posix-functions/isnan.texi: Mention new module.
51293         * lib/math.in.h: Define isnan macro if we have decided to replace
51294         it.
51295         * m4/isnan.m4: New file.
51296         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51297         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51298         also.
51299         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51300         redundancy.
51301         * m4/math_h.m4: Initialize and substitute variables for isnan
51302         module.
51303         * modules/isnan: New file.
51304         * modules/isnan-tests: New file.
51305         * modules/math: Add substitutions for new module.
51306         * tests/test-isnan.c: New file.
51307         * MODULES.html.sh: Mention new module.
51308
51309 2008-07-10  Ben Pfaff  <blp@gnu.org>
51310
51311         Add isnanf module.
51312         * lib/isnanf.m4: New file.
51313         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51314         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51315         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51316         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51317         * modules/isnanf: New file.
51318         * modules/isnanf-tests: New file.
51319         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51320         files.
51321         * tests/test-isnanf-nolibm.c: factored most of its contents into
51322         new file tests/test-isnanf.h.
51323         * tests/test-isnanf.h: New file.
51324         * tests/test-isnanf.c: New file.
51325         * MODULES.html.sh: Mention new module.
51326         * doc/glibc-functions/isnanf.texi: Mention new module.
51327
51328 2008-07-10  Ben Pfaff  <blp@gnu.org>
51329
51330         Add isnand module.
51331         * lib/isnand.h: New file.
51332         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51333         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51334         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51335         functionality also.
51336         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51337         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51338         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51339         * modules/isnand: New file.
51340         * modules/isnand-tests: New file.
51341         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51342         files.
51343         * tests/test-isnand-nolibm.c: factored most of its contents into
51344         new file tests/test-isnand.h.
51345         * tests/test-isnand.h: New file.
51346         * tests/test-isnand.c: New file.
51347         * MODULES.html.sh: Mention new module.
51348
51349 2008-07-10  Ben Pfaff  <blp@gnu.org>
51350
51351         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51352         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51353         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51354         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51355         * modules/isnanf-nolibm: Update references to renamed files.
51356         * modules/isnand-nolibm: Likewise.
51357         * modules/isnanf-nolibm-tests: Likewise.
51358         * modules/isnand-nolibm-tests: Likewise.
51359         * lib/frexp.c: Likewise.
51360         * lib/isfinite.c: Likewise.
51361         * lib/signbitd.c: Likewise.
51362         * lib/signbitf.c: Likewise.
51363         * lib/vasnprintf.c: Likewise.
51364         * tests/test-ceilf1.c: Likewise.
51365         * tests/test-ceilf2.c: Likewise.
51366         * tests/test-floorf1.c: Likewise.
51367         * tests/test-floorf2.c: Likewise.
51368         * tests/test-frexp.c: Likewise.
51369         * tests/test-round1.c: Likewise.
51370         * tests/test-round2.c: Likewise.
51371         * tests/test-roundf1.c: Likewise.
51372         * tests/test-strtod.c: Likewise.
51373         * tests/test-trunc1.c: Likewise.
51374         * tests/test-trunc2.c: Likewise.
51375         * tests/test-truncf1.c: Likewise.
51376         * tests/test-truncf2.c: Likewise.
51377         * NEWS: Mention the renamed header files.
51378
51379 2008-07-11  Jim Meyering  <meyering@redhat.com>
51380
51381         vc-list-files: make the last-resort awk code more portable
51382         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51383         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51384         does not support it.
51385
51386 2008-07-10  Eric Blake  <ebb9@byu.net>
51387
51388         Work with tar's bootstrap.
51389         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51390         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51391         an m4 comment.
51392
51393 2008-07-09  Jim Meyering  <meyering@redhat.com>
51394
51395         posix-shell.m4: fix typo that made this test malfunction
51396         * m4/posix-shell.m4: Remove capitalization in variable name.
51397
51398 2008-07-08  Bruno Haible  <bruno@clisp.org>
51399
51400         * m4/onceonly.m4: Update comments.
51401         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51402
51403 2008-07-04  Jim Meyering  <meyering@redhat.com>
51404
51405         * users.txt: Add vc-dwim.
51406         (bison, coreutils): Use the gitweb URL.
51407
51408 2008-07-03  Jim Meyering  <meyering@redhat.com>
51409
51410         * users.txt: Add libffcall.  From Sam Steingold.
51411
51412 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51413
51414         getdate.y: do not ignore TZ with relative day, month or year offset
51415         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51416         relative-date-handling, since otherwise, the latter would clobber the
51417         sole output (an updated Start value) of the tz-handling block.
51418         * tests/test-getdate.c: Tests for the fix
51419
51420 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51421
51422         Recognize 'foo_LIBRARIES += libgnu.a'.
51423         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51424         makefile snippet has already specified an installation location,
51425         also using '+='.
51426
51427 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51428
51429         getdate.y: factor out common actions
51430         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51431         Use them in place of open-coded actions.
51432
51433 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51434
51435         Add self-test for getdate module.
51436         * modules/getdate-tests: New file.
51437         * tests/test-getdate.c: New file.
51438
51439 2008-06-29  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51442         .gitignore.
51443         Reported by Sylvain Beucler <beuc@beuc.net>.
51444
51445 2008-06-29  Bruno Haible  <bruno@clisp.org>
51446
51447         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51448         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51449
51450 2008-06-29  Bruno Haible  <bruno@clisp.org>
51451
51452         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51453         EXTRA_DIST.
51454         Reported by Sylvain Beucler <beuc@beuc.net>.
51455
51456 2008-06-26  Jim Meyering  <meyering@redhat.com>
51457
51458         make several modules depend on the "open" module
51459         This provides slightly increased consistency when opening-for-write
51460         the name of a non-directory spelled with a trailing slash.
51461         * modules/chdir-safer: Likewise.
51462         * modules/chown: Likewise.
51463         * modules/clean-temp: Likewise.
51464         * modules/copy-file: Likewise.
51465         * modules/fchdir: Likewise.
51466         * modules/fcntl-safer: Likewise.
51467         * modules/pipe: Likewise.
51468         * modules/utime: Likewise.
51469         Prompted by Eric Blake and Bruno Haible.
51470
51471 2008-06-24  Andreas Schwab  <schwab@suse.de>
51472
51473         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51474         literals can be used as initializers for global variables.
51475
51476 2008-06-23  Eric Blake  <ebb9@byu.net>
51477
51478         Make gnulib-cache.m4 easier to diff.
51479         * gnulib-tool (func_import): Allow newlines when reading cached
51480         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51481
51482 2008-06-23  Bruno Haible  <bruno@clisp.org>
51483
51484         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51485         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51486         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51487         m4/signalblocking.m4.
51488         (gl_PREREQ_SIGACTION): Don't invoke it.
51489         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51490         gl_PREREQ_SIG_HANDLER_H.
51491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51492         Don't check for sigaction here.
51493
51494 2008-06-23  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51497         (install_handlers): Don't set the SA_RESETHAND flag.
51498
51499 2008-06-23  Bruno Haible  <bruno@clisp.org>
51500
51501         * m4/sigaction.m4: Comment fixes.
51502         * lib/signal.in.h: Likewise.
51503
51504 2008-06-23  Eric Blake  <ebb9@byu.net>
51505
51506         Fix typo.
51507         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51508
51509         Avoid SA_ namespace.
51510         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51511         Reported by Ralf Wildenhues.
51512
51513         Avoid test failure due to SA_RESTORER.
51514         * tests/test-sigaction.c (SA_MASK): New macro.
51515         (main): Avoid failing due to extension flags being set.
51516         Reported by Jim Meyering.
51517
51518         Revert use of sig-handler.h in sigprocmask.c.
51519         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51520         it requires the existence of struct sigaction.
51521         * lib/sigprocmask.c (handler_t): Restore typedef.
51522         (rpl_signal, old_handlers): Use local type.
51523
51524 2008-06-22  Bruno Haible  <bruno@clisp.org>
51525
51526         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51527         conditionally.
51528         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51529
51530 2008-06-22  Bruno Haible  <bruno@clisp.org>
51531
51532         * doc/posix-functions/siginterrupt.texi: Move note.
51533
51534         * lib/signal.in.h (SA_RESTART): New macro.
51535         * lib/sigaction.c: Update comment.
51536
51537         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51538
51539         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51540         (gl_PREREQ_SIGPROCMASK): Invoke it.
51541         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51542
51543         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51544
51545         * lib/sigprocmask.c: Update a comment.
51546
51547 2008-06-21  Eric Blake  <ebb9@byu.net>
51548
51549         Use sigaction module rather than signal().
51550         * modules/c-stack (Depends-on): Add sigaction.
51551         * modules/fatal-signal (Depends-on): Likewise.
51552         * modules/nanosleep (Depends-on): Likewise.
51553         * modules/sigprocmask (Files): Add sig-handler.h.
51554         * modules/sigaction (Files): Likewise.
51555         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51556         Eggert.
51557         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51558         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51559         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51560         (init_fatal_signals): Likewise.
51561         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51562         (siginterrupt): Delete fallback.
51563         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51564         instead.
51565         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51566         siginterrupt.
51567
51568         New module sigaction, for mingw.
51569         * modules/sigaction: New module...
51570         * modules/sigaction-tests: ...and its test.
51571         * m4/sigaction.m4: New file.
51572         * lib/sigaction.c: Likewise.
51573         * tests/test-sigaction.c: Likewise.
51574         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51575         * modules/signal (Makefile.am): Likewise.
51576         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51577         needed.
51578         * doc/posix-headers/signal.texi (signal.h): Mention provided
51579         types.
51580         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51581         that sigaction is preferable.
51582         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51583         module.
51584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51585         sigaction.
51586
51587         Improve robustness of sigprocmask by overriding signal.
51588         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51589         is in use.
51590         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51591         (SIGKILL, SIGSTOP): Provide fallbacks.
51592         (rpl_signal): Implement.
51593         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51594         signal can be called inside handlers.
51595
51596         Fix nanosleep module on mingw.
51597         * modules/nanosleep (Depends-on): Add sys_select.
51598         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51599
51600         Fix licensing of sigprocmask.
51601         * modules/raise (License): Relicense as LGPL.
51602
51603 2008-06-21  Bruno Haible  <bruno@clisp.org>
51604
51605         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51606         result if it contains question marks.
51607         Reported by Michael Geng <linux@michaelgeng.de>.
51608
51609 2008-06-19  Bruno Haible  <bruno@clisp.org>
51610
51611         Fix CVS-ism.
51612         * doc/gnulib.texi: Include updated-stamp.texi.
51613         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51614         (updated-stamp.texi): New rule.
51615         (gnulib.info): Depend on it.
51616         * doc/.gitignore: Add updated-stamp.texi.
51617         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51618
51619 2008-06-19  Bruno Haible  <bruno@clisp.org>
51620
51621         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51622         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51623
51624 2008-06-19  Eric Blake  <ebb9@byu.net>
51625
51626         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51627         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51628         Reported by Stepan Kasal.
51629
51630 2008-06-18  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51633         Reported by Eric Blake.
51634
51635 2008-06-18  Eric Blake  <ebb9@byu.net>
51636
51637         Work around cygwin 1.5.25 strsignal bug.
51638         * tests/test-strsignal.c: Allow for const char *.
51639         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51640
51641 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51642
51643         * users.txt: Update URL to article and add author/date
51644         information.
51645
51646 2008-06-17  Bruno Haible  <bruno@clisp.org>
51647
51648         New macro gl_DISABLE_THREADS.
51649         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51650         if the user did not pass --enable-threads or --disable-threads option.
51651         (gl_DISABLE_THREADS): New macro.
51652         Reported by Eric Blake <ebb9@byu.net>.
51653
51654 2008-06-17  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51657         when the macro ignores it.
51658         Based on a patch by Eric Blake <ebb9@byu.net>.
51659
51660 2008-06-17  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/tls (License): Change to LGPLv2+.
51663         Reported by Eric Blake.
51664
51665 2008-06-17  Eric Blake  <ebb9@byu.net>
51666
51667         Simplify c-stack prerequisites.
51668         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51670         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51671         check.
51672         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51673         <sys/resource.h>.
51674
51675         Move c-stack test into testsuite.
51676         * modules/c-stack-tests: New file.
51677         * lib/c-stack.c [DEBUG]: Move test program...
51678         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51679         fail test if sigaltstack is lacking.
51680         * tests/test-c-stack.sh: New driver file.
51681
51682 2008-06-16  Eric Blake  <ebb9@byu.net>
51683
51684         Use raise module consistently.
51685         * modules/fatal-signal (Depends-on): Add raise.
51686         * modules/sigprocmask (Depends-on): Likewise.
51687         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51688         * lib/sigprocmask.c (sigprocmask): Likewise.
51689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51690         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51691
51692         Fix compliance bug in sigpending.
51693         * lib/sigprocmask.c (sigpending): Return pending array via
51694         parameter, not return value.
51695
51696 2008-06-14  Eric Blake  <ebb9@byu.net>
51697
51698         Improve obstack-printf test code.
51699         * tests/test-obstack-printf.c (test_function): Fix comment, and
51700         simplify usage of obstack_* in macros.  Add a test for coverage.
51701         Reported by Bruno Haible.
51702
51703 2008-06-14  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51706         array size as a constant, not as a const variable.
51707         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51708         AC_USE_SYSTEM_EXTENSIONS.
51709         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51710         Test whether the obstack_printf function actually exists.
51711         * modules/obstack-printf (Depends-on): Add extensions.
51712         (Include): Remove obstack.h.
51713         * modules/obstack-printf-posix (Depends-on): Add extensions.
51714         (Include): Remove obstack.h.
51715
51716 2008-06-13  Eric Blake  <ebb9@byu.net>
51717
51718         Add obstack-printf and obstack-printf-posix modules.
51719         * modules/obstack-printf: New file.
51720         * modules/obstack-printf-posix: Likewise.
51721         * MODULES.html.sh (Misc): Mention them.
51722         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51723         Likewise.
51724         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51725         Likewise.
51726         * modules/stdio (Makefile.am): Accomodate new modules.
51727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51728         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51729         Declare.
51730         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51731         functions.
51732         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51733         (gl_REPLACE_OBSTACK_PRINTF): New macros
51734         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51735         * tests/test-obstack-printf.c: New file.
51736         * modules/obstack-printf-tests: Likewise.
51737         * modules/obstack-printf-posix-tests: Likewise.
51738
51739 2008-06-11  Bruno Haible  <bruno@clisp.org>
51740
51741         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51742         * lib/open.c: Include errno.h.
51743         (open): Fail when attempting to write to a file that has a trailing
51744         slash.
51745         * tests/test-open.c (main): Test against trailing slash bug.
51746         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51747
51748 2008-06-10  Bruno Haible  <bruno@clisp.org>
51749
51750         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51751         for $? to work inside the trap command, with various /bin/sh-s.
51752         * tests/test-vc-list-files-cvs.sh: Likewise.
51753
51754 2008-06-10  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/acl-internal.h: Don't include gettext.h here.
51757         * lib/set-mode-acl.c: Include gettext.h here.
51758         * lib/copy-acl.c: Likewise.
51759
51760 2008-06-10  Bruno Haible  <bruno@clisp.org>
51761
51762         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51763         * lib/wait-process.c (wait_subprocess): Likewise.
51764         * lib/execute.h (execute): Add termsigp argument.
51765         * lib/execute.c (execute): Likewise.
51766         * lib/csharpcomp.c (compile_csharp_using_pnet,
51767         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51768         * lib/csharpexec.c (execute_csharp_using_pnet,
51769         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51770         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51771         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51772         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51773         is_jikes_present): Update.
51774         * lib/javaexec.c (execute_java_class): Update.
51775         * lib/javaversion.c (execute_and_read_line): Update.
51776         * NEWS: Document the changes.
51777         Reported by Eric Blake.
51778
51779 2008-06-10  Eric Blake  <ebb9@byu.net>
51780
51781         Add missing include.
51782         * tests/test-strstr.c (includes): Add <signal.h>.
51783         * tests/test-strcasestr.c (includes): Likewise.
51784         * tests/test-memmem.c (includes): Likewise.
51785
51786 2008-06-10  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/wait-process.c (wait_subprocess): Add an assertion.
51789
51790 2008-06-10  Bruno Haible  <bruno@clisp.org>
51791
51792         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51793
51794 2008-06-10  Bruno Haible  <bruno@clisp.org>
51795
51796         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51797         using alarm().
51798         * tests/test-strcasestr.c (main): Likewise.
51799         * tests/test-strstr.c (main): Likewise.
51800
51801 2008-06-09  Bruno Haible  <bruno@clisp.org>
51802
51803         Work around the Solaris 10 ACE ACLs ABI change.
51804         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51805         declare if ACL_NO_TRIVIAL is present.
51806         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51807         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51808         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51809         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51810         define if ACL_NO_TRIVIAL is present.
51811         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51812         and use the current ABI.
51813         (file_has_acl): Use same #if condition as elsewhere.
51814         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51815         in use, and use the current ABI.
51816         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51817         Reported by Jim Meyering.
51818
51819 2008-06-09  Eric Blake  <ebb9@byu.net>
51820
51821         Work around environments that (stupidly) ignore SIGALRM.
51822         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51823         before using alarm().
51824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51826         Reported by Ian Beckwith <ianb@erislabs.net>.
51827
51828         Produce autobuild blurb earlier in log.
51829         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51830
51831 2008-06-09  Jim Meyering  <meyering@redhat.com>
51832         and OndÅ™ej Vašík  <ovasik@redhat.com>
51833
51834         utimens.c: correct kernel bug work-around
51835         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51836         failure, not success, and the kernel bug we're trying to work
51837         around affects not just the utimensat call, but also the fallback
51838         futimens call.
51839         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51840         not success.
51841         [HAVE_FUTIMENS]: Use the same work-around, here.
51842
51843 2008-06-09  Jim Meyering  <meyering@redhat.com>
51844
51845         add more guards around definition of ACE_-related code
51846         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51847         ALLOW and ACE_OWNER are also defined.
51848
51849 2008-06-08  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/acl-internal.h: Add me as co-author.
51852         * lib/file-has-acl.c: Likewise.
51853         * lib/set-mode-acl.c: Likewise.
51854         * lib/copy-acl.c: Likewise.
51855
51856 2008-06-08  Bruno Haible  <bruno@clisp.org>
51857
51858         Add support for AIX ACLs.
51859         * lib/acl-internal.h (acl_nontrivial): New declaration.
51860         * lib/file-has-acl.c (acl_nontrivial): New function.
51861         (file_has_acl): Add implementation using AIX 4 ACL API.
51862         * lib/set-mode-acl.c (qset_acl): Likewise.
51863         * lib/copy-acl.c (qcopy_acl): Likewise.
51864
51865 2008-06-08  Bruno Haible  <bruno@clisp.org>
51866
51867         Add support for HP-UX ACLs.
51868         * lib/acl-internal.h (acl_nontrivial): New declaration.
51869         * lib/file-has-acl.c (acl_nontrivial): New function.
51870         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51871         * lib/set-mode-acl.c (qset_acl): Likewise.
51872         * lib/copy-acl.c (qcopy_acl): Likewise.
51873
51874 2008-06-08  Bruno Haible  <bruno@clisp.org>
51875
51876         Add support for Cygwin ACLs.
51877         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51878         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51879         the chmod_or_fchmod call.
51880         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51881
51882 2008-06-08  Bruno Haible  <bruno@clisp.org>
51883
51884         Fix bug with setuid modes in Solaris 10+ code.
51885         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51886         succeeded, when the mode contains some special bits.
51887
51888 2008-06-08  Bruno Haible  <bruno@clisp.org>
51889
51890         Add support for Solaris 7..10 ACLs.
51891         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51892         declarations.
51893         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51894         functions.
51895         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51896         * lib/set-mode-acl.c (qset_acl): Likewise.
51897         * lib/copy-acl.c (qcopy_acl): Likewise.
51898
51899 2008-06-08  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51902         declaration.
51903         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51904         (acl_access_nontrivial): Remove MacOS X case.
51905         (file_has_acl): Use acl_extended_nontrivial.
51906         * lib/copy-acl.c (qcopy_acl): Likewise.
51907
51908 2008-06-08  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51911
51912 2008-06-08  Jim Meyering  <meyering@redhat.com>
51913
51914         * modules/acl (Maintainer): Add Bruno Haible.
51915
51916 2008-06-07  Bruno Haible  <bruno@clisp.org>
51917
51918         Improve support for Tru64 ACLs.
51919         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51920         ACL on OSF/1.
51921
51922 2008-06-07  Bruno Haible  <bruno@clisp.org>
51923
51924         Add support for MacOS X ACLs.
51925         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51926         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51927         * lib/set-mode-acl.c (qset_acl): Likewise.
51928         * lib/copy-acl.c (qcopy_acl): Likewise.
51929
51930 2008-06-07  Bruno Haible  <bruno@clisp.org>
51931
51932         Fix memory leak introduced on 2008-05-22.
51933         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51934         use.
51935
51936 2008-06-07  Bruno Haible  <bruno@clisp.org>
51937
51938         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51939         to construct an empty ACL.
51940
51941 2008-06-07  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51944         precisely.
51945         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51946
51947 2008-06-07  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51950         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51951
51952 2008-06-07  Bruno Haible  <bruno@clisp.org>
51953
51954         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51955         regardless of POSIX.
51956         * doc/posix-functions/_longjmp.texi: Likewise.
51957         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51958         SystemV platform in this case.
51959
51960 2008-06-06  Eric Blake  <ebb9@byu.net>
51961
51962         Document abort() bugs.
51963         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51964
51965         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51966         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51967         sigsetjmp.
51968         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51969         siglongjmp, but only as a macro.
51970         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51971         is obsolete.
51972         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51973
51974         Tweak documentation to cover cygwin argz bugs.
51975         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51976         argz bug fix; no code change needed since no cygwin releases
51977         occurred between the last fix and the bug being tested.
51978         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51979         module and recently fixed cygwin bugs.
51980         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51981         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51982         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51983         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51984         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51985         Likewise.
51986         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51987         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51988         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51989         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51990         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51991         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51992         Likewise.
51993
51994         Avoid gcc warning on cygwin.
51995         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51996         !ACL_NO_TRIVIAL]: Avoid unused variable.
51997
51998 2008-06-05  Eric Blake  <ebb9@byu.net>
51999
52000         Be tolerant of UNKNOWN version in gnulib-tool test dir.
52001         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
52002         git-version-gen fails to come up with a version.
52003         Reported by Simon Josefsson.
52004
52005 2008-06-05  Jim Meyering  <meyering@redhat.com>
52006             Paul Eggert  <eggert@cs.ucla.edu>
52007
52008         utimens.c: work around a probable Linux kernel bug
52009         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
52010         appears to be a kernel bug that causes utimensat to return 280
52011         instead of 0, indicating success.
52012
52013 2008-06-04  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
52016         2008-06-01 commit.
52017
52018 2008-06-04  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
52021         * lib/file-has-acl.c (acl_access_nontrivial): New function.
52022         (file_has_acl): Use it. Save errno afterwards.
52023         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
52024
52025 2008-06-03  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
52028         draft code. Simplify #ifs.
52029         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
52030         Put Solaris code after POSIX-draft code. Fix comments regarding
52031         Solaris 10, HP-UX. Mention Cygwin.
52032         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
52033
52034 2008-06-03  Eric Blake  <ebb9@byu.net>
52035
52036         Provide fallback for older kernels.
52037         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
52038         Provide runtime fallback if kernel lacks support.
52039         Reported by Mike Frysinger.
52040
52041 2008-06-02  Bruno Haible  <bruno@clisp.org>
52042
52043         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
52044         it exists.
52045
52046 2008-06-02  Bruno Haible  <bruno@clisp.org>
52047
52048         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
52049         * lib/copy-acl.c (qcopy_acl): Update comment.
52050
52051 2008-06-02  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
52054         like ACL APIs.
52055
52056 2008-06-02  Bruno Haible  <bruno@clisp.org>
52057
52058         * tests/test-file-has-acl.sh: Use different code for Cygwin.
52059         * tests/test-set-mode-acl.sh: Likewise.
52060         * tests/test-copy-acl.sh: Likewise.
52061         * tests/test-copy-file.sh: Likewise.
52062
52063 2008-06-02  Bruno Haible  <bruno@clisp.org>
52064
52065         * tests/test-file-has-acl.sh: Remove unused code.
52066
52067 2008-06-01  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
52070         (copy_acl): Just a wrapper around qcopy_acl that emits the error
52071         messages.
52072         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
52073
52074 2008-06-01  Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
52077         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
52078         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
52079         APIs.
52080         * modules/acl-tests (configure.ac): Remove tests now contained in
52081         m4/acl.m4.
52082
52083 2008-06-02  Jim Meyering  <meyering@redhat.com>
52084
52085         announce-gen: use a better key-server host name
52086         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
52087         it may be more consistently reliable.  Suggested by Werner Koch
52088         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
52089
52090 2008-06-01  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
52093         Reported by Voroskoi Andras <voroskoi@gmail.com>.
52094
52095 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
52096
52097         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
52098
52099 2008-06-01  Bruno Haible  <bruno@clisp.org>
52100
52101         New ACL tests.
52102         * tests/test-file-has-acl.sh: New file.
52103         * tests/test-file-has-acl.c: New file.
52104         * tests/test-set-mode-acl.sh: New file.
52105         * tests/test-set-mode-acl.c: New file.
52106         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
52107         * tests/test-copy-acl.c: New file.
52108         * modules/acl-tests: New file, based on modules/copy-file-tests.
52109         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
52110         (Depends-on): Add acl-tests.
52111         (configure.ac): Remove checks.
52112         (Makefile.am): Don't create test-sameacls program here any more.
52113
52114 2008-06-01  Bruno Haible  <bruno@clisp.org>
52115
52116         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
52117         * tests/test-sameacls.c: Include progname.h.
52118         (main): Invoke set_program_name. Portability fixes for MacOS X,
52119         Solaris, HP-UX.
52120
52121 2008-06-01  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
52124         function.
52125         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
52126
52127 2008-06-01  Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/rpmatch (Depends-on): Add strdup.
52130
52131 2008-06-01  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/pipe.c: Include unistd-safer.h.
52134         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
52135         * modules/pipe (Depends-on): Add unistd-safer.
52136
52137 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52138
52139         * modules/autobuild (configure.ac): Call AB_INIT.
52140
52141 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52142
52143         * tests/test-getaddrinfo.c: Don't print debug messages by default.
52144         Suggested by Bruno Haible <bruno@clisp.org>.
52145
52146 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52147
52148         * tests/test-base64.c: Cast size_t to unsigned long when invoking
52149         printf.  Use %lu instead of %d.  Reported by Bruno Haible
52150         <bruno@clisp.org>.
52151
52152 2008-05-29  Eric Blake  <ebb9@byu.net>
52153
52154         Prefer new POSIX 200x interfaces over futimesat.
52155         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
52156         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
52157         when available.
52158         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
52159
52160 2008-05-28  Bruno Haible  <bruno@clisp.org>
52161
52162         * modules/stpcpy (License): Change to LGPLv2+.
52163         Requested by David Lutterkort <dlutter@redhat.com>.
52164
52165 2008-05-27  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
52168         current mingw.
52169         Reported by Jose E. Marchesi <jemarch@gnu.org>.
52170
52171 2008-05-27  Bruno Haible  <bruno@clisp.org>
52172
52173         * modules/iconv_open (Link): New section, from module 'iconv'.
52174         * modules/striconv (Link): Likewise.
52175         * modules/striconveh (Link): Likewise.
52176         * modules/xstriconv (Link): Likewise.
52177         * modules/unicodeio (Link): Likewise.
52178         * modules/propername (Link): Likewise.
52179         Reported by Jim Meyering.
52180
52181 2008-05-26  Jim Meyering  <meyering@redhat.com>
52182
52183         sha256: do not artificially restrict buffer length to be < 2^32
52184         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
52185         uint32_t to size_t.
52186         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
52187         to match.
52188
52189         avoid unaligned access errors, e.g., on sparc
52190         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
52191         direct access through a possibly-unaligned uint64* pointer.
52192         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
52193         direct access through a possibly-unaligned uint32* pointer.
52194         Prompted by this patch from Tom "spot" Callaway:
52195         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
52196
52197         sha512.c: fix typo in comment
52198         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
52199
52200 2008-05-25  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/set-mode-acl.c: Renamed from lib/acl.c.
52203         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
52204         (Makefile.am): Update lib_SOURCES.
52205
52206 2008-05-25  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
52209
52210 2008-05-25  Jim Meyering  <meyering@redhat.com>
52211
52212         useless-if-before-free: freed expr may have white-space differences
52213         * build-aux/useless-if-before-free: Recognize cases in which the
52214         freed expression differs from the tested one in embedded white
52215         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
52216         $1 was used, so we can't make any regexp shy.  Improved tests now
52217         detect this.
52218
52219         useless-if-before-free: accept white space in the expression.
52220         * build-aux/useless-if-before-free: For now, any white space
52221         in the expression must be identical in the free argument.
52222
52223         useless-if-before-free: efficiency tweak
52224         * build-aux/useless-if-before-free: Make the expression-matching
52225         regexp "shy".
52226         Make the *outer* regexp shy, not the expr-matching one.
52227
52228         update code-in-comment to accept cast of free arg
52229         * build-aux/useless-if-before-free: Update regexp.
52230
52231 2008-05-25  Bruno Haible  <bruno@clisp.org>
52232
52233         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52234         * modules/copy-file-tests (Files, Makefile.am): Update.
52235         * tests/test-copy-file.c (func_test_copy): Update.
52236
52237 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52238
52239         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52240
52241 2008-05-23  Bruno Haible  <bruno@clisp.org>
52242
52243         Improve support for ACLs on OSF/1.
52244         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52245         Remove fallback for unknown flavors of ACLs.
52246
52247 2008-05-22  Bruno Haible  <bruno@clisp.org>
52248
52249         Add support for ACLs on OSF/1.
52250         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52251         replacements.
52252         (acl_free_text): New macro fallback.
52253         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52254         acl_free.
52255         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52256         acl_free_text function. Require AC_C_INLINE.
52257
52258 2008-05-22  Bruno Haible  <bruno@clisp.org>
52259
52260         Make copy_acl work on MacOS X 10.5.
52261         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52262         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52263         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52264         If MODE_INSIDE_ACL, don't assume that every system has the same text
52265         representation for ACLs as FreeBSD.
52266         * lib/copy-acl.c (copy_acl): Add support for platforms with
52267         !MODE_INSIDE_ACL.
52268         * lib/file-has-acl.c (file_has_acl): Likewise.
52269         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52270         FreeBSD, MacOS X, or IRIX, respectively.
52271
52272 2008-05-22  Bruno Haible  <bruno@clisp.org>
52273
52274         * lib/acl.h: Don't include <sys/acl.h>.
52275         (GETACLCNT): Move fallback to lib/acl-internal.h.
52276         * lib/acl-internal.h: Include <sys/acl.h> here.
52277         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52278
52279 2008-05-22  Bruno Haible  <bruno@clisp.org>
52280
52281         Split off copy_acl function to separate file.
52282         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52283         * lib/acl.c (copy_acl): Moved function to separate file.
52284         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52285         * modules/acl (Files): Add lib/copy-acl.c.
52286         (Makefiles.am): Augment lib_SOURCES.
52287
52288 2008-05-22  Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/copy-file-tests: New file.
52291         * tests/test-copy-file.sh: New file.
52292         * tests/test-copy-file.c: New file.
52293         * tests/test-copy-file-sameacls.c: New file.
52294
52295 2008-05-22  Eric Blake  <ebb9@byu.net>
52296
52297         Avoid gcc warning.
52298         * tests/test-memcmp.c (main): Pass NULL indirectly.
52299
52300 2008-05-21  Bruno Haible  <bruno@clisp.org>
52301
52302         Add reference doc about ACLs.
52303         * doc/acl-resources.txt: New file.
52304         * doc/acl-cygwin.txt: New file.
52305
52306 2008-05-21  Bruno Haible  <bruno@clisp.org>
52307
52308         Avoid one more warning from gcc.
52309         * lib/vasnprintf.c (IF_LINT): Update comments.
52310         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52311
52312 2008-05-21  Jim Meyering  <meyering@redhat.com>
52313
52314         avoid a warning from gcc
52315         * lib/vasnprintf.c (IF_LINT): Define.
52316         (scale10_round_decimal_long_double):
52317         Use it to avoid a "may be used uninitialized" warning.
52318         (scale10_round_decimal_double): Likewise.
52319
52320 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52321
52322         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52323         declared.
52324
52325 2008-05-20  Bruno Haible  <bruno@clisp.org>
52326
52327         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52328         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52329
52330 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52331
52332         * modules/memcmp-tests: New file.
52333         * tests/test-memcmp.c: New file.
52334
52335 2008-05-19  Bruno Haible  <bruno@clisp.org>
52336
52337         * modules/propername (Notice, configure.ac): Put quoted "..." into
52338         --keyword option.
52339         * lib/propername.h: Update comments accordingly.
52340         Reported by Eric Blake.
52341
52342 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52343
52344         * modules/getpass-gnu (Depends-on): Add fseeko.
52345
52346 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52347
52348         * modules/base64-tests: New file.
52349
52350 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52351
52352         * lib/base64.c (base64_decode_ctx): If a decode context structure
52353         was passed in use it to ignore newlines.  If a context structure
52354         was _not_ passed in, continue to treat newlines as garbage (this
52355         is the historical behavior).  Formerly base64_decode.
52356         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52357         takes a decode context structure.
52358         * lib/base64.h (base64_decode): Macro for four-argument calls.
52359         (base64_decode_alloc): Likewise.
52360         * lib/base64.c (base64_decode_ctx): If a decode context structure
52361         was passed in use it to ignore newlines.  If a context structure
52362         was _not_ passed in, continue to treat newlines as garbage (this
52363         is the historical behavior).  Formerly base64_decode.
52364         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52365         takes a decode context structure.
52366         * lib/base64.h (base64_decode): Macro for four-argument calls.
52367         (base64_decode_alloc): Likewise.
52368
52369 2008-05-19  Jim Meyering  <meyering@redhat.com>
52370
52371         avoid a warning from gcc
52372         * lib/trim.c (IF_LINT): Define.
52373         (trim2): Use it to avoid a "may be used uninitialized" warning.
52374
52375         Fix doc typo.
52376         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52377
52378 2008-05-19  Bruno Haible  <bruno@clisp.org>
52379
52380         * doc/glibc-functions/getpass.texi: Document limits of other
52381         implementations.
52382
52383 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52384             Bruno Haible <bruno@clisp.org>
52385
52386         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52387
52388 2008-05-18  Bruno Haible  <bruno@clisp.org>
52389
52390         * modules/propername: New file, from GNU gettext.
52391         * lib/propername.h: New file, from GNU gettext.
52392         * lib/propername.c: New file, from GNU gettext.
52393         * MODULES.html.sh (Internationalization functions): Add propername.
52394
52395 2008-05-16  Jim Meyering  <meyering@redhat.com>
52396             Bruno Haible  <bruno@clisp.org>
52397
52398         Avoid some warnings from "gcc -Wshadow".
52399         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52400
52401 2008-05-15  Eric Blake  <ebb9@byu.net>
52402
52403         Extend previous patch to cygwin 1.7.0.
52404         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52405         fast implementation in cygwin >= 1.7.0.
52406         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52408
52409 2008-05-15  Bruno Haible  <bruno@clisp.org>
52410
52411         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52412         implementation in glibc >= 2.9.
52413         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52415
52416 2008-05-15  Bruno Haible  <bruno@clisp.org>
52417
52418         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52419         (Unicode string functions): Add unilbrk/*.
52420         Reported by Karl Berry.
52421
52422 2008-05-15  Eric Blake  <ebb9@byu.net>
52423
52424         Fix violation of <stdbool.h> replacement in regex.
52425         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52426         * lib/regexec.c (re_search_internal): Likewise.
52427         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52428
52429 2008-05-15  Jim Meyering  <meyering@redhat.com>
52430
52431         avoid distracting test output when git or cvs is not found
52432         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52433         * tests/test-vc-list-files-git.sh: Likewise.
52434
52435 2008-05-15  Eric Blake  <ebb9@byu.net>
52436
52437         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52438         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52439         glibc version.
52440         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52441         * doc/posix-functions/strstr.texi (strstr): Likewise.
52442         * lib/str-two-way.h (MAX): Sychronize with glibc.
52443
52444 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52445
52446         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52447         opr.ctx_type.
52448         (calc_first): Initialize constraint field.
52449         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52450         Fix grammar.
52451         (duplicate_node): Merge constraint field for all node types.
52452         (calc_eclosure_iter): Look at constraint field for all node types.
52453         * lib/regex_internal.c (create_cd_newstate): Don't look at
52454         opr.ctx_type.
52455
52456 2008-05-14  Bruno Haible  <bruno@clisp.org>
52457
52458         Help GCC to do better code generation.
52459         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52460         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52461         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52462         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52463         Declare with attribute 'malloc' if supported.
52464
52465 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52466
52467         use "echo STR|wc -c" rather than unportable "expr length STR"
52468         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52469         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52470
52471 2008-05-14  Jim Meyering  <meyering@redhat.com>
52472
52473         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52474         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52475         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52476         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52477         via Collin Lasse.
52478
52479 2008-05-14  Eric Blake  <ebb9@byu.net>
52480
52481         Avoid quadratic growth in gl_LIBSOURCES.
52482         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52483         Suggested by Bruno Haible.
52484
52485         Test xmemdup0.
52486         * modules/xmemdup0-tests: New file.
52487         * tests/test-xmemdup0.c: Likewise.
52488
52489 2008-05-13  Eric Blake  <ebb9@byu.net>
52490
52491         Split xmemdup0 into its own module.
52492         * modules/xmemdup0: New file.
52493         * lib/xmemdup0.h: Likewise.
52494         * lib/xmemdup0.c: Likewise.
52495         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52496         * lib/xalloc.h (xmemdup0): Remove.
52497         * lib/xmalloc.c (xmemdup0): Likewise.
52498
52499 2008-05-13  Eric Blake  <ebb9@byu.net>
52500             Bruno Haible  <bruno@clisp.org>
52501
52502         Reduce number of forks required during autoconf.
52503         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52504         and gl_LIBSOURCES_DIR.
52505         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52506         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52507         m4_syscmd per file.
52508         <m4_foreach_w>: Move...
52509         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52510
52511 2008-05-13  Eric Blake  <ebb9@byu.net>
52512
52513         * gnulib-tool: Fix various comment typos.
52514
52515 2008-05-12  Bruno Haible  <bruno@clisp.org>
52516
52517         Tailor the linebreaking algorithm.
52518         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52519
52520 2008-05-12  Bruno Haible  <bruno@clisp.org>
52521
52522         Update to Unicode 5.0.0.
52523         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52524         LBP_JV, LBP_JT. Redistribute values.
52525         (unilbrk_table): Change size.
52526         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52527         Unicode TR#14 rev. 22.
52528         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52529         LBP_JV, LBP_JT. Redistribute values.
52530         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52531         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52532         Update.
52533         * lib/unilbrk/lbrkprop1.h: Regenerated.
52534         * lib/unilbrk/lbrkprop2.h: Regenerated.
52535         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52536         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52537         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52538         Likewise.
52539         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52540         Likewise.
52541         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52542         result.
52543         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52544         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52545         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52546         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52547         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52548         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52549
52550 2008-05-11  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52553
52554 2008-05-11  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52557         * modules/unilbrk/gen-lbrk: New file.
52558
52559 2008-05-11  Bruno Haible  <bruno@clisp.org>
52560
52561         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52562         * m4/sha512.m4 (gl_SHA512): Likewise.
52563
52564 2008-05-11  Jim Meyering  <meyering@redhat.com>
52565
52566         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52567         * modules/crypto/sha256: New file.
52568         * modules/crypto/sha512: Likewise.
52569         * lib/sha256.c: Likewise.
52570         * lib/sha256.h: Likewise.
52571         * lib/sha512.c: Likewise.
52572         * lib/sha512.h: Likewise.
52573         * lib/u64.h: Likewise.
52574         * m4/sha256.m4: Likewise.
52575         * m4/sha512.m4: Likewise.
52576         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52577
52578 2008-05-10  Bruno Haible  <bruno@clisp.org>
52579
52580         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52581         (Input/Output <stdio.h>): Add xprintf.
52582         (Signal handling <signal.h>): Add strsignal.
52583         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52584         (Core language properties): Add func.
52585         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52586         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52587         strings.
52588         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52589         (Input/output): New section.
52590         (File system functions): Add openat-die, stat-macros.
52591         (Networking functions): Add sockets.
52592         (Unicode string functions): Add unictype/*.
52593         (Support for building libraries and executables): Add gperf.
52594         (Support for building documentation): Add agpl-3.0.
52595         (Misc): Add nocrash.
52596
52597 2008-05-10  Bruno Haible  <bruno@clisp.org>
52598
52599         * modules/unictype/gen-ctype: New file.
52600
52601 2008-05-10  Jim Meyering  <meyering@redhat.com>
52602
52603         Make chdir-safer.c more efficient on a system with no symlinks.
52604         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52605         also if ELOOP is zero.  Suggested by Bruno Haible.
52606
52607         Make chdir-safer.c slightly safer.
52608         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52609         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52610
52611         Avoid compile failure on systems without ELOOP (like mingw).
52612         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52613         Reported by Bruno Haible.
52614
52615 2008-05-10  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52618         (is_utf8_encoding): Use a case-insensitive comparison.
52619         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52620         streq.
52621
52622 2008-05-10  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52625         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52626         * lib/unilbrk/ulc-common.h (iconv_string_length,
52627         iconv_string_keeping_offsets): Remove declarations.
52628         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52629         Don't include <iconv.h>, streq.h, xsize.h.
52630         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52631         conversion.
52632         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52633         <iconv.h>, streq.h, xsize.h.
52634         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52635         conversion.
52636         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52637         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52638         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52639         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52640
52641 2008-05-10  Bruno Haible  <bruno@clisp.org>
52642
52643         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52644         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52645
52646         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52647         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52648
52649         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52650         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52651
52652         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52653         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52654
52655         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52656         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52657
52658         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52659         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52660
52661         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52662         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52663
52664         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52665         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52666
52667 2008-05-10  Bruno Haible  <bruno@clisp.org>
52668
52669         Split up 'linebreak' module.
52670         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52671         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52672         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52673         modifications.
52674         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52675         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52676         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52677         lib/linebreak.c.
52678         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52679         lib/linebreak.c.
52680         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52681         lib/linebreak.c.
52682         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52683         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52684         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52685         lib/linebreak.c.
52686         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52687         lib/linebreak.c.
52688         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52689         lib/linebreak.c.
52690         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52691         lib/linebreak.c.
52692         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52693         lib/linebreak.c.
52694         * modules/unilbrk/base: New file.
52695         * modules/unilbrk/tables: New file.
52696         * modules/unilbrk/u8-possible-linebreaks: New file.
52697         * modules/unilbrk/u16-possible-linebreaks: New file.
52698         * modules/unilbrk/u32-possible-linebreaks: New file.
52699         * modules/unilbrk/ulc-common: New file.
52700         * modules/unilbrk/ulc-possible-linebreaks: New file.
52701         * modules/unilbrk/u8-width-linebreaks: New file.
52702         * modules/unilbrk/u16-width-linebreaks: New file.
52703         * modules/unilbrk/u32-width-linebreaks: New file.
52704         * modules/unilbrk/ulc-width-linebreaks: New file.
52705         * lib/linebreak.h: Remove file.
52706         * lib/linebreak.c: Remove file.
52707         * m4/linebreak.m4: Remove file.
52708         * modules/linebreak: Remove file.
52709         * NEWS: Mention the changes.
52710
52711 2008-05-09  Eric Blake  <ebb9@byu.net>
52712
52713         Add xmemdup0.
52714         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52715         implementation.
52716         * lib/xmalloc.c (xmemdup0): New C implementation.
52717
52718 2008-05-08  Bruno Haible  <bruno@clisp.org>
52719
52720         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52721
52722 2008-05-07  Eric Blake  <ebb9@byu.net>
52723
52724         Support cross-compilation of <wctype.h>.
52725         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52726         AC_CACHE_CHECK.
52727
52728 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52729
52730         * build-aux/vc-list-files: Add support for bzr.
52731
52732 2008-05-03  Jim Meyering  <meyering@redhat.com>
52733
52734         avoid failed assertion with tight malloc
52735         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52736
52737 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52738
52739         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52740         are needed from arpa/inet.h.
52741         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52742         Reported by Bruno Haible.
52743
52744 2008-05-02  Jim Meyering  <meyering@redhat.com>
52745
52746         avoid compilation error on FreeBSD 6
52747         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52748
52749 2008-05-01  Jim Meyering  <meyering@redhat.com>
52750
52751         useless-if-before-free: correct --help's exit status description
52752         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52753         for one or more matches, etc.  Reported by Bruno Haible.
52754
52755         vc-list-files: make the stand-alone gnulib test work
52756         * modules/vc-list-files-tests (configure.ac):
52757         Define and AC_SUBST abs_aux_dir.
52758         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52759         $(abs_top_srcdir) to each script and having each of them
52760         duplicate the work of setting PATH, set PATH here, using
52761         the new variable, abs_aux_dir instead.
52762         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52763         * tests/test-vc-list-files-git.sh: Likewise.
52764         Reported by Bruno Haible.
52765
52766 2008-05-01  Bruno Haible  <bruno@clisp.org>
52767
52768         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52769         reallocation. Rename 'done' to 'found_delimiter'.
52770
52771 2008-05-01  Jim Meyering  <meyering@redhat.com>
52772
52773         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52774         * build-aux/vc-list-files: Use `...`, not $(...).
52775
52776 2008-04-30  Jim Meyering  <meyering@redhat.com>
52777
52778         add tests for vc-list-files
52779         * modules/vc-list-files-tests: New module.
52780         * tests/test-vc-list-files-cvs.sh: New file.
52781         * tests/test-vc-list-files-git.sh: New file.
52782
52783         avoid a warning from gcc
52784         * lib/getndelim2.c (IF_LINT): Define.
52785         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52786
52787         vc-list-files: work properly with build-aux/cvsu, too
52788         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52789         to all cvs-based clauses.
52790
52791         vc-list-files: work properly in the CVS+awk case, too
52792         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52793
52794         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52795         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52796         take more than one file argument, so .  Add quotes, just in case $dir
52797         ever contains a shell meta-character.  Prompted by Soren Hansen in
52798         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52799
52800 2008-04-29  Eric Blake  <ebb9@byu.net>
52801
52802         Optimize getndelim2 to use block operations when possible.
52803         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52804         freadseek, and memchr2.
52805         * lib/getndelim2.c (getndelim2): Use them for block reads.
52806
52807 2008-04-29  Bruno Haible  <bruno@clisp.org>
52808
52809         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52810         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52811         * modules/inet_ntop (Depends-on): Add extensions.
52812         * modules/inet_pton (Depends-on): Likewise.
52813         Reported by Simon Josefsson.
52814
52815 2008-04-29  Jim Meyering  <meyering@redhat.com>
52816
52817         When the is more than one match in a block, match all of them.
52818         * build-aux/useless-if-before-free: Iterate through each block
52819         until there are no more matches.
52820
52821         Fix broken useless-if-before-free script.
52822         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52823         the expression to match cast of argument to free-like function.
52824
52825 2008-04-29  Eric Blake  <ebb9@byu.net>
52826
52827         Use new header.
52828         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52829
52830 2008-04-29  Jim Meyering  <meyering@redhat.com>
52831
52832         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52833         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52834         by gnulib to exist and to declare e.g., inet_ntop.
52835         Don't include "inet_ntop.h", now removed.
52836
52837         * m4/arpa_inet_h.m4: Remove trailing blanks.
52838
52839 2008-04-29  Eric Blake  <ebb9@byu.net>
52840
52841         Silence valgrind on safe reads beyond potential array bounds.
52842         * lib/rawmemchr.valgrind: New file.
52843         * lib/strchrnul.valgrind: Likewise.
52844         * modules/rawmemchr (Files): Distribute new file.
52845         * modules/strchrnul (Files): Likewise.
52846         Suggested by Bruno Haible.
52847
52848 2008-04-29  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52851         (inet_ntop, inet_pton): Change portability warning's wording.
52852         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52853         Invoke gl_CHECK_NEXT_HEADERS.
52854         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52855         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52856         set ARPA_INET_H.
52857         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52858         * modules/arpa_inet (Description): No longer only for systems that
52859         lack it.
52860         (Depends-on): Add include_next.
52861         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52862         HAVE_ARPA_INET_H.
52863
52864 2008-04-29  Jim Meyering  <meyering@redhat.com>
52865
52866         * modules/mkdir (License): Re-license as LGPLv2+.
52867
52868 2008-04-29  Bruno Haible  <bruno@clisp.org>
52869
52870         * modules/rawmemchr (Maintainer): Set to Eric.
52871         * modules/strchrnul (Maintainer): Likewise.
52872
52873 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52874
52875         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52876         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52877
52878         * modules/arpa_inet (arpa/inet.h): Use them.
52879
52880 2008-04-28  Eric Blake  <ebb9@byu.net>
52881
52882         Test getndelim2.
52883         * modules/getndelim2-tests: New file.
52884         * tests/test-getndelim2.c: Likewise.
52885         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52886         stream.
52887         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52888
52889         * MODULES.html.sh: Document new module.
52890
52891 2008-04-20  Bruno Haible  <bruno@clisp.org>
52892
52893         * lib/c-stack.c (die): Use raise.
52894         * modules/c-stack (Depends-on): Add raise.
52895
52896 2008-04-28  Bruno Haible  <bruno@clisp.org>
52897
52898         Expect rpmatch to be declared.
52899         * lib/yesno.c (rpmatch): Remove declaration.
52900
52901         Declare rpmatch.
52902         * lib/stdlib.in.h (rpmatch): New declaration.
52903         * lib/rpmatch.c: Include <stdlib.h> first.
52904         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52905         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52907         HAVE_RPMATCH.
52908         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52910         (Include): Set to <stdlib.h>.
52911         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52912         HAVE_RPMATCH.
52913         * NEWS: Document the change.
52914
52915 2008-04-28  Bruno Haible  <bruno@clisp.org>
52916
52917         Change rpmatch to use nl_langinfo when appropriate.
52918         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52919         (N_): New macro.
52920         (localized_pattern): New function/macro.
52921         (try): Remove match, nomatch arguments. Copy the pattern into safe
52922         memory before caching it.
52923         (rpmatch): Use localized_pattern. Add translator comments.
52924         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52925         Suggested by Eric Blake.
52926         * modules/rpmatch (Depends-on): Add stdbool.
52927
52928 2008-04-28  Eric Blake  <ebb9@byu.net>
52929
52930         Add rawmemchr module, matching glibc.
52931         * modules/string (Makefile.am): New indicator.
52932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52933         * lib/string.in.h (rawmemchr): Declare when appropriate.
52934         * modules/rawmemchr: New file.
52935         * m4/rawmemchr.m4: Likewise.
52936         * lib/rawmemchr.c: Likewise.
52937         * modules/rawmemchr-tests: Likewise.
52938         * tests/test-rawmemchr.c: Likewise.
52939         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52940         module.
52941         * modules/strchrnul (Depends-on): Add rawmemchr.
52942         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52943
52944         Whitespace cleanup.
52945         * tests/test-strchrnul.c: Reindent.
52946         * lib/strchrnul.c: Likewise.
52947
52948         Optimize and test strchrnul.
52949         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52950         * modules/strchrnul-tests: New file.
52951         * tests/test-strchrnul.c: Likewise.
52952
52953         Remove intprops dependency.
52954         * modules/memchr (Depends-on): Remove intprops.
52955         * modules/memrchr (Depends-on): Likewise.
52956         * modules/memchr2 (Depends-on): Likewise.
52957         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52958         * lib/memrchr.c (__memrchr): Likewise.
52959         * lib/memrchr2.c (memchr2): Likewise.
52960         Reported by Simon Josefsson.
52961
52962 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52963
52964         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52965         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52966
52967 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52968
52969         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52970
52971         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52972
52973         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52974
52975         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52976         declarations.
52977         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52978
52979         * m4/inet_pton.m4: Don't check for header files.
52980
52981         * m4/inet_ntop.m4: Don't check for header files.
52982
52983 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52984
52985         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52986         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52987         trigger for cygwin).
52988         Reported by Bruno Haible  <bruno@clisp.org>.
52989
52990 2008-04-28  Bruno Haible  <bruno@clisp.org>
52991
52992         * doc/posix-functions/strdup.texi: Mention mingw problem.
52993
52994 2008-04-27  Bruno Haible  <bruno@clisp.org>
52995
52996         * modules/stat-time-tests (Depends-on): Add sleep.
52997         * tests/test-stat-time.c (force_unlink): New function.
52998         (cleanup): Use it.
52999         (test_mtime): Remove the ctime related tests.
53000         (test_ctime): New function, containing the ctime related tests.
53001         (main): Call test_ctime, except on native Windows platforms.
53002
53003 2008-04-27  Bruno Haible  <bruno@clisp.org>
53004
53005         * lib/rpmatch.c (rpmatch): Add some comments.
53006         Reported by James Youngman <jay@gnu.org>.
53007
53008 2008-04-27  Bruno Haible  <bruno@clisp.org>
53009
53010         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
53011         quiet NaNs.
53012
53013 2008-04-27  Bruno Haible  <bruno@clisp.org>
53014
53015         Make test-yesno.sh work on mingw.
53016         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
53017         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
53018         (main): Set stdin to binary mode.
53019         * modules/yesno-tests (Depends-on): Add binary-io.
53020
53021 2008-04-27  Bruno Haible  <bruno@clisp.org>
53022
53023         Fix 'isfinite' on x86, x86_64, ia64 platforms.
53024         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
53025         argument that lie outside the IEEE 854 domain.
53026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
53027         (gl_ISFINITE): Use it.
53028         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
53029
53030 2008-04-27  Bruno Haible  <bruno@clisp.org>
53031
53032         Allow local renaming in config.h.
53033         * lib/memrchr.c (memrchr): Don't undefine outside libc.
53034
53035 2008-04-27  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/memchr.c (__memchr): Change type of 'i'.
53038         * lib/memchr2.c (memchr2): Likewise.
53039
53040 2008-04-26  Eric Blake  <ebb9@byu.net>
53041         and Bruno Haible  <bruno@clisp.org>
53042
53043         Optimize and test memrchr.
53044         * modules/memrchr (Depends-on): Add intprops.
53045         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
53046         * modules/memrchr-tests: New file.
53047         * tests/test-memrchr.c: New file.
53048
53049 2008-04-26  Bruno Haible  <bruno@clisp.org>
53050
53051         Add tentative support for DragonFly BSD.
53052         * lib/stdio-impl.h: Add macros for DragonFly BSD.
53053         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
53054         fp.
53055         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53056         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
53057         * lib/fpurge.c (fpurge): Likewise.
53058         * lib/freadable.c (freaadable): Likewise.
53059         * lib/freadahead.c (freadahead): Likewise.
53060         * lib/freading.c (freading): Likewise.
53061         * lib/freadptr.c (freadptr): Likewise.
53062         * lib/freadseek.c (freadptrinc): Likewise.
53063         * lib/fseeko.c (fseeko): Likewise.
53064         * lib/fseterr.c (fseterr): Likewise.
53065         * lib/fwritable.c (fwritable): Likewise.
53066         * lib/fwriting.c (fwriting): Likewise.
53067
53068 2008-04-26  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/stdio-impl.h: New file.
53071         * lib/fbufmode.c: Include stdio-impl.h.
53072         (fbufmode): Use fp_, remove redundant #defines.
53073         * lib/fflush.c: Include stdio-impl.h.
53074         (clear_ungetc_buffer): Remove redundant #defines.
53075         * lib/fpurge.c: Include stdio-impl.h.
53076         (fpurge): Remove redundant #defines.
53077         * lib/freadable.c: Include stdio-impl.h.
53078         (freadable): Remove redundant #defines.
53079         * lib/freadahead.c: Include stdio-impl.h.
53080         (freadahead): Remove redundant #defines.
53081         * lib/freading.c: Include stdio-impl.h.
53082         (freading): Remove redundant #defines.
53083         * lib/freadptr.c: Include stdio-impl.h.
53084         (freadptr): Remove redundant #defines.
53085         * lib/freadseek.c: Include stdio-impl.h.
53086         (freadptrinc): Remove redundant #defines.
53087         * lib/fseeko.c: Include stdio-impl.h.
53088         (rpl_fseeko): Remove redundant #defines.
53089         * lib/fseterr.c: Include stdio-impl.h.
53090         (fseterr): Remove redundant #defines.
53091         * lib/fwritable.c: Include stdio-impl.h.
53092         (fwritable: Remove redundant #defines.
53093         * lib/fwriting.c: Include stdio-impl.h.
53094         (fwriting): Remove redundant #defines.
53095         * modules/fbufmode (Files): Add lib/stdio-impl.h.
53096         * modules/fflush (Files): Likewise.
53097         * modules/fpurge (Files): Likewise.
53098         * modules/freadable (Files): Likewise.
53099         * modules/freadahead (Files): Likewise.
53100         * modules/freading (Files): Likewise.
53101         * modules/freadptr (Files): Likewise.
53102         * modules/freadseek (Files): Likewise.
53103         * modules/fseeko (Files): Likewise.
53104         * modules/fseterr (Files): Likewise.
53105         * modules/fwritable (Files): Likewise.
53106         * modules/fwriting (Files): Likewise.
53107
53108 2008-04-26  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53111         restore_seek_optimization, update_fpos_cache): New functions, extracted
53112         from rpl_fflush.
53113         (rpl_fflush): Use them.
53114         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
53115         (gl_REPLACE_FFLUSH): Use it.
53116
53117 2008-04-26  Bruno Haible  <bruno@clisp.org>
53118
53119         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
53120         on Solaris.
53121         * tests/test-xstrtoimax.sh: Likewise.
53122         * tests/test-xstrtoumax.sh: Likewise.
53123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53124
53125 2008-04-26  Bruno Haible  <bruno@clisp.org>
53126
53127         * modules/memchr-tests: New file.
53128         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
53129
53130 2008-04-26  Eric Blake  <ebb9@byu.net>
53131             Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/memchr.c: Include intprops.h.
53134         (__memchr): Optimize parallel detection of matching bytes. Rename local
53135         variables. Add explanatory comments.
53136
53137 2008-04-26  Bruno Haible  <bruno@clisp.org>
53138
53139         Fix module 'memchr', broken since 2000-10-28.
53140         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
53141
53142 2008-04-26  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
53145         comments.
53146
53147 2008-04-25  Eric Blake  <ebb9@byu.net>
53148
53149         Use native fstatat on cygwin 1.7.0.
53150         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
53151         first.
53152
53153 2008-04-23  Eric Blake  <ebb9@byu.net>
53154
53155         Improve memchr2 performance.
53156         * lib/memchr2.c (memchr2): Further optimize parallel detection of
53157         NUL bytes.
53158         * modules/memchr2 (Depends-on): Use intprops.h.
53159
53160 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53161
53162         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
53163         an inline function instead of a CPP macro.  Patch by Ben Pfaff
53164         <blp@cs.stanford.edu>.
53165
53166 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53167
53168         * lib/arpa_inet.in.h: New file.
53169
53170         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
53171         (Makefile.am): Sed in substitute header file.
53172
53173         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
53174         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
53175
53176         * modules/inet_ntop (configure.ac): Use
53177         gl_ARPA_INET_MODULE_INDICATOR.
53178
53179         * modules/inet_pton (configure.ac): Use
53180         gl_ARPA_INET_MODULE_INDICATOR.
53181
53182 2008-04-22  Jim Meyering  <meyering@redhat.com>
53183
53184         * modules/verify (License): Re-license as LGPLv2+.
53185
53186 2008-04-22  Simon Josefsson  <simon@josefsson.org>
53187
53188         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
53189         parameter to void* as per POSIX standard (MinGW uses char*).
53190
53191 2008-04-21  Bruno Haible  <bruno@clisp.org>
53192
53193         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53194         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53195         Define to replacements if REPLACE_ISWCNTRL is 1.
53196         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
53197         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
53198         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
53199         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
53200         what it fixes.
53201         * doc/posix-functions/iswalpha.texi: Likewise.
53202         * doc/posix-functions/iswblank.texi: Likewise.
53203         * doc/posix-functions/iswcntrl.texi: Likewise.
53204         * doc/posix-functions/iswdigit.texi: Likewise.
53205         * doc/posix-functions/iswgraph.texi: Likewise.
53206         * doc/posix-functions/iswlower.texi: Likewise.
53207         * doc/posix-functions/iswprint.texi: Likewise.
53208         * doc/posix-functions/iswpunct.texi: Likewise.
53209         * doc/posix-functions/iswspace.texi: Likewise.
53210         * doc/posix-functions/iswupper.texi: Likewise.
53211         * doc/posix-functions/iswxdigit.texi: Likewise.
53212         Reported by Alain Guibert.
53213
53214 2008-04-21  Bruno Haible  <bruno@clisp.org>
53215
53216         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
53217         Patch by Alain Guibert.
53218
53219 2008-04-21  Bruno Haible  <bruno@clisp.org>
53220
53221         Fix test failures on mingw.
53222         * tests/test-xstrtol.c (print_no_progname): New function.
53223         (main): Install it in error_print_progname hook.
53224         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53225         * tests/test-xstrtoimax.sh: Likewise.
53226         * tests/test-xstrtoumax.sh: Likewise.
53227
53228 2008-04-21  Bruno Haible  <bruno@clisp.org>
53229
53230         Fix test failure on mingw.
53231         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53232
53233 2008-04-21  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53236         Actually assign a value.
53237
53238 2008-04-20  Bruno Haible  <bruno@clisp.org>
53239
53240         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53241         take 2.
53242         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53243         'canonicalize-lgpl' module is also used.
53244         * lib/canonicalize-lgpl.c: Undo last change.
53245         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53246
53247 2008-04-20  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53250         config.h. Provide _mkdir based fallback for mingw.
53251         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53252         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53253         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53254         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53255         rather than defining mkdir in config.h.
53256         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53257         (gl_SYS_STAT_H_DEFAULTS): New macro.
53258         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53259         HAVE_IO_H any more.
53260         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53261         HAVE_DECL_MKDIR and HAVE_IO_H.
53262
53263 2008-04-20  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/isapipe.c: Port to native Windows platforms.
53266
53267 2008-04-20  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53270
53271 2008-04-21  Eric Blake  <ebb9@byu.net>
53272
53273         Work around preprocessors that don't handle UINTMAX_MAX.
53274         * lib/memchr2.c (memchr2): Avoid embedded #if.
53275         Reported by Alain Guibert, fix suggested by Bruno Haible.
53276
53277 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53278
53279         * doc/posix-functions/strftime.texi (strftime): Explain better
53280         Windows incompatibility.  Suggested by Micah Cowan
53281         <micah@cowan.name>.
53282
53283 2008-04-20  Bruno Haible  <bruno@clisp.org>
53284
53285         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53286         unistr/u8-mblen.
53287
53288 2008-04-20  Bruno Haible  <bruno@clisp.org>
53289
53290         Fix test failure on platforms with non-GNU iconv.
53291         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53292         (U_TO_U8): Use it, rather than u16_to_u8.
53293         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53294         units at the end of the input string.
53295         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53296
53297 2008-04-20  Bruno Haible  <bruno@clisp.org>
53298
53299         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53300         when the resulting length is 0.
53301         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53302
53303 2008-04-20  Bruno Haible  <bruno@clisp.org>
53304
53305         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53306         works.
53307         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53308
53309 2008-04-20  Bruno Haible  <bruno@clisp.org>
53310
53311         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53312         * modules/tsearch-tests (configure.ac): Test for initstate function.
53313
53314 2008-04-20  Bruno Haible  <bruno@clisp.org>
53315
53316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53317         for nlink_t if missing.
53318         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53319
53320 2008-04-19  Bruno Haible  <bruno@clisp.org>
53321
53322         Work around snprintf bug on Linux libc5.
53323         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53325         gl_SNPRINTF_SIZE1.
53326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53327         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53328         that test failed.
53329         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53330         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53331         * modules/snprintf (Files): Add m4/printf.m4.
53332         * modules/vsnprintf (Files): Likewise.
53333         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53334         * doc/posix-functions/vsnprintf.texi: Likewise.
53335
53336 2008-04-19  Bruno Haible  <bruno@clisp.org>
53337
53338         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53339         from 0.0058 to less than 10^-7.
53340
53341 2008-04-19  Bruno Haible  <bruno@clisp.org>
53342
53343         Fix rounding when a precision is given.
53344         * lib/vasnprintf.c (is_borderline): New function.
53345         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53346         9...9x.
53347         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53348         %e, %g.
53349         * tests/test-vasprintf-posix.c (test_function): Likewise.
53350         * tests/test-snprintf-posix.h (test_function): Likewise.
53351         * tests/test-sprintf-posix.h (test_function): Likewise.
53352         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53353         * tests/test-printf-posix.h (test_function): Likewise.
53354         * tests/test-printf-posix.output: Update.
53355         Reported by John Darrington <john@darrington.wattle.id.au> via
53356         Ben Pfaff <blp@cs.stanford.edu>.
53357
53358 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53359
53360         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53361         Suggested by Bruno Haible <bruno@clisp.org>.
53362
53363 2008-04-17  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53366         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53367         implementation.
53368         Patch by Bruce Merry <bmerry@gmail.com>.
53369
53370 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53371
53372         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53373         doesn't work under Windows.
53374
53375 2008-04-16  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53378         New macros.
53379         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53380         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53381         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53382         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53383         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53384         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53385         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53386         macros.
53387         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53388         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53389         Northern Sotho, Uighur.
53390
53391 2008-04-16  Bruno Haible  <bruno@clisp.org>
53392
53393         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53394         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53395         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53396         Reported by Daniel Bergström <daniel@octocode.com>.
53397
53398 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53399             Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53402         function.
53403         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53404         New functions, mostly extracted from gl_locale_name_default.
53405         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53406
53407 2008-04-16  Eric Blake  <ebb9@byu.net>
53408
53409         Adjust strtod detection to catch glibc 2.7 bug.
53410         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53411         Reported by John Gatewood Ham.
53412
53413 2008-04-16  Bruno Haible  <bruno@clisp.org>
53414
53415         Add tentative support for Linux libc5.
53416         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53417         * lib/fpurge.c (fpurge): Likewise.
53418         * lib/freadable.c (freadable): Likewise.
53419         * lib/freadahead.c (freadahead): Likewise.
53420         * lib/freading.c (freading): Likewise.
53421         * lib/freadptr.c (freadptr): Likewise.
53422         * lib/freadseek.c (freadptrinc): Likewise.
53423         * lib/fseeko.c (rpl_fseeko): Likewise.
53424         * lib/fseterr.c (fseterr): Likewise.
53425         * lib/fwritable.c (fwritable): Likewise.
53426         * lib/fwriting.c (fwriting): Likewise.
53427         Reported by Alain Guibert <alguibert+bts@free.fr>.
53428
53429 2008-04-15  Bruno Haible  <bruno@clisp.org>
53430
53431         * modules/mathl (configure.ac): Define module indicator.
53432
53433 2008-04-15  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/logl.c (logl): Remove unused variables.
53436
53437 2008-04-15  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53440         fails.
53441
53442 2008-04-15  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/trim.c (trim2): Fix argument of isspace() macro.
53445
53446 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53447
53448         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53449         to 0.
53450         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53451
53452 2008-04-14  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53455         AC_LANG_PROGRAM argument.
53456         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53457         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53459         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53460         * m4/math_h.m4 (gl_MATH_H): Likewise.
53461         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53463         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53464         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53465         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53466         * m4/regex.m4 (gl_REGEX): Likewise.
53467         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53468         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53470         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53472         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53475
53476 2008-04-14  Jim Meyering  <meyering@redhat.com>
53477
53478         test-strtod: fix typos: s/abs/fabs/
53479         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53480
53481 2008-04-13  Bruno Haible  <bruno@clisp.org>
53482
53483         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53484         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53485         module is also used and while not building the reloc-wrapper.
53486
53487 2008-04-13  Bruno Haible  <bruno@clisp.org>
53488
53489         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53490
53491 2008-04-13  Bruno Haible  <bruno@clisp.org>
53492
53493         Fix AIX compilation failure introduced on 2008-04-02.
53494         * tests/test-frexp.c (exp): Undefine before redefining.
53495         * tests/test-frexpl.c (exp): Likewise.
53496
53497 2008-04-13  Bruno Haible  <bruno@clisp.org>
53498
53499         Work around a HP-UX stdio bug.
53500         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53501         * tests/test-ftello.c (main): Likewise.
53502         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53503         * doc/posix-functions/ftello.texi: Likewise.
53504
53505 2008-04-13  Bruno Haible  <bruno@clisp.org>
53506
53507         Make test-signbit pass on HP-UX/hppa.
53508         * tests/test-signbit.c (minus_zerol): New variable.
53509         (test_signbitl): Use it.
53510
53511 2008-04-13  Bruno Haible  <bruno@clisp.org>
53512
53513         Make truncl work on OSF/1 4.0.
53514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53515         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53516         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53518         HAVE_DECL_TRUNCL.
53519         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53520         HAVE_DECL_TRUNCL.
53521         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53522
53523 2008-04-13  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53526
53527 2008-04-13  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53530         expression, so as to avoid HP-UX 11 cc compiler bug.
53531
53532 2008-04-13  Bruno Haible  <bruno@clisp.org>
53533
53534         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53535
53536 2008-04-13  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/git-merge-changelog.c: Remove empty declaration outside of
53539         functions.
53540
53541 2008-04-13  Bruno Haible  <bruno@clisp.org>
53542
53543         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53544
53545 2008-04-13  Bruno Haible  <bruno@clisp.org>
53546
53547         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53548         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53549         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53550         also if it exists but lacks definitions of the SHUT_* macros.
53551         * modules/sys_socket (Description): Update.
53552         Reported by Elbert Pol <e.pol@chello.nl>.
53553
53554 2008-04-13  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/localcharset.c (OS2): Don't redefine if already defined.
53557         Reported by Elbert Pol <e.pol@chello.nl>.
53558
53559 2008-04-13  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/binary-io.h [__EMX__]: Include <io.h>.
53562         Reported by Elbert Pol <e.pol@chello.nl>.
53563
53564 2008-04-12  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/fpucw.h: Enable the definitions also for x86_64.
53567         Needed for NetBSD/x86_64.
53568         Reported by Thomas Klausner <tk@giga.or.at>.
53569
53570 2008-04-12  Bruno Haible  <bruno@clisp.org>
53571
53572         * tests/test-strtod.c: Include isnand.h.
53573         (main): Use isnand instead of isnan.
53574         Reported by Jim Meyering.
53575
53576 2008-04-12  Bruno Haible  <bruno@clisp.org>
53577
53578         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53579         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53580
53581 2008-04-12  Jim Meyering  <meyering@redhat.com>
53582
53583         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53584
53585 2008-04-12  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53588         Reported by Elbert Pol <e.pol@chello.nl>.
53589
53590 2008-04-12  Eric Blake  <ebb9@byu.net>
53591
53592         Work around Solaris 10 math.h bug.
53593         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53594         (gl_MATH_H_DEFAULTS): Set up default.
53595         * modules/math (Makefile.am): Replace new indicators.
53596         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53597         * tests/test-math.c (main): Test this.
53598         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53599         * doc/posix-headers/math.texi (math.h): Mention bug.
53600         Reported by Nelson H. F. Beebe and Jim Meyering.
53601
53602 2008-04-11  Bruno Haible  <bruno@clisp.org>
53603
53604         Adapt to future versions of Apple GCC.
53605         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53606         Reported by Peter O'Gorman <peter@pogma.com>.
53607
53608 2008-04-11  Bruno Haible  <bruno@clisp.org>
53609
53610         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53611
53612 2008-04-11  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53615
53616         * modules/getaddrinfo-tests (Makefile.am): Define
53617         test_getaddrinfo_LDADD.
53618
53619 2008-04-11  Bruno Haible  <bruno@clisp.org>
53620
53621         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53622         (init): Fix syntax error.
53623         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53624         is declared.
53625
53626 2008-04-11  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53629         * modules/glob (Depends-on): Add stdbool.
53630
53631 2008-04-11  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/trim.c: Include <string.h>.
53634
53635 2008-04-11  Eric Blake  <ebb9@byu.net>
53636
53637         Avoid compile failure on OS/2.
53638         * lib/regex_internal.h (internal_function): Disable optimization
53639         on OS/2 (__EMX__), where it caused compiler error.
53640         Reported by Elbert Pol.
53641
53642 2008-04-11  Bruno Haible  <bruno@clisp.org>
53643
53644         Flush the standard error stream before aborting. Needed on mingw.
53645         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53646         * tests/test-array_list.c (ASSERT): Likewise.
53647         * tests/test-array_oset.c (ASSERT): Likewise.
53648         * tests/test-avltree_list.c (ASSERT): Likewise.
53649         * tests/test-avltree_oset.c (ASSERT): Likewise.
53650         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53651         * tests/test-binary-io.c (ASSERT): Likewise.
53652         * tests/test-byteswap.c (ASSERT): Likewise.
53653         * tests/test-c-ctype.c (ASSERT): Likewise.
53654         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53655         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53656         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53657         * tests/test-c-strstr.c (ASSERT): Likewise.
53658         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53659         * tests/test-canonicalize.c (ASSERT): Likewise.
53660         * tests/test-carray_list.c (ASSERT): Likewise.
53661         * tests/test-ceilf1.c (ASSERT): Likewise.
53662         * tests/test-ceilf2.c (ASSERT): Likewise.
53663         * tests/test-ceill.c (ASSERT): Likewise.
53664         * tests/test-count-one-bits.c (ASSERT): Likewise.
53665         * tests/test-fbufmode.c (ASSERT): Likewise.
53666         * tests/test-fflush2.c (ASSERT): Likewise.
53667         * tests/test-floorf1.c (ASSERT): Likewise.
53668         * tests/test-floorf2.c (ASSERT): Likewise.
53669         * tests/test-floorl.c (ASSERT): Likewise.
53670         * tests/test-fopen.c (ASSERT): Likewise.
53671         * tests/test-fpending.c (ASSERT): Likewise.
53672         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53673         * tests/test-fpurge.c (ASSERT): Likewise.
53674         * tests/test-freadable.c (ASSERT): Likewise.
53675         * tests/test-freadahead.c (ASSERT): Likewise.
53676         * tests/test-freading.c (ASSERT): Likewise.
53677         * tests/test-freadptr.c (ASSERT): Likewise.
53678         * tests/test-freadptr2.c (ASSERT): Likewise.
53679         * tests/test-freadseek.c (ASSERT): Likewise.
53680         * tests/test-freopen.c (ASSERT): Likewise.
53681         * tests/test-frexp.c (ASSERT): Likewise.
53682         * tests/test-frexpl.c (ASSERT): Likewise.
53683         * tests/test-fseek.c (ASSERT): Likewise.
53684         * tests/test-fseeko.c (ASSERT): Likewise.
53685         * tests/test-fstrcmp.c (ASSERT): Likewise.
53686         * tests/test-ftell.c (ASSERT): Likewise.
53687         * tests/test-ftello.c (ASSERT): Likewise.
53688         * tests/test-func.c (ASSERT): Likewise.
53689         * tests/test-fwritable.c (ASSERT): Likewise.
53690         * tests/test-fwriting.c (ASSERT): Likewise.
53691         * tests/test-getdelim.c (ASSERT): Likewise.
53692         * tests/test-getline.c (ASSERT): Likewise.
53693         * tests/test-i-ring.c (ASSERT): Likewise.
53694         * tests/test-iconv-utf.c (ASSERT): Likewise.
53695         * tests/test-iconv.c (ASSERT): Likewise.
53696         * tests/test-isfinite.c (ASSERT): Likewise.
53697         * tests/test-isnand.c (ASSERT): Likewise.
53698         * tests/test-isnanf.c (ASSERT): Likewise.
53699         * tests/test-isnanl.h (ASSERT): Likewise.
53700         * tests/test-ldexpl.c (ASSERT): Likewise.
53701         * tests/test-linked_list.c (ASSERT): Likewise.
53702         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53703         * tests/test-localename.c (ASSERT): Likewise.
53704         * tests/test-lseek.c (ASSERT): Likewise.
53705         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53706         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53707         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53708         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53709         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53710         * tests/test-mbschr.c (ASSERT): Likewise.
53711         * tests/test-mbscspn.c (ASSERT): Likewise.
53712         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53713         * tests/test-mbspbrk.c (ASSERT): Likewise.
53714         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53715         * tests/test-mbsrchr.c (ASSERT): Likewise.
53716         * tests/test-mbsspn.c (ASSERT): Likewise.
53717         * tests/test-mbsstr1.c (ASSERT): Likewise.
53718         * tests/test-mbsstr2.c (ASSERT): Likewise.
53719         * tests/test-mbsstr3.c (ASSERT): Likewise.
53720         * tests/test-memchr2.c (ASSERT): Likewise.
53721         * tests/test-memmem.c (ASSERT): Likewise.
53722         * tests/test-open.c (ASSERT): Likewise.
53723         * tests/test-printf-frexp.c (ASSERT): Likewise.
53724         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53725         * tests/test-printf-posix.c (ASSERT): Likewise.
53726         * tests/test-quotearg.c (ASSERT): Likewise.
53727         * tests/test-rbtree_list.c (ASSERT): Likewise.
53728         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53729         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53730         * tests/test-round1.c (ASSERT): Likewise.
53731         * tests/test-roundf1.c (ASSERT): Likewise.
53732         * tests/test-roundl.c (ASSERT): Likewise.
53733         * tests/test-signbit.c (ASSERT): Likewise.
53734         * tests/test-sleep.c (ASSERT): Likewise.
53735         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53736         * tests/test-snprintf.c (ASSERT): Likewise.
53737         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53738         * tests/test-stat-time.c (ASSERT): Likewise.
53739         * tests/test-strcasestr.c (ASSERT): Likewise.
53740         * tests/test-strerror.c (ASSERT): Likewise.
53741         * tests/test-striconv.c (ASSERT): Likewise.
53742         * tests/test-striconveh.c (ASSERT): Likewise.
53743         * tests/test-striconveha.c (ASSERT): Likewise.
53744         * tests/test-strsignal.c (ASSERT): Likewise.
53745         * tests/test-strstr.c (ASSERT): Likewise.
53746         * tests/test-strtod.c (ASSERT): Likewise.
53747         * tests/test-trunc1.c (ASSERT): Likewise.
53748         * tests/test-trunc2.c (ASSERT): Likewise.
53749         * tests/test-truncf1.c (ASSERT): Likewise.
53750         * tests/test-truncf2.c (ASSERT): Likewise.
53751         * tests/test-truncl.c (ASSERT): Likewise.
53752         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53753         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53754         * tests/test-vasnprintf.c (ASSERT): Likewise.
53755         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53756         * tests/test-vasprintf.c (ASSERT): Likewise.
53757         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53758         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53759         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53760         * tests/test-vsnprintf.c (ASSERT): Likewise.
53761         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53762         * tests/test-wcwidth.c (ASSERT): Likewise.
53763         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53764         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53765         * tests/test-xvasprintf.c (ASSERT): Likewise.
53766         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53767         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53768         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53769         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53770         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53771         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53772         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53773         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53774         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53775         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53776         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53777         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53778         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53779         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53780         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53781         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53782         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53783         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53784         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53785         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53786         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53787         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53788         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53789         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53790         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53791         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53792         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53793         * tests/unictype/test-combining.c (ASSERT): Likewise.
53794         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53795         * tests/unictype/test-digit.c (ASSERT): Likewise.
53796         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53797         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53798         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53799         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53800         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53801         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53802         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53803         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53804         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53805         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53806         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53807         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53808         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53809         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53810         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53811         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53812         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53813         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53814         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53815         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53816         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53817         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53818         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53819         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53820         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53821         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53822         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53823         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53824         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53825         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53826         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53827         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53828         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53829         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53830         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53831         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53832         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53833         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53834         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53835         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53836         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53837         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53838         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53839         Reported by Eric Blake.
53840
53841 2008-04-11  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/wchar.in.h: Tweak comment.
53844
53845 2008-04-11  Bruno Haible  <bruno@clisp.org>
53846
53847         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53848         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53849         gl_COMMON.
53850         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53851
53852 2008-04-11  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53855
53856 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53857
53858         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53859         of attempting to use non-existing /dev/*random.  Based on patch
53860         from Adam Strzelecki <ono@java.pl> in
53861         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53862
53863 2008-04-08  Bruno Haible  <bruno@clisp.org>
53864
53865         Add tentative support for emx+gcc.
53866         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53867         * lib/fpurge.c (fpurge): Likewise.
53868         * lib/freadable.c (freadable): Likewise.
53869         * lib/freadahead.c (freadahead): Likewise.
53870         * lib/freading.c (freading): Likewise.
53871         * lib/freadptr.c (freadptr): Likewise.
53872         * lib/freadseek.c (freadptrinc): Likewise.
53873         * lib/fseeko.c (rpl_fseeko): Likewise.
53874         * lib/fseterr.c (fseterr): Likewise.
53875         * lib/fwritable.c (fwritable): Likewise.
53876         * lib/fwriting.c (fwriting): Likewise.
53877         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53878
53879 2008-04-09  Eric Blake  <ebb9@byu.net>
53880
53881         Avoid some autoconf warnings.
53882         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53883         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53884         * m4/afs.m4 (gl_AFS): Likewise.
53885         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53886         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53887         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53888         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53889         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53890         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53891         (AC_CHECK_DECLS_ONCE): Likewise.
53892         Rename file...
53893         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53894         gnulib-tool requires autoconf 2.59 or better.
53895         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53896
53897 2008-04-08  Eric Blake  <ebb9@byu.net>
53898
53899         Use 'git describe --match' if present (added in git 1.5.5).
53900         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53901         if possible.
53902
53903 2008-04-08  Bruno Haible  <bruno@clisp.org>
53904
53905         Add tentative support for OpenServer.
53906         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53907         _ptr, _cnt.
53908         * lib/fpurge.c (fpurge): Likewise.
53909         * lib/freadable.c (freadable): Likewise.
53910         * lib/freadahead.c (freadahead): Likewise.
53911         * lib/freading.c (freading): Likewise.
53912         * lib/freadptr.c (freadptr): Likewise.
53913         * lib/freadseek.c (freadptrinc): Likewise.
53914         * lib/fseeko.c (rpl_fseeko): Likewise.
53915         * lib/fseterr.c (fseterr): Likewise.
53916         * lib/fwritable.c (fwritable): Likewise.
53917         * lib/fwriting.c (fwriting): Likewise.
53918         Reported by Roger Cornelius <rac@tenzing.org> and
53919         Brian K. White <brian@aljex.com>.
53920
53921 2008-04-06  Jim Meyering  <meyering@redhat.com>
53922
53923         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53924
53925 2008-04-06  Bruno Haible  <bruno@clisp.org>
53926
53927         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53928         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53929         * tests/test-printf-posix.sh: Likewise.
53930         * tests/test-vfprintf-posix.sh: Likewise.
53931         * tests/test-vprintf-posix.sh: Likewise.
53932         * tests/test-xprintf-posix.sh: Likewise.
53933
53934 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53935
53936         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53937         hide error from 'ls', needed on OS/2.
53938         Report by Elbert Pol <elbert.pol@gmail.com>.
53939
53940 2008-04-04  Eric Blake  <ebb9@byu.net>
53941
53942         Make test-fseeko.c failures meaningful.
53943         * tests/test-fseeko.c: Print line number on failure.
53944         * tests/test-fseek.c: Likewise.
53945         Reported by Nelson H. F. Beebe.
53946
53947         Improve strtod bug detection check.
53948         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53949         required for Solaris 10.
53950         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53951
53952 2008-04-04  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53955         by m4/setenv.m4.
53956
53957 2008-04-03  Eric Blake  <ebb9@byu.net>
53958
53959         Ensure sane .version contents.
53960         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53961         version string.
53962         * build-aux/git-version-gen: Improve documentation.
53963
53964         Make GNU make output nicer.
53965         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53966         MAKECMDGOALS to enforce message for all command line targets.  Set
53967         srcdir for use in maint.mk.
53968
53969         Another maintainer tweak.
53970         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53971         a target that regenerates version.
53972
53973 2008-04-03  Jim Meyering  <meyering@redhat.com>
53974
53975         vc-list-files: don't cause coreutils "make po-check" failure
53976         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53977
53978 2008-04-03  Eric Blake  <ebb9@byu.net>
53979
53980         Allow VPATH usage of vc-list-files.
53981         * build-aux/vc-list-files (scriptversion): Add timestamp.
53982         (options): Add --help, --version, -C.
53983         (CVS): Support installed cvsu.
53984
53985 2008-04-02  Bruno Haible  <bruno@clisp.org>
53986
53987         Avoid some "statement with no effect" warnings from gcc.
53988         * tests/test-wctype.c (main): Explicitly ignore unused values.
53989         Reported by Jim Meyering.
53990
53991 2008-04-02  Jim Meyering  <meyering@redhat.com>
53992
53993         Avoid some warnings from "gcc -Wshadow".
53994         * tests/test-frexp.c (exp): Define to a different identifier.
53995         * tests/test-frexpl.c (exp): Likewise.
53996
53997 2008-04-03  Jim Meyering  <meyering@redhat.com>
53998
53999         bootstrap: remove dangling *.[ch] symlinks from lib
54000         * build-aux/bootstrap [dangling symlink removal]: Move find's
54001         -depth option to precede all others, to avoid a warning.
54002         Remove *.[ch] files too, and from "$source_base" (usually lib/).
54003
54004 2008-04-02  Bruno Haible  <bruno@clisp.org>
54005
54006         Avoid some warnings from "gcc -Wshadow".
54007         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
54008         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
54009         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
54010         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
54011         Reported by Jim Meyering.
54012
54013 2008-04-01  Bruno Haible  <bruno@clisp.org>
54014
54015         Fix test to work on IRIX 6.5 with cc.
54016         * tests/test-math.c (numeric_equal): New function.
54017         (main): Use it.
54018
54019 2008-04-01  Bruno Haible  <bruno@clisp.org>
54020
54021         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
54022
54023 2008-04-01  Bruno Haible  <bruno@clisp.org>
54024
54025         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
54026         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54027         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
54028         (Depends-on): Remove math.
54029
54030         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
54031         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54032         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
54033         (Depends-on): Remove math.
54034
54035         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
54036         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54037         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
54038         (Depends-on): Remove math.
54039         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
54040         (Depends-on): Remove math.
54041
54042         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
54043         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54044         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
54045         (Depends-on): Remove math.
54046         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
54047         (Depends-on): Remove math.
54048
54049         * tests/test-round1.c: Include nan.h.
54050         (main): Use NaNd instead of NAN.
54051         * modules/round-tests (Files): Add tests/nan.h.
54052
54053         * tests/test-trunc1.c: Include nan.h.
54054         (main): Use NaNd instead of NAN.
54055         * modules/trunc-tests (Files): Add tests/nan.h.
54056
54057         * tests/test-roundf1.c: Include nan.h.
54058         (main): Use NaNf instead of NAN.
54059         * modules/roundf-tests (Files): Add tests/nan.h.
54060
54061         * tests/test-truncf1.c: Include nan.h.
54062         (main): Use NaNf instead of NAN.
54063         * modules/truncf-tests (Files): Add tests/nan.h.
54064
54065         * tests/test-ceilf1.c: Include nan.h.
54066         (main): Use NaNf instead of NAN.
54067         * modules/ceilf-tests (Files): Add tests/nan.h.
54068
54069         * tests/test-floorf1.c: Include nan.h.
54070         (main): Use NaNf instead of NAN.
54071         * modules/floorf-tests (Files): Add tests/nan.h.
54072
54073         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
54074         (main): Use NaNf instead of NAN.
54075         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
54076
54077         * tests/test-isnand.c: Include nan.h instead of <math.h>.
54078         (main): Use NaNd instead of NAN.
54079         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
54080
54081         * tests/test-frexp.c: Include nan.h.
54082         (main): Use NaNd instead of NAN.
54083         * modules/frexp-tests (Files): Add tests/nan.h.
54084
54085         * lib/isnan.c: Don't include <math.h>.
54086         (FUNC): Don't use NAN macro.
54087         * modules/isnand-nolibm (Depends-on): Remove math.
54088         * modules/isnanf-nolibm (Depends-on): Remove math.
54089         * modules/isnanl (Depends-on): Remove math.
54090         * modules/isnanl-nolibm (Depends-on): Remove math.
54091
54092         * tests/nan.h: New file.
54093
54094 2008-04-01  Eric Blake  <ebb9@byu.net>
54095
54096         Fix typos.
54097         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
54098         values to be the right type.
54099
54100         For now, cater to gnulib strtod inaccuracies.
54101         * tests/test-strtod.c (main): Allow 1-ulp error on expected
54102         fractional results.  While not as nice from a QoI perspective, it
54103         is a quicker patch than correctly implementing decimal to binary
54104         rounding.
54105
54106 2008-03-31  Eric Blake  <ebb9@byu.net>
54107
54108         Guarantee a definition of NAN.
54109         * lib/math.in.h (NAN): Define if missing.
54110         * tests/test-math.c (main): Test it.
54111         * doc/posix-headers/math.texi (math.h): Document this.
54112         * lib/isnan.c (rpl_isnand): Use it.
54113         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
54114         * tests/test-floorf1.c (NaN): Likewise.
54115         * tests/test-frexp.c (NaN): Likewise.
54116         * tests/test-isnand.c (NaN): Likewise.
54117         * tests/test-isnanf.c (NaN): Likewise.
54118         * tests/test-round1.c (NaN): Likewise.
54119         * tests/test-roundf1.c (NaN): Likewise.
54120         * tests/test-snprintf-posix.h (NaN): Likewise.
54121         * tests/test-sprintf-posix.h (NaN): Likewise.
54122         * tests/test-trunc1.c (NaN): Likewise.
54123         * tests/test-truncf1.c (NaN): Likewise.
54124         * tests/test-vasnprintf-posix.c (NaN): Likewise.
54125         * tests/test-vasprintf-posix.c (NaN): Likewise.
54126         * modules/isnand-nolibm (Depends-on): Add math.
54127         * modules/isnanf-nolibm (Depends-on): Likewise.
54128         * modules/isnanl (Depends-on): Likewise.
54129         * modules/isnanl-nolibm (Depends-on): Likewise.
54130         * modules/snprintf-posix-tests (Depends-on): Likewise.
54131         * modules/sprintf-posix-tests (Depends-on): Likewise.
54132         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
54133         * modules/vsprintf-posix-tests (Depends-on): Likewise.
54134         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
54135         * modules/vasprintf-posix-tests (Depends-on): Likewise.
54136
54137 2008-03-31  Bruno Haible  <bruno@clisp.org>
54138
54139         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
54140         * doc/posix-functions/strtod.texi: Likewise.
54141
54142 2008-03-31  Bruno Haible  <bruno@clisp.org>
54143
54144         * tests/test-strtod.c (main): Don't use C99 syntax.
54145
54146 2008-03-31  Bruno Haible  <bruno@clisp.org>
54147
54148         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
54149         Reported by Eric Blake.
54150
54151 2008-03-31  Jim Meyering  <meyering@redhat.com>
54152
54153         Don't compare actual signbit return values.
54154         * tests/test-strtod.c (main): Rather, compare only their
54155         zero/non-zero nature.
54156
54157 2008-03-31  Eric Blake  <ebb9@byu.net>
54158
54159         More strtod documentation.
54160         * doc/posix-functions/strtod.texi (strtod): Interpret more test
54161         failures as distinct bugs.
54162
54163 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54164
54165         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
54166         Problem reported by Erik Benada in
54167         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
54168
54169 2008-03-30  Bruno Haible  <bruno@clisp.org>
54170
54171         * tests/test-strtod.c: Add comments about which assertion fails on which
54172         platform.
54173         * doc/posix-functions/strtod.texi: Add info about many more platforms.
54174
54175 2008-03-30  Eric Blake  <ebb9@byu.net>
54176
54177         Test signbit behavior on zeros.
54178         * tests/test-signbit.c (test_signbitf): Add tests for zero.
54179         (test_signbitd, test_signbitl): Likewise.
54180
54181         More strtod touchups.
54182         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
54183         sign of negative underflow, for now.  Use .5, not .1.
54184         * doc/posix-functions/strtod.texi (strtod): Mention these
54185         limitations.
54186         Reported by Jim Meyering.
54187
54188 2008-03-30  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
54191         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
54192
54193 2008-03-30  Bruno Haible  <bruno@clisp.org>
54194
54195         Avoid failure when attempting to return empty iconv results on some
54196         platforms.
54197         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
54198         allocation, don't report ENOMEM when the resulting string is empty.
54199
54200 2008-03-30  Bruno Haible  <bruno@clisp.org>
54201
54202         Fix buffer overrun.
54203         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
54204         Don't consider the width for tmp_length. Check count against tmp_length
54205         before doing the padding. Ensure enough allocation during padding.
54206
54207 2008-03-30  Eric Blake  <ebb9@byu.net>
54208
54209         strtod touchups.
54210         * lib/strtod.c (strtod): Avoid compiler warnings.
54211         Reported by Jim Meyering.
54212
54213 2008-03-30  Bruno Haible  <bruno@clisp.org>
54214
54215         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
54216         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
54217         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
54218         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
54219         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
54220         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
54221         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54222         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54223
54224         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54225         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54226         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54227         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54228         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54229         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54230         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54231         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54232
54233         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54234         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54235         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54236         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54237         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54238         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54239         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54240         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54241
54242         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54243         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54244
54245         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54246         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54247
54248         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54249         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54250
54251         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54253         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54254
54255         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54257         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54258
54259         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54261         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54262
54263         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54265         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54266
54267         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54268         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54270         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54271         (Depends-on): Add EOVERFLOW.
54272         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54273         (Depends-on): Add EOVERFLOW.
54274         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54275         (Depends-on): Add EOVERFLOW.
54276         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54277         (Depends-on): Add EOVERFLOW.
54278         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54279         (Depends-on): Add EOVERFLOW.
54280         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54281         (Depends-on): Add EOVERFLOW.
54282         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54283         (Depends-on): Add EOVERFLOW.
54284         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54285         (Depends-on): Add EOVERFLOW.
54286
54287         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54289         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54290
54291         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54293         * modules/snprintf (Depends-on): Add EOVERFLOW.
54294
54295         * lib/poll.c (EOVERFLOW): Remove fallback.
54296         * modules/poll (Depends-on): Add EOVERFLOW.
54297
54298         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54299         * modules/getugroups (Depends-on): Add EOVERFLOW.
54300
54301         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54302         * modules/getdelim (Depends-on): Add EOVERFLOW.
54303
54304         * lib/ftell.c (EOVERFLOW): Remove fallback.
54305         * modules/ftell (Depends-on): Add EOVERFLOW.
54306
54307         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54309         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54310
54311         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54312
54313         * modules/EOVERFLOW-tests: New file.
54314         * tests/test-EOVERFLOW.c: New file.
54315
54316         * modules/EOVERFLOW: New file.
54317         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54318
54319 2008-03-30  Bruno Haible  <bruno@clisp.org>
54320
54321         Fix bug introduced on 2007-06-10.
54322         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54323         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54324
54325 2008-03-30  Bruno Haible  <bruno@clisp.org>
54326
54327         Improve freadseek's efficiency after ungetc.
54328         * lib/freadseek.c: Include freadahead.h.
54329         (freadptrinc): New function, extracted from freadseek.
54330         (freadseek): Use it in a loop. Use freadahead to determine the number
54331         of loop iterations.
54332         * modules/freadseek (Depends-on): Add freadahead.
54333         (configure.ac): Require AC_C_INLINE.
54334
54335 2008-03-30  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/freadseek.c (freadseek): Don't ignore the return value of
54338         freadptr.
54339
54340 2008-03-29  Eric Blake  <ebb9@byu.net>
54341
54342         Add hex float support.
54343         * modules/strtod (Depends-on): Add c-ctype.
54344         (Link): Mention POW_LIB.
54345         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54346         whitespace between 'e' and exponent.
54347         * tests/test-strtod.c (main): Enable hex float tests.
54348         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54349         now provides.
54350
54351         Document various strtod bugs, with some fixes.
54352         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54353         "-0x", "inf", "nan", and hex constants.
54354         * doc/posix-functions/atof.texi (atof): Likewise.
54355         * modules/stdlib (Makefile.am): Support strtod.
54356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54357         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54358         detect additional strtod bugs.
54359         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54360         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54361         bool where appropriate.  Parse 'inf' and 'nan'.
54362         * tests/test-strtod.c: New file.
54363         * modules/strtod (Depends-on): Add stdbool, stdlib.
54364         (configure.ac): Turn on module indicator.
54365         * modules/strtod-tests: New module.
54366
54367 2008-03-29  Eric Blake  <ebb9@byu.net>
54368
54369         Fix ftell on mingw.
54370         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54371         * modules/ftell-tests (Depends-on): Add binary-io.
54372         * modules/ftello-tests (Depends-on): Likewise.
54373         * tests/test-ftell.c (main): Enhance test to cover behavior after
54374         ungetc.  Enforce binary mode.
54375         * tests/test-ftello.c (main): Likewise.
54376
54377         Pass test-freadseek on cygwin.
54378         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54379         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54380         ungetc buffer.
54381
54382         * tests/test-fflush2.c (main): Fix typo.
54383
54384 2008-03-29  Bruno Haible  <bruno@clisp.org>
54385
54386         * tests/test-fflush2.c (main): Temporarily disable the contents of
54387         this test.
54388         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54389         Reported by Eric Blake.
54390
54391 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54392
54393         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54394         (GC_SHA224_DIGEST_SIZE): Add.
54395
54396         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54397         (gc_hash_digest_length): Likewise.
54398         (gc_hash_buffer): Likewise.
54399
54400 2008-03-25  Bruno Haible  <bruno@clisp.org>
54401
54402         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54403         detail which gettext release to use.
54404         Reported by Simon Josefsson.
54405
54406 2008-03-26  Jim Meyering  <meyering@redhat.com>
54407
54408         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54409         * modules/gnumakefile (clean-GNUmakefile): Also, use
54410         test ... && ... || : syntax rather than if-then ... fi.
54411
54412         gnumakefile: Don't double-quote-expand $(VPATH) value.
54413         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54414
54415 2008-03-24  Eric Blake  <ebb9@byu.net>
54416
54417         Alter GNUmakefile to install into top directory.
54418         * modules/maintainer-makefile: Split, and add dependency...
54419         * modules/gnumakefile: to this new module.
54420         * build-aux/GNUmakefile: Move...
54421         * top/GNUmakefile: ...here.
54422         * build-aux/maint.mk: Move...
54423         * top/maint.mk: ...here.
54424         * MODULES.html.sh (Support for maintaining...): Document new
54425         module.
54426
54427 2008-03-23  Bruno Haible  <bruno@clisp.org>
54428
54429         * gnulib-tool: New options --vc-files, --no-vc-files.
54430         (func_usage): Document them.
54431         (vc_files): New variable.
54432         (func_import): Consider vc_files.
54433         (func_create_testdir): Set vc_files to empty.
54434         Suggested by Jim Meyering and Karl Berry.
54435
54436 2008-03-23  Bruno Haible  <bruno@clisp.org>
54437
54438         Fix regex compilation error on HP-UX 11.
54439         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54440         * modules/regex (Files): Add m4/mbstate_t.m4.
54441         Reported by Ton Voon <ton.voon@altinity.com>.
54442
54443 2008-03-23  Bruno Haible  <bruno@clisp.org>
54444
54445         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54446
54447 2008-03-23  Eric Blake  <ebb9@byu.net>
54448             Bruno Haible  <bruno@clisp.org>
54449
54450         Install files from top/ in the destination directory.
54451         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54452         augmentation also for the files from top/.
54453         (func_import, func_create_testdir): Rewrite file names:
54454         top/filename -> filename.
54455
54456 2008-03-23  Bruno Haible  <bruno@clisp.org>
54457
54458         Tweak "gnulib --version" output.
54459         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54460
54461 2008-03-23  Bruno Haible  <bruno@clisp.org>
54462
54463         Tweak "gnulib --version" output.
54464         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54465         rather than contents of ChangeLog, when possible.
54466
54467 2008-03-21  Eric Blake  <ebb9@byu.net>
54468
54469         More --version tweaks.
54470         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54471         date of last ChangeLog entry.
54472
54473 2008-03-21  Jim Meyering  <meyering@redhat.com>
54474
54475         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54476
54477 2008-03-20  Eric Blake  <ebb9@byu.net>
54478
54479         VPATH fix.
54480         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54481
54482 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54483
54484         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54485         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54486
54487 2008-03-20  Eric Blake  <ebb9@byu.net>
54488
54489         Sync GNUmakefile with coreutils.
54490         * build-aux/GNUmakefile (have-Makefile): Rename...
54491         (_have-Makefile): ...to this, for namespace consideration.
54492         (GNUmakefile.cfg): Include, if present.
54493         (_autoreconf): Define a default.
54494         (_is-dist-target): New rule for rebuilds to pick up intra-release
54495         version.
54496         (maint-cfg.mk): Rename...
54497         (cfg.mk): ...to this.
54498
54499 2008-03-18  Jim Meyering  <meyering@redhat.com>
54500
54501         New script and module: mktempd
54502         * MODULES.html.sh (maint+release support): Add mktempd.
54503         * build-aux/mktempd: New file.
54504         * modules/mktempd: New file.
54505
54506 2008-03-15  Jim Meyering  <meyering@redhat.com>
54507
54508         Undo last change.
54509         * lib/sha1.c, lib/md5.c: 63 != ~63.
54510         Reported by Andreas Schwab.
54511
54512         sha1.c, md5.c: Hoist a redundant expression.
54513         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54514         "ctx->buflen" only once, before calling *_process_block.
54515         * lib/md5.c (md5_process_bytes): Likewise.
54516
54517 2008-03-14  Eric Blake  <ebb9@byu.net>
54518
54519         Bump copyright year in files generated by gnulib-tool.
54520         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54521         gnulib-tool, rather than hard-coding it.
54522
54523         Fix 'gnulib-tool --version' output to work with git.
54524         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54525         (startup): ...here.
54526         (func_version): Use it to invoke git-version-gen, rather than
54527         relying on CVS keyword expansion.  Modernize wording.
54528         (cvsdatestamp, last_checkin_date, version): Kill unused
54529         variables.
54530
54531 2008-03-12  Jim Meyering  <meyering@redhat.com>
54532
54533         Recognize optional cast of the argument to free.
54534         * build-aux/useless-if-before-free: Update regexps.
54535
54536         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54537
54538 2008-03-11  Bruno Haible  <bruno@clisp.org>
54539
54540         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54541         by a single package.
54542         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54543         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54544         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54545         Reported by Sam Steingold <sds@gnu.org>.
54546
54547 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54548
54549         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54550         repositories.
54551
54552 2008-03-11  Bruno Haible  <bruno@clisp.org>
54553
54554         Avoid conflicts between local macro definitions.
54555         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54556         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54557
54558 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54559             Bruno Haible  <bruno@clisp.org>
54560
54561         Make va_copy work with some version of xlc on AIX 5.1.
54562         * lib/stdarg.in.h: New file.
54563         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54564         On AIX, use a <stdarg.h> file substitute.
54565         * modules/stdarg (Files): Add lib/stdarg.in.h.
54566         (Depends-on): Add include_next.
54567         (Makefile.am): Build a stdarg.h substitute if requested.
54568         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54569
54570 2008-03-10  Bruno Haible  <bruno@clisp.org>
54571
54572         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54574         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54575
54576 2008-03-10  Bruno Haible  <bruno@clisp.org>
54577
54578         * modules/stdlib (Depends-on): Add include_next, remove
54579         absolute-header.
54580
54581 2008-03-09  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/freadahead.h (freadahead): Document more precisely.
54584         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54585         the sum of both buffer sizes.
54586         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54587         * NEWS: Document the change.
54588
54589 2008-03-09  Bruno Haible  <bruno@clisp.org>
54590
54591         Extend freadptr to return also the buffer size.
54592         * lib/freadptr.h (freadptr): Add sizep argument.
54593         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54594         (freadptr): Add sizep argument. Determine buffer size like freadahead
54595         does.
54596         * tests/test-freadptr.c: Don't include freadahead.h.
54597         (main): Adapt for new calling convention of freadptr.
54598         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54599         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54600         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54601         tests/test-freadptr2.sh.
54602         (Depends): Remove freadahead.
54603         (TESTS): Add test-freadptr2.sh.
54604         (check_PROGRAMS): Add test-freadptr2.
54605
54606 2008-03-09  Bruno Haible  <bruno@clisp.org>
54607
54608         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54609         Report and solution by Simon Josefsson.
54610
54611 2008-03-06  Bruno Haible  <bruno@clisp.org>
54612
54613         Make fflush after ungetc work on BSD platforms.
54614         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54615         * tests/test-fflush2.c: New file.
54616         * tests/test-fflush2.sh: New file.
54617         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54618         tests/test-fflush2.c.
54619         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54620         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54621
54622 2008-03-06  Eric Blake  <ebb9@byu.net>
54623
54624         Likewise for ftello.
54625         * modules/ftello (Dependencies): Add extensions.
54626         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54627
54628 2008-03-06  Bruno Haible  <bruno@clisp.org>
54629
54630         * modules/fseeko (Dependencies): Add extensions.
54631         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54632         Needed on glibc systems.
54633
54634 2008-03-06  Bruno Haible  <bruno@clisp.org>
54635
54636         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54637         email address.
54638         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54639
54640 2008-03-06  Bruno Haible  <bruno@clisp.org>
54641
54642         * users.txt: Add libgnupdf.
54643
54644 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54645
54646         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54647         (Header File Substitutes, Function Substitutes,
54648         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54649         (Build robot for gnulib): Fix typo.
54650
54651 2008-03-06  Bruno Haible  <bruno@clisp.org>
54652
54653         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54654         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54655
54656 2008-03-06  Bruno Haible  <bruno@clisp.org>
54657
54658         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54659         * doc/gnulib.texi: Include it.
54660
54661 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54662
54663         * modules/func (License): Change license to unlimited; there was
54664         no LGPL parts in the module anyway.
54665
54666 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54667
54668         * modules/__func__: Renamed to modules/func.
54669         * modules/__func__-tests: Renamed to modules/func-tests.
54670         * tests/test-__func__.c: Renamed to tests/test-func.c.
54671         * m4/__func__.m4: Renamed to m4/func.m4.
54672         * doc/gnulib.texi (__func__): Section renamed to func.
54673         Suggested by Eric Blake <ebb9@byu.net>.
54674
54675 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54676
54677         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54678         about __func__.  Make example self-contained.  Suggested by Eric
54679         Blake <ebb9@byu.net>.
54680
54681         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54682         Suggested by Eric Blake <ebb9@byu.net>.
54683
54684 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54685
54686         * modules/__func__: New file.
54687         * modules/__func__-tests: New file.
54688         * tests/test-__func__.c: New file.
54689         * m4/__func__.m4: New file.
54690         * doc/gnulib.texi (__func__): Document __func__ module.
54691
54692 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54693
54694         * modules/byteswap (License): Re-license as LGPLv2+.
54695
54696 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54697
54698         * doc/Makefile: Add pdf target.
54699
54700 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54701
54702         * modules/inline (License): Use 'unlimited', since there are only
54703         *.m4 files in this module.
54704
54705 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54706             Bruno Haible  <bruno@clisp.org>
54707
54708         Add support for HP C 7.1 on OpenVMS 8.3.
54709         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54710
54711 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54712
54713         Update VMS specifics.
54714         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54715
54716 2008-03-02  Jim Meyering  <meyering@redhat.com>
54717
54718         Remove the last dependency on the "free" module.
54719         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54720         Reported by Bob Proulx.
54721
54722         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54723
54724         Remove useless "if" tests before free.  Deprecate "free" module.
54725         * doc/posix-functions/free.texi: Mention that this
54726         module is no longer useful.
54727         * modules/free (Notice): Say this module is obsolete.
54728         * modules/readutmp (Depends-on): Remove free.
54729         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54730         * lib/putenv.c (putenv): Likewise.
54731         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54732         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54733         * tests/test-c-strcasestr.c (main): Likewise.
54734         * tests/test-c-strstr.c (main): Likewise.
54735         * tests/test-mbscasestr1.c (main): Likewise.
54736         * tests/test-mbscasestr2.c (main): Likewise.
54737         * tests/test-mbsstr1.c (main): Likewise.
54738         * tests/test-mbsstr2.c (main): Likewise.
54739         * tests/test-memmem.c (main): Likewise.
54740         * tests/test-strcasestr.c (main): Likewise.
54741         * tests/test-striconv.c (main): Likewise.
54742         * tests/test-striconveh.c (main): Likewise.
54743         * tests/test-striconveha.c (main): Likewise.
54744         * tests/test-strstr.c (main): Likewise.
54745
54746         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54747
54748         bootstrap: sync from coreutils again
54749         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54750
54751 2008-03-01  Jim Meyering  <meyering@redhat.com>
54752
54753         bootstrap: sync from coreutils
54754         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54755         also when the target doesn't exist.
54756
54757 2008-03-01  Eric Blake  <ebb9@byu.net>
54758
54759         Fix bugs in last patch.
54760         * lib/memchr2.c (memchr2): Fix typo.
54761         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54762         extension.
54763         Reported by Bruce Korb.
54764
54765         New module 'memchr2'.
54766         * modules/memchr2: New file.
54767         * modules/memchr2-tests: Likewise.
54768         * lib/memchr2.h: Likewise.
54769         * lib/memchr2.c: Likewise, based on memchr.c.
54770         * tests/test-memchr2.c: New test.
54771         * MODULES.html.sh (String handling): Add memchr2.
54772
54773 2008-02-29  Bruno Haible  <bruno@clisp.org>
54774
54775         * modules/freadseek-tests: New file.
54776         * tests/test-freadseek.sh: New file.
54777         * tests/test-freadseek.c: New file.
54778
54779         New module 'freadseek'.
54780         * modules/freadseek: New file.
54781         * lib/freadseek.h: New file.
54782         * lib/freadseek.c: New file.
54783         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54784
54785 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54786
54787         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54788         wydawca.
54789
54790         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54791         program_invocation_name and program_invocation_short_name are
54792         present.
54793
54794 2008-02-28  Bruno Haible  <bruno@clisp.org>
54795
54796         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54797         * tests/test-freadptr.sh: Also test non-seekable stdin.
54798
54799 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54800
54801         * build-aux/bootstrap (source_base, m4_base)
54802         (doc_base, tests_base): New variables.
54803         (gnulib_tool_options): Do not hardcode base directories, use
54804         the above variables instead.
54805
54806 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54807
54808         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54809
54810 2008-02-28  Bruno Haible  <bruno@clisp.org>
54811
54812         * modules/freadptr-tests: New file.
54813         * tests/test-freadptr.sh: New file.
54814         * tests/test-freadptr.c: New file.
54815
54816         New module 'freadptr'.
54817         * modules/freadptr: New file.
54818         * lib/freadptr.h: New file.
54819         * lib/freadptr.c: New file.
54820         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54821
54822 2008-02-26  Karl Berry  <karl@freefriends.org>
54823
54824         Sync from Libtool:
54825         * libltdl/argz.c (argz_add, argz_count): New functions.
54826         * libltdl/argz.in.h: Declare them.
54827         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54828
54829 2008-02-22  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54832         is a pointer type.  Needed for HP-UX 10.
54833         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54834         * doc/posix-functions/gmtime_r.texi: Likewise.
54835         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54836
54837 2008-02-24  Bruno Haible  <bruno@clisp.org>
54838
54839         * modules/environ-tests: New file.
54840         * tests/test-environ.c: New file.
54841
54842         New module 'environ'.
54843         * modules/environ: New file.
54844         * lib/unistd.in.h (environ): New declaration.
54845         * m4/environ.m4: New file.
54846         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54847         after use.
54848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54849         HAVE_DECL_ENVIRON.
54850         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54851         HAVE_DECL_ENVIRON.
54852         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54853         wrong claim that 'environ' is missing on some systems.
54854         * modules/execute (Depends-on): Add environ.
54855         * lib/execute.c (environ): Remove fallback declaration.
54856         * modules/pipe (Depends-on): Add environ.
54857         * lib/pipe.c (environ): Remove fallback declaration.
54858         * modules/setenv (Depends-on): Add environ.
54859         * lib/setenv.c (environ): Remove fallback declaration.
54860         * modules/unsetenv (Depends-on): Add environ.
54861         * lib/unsetenv.c (environ): Remove fallback declaration.
54862         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54863         m4/environ.m4.
54864         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54865         (gl_PREREQ_UNSETENV): Likewise.
54866
54867 2008-02-24  Bruno Haible  <bruno@clisp.org>
54868
54869         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54870
54871 2008-02-20  Bob Proulx  <bob@proulx.com>
54872
54873         Enable use of older two part flavor 'git describe'.
54874         * build-aux/git-version-gen: If using the older two part flavor of
54875         git version then recreate the third part now present in the
54876         newer three part flavor of git describe.
54877
54878 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54879
54880         * lib/fts.c (fts_build): Typo correction to comment.
54881
54882 2008-02-17  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54885         generating no-op conflicts.
54886
54887 2008-02-17  Bruno Haible  <bruno@clisp.org>
54888
54889         Speed up by 10%.
54890         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54891         result_entries, rather than an index-based loop.
54892
54893 2008-02-17  Bruno Haible  <bruno@clisp.org>
54894
54895         Speed up by 25%.
54896         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54897         'hashcode_cached'.
54898         (entry_create): New function.
54899         (entry_hashcode): Use the cached hashcode if possible.
54900         (read_changelog_file, try_split_merged_entry): Use entry_create.
54901
54902 2008-02-17  Bruno Haible  <bruno@clisp.org>
54903
54904         Speed up from O(n^2) to O(n) for long ChangeLog files.
54905         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54906         (read_changelog_file): Change implementation of entries_reversed list
54907         to rbtreehash.
54908         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54909
54910 2008-02-17  Bruno Haible  <bruno@clisp.org>
54911
54912         New option --split-merged-entry.
54913         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54914         (find_paragraph_end, try_split_merged_entry): New functions.
54915         (long_options): Add option --split-merged-entry.
54916         (usage): Document option --split-merged-entry.
54917         (main): Implement option --split-merged-entry.
54918         Reported by Eric Blake.
54919
54920 2008-02-17  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/git-merge-changelog.c: Include c-strstr.h.
54923         (main): Support the "git pull --rebase" situation.
54924         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54925         Reported by Eric Blake.
54926
54927 2008-02-16  Eric Blake  <ebb9@byu.net>
54928
54929         Avoid doubling \ in common case of "c-maybe" quoting style.
54930         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54931         eliding outer quotes.
54932         * lib/quotearg.h: Document this.
54933         * tests/test-quotearg.c (result_strings, inputs, results_g)
54934         (flag_results, locale_results): Test it by adding a new string to
54935         each test group.
54936         (compare_strings): Test new string.
54937
54938 2008-02-13  Eric Blake  <ebb9@byu.net>
54939
54940         Avoid trigraph quoting in default output.
54941         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54942         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54943         unless explicitly requested.
54944         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54945
54946 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54947
54948         Don't rely on signed integer overflowing to negative value.
54949         * lib/getugroups.c (getugroups): Include <limits.h>.
54950         Instead, compare against INT_MAX, and increment only if the test passes.
54951
54952 2008-02-13  Jim Meyering  <meyering@redhat.com>
54953         and Eric Blake  <ebb9@byu.net>
54954
54955         Avoid shadowing warning and compile errors on Linux.
54956         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54957         forwarding macros on Linux.
54958         (dcgettext): Define a stub, for Linux.
54959         (results_g, main): Avoid warnings.
54960
54961 2008-02-12  Eric Blake  <ebb9@byu.net>
54962
54963         Silence warning in last patch.
54964         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54965
54966         Quotearg part 4: add tests, fix c-maybe colon quoting.
54967         * lib/quotearg.h: Improve documentation.
54968         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54969         escapes when adding outer quotes.  When quoting trigraphs, use
54970         valid C notation.  When quoting NUL, omit extra characters if next
54971         character is not digit.  Alter prototype.
54972         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54973         callers.
54974         * modules/quotearg-tests: New module.
54975         * tests/test-quotearg.c: New test.
54976
54977 2008-02-07  Eric Blake  <ebb9@byu.net>
54978
54979         Quotearg part 3: add flag to control outer quote elision.
54980         * lib/quotearg.h (c_maybe_quoting_style): New style.
54981         (enum quoting_flags): Better documentation of flags.
54982         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54983         c-maybe style.
54984         (quotearg_buffer_restyled): Handle new flag to elide outer
54985         quotes.
54986
54987         Quotearg part 2: add flag that can control NUL elision.
54988         * lib/quotearg.h (set_quoting_flags): New prototype.
54989         * lib/quotearg.c (struct quoting_options): Add flag field.
54990         (set_quoting_flags): New function.
54991         (quotearg_buffer_restyled): Add flags parameter.
54992         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54993         (quotearg_n_options): Set the flag, since length cannot be
54994         returned.
54995         (quoting_options_from_style): Default flags correctly.
54996
54997         Quotearg part 1: more wrappers, restore quotearg_char state.
54998         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54999         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
55000         (quotearg_colon_mem): New wrappers.
55001         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
55002         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
55003         functions.
55004         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
55005         (quotearg_colon_mem): New functions.
55006
55007 2008-02-11  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
55010         library in the current directory: it does not work with parallel make.
55011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55012
55013 2008-02-11  Bruno Haible  <bruno@clisp.org>
55014
55015         * .gitattributes: New file.
55016
55017 2008-02-11  Jim Meyering  <meyering@redhat.com>
55018
55019         useless-if-before-free: Fix reversed exit values.
55020         * build-aux/useless-if-before-free: Use correct values
55021         for EXIT_MATCH and EXIT_NO_MATCH.
55022
55023         * build-aux/useless-if-before-free: Close stdout carefully.
55024
55025 2008-02-10  Bruno Haible  <bruno@clisp.org>
55026
55027         New module 'git-merge-changelog'.
55028         * modules/git-merge-changelog: New file.
55029         * lib/git-merge-changelog.c: New file.
55030
55031 2008-02-10  Jim Meyering  <meyering@redhat.com>
55032
55033         useless-if-before-free: New option: --list (-l).
55034
55035         useless-if-before-free: Don't exit immediately upon open failure.
55036         * build-aux/useless-if-before-free: Exit 2 for errors.
55037         Upon failure to open a file, don't exit immediately.
55038         Rather, just warn and continue with any remaining files.
55039
55040 2008-02-10  Bruno Haible  <bruno@clisp.org>
55041
55042         New abstract list operation 'node_set_value'.
55043         * lib/gl_list.h (gl_list_node_set_value): New function.
55044         (struct gl_list_implementation): New field node_set_value.
55045         * lib/gl_list.c (gl_list_node_set_value): New function.
55046         * lib/gl_array_list.c (gl_array_node_set_value): New function.
55047         (gl_array_list_implementation): Update.
55048         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
55049         (gl_carray_list_implementation): Update.
55050         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
55051         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55052         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55053         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
55054         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55055         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55056         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55057         Update.
55058         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55059         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
55060         (gl_sublist_list_implementation): Update.
55061
55062 2008-02-10  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
55065         Needed when ELEMENT is #defined to 'some_type *'.
55066
55067 2008-02-10  Jim Meyering  <meyering@redhat.com>
55068
55069         New script and module: useless-if-before-free
55070         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
55071         * build-aux/useless-if-before-free: New file.
55072         * modules/useless-if-before-free: New file.
55073
55074         * build-aux/gitlog-to-changelog: Use committer date, not author date.
55075
55076         xstrtol_error: Fix typo.
55077         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
55078         s/exit_failure/exit_status/.
55079
55080 2008-02-09  Jim Meyering  <meyering@redhat.com>
55081
55082         New script and module: gitlog-to-changelog
55083         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
55084         * modules/gitlog-to-changelog: New file.
55085         * build-aux/gitlog-to-changelog: New file.
55086
55087 2008-02-08  Jim Meyering  <meyering@redhat.com>
55088
55089         Avoid two "parameter unused" warnings.
55090         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
55091         Mark "st" as used.
55092
55093         Use "git COMMAND", not "git-COMMAND".
55094         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
55095         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
55096         * build-aux/git-version-gen: Use "git status", not "git-status".
55097
55098 2008-02-07  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
55101         Avoids a crash on Windows Vista.
55102         Reported by Adam Strzelecki <ono@java.pl> via
55103         Simon Josefsson <simon@josefsson.org>.
55104
55105 2008-02-06  Bruno Haible  <bruno@clisp.org>
55106
55107         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
55108         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
55109         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
55110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
55111         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55113         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
55114         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
55115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55116         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55122         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
55123         left-adjust flag.
55124         * tests/test-snprintf-posix.h (test_function): Likewise.
55125         * tests/test-sprintf-posix.h (test_function): Likewise.
55126         * tests/test-vasprintf-posix.c (test_function): Likewise.
55127         * doc/posix-functions/fprintf.texi: Update.
55128         * doc/posix-functions/printf.texi: Update.
55129         * doc/posix-functions/snprintf.texi: Update.
55130         * doc/posix-functions/sprintf.texi: Update.
55131         * doc/posix-functions/vfprintf.texi: Update.
55132         * doc/posix-functions/vprintf.texi: Update.
55133         * doc/posix-functions/vsnprintf.texi: Update.
55134         * doc/posix-functions/vsprintf.texi: Update.
55135         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55136
55137 2008-02-06  Bruno Haible  <bruno@clisp.org>
55138
55139         Fix bug introduced on 2008-01-26.
55140         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
55141
55142 2008-02-06  Bruno Haible  <bruno@clisp.org>
55143
55144         Fix bug introduced on 2007-06-10.
55145         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
55146         !NEED_PRINTF_FLAG_ZERO.
55147
55148 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
55149
55150         getloadavg: use libperfstat on AIX5
55151         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
55152
55153 2008-02-03  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/diffseq.h: Add comments about required #includes.
55156         Reported by Michael Biggs <gnulib@doubleplum.net>.
55157
55158 2008-02-01  Bruno Haible  <bruno@clisp.org>
55159
55160         * users.txt: Add gnuit.
55161
55162 2008-01-31  Bruno Haible  <bruno@clisp.org>
55163
55164         * lib/md4.c (set_uint32): Mark as inline.
55165         * lib/md5.c (set_uint32): Likewise.
55166         * lib/sha1.c (set_uint32): Likewise.
55167         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
55168         * m4/md5.m4 (gl_MD5): Likewise.
55169         * m4/sha1.m4 (gl_SHA1): Likewise.
55170
55171 2008-01-31  Jim Meyering  <meyering@redhat.com>
55172
55173         Use "sizeof VAR", rather than a literal "4".
55174         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
55175         * lib/md4.c (md4_read_ctx): Likewise.
55176         * lib/sha1.c (sha1_read_ctx): Likewise.
55177
55178 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55179
55180         * tests/test-sha1.c: New file, based on test-md5.c.
55181
55182         * modules/crypto/sha1-tests: New file.
55183
55184 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55185
55186         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
55187
55188 2008-01-31  Jim Meyering  <meyering@redhat.com>
55189
55190         Prefer "sizeof v" over the equivalent "4".
55191         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
55192         * lib/md5.c (set_uint32): Likewise.
55193         * lib/sha1.c (set_uint32): Likewise.
55194
55195 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55196
55197         * lib/sha1.c (set_uint32): Mark function as static.
55198
55199 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55200
55201         md2: clarify comments to say that alignment is not required.
55202         * lib/md2.h: Remove warning about alignment in comment.
55203         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
55204         never been required.
55205
55206 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55207
55208         md4: adapt alignment constraint fix from sha1.
55209         * lib/md4.c (set_uint32): New function, from sha1.c
55210         (md4_read_ctx): Use it.
55211         (md4_finish_ctx): Doc fix.
55212         * lib/md4.h: Doc fix.
55213
55214 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55215
55216         md5: adapt alignment constraint fix from sha1.
55217         * lib/md5.c (set_uint32): New function, from sha1.c
55218         (md5_read_ctx): Use it.
55219         (md5_finish_ctx): Doc fix.
55220         * lib/md5.h: Doc fix.
55221
55222 2008-01-30  Peter Palfrader  <weasel@debian.org>
55223
55224         sha1: remove the result buffer alignment constraint
55225         * lib/sha1.c (set_uint32): New function.
55226         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55227         constraint.
55228         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55229         * lib/sha1.h: Likewise.
55230
55231 2008-01-30  Andreas Schwab  <schwab@suse.de>
55232             Bruno Haible  <bruno@clisp.org>
55233
55234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55235         correct definition of LDBL_MIN_EXP.
55236
55237 2008-01-30  Karl Berry  <karl@gnu.org>
55238
55239         * config/srclist-update: try to preserve x bit on updates.
55240         * config/srclistvars.sh: update for karl.
55241
55242 2008-01-29  Jim Meyering  <meyering@redhat.com>
55243
55244         vasnprintf.c: Avoid warning about unused label
55245         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55246         "overflow" label definition and associated code with the
55247         same cpp condition that guards the sole use of that label.
55248
55249 2008-01-26  Bruno Haible  <bruno@clisp.org>
55250
55251         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55252         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55253         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55254         * lib/isnanl-nolibm.h (isnanl): Likewise.
55255         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55256
55257 2008-01-26  Bruno Haible  <bruno@clisp.org>
55258
55259         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55260         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55261
55262 2008-01-26  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55265         GCC >= 4.0 built-in.
55266         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55267
55268 2008-01-26  Bruno Haible  <bruno@clisp.org>
55269
55270         Rename isnan, applicable to 'double' only, to isnand.
55271         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55272         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55273         (configure.ac): Update.
55274         (Include): Replace "isnan.h" with "isnand.h".
55275         * m4/isnand.m4: Renamed from m4/isnan.m4.
55276         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55277         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55278         instead of isnan.c.
55279         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55280         instead of HAVE_ISNAN_IN_LIBC.
55281         (isnand): Renamed from isnan.
55282         * lib/isnand.c: New file.
55283         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55284         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55285         (Makefile.am): Update.
55286         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55287         Include isnand.h instead of isnan.h.
55288         (main): Test isnand instead of isnan.
55289         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55290         isnan-nolibm.
55291         * modules/frexp (Depends-on): Likewise.
55292         * modules/frexp-tests (Depends-on): Likewise.
55293         * modules/frexp-nolibm (Depends-on): Likewise.
55294         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55295         * modules/isfinite (Depends-on): Likewise.
55296         * modules/round-tests (Depends-on): Likewise.
55297         * modules/signbit (Depends-on): Likewise.
55298         * modules/signbit-tests (Depends-on): Likewise.
55299         * modules/snprintf-posix (Depends-on): Likewise.
55300         * modules/sprintf-posix (Depends-on): Likewise.
55301         * modules/trunc-tests (Depends-on): Likewise.
55302         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55303         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55306         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55308         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55309         * modules/vasnprintf-posix (Depends-on): Likewise.
55310         * modules/vasprintf-posix (Depends-on): Likewise.
55311         * modules/vfprintf-posix (Depends-on): Likewise.
55312         * modules/vsnprintf-posix (Depends-on): Likewise.
55313         * modules/vsprintf-posix (Depends-on): Likewise.
55314         * lib/frexp.c: Include isnand.h instead of isnan.h.
55315         (ISNAN): Set to isnand instead of isnan.
55316         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55317         (gl_isfinited): Use isnand instead of isnan.
55318         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55319         (gl_signbitd): Use isnand instead of isnan.
55320         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55321         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55322         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55323         (main): Use isnand instead of isnan.
55324         * tests/test-round1.c: Include isnand.h.
55325         (main): Use isnand instead of isnan.
55326         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55327         (ISNAN): Set to isnand instead of isnan.
55328         * tests/test-trunc1.c: Include isnand.h.
55329         (main): Use isnand instead of isnan.
55330         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55331         (equal): Use isnand instead of isnan.
55332         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55333         isnand-nolibm.
55334         * NEWS: Mention the change.
55335
55336 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55337             Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55340         the GCC builtins for signbits are present and set
55341         REPLACE_SIGNBIT_USING_GCC if so.
55342         * lib/math.in.h (signbit): Define using GCC builtins if
55343         REPLACE_SIGNBIT_USING_GCC is set.
55344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55345         REPLACE_SIGNBIT_USING_GCC.
55346         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55347
55348 2008-01-25  Jim Meyering  <meyering@redhat.com>
55349
55350         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55351         * lib/poll.c: Include <config.h>, not "config.h".
55352         * tests/test-getaddrinfo.c: Likewise.
55353
55354 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55355
55356         * modules/sockets-tests: New file.
55357
55358 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55359
55360         * modules/sockets: New module, can be used to call WSA_Startup and
55361         WSA_Cleanup when needed.
55362
55363         * lib/sockets.h, lib/sockets.c: New files.
55364
55365         * m4/sockets.m4: New file.
55366
55367         * tests/test-sockets.c: New file.
55368
55369 2008-01-19  Bruno Haible  <bruno@clisp.org>
55370
55371         * doc/posix-headers: Renamed from doc/headers.
55372         * doc/posix-functions: Renamed from doc/functions.
55373         * doc/gnulib.texi: Update.
55374
55375 2008-01-19  Bruno Haible  <bruno@clisp.org>
55376
55377         * doc/glibc-functions/strcasestr.texi: Include contents of
55378         doc/functions/strcasestr.texi, fixing the list of platforms.
55379         * doc/functions/strcasestr.texi: Remove file.
55380
55381 2008-01-19  Bruno Haible  <bruno@clisp.org>
55382
55383         * doc/glibc-functions/memmem.texi: Include contents of
55384         doc/functions/memmem.texi.
55385         * doc/functions/memmem.texi: Remove file.
55386
55387 2008-01-18  Bruno Haible  <bruno@clisp.org>
55388
55389         * doc/glibc-functions/*.texi: New files.
55390         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55391         to use the new files.
55392
55393 2008-01-17  Bruno Haible  <bruno@clisp.org>
55394
55395         * tests/test-gethostname.c (main): Fix printf statement.
55396
55397 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55398
55399         * modules/gethostname-tests: New file.
55400
55401         * tests/test-gethostname.c: New file.
55402
55403 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55404
55405         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55406         used by the UNAME case.  Reported by Bruno Haible
55407         <bruno@clisp.org>.
55408
55409 2008-01-17  Eric Blake  <ebb9@byu.net>
55410
55411         Convert c-strcasestr to be more efficient.
55412         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55413         (Depends-on): Add c-strcase, remove malloca, strnlen.
55414         * tests/test-c-strcasestr.c (main): Enhance test.
55415         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55416
55417 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55418
55419         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55420         Use it in creating po/Makevars.
55421
55422 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55423
55424         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55425         Applications that requires it should initialize libgcrypt
55426         manually.
55427
55428 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55429
55430         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55431
55432 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         Fix problem with getdate on mingw32 reported by Simon Josefsson
55435         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55436         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55437         tzname", when deciding whether to declare tzname.
55438         * lib/strftime.c (tzname): Likewise.
55439
55440 2008-01-15  Bruno Haible  <bruno@clisp.org>
55441
55442         Work around a MacOS X 10.5 bug in frexpl().
55443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55444         * doc/functions/frexpl.texi: Document the bug.
55445         Reported by Elias Pipping <pipping@gentoo.org>.
55446
55447 2008-01-14  Eric Blake  <ebb9@byu.net>
55448
55449         Touch up previous patch.
55450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55451         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55452
55453         Convert strcasestr module to use Two-Way algorithm.
55454         * modules/strcasestr-simple: New module, based on the old
55455         strcasestr, but with Two-Way rather than KMP.
55456         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55457         * lib/string.in.h (rpl_strcasestr): Declare.
55458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55459         performance.
55460         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55461         * modules/string (Makefile.am): Support strcasestr.
55462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55463         * modules/strcasestr-tests (Depends-on): Check for alarm.
55464         * tests/test-strcasestr.c: Augment test.
55465         * lib/str-two-way.h: Clean up stray macro.
55466         * NEWS: Document new module.
55467         * MODULES.html.sh (string handling): Likewise.
55468         * doc/functions/strcasestr.texi: New file.
55469         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55470         here, since it is not a POSIX function.
55471
55472 2008-01-14  Colin Watson  <cjwatson@debian.org>
55473             Bruno Haible  <bruno@clisp.org>
55474
55475         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55476         works fine; if not, set REPLACE_STRSIGNAL.
55477         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55479         REPLACE_STRSIGNAL.
55480         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55481         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55482         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55483
55484 2008-01-14  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/strsignal (Include): Change to <string.h>.
55487
55488 2008-01-14  Colin Watson  <cjwatson@debian.org>
55489
55490         * modules/argp (Notice): Add a notice recommending to change
55491         XGETTEXT_OPTIONS.
55492         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55493
55494 2008-01-13  Colin Watson  <cjwatson@debian.org>
55495
55496         * modules/strsignal-tests: New file.
55497         * tests/test-strsignal.c: New file.
55498
55499         * lib/strsignal.c: New file, from glibc with modifications.
55500         * lib/siglist.h: New file, from glibc with modifications.
55501         * lib/string.in.h (strsignal): New declaration.
55502         * m4/strsignal.m4: New file.
55503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55504         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55505         * modules/strsignal: New file.
55506         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55507         HAVE_DECL_STRSIGNAL.
55508
55509 2008-01-13  Bruno Haible  <bruno@clisp.org>
55510
55511         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55512         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55513         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55514         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55515
55516 2008-01-13  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55519         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55520         * lib/argp.h (__attribute__): Likewise.
55521         * lib/c-stack.c (__attribute__): Likewise.
55522         * lib/error.h (__attribute__): Likewise.
55523         * lib/fts.c (__attribute__): Likewise.
55524         * lib/openat.h (__attribute__): Likewise.
55525         * lib/stdio.in.h (__attribute__): Likewise.
55526         * lib/string.in.h (__attribute__): Likewise.
55527         * lib/utimens.c (__attribute__): Likewise.
55528         * lib/vasnprintf.h (__attribute__): Likewise.
55529         * lib/xalloc.h (__attribute__): Likewise.
55530         * lib/xprintf.h (__attribute__): Likewise.
55531         * lib/xstrtol.h (__attribute__): Likewise.
55532         * lib/xvasprintf.h (__attribute__): Likewise.
55533
55534 2008-01-12  Bruno Haible  <bruno@clisp.org>
55535
55536         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55537         * doc/glibc-headers/a.out.texi: New file.
55538         * doc/glibc-headers/aliases.texi: New file.
55539         * doc/glibc-headers/alloca.texi: New file.
55540         * doc/glibc-headers/ar.texi: New file.
55541         * doc/glibc-headers/argp.texi: New file.
55542         * doc/glibc-headers/argz.texi: New file.
55543         * doc/glibc-headers/byteswap.texi: New file.
55544         * doc/glibc-headers/crypt.texi: New file.
55545         * doc/glibc-headers/endian.texi: New file.
55546         * doc/glibc-headers/envz.texi: New file.
55547         * doc/glibc-headers/err.texi: New file.
55548         * doc/glibc-headers/error.texi: New file.
55549         * doc/glibc-headers/execinfo.texi: New file.
55550         * doc/glibc-headers/fpu_control.texi: New file.
55551         * doc/glibc-headers/fstab.texi: New file.
55552         * doc/glibc-headers/fts.texi: New file.
55553         * doc/glibc-headers/getopt.texi: New file.
55554         * doc/glibc-headers/ieee754.texi: New file.
55555         * doc/glibc-headers/ifaddrs.texi: New file.
55556         * doc/glibc-headers/libintl.texi: New file.
55557         * doc/glibc-headers/mcheck.texi: New file.
55558         * doc/glibc-headers/mntent.texi: New file.
55559         * doc/glibc-headers/obstack.texi: New file.
55560         * doc/glibc-headers/paths.texi: New file.
55561         * doc/glibc-headers/printf.texi: New file.
55562         * doc/glibc-headers/pty.texi: New file.
55563         * doc/glibc-headers/resolv.texi: New file.
55564         * doc/glibc-headers/shadow.texi: New file.
55565         * doc/glibc-headers/sysexits.texi: New file.
55566         * doc/glibc-headers/ttyent.texi: New file.
55567
55568 2008-01-12  Jim Meyering  <meyering@redhat.com>
55569
55570         announce-gen: emit Gnulib's git-based version string.
55571         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55572         New option --gnulib-version=V, where V is expected to be
55573         the output of running git describe in the gnulib directory.
55574         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55575         not useful, and plan to stop publishing an xdelta file with each
55576         coreutils release.
55577
55578         * build-aux/announce-gen: Also check for lzma-compressed files.
55579
55580 2008-01-11  Bruno Haible  <bruno@clisp.org>
55581
55582         * tests/test-memmem.c (main): Increase maximum allowed time.
55583         * tests/test-strstr.c (main): Likewise.
55584
55585 2008-01-11  Bruno Haible  <bruno@clisp.org>
55586
55587         * doc/functions/memmem.texi: Add more precisions about platforms.
55588         * doc/functions/strstr.texi: Likewise.
55589
55590 2008-01-10  Eric Blake  <ebb9@byu.net>
55591
55592         * m4/strstr.m4: Delete cruft from copy-n-paste.
55593         Reported by Bruno Haible.
55594
55595 2008-01-10  Bruno Haible  <bruno@clisp.org>
55596
55597         Make c-strstr rely on strstr.
55598         * lib/c-strstr.c: Don't include str-kmp.h.
55599         (c_strstr): Define in terms of strstr.
55600         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55601         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55602
55603 2008-01-10  Bruno Haible  <bruno@clisp.org>
55604
55605         * doc/gnulib.texi (String Functions in C Locale): New section.
55606         * doc/c-ctype.texi: New file.
55607         * doc/c-strcase.texi: New file.
55608         * doc/c-strcaseeq.texi: New file.
55609         * doc/c-strcasestr.texi: New file.
55610         * doc/c-strstr.texi: New file.
55611         * doc/c-strtod.texi: New file.
55612         * doc/c-strtold.texi: New file.
55613
55614 2008-01-10  Eric Blake  <ebb9@byu.net>
55615
55616         * lib/relocatable.h: Fix a comment.
55617
55618 2008-01-10  Eric Blake  <ebb9@byu.net>
55619
55620         Share two-way algorithm.
55621         * lib/str-two-way.h: New file, merged from...
55622         * lib/memmem.c: ...here...
55623         * lib/strstr.c: ...and here.
55624         * modules/memmem (Files): Use it.
55625         * modules/strstr (Files): Likewise.
55626
55627         Avoid quadratic strstr implementations.
55628         * lib/strstr.c: New file.
55629         * m4/strstr.m4: Likewise.
55630         * modules/strstr: Likewise.
55631         * modules/strstr-tests: Likewise.
55632         * tests/test-strstr.c: Likewise.
55633         * lib/string.in.h (rpl_strstr): Declare.
55634         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55636         * modules/string (Makefile.am): Likewise.
55637         * MODULES.html.sh (string handling): Mention new module.
55638         * doc/functions/strstr.texi (strstr): Document the bug.
55639
55640 2008-01-10  Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/relocatable.h (relocate): State whether result is freshly
55643         allocated or not.
55644         * lib/relocatable.c (relocate): Return a freshly allocated string
55645         instead of a pointer to a privately held string.
55646         Reported by Sylvain Beucler <beuc@gnu.org>.
55647
55648 2008-01-10  Colin Watson  <cjwatson@debian.org>
55649
55650         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55651         s/S_ISNLK/S_ISLNK/.
55652
55653 2008-01-09  Bruno Haible  <bruno@clisp.org>
55654
55655         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55656         and other files.
55657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55658         if it's only a guess.
55659         * modules/memmem: Simplify by depending on memmem-simple.
55660
55661 2008-01-09  Bruno Haible  <bruno@clisp.org>
55662
55663         Work around OpenBSD 4.0 tdelete() bug.
55664         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55665         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55666         macros and don't redefine the enum values.
55667         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55668         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55669         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55670
55671 2008-01-09  Bruno Haible  <bruno@clisp.org>
55672
55673         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55674         (main): Don't perform the tests if setlocale did not install a UTF-8
55675         locale. Needed on OpenBSD 4.0.
55676         * modules/wcwidth-tests (Depends-on): Add localcharset.
55677
55678 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55681         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55682         * NEWS: announce this.
55683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55684
55685 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55686         and Eric Blake  <ebb9@byu.net>
55687
55688         Add memmem-simple module.
55689         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55690         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55691         * modules/memmem-simple: New file.
55692         * modules/memmem (Description): Tweak.
55693         * MODULES.html.sh (string handling): Mention new module.
55694         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55695         addressed by memmem-simple.
55696         * NEWS: Document the difference.
55697
55698 2008-01-09  Eric Blake  <ebb9@byu.net>
55699
55700         Give gcc some memmem optimization hints.
55701         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55702         (strcasestr): Declare as pure.
55703         * modules/memmem (Maintainer): Claim my implementation.
55704
55705 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55706
55707         Support AIX 6.1 and higher.
55708         * build-aux/config.libpath: Likewise.
55709         * build-aux/config.rpath: Likewise.
55710
55711 2008-01-08  Jim Meyering  <meyering@redhat.com>
55712             Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55715         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55716         Reported by Peter Fales in
55717         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55718
55719 2008-01-08  Bruno Haible  <bruno@clisp.org>
55720
55721         * modules/unictype/category-of (Depends-on): Add
55722         unictype/category-none.
55723         * modules/unictype/category-and-tests (Depends-on): Add
55724         unictype/category-{L,N,Lu,Nd}.
55725         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55726         * modules/unictype/category-or-tests (Depends-on): Add
55727         unictype/category-{L,N}.
55728         * modules/unictype/category-name-tests (Depends-on): Add
55729         unictype/category-{Z,Nl}.
55730         Reported by Simon Josefsson.
55731
55732 2008-01-08  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55735         convention better.
55736         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55737         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55738         Reported by Peter Miller <millerp@canb.auug.org.au>.
55739
55740 2008-01-08  Eric Blake  <ebb9@byu.net>
55741
55742         Rewrite memmem to guarantee linear complexity without malloc.
55743         * lib/memmem.c (memmem): Use Two-Way rather than
55744         Knuth-Morris-Pratt, to allow O(1) space usage.
55745         (critical_factorization, two_way_short_needle)
55746         (two_way_long_needle): New functions.
55747         (knuth_morris_pratt): Delete.
55748         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55749         Add stdint.
55750         * tests/test-memmem.c (main): Add tests for periodic needle and
55751         sublinear performance.
55752         * doc/functions/memmem.texi (memmem): Document other deficiencies
55753         in cygwin and older glibc.
55754
55755 2008-01-08  Bruno Haible  <bruno@clisp.org>
55756
55757         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55758         augmentation.
55759
55760 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55761
55762         Add a configure time option: --disable-acl.
55763         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55764         AC_ARG_ENABLE(acl).
55765
55766 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55767
55768         * tests/test-localename.c: Don't include obsolete "setenv.h".
55769
55770         * modules/localename-tests (Depends-on): Need unsetenv.
55771
55772 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55773
55774         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55775
55776 2008-01-06  Colin Watson  <cjwatson@debian.org>
55777
55778         * users.txt: Add man-db.
55779
55780 2008-01-07  Bruno Haible  <bruno@clisp.org>
55781
55782         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55783         previous section name.
55784
55785 2008-01-07  Bruno Haible  <bruno@clisp.org>
55786
55787         * lib/progname.c (set_program_name): Don't strip off a leading
55788         "lt-" prefix outside a .libs directory.
55789         Suggested by Paul Eggert.
55790
55791 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55792             Bruno Haible  <bruno@clisp.org>
55793
55794         Improve memory cleanup in 'relocatable' module.
55795         * lib/relocatable.h (compute_curr_prefix): Change return type to
55796         'char *'.
55797         * lib/relocatable.c (compute_curr_prefix): Change return type to
55798         'char *'. Free curr_installdir after use.
55799         (relocate): Free curr_prefix_better after use.
55800         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55801
55802 2008-01-01  Bruno Haible  <bruno@clisp.org>
55803
55804         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55805         failure on older glibc systems.
55806         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55807
55808 2008-01-05  Eric Blake  <ebb9@byu.net>
55809
55810         Avoid quadratic system memmem.
55811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55812         Reported by Ralf Wildenhues.
55813
55814         Fix memmem test for mingw.
55815         * modules/memmem-tests (configure.ac): Check for alarm.
55816         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55817         it.
55818         * doc/functions/memmem.texi: New file.
55819         * doc/gnulib.texi (Function Substitutes): Add memmem.
55820         Reported by Bruno Haible.
55821
55822 2008-01-04  Bruno Haible  <bruno@clisp.org>
55823
55824         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55825         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55826         gl_HEADER_STRING_H_DEFAULTS.
55827
55828 2008-01-04  Eric Blake  <ebb9@byu.net>
55829
55830         Shorten duration of memmem test.
55831         * tests/test-memmem.c (main): Use alarm to declare failure if test
55832         is taking too long.
55833         Reported by Ralf Wildenhues.
55834
55835 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55836
55837         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55838         string, needed by strerror.
55839
55840 2008-01-03  Colin Watson  <cjwatson@debian.org>
55841             Bruno Haible  <bruno@clisp.org>
55842
55843         * doc/gnulib-tool.texi (Localization): New section.
55844
55845 2008-01-02  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55848         variables to 'unsigned char *' type.
55849         Reported by Paul Eggert.
55850
55851 2008-01-02  Jim Meyering  <jim@meyering.net>
55852
55853         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55854
55855 2007-12-31  Jim Meyering  <jim@meyering.net>
55856
55857         Avoid use of private FTS type name.
55858         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55859
55860 2007-12-30  Karl Berry  <karl@gnu.org>
55861
55862         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55863         work around defect in Texinfo and/or the standalone Info browser.
55864
55865 2007-12-30  Bruno Haible  <bruno@clisp.org>
55866
55867         Unify 5 copies of the KMP code.
55868         * lib/str-kmp.h: New file.
55869         * lib/c-strcasestr.c: Include str-kmp.h.
55870         (knuth_morris_pratt): Remove function.
55871         (c_strcasestr): Update.
55872         * lib/c-strstr.c: Include str-kmp.h.
55873         (knuth_morris_pratt): Remove function.
55874         (c_strcasestr): Update.
55875         * lib/mbscasestr.c: Include str-kmp.h.
55876         (knuth_morris_pratt_unibyte): Remove function.
55877         * lib/mbsstr.c: Include str-kmp.h.
55878         (knuth_morris_pratt_unibyte): Remove function.
55879         * lib/strcasestr.c: Include str-kmp.h.
55880         (knuth_morris_pratt): Remove function.
55881         (strcasestr): Update.
55882         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55883         * modules/c-strstr (Files): Likewise.
55884         * modules/mbscasestr (Files): Likewise.
55885         * modules/mbsstr (Files): Likewise.
55886         * modules/strcasestr (Files): Likewise.
55887         Suggested by Paul Eggert.
55888
55889 2007-12-30  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55892         defined.
55893
55894 2007-12-30  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/xmalloca.h: Include xalloc.h.
55897         (xnmalloca): New macro.
55898
55899 2007-12-30  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/malloca.h (nmalloca): New macro.
55902         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55903         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55904         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55905         knuth_morris_pratt_multibyte): Likewise.
55906         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55907         knuth_morris_pratt_multibyte): Likewise.
55908         * lib/memmem.c (knuth_morris_pratt): Likewise.
55909         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55910
55911 2007-12-25  Bruno Haible  <bruno@clisp.org>
55912
55913         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55914         * lib/glob.c: Don't include openat.h.
55915         (link_exists2_p): Add back the code that deals with the
55916         !GLOB_ALTDIRFUNC case.
55917         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55918         let it do the filename concatenation.
55919         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55920         * modules/glob (Depends-on): Remove openat.
55921
55922 2007-12-31  Bruno Haible  <bruno@clisp.org>
55923
55924         * modules/dirfd (License): Change to LGPLv2+.
55925         Approved by Jim Meyering.
55926
55927 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55930         when multiplying M by sizeof (size_t).
55931
55932 2007-12-10  Martin Lambers  <marlam@marlam.de>
55933
55934         Override getpagesize on mingw.
55935         * lib/getpagesize.c: New file.
55936         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55937         * modules/getpagesize (Files): Add lib/getpagesize.c.
55938         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55940         REPLACE_GETPAGESIZE.
55941         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55942
55943 2007-12-25  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/localcharset (Notice): New field.
55946         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55947         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55948
55949 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55950             Bruno Haible  <bruno@clisp.org>
55951
55952         Avoid using the syntax symbol() in formatted documentation.
55953         * MODULES.html.sh (func_module): When replacing symbol() with a
55954         hyperlink, remove the parentheses. Show an error if some remain.
55955         Recognize and render the '...' syntax.
55956         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55957         Rework. Add paragraph about GCC's inlining.
55958         * doc/alloca.texi: Likewise.
55959         * doc/error.texi: Remove parentheses from symbol reference.
55960         * doc/gnulib-intro.texi: Likewise.
55961         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55962         * modules/fnmatch (Description): Reword to say "the ... function".
55963         * modules/full-read (Description): Likewise.
55964         * modules/full-write (Description): Likewise.
55965         * modules/safe-read (Description): Likewise.
55966         * modules/safe-write (Description): Likewise.
55967         * modules/strchrnul (Description): Likewise.
55968         * modules/trim (Description): Likewise.
55969         * modules/error (Description): Remove parentheses from symbol
55970         references.
55971         * modules/verror (Description): Likewise.
55972         Reported by Karl Berry.
55973
55974 2007-12-25  Bruno Haible  <bruno@clisp.org>
55975
55976         Fixup after 2007-10-16 commit.
55977         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55978
55979 2007-12-24  Bruno Haible  <bruno@clisp.org>
55980
55981         Make --enable-relocatable work with DESTDIR.
55982         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55983         to compute installdir from destprog.
55984         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55985         also set the RELOC_DESTDIR variable.
55986         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55987
55988 2007-12-24  Bruno Haible  <bruno@clisp.org>
55989
55990         Fix link error due to xalloc_die().
55991         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55992         of xreadlink.
55993         * lib/relocwrapper.c: Update comments.
55994         * build-aux/install-reloc: Remove xreadlink.c from file list.
55995         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55996         xreadlink.c.
55997         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55998
55999 2007-12-24  Bruno Haible  <bruno@clisp.org>
56000
56001         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
56002         * lib/setenv.h: Remove file.
56003         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
56004         lib/setenv.h.
56005         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
56006         (Depends-on): Add stdlib.
56007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
56008         gl_FUNC_UNSETENV.
56009         (Include): Replace setenv.h with <stdlib.h>.
56010         * modules/unsetenv: New file.
56011         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
56012         * lib/unsetenv.c: Include <stdlib.h> first.
56013         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
56014         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
56015         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
56016         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
56017         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
56018         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
56020         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56021         * doc/functions/unsetenv.texi: Update.
56022         * modules/xsetenv (Depends-on): Add unsetenv.
56023         * modules/getdate (Depends-on): Likewise.
56024         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
56025         * lib/xsetenv.c: Don't include setenv.h.
56026         * lib/getdate.y: Likewise.
56027         * lib/relocwrapper.c: Likewise.
56028         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
56029         (Depends-on): Add stdlib.
56030         * NEWS: Mention the changes.
56031         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56032
56033 2007-12-23  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/memmem.c (memmem): Use lowercase variable names. Tab
56036         indentation.
56037
56038 2007-12-23  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/c-strcasestr.c: Add more comments.
56041         * lib/c-strstr.c: Likewise.
56042         * lib/mbscasestr.c: Likewise.
56043         * lib/mbsstr.c: Likewise.
56044         * lib/strcasestr.c: Likewise.
56045         * lib/memmem.c: Likewise.
56046
56047 2007-12-23  Bruno Haible  <bruno@clisp.org>
56048
56049         * tests/test-memmem.c: Include <string.h> first.
56050
56051 2007-12-22  Bruno Haible  <bruno@clisp.org>
56052
56053         * gnulib-tool (func_create_testdir): Change $auxdir while generating
56054         the contents of $testsbase.
56055         Reported by Ralf Wildenhues.
56056
56057 2007-12-22  Bruno Haible  <bruno@clisp.org>
56058
56059         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
56060         two variables local_ldadd_before, local_ldadd_last.
56061
56062 2007-12-20  Eric Blake  <ebb9@byu.net>
56063
56064         Work around circular library issue when cross-compiling.
56065         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
56066         that progname.o does not need to pull in rpl_memcmp.
56067
56068 2007-12-19  Eric Blake  <ebb9@byu.net>
56069
56070         Fix memmem to avoid O(n^2) worst-case complexity.
56071         * lib/memmem.c (knuth_morris_pratt): New function.
56072         (memmem): Use it if first few naive iterations fail.
56073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
56074         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
56075         * modules/memchr (License): Likewise.
56076         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
56077         malloca.
56078         * tests/test-memmem.c: Rewrite, borrowing ideas from
56079         test-mbsstr1.c; the old version wouldn't even compile!
56080         * modules/memmem-tests: New file.
56081         * lib/string.in.h (rpl_memmem): Add declaration.
56082         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
56083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
56084         REPLACE_MEMMEM.
56085
56086 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
56089         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
56090         before any system include files, and undef after them all.  This
56091         should fix a problem on VMS reported by John E. Malmberg in
56092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
56093
56094 2007-12-17  Eric Blake  <ebb9@byu.net>
56095
56096         Revert addition of verify, for BSD/OS.
56097         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
56098         can't handle large files, for the sake of obsolete platforms.
56099         * modules/fseeko (Depends-on): Remove verify.
56100         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
56101         * doc/functions/ftello.texi (ftello): Likewise.
56102         * doc/functions/fgetpos.texi (fgetpos): Likewise.
56103         Reported by Larry Jones.
56104
56105 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
56106
56107         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
56108         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
56109
56110 2007-12-17  Jim Meyering  <meyering@redhat.com>
56111
56112         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
56113         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
56114         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
56115         * modules/getcwd (Depends-on): Add openat.
56116         Reported by Petr Salinger.
56117
56118 2007-12-17  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
56121         avoid a segmentation fault of the configure test on x86_64 systems.
56122
56123 2007-12-15  Jim Meyering  <meyering@redhat.com>
56124
56125         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
56126
56127 2007-12-13  Eric Blake  <ebb9@byu.net>
56128
56129         Another fseek test.
56130         * tests/test-fseek.c (main): Also test ungetc handling.
56131         * tests/test-fseeko.c (main): Likewise.
56132         * modules/fseeko (Depends-on): Add verify.
56133         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
56134         large.
56135         Reported by Larry Jones.
56136
56137         Fix fseeko on mingw.
56138         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
56139         seek.
56140
56141         Beef up fseek tests.
56142         * tests/test-fseek.c (main): Also test eof handling.
56143         * tests/test-fseeko.c (main): Likewise.
56144         Reported by Larry Jones.
56145
56146 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
56147
56148         Fix fseeko on BSD-based platforms.
56149         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
56150         successful seek.
56151
56152 2007-12-12  Eric Blake  <ebb9@byu.net>
56153
56154         Allow circular dependency of separate libtests.a
56155         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
56156         when use_libtests.
56157
56158 2007-12-11  Eric Blake  <ebb9@byu.net>
56159
56160         Fix bug with -0.0L in previous patch.
56161         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
56162         * tests/test-isnan.c (main): Also test on zeroes.
56163         * tests/test-isnanf.c (main): Likewise.
56164         * tests/test-isnanl.h (main): Likewise.
56165
56166         Detect pseudo-denormals on x86 even when cross-compiling.
56167         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
56168         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
56169         invalid bit patterns that happen to satisfy ==.
56170
56171         Avoid link failures with separate libtests.a.
56172         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
56173         last, to satisfy circular dependencies.
56174
56175 2007-12-11  Eric Blake  <ebb9@byu.net>
56176         and Bruno Haible  <bruno@clisp.org>
56177
56178         Fix OpenBSD 4.0 <float.h> handling of long double.
56179         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
56180         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
56181         * doc/headers/float.texi (float.h): Document OpenBSD bug.
56182
56183 2007-12-11  Jim Meyering  <meyering@redhat.com>
56184
56185         * users.txt: Add libvirt.
56186
56187         Support versions of autoconf prior to 2.59c.
56188         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
56189         if it is not already defined.
56190
56191 2007-12-09  Bruno Haible  <bruno@clisp.org>
56192
56193         Let 'gnulib-tool --import' collect sources needed for the tests in
56194         tests/ rather than in lib/.
56195         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
56196         argument. If true, add rules to generate libtests.a, and put libtests.a
56197         into $(LDADD). Consider source files in subdirectories and set
56198         uses_subdirs.
56199         (func_emit_initmacro_start, func_emit_initmacro_end,
56200         func_emit_initmacro_done): Pass all arguments explicitly.
56201         (func_import): Determine two module lists main_modules,
56202         testsrelated_modules. Determine use_libtests. Determine two variables
56203         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
56204         instead of just sed_transform_lib_file. Determine two variables
56205         main_files and testsrelated_files. Compute 'files' as the union of
56206         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
56207         func_add_or_update. In the generated gnulib-comp.m4, collect the
56208         object files for tests/ in different variables than those for lib/.
56209         Substitute LIBTESTS_LIBDEPS.
56210         (func_create_testdir): Combine the uses_subdirs results from
56211         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
56212
56213 2007-12-09  Bruno Haible  <bruno@clisp.org>
56214
56215         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
56216         the build-aux directory.
56217
56218 2007-12-09  Bruno Haible  <bruno@clisp.org>
56219
56220         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
56221         introduced on 2006-09-09.
56222
56223 2007-12-07  Jim Meyering  <meyering@redhat.com>
56224
56225         Let these macros work also with autoconf-2.59.
56226         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56227         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56228         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56229
56230 2007-12-06  Jim Meyering  <meyering@redhat.com>
56231
56232         Avoid a configure-time syntax error in gl_FUNC_ACL.
56233         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56234         function in each branch, before testing the cache variable.
56235
56236 2007-12-04  Eric Blake  <ebb9@byu.net>
56237
56238         Make scripts executable.
56239         * build-aux/config.guess: Add execute permissions.
56240         * build-aux/config.sub: Likewise.
56241         * build-aux/gendocs.sh: Likewise.
56242
56243         Fix frexp on mingw.
56244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56245         cross-compiling.
56246         * doc/functions/frexp.texi (frexp): Document the bug.
56247
56248         Make cygwin fseeko check more reliable.
56249         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56250         version numbers, rather than unrelated feature check.
56251         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56252         * doc/functions/ftello.texi (ftello): Likewise.
56253         Reported by Bruno Haible.
56254
56255         * m4/strerror.m4: Bump version number.
56256
56257 2007-12-03  Bruno Haible  <bruno@clisp.org>
56258
56259         * doc/functions/mprotect.texi: Mention the mingw problem.
56260
56261 2007-12-03  Eric Blake  <ebb9@byu.net>
56262
56263         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56264         REPLACE_STRERROR is initialized before this macro.
56265
56266 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56269         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56270         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56271         put -lsec in even for programs other than 'ls'.  This fixes a problem
56272         for gettext reported by Bruno Haible in
56273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56274         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56275         Add support for Solaris 10.  This isn't efficient, but should get the
56276         job done for now.
56277
56278 2007-12-03  James Youngman  <jay@gnu.org>
56279
56280         * doc/regexprops-generic.texi: change "an close-group" to "a
56281         close-group" and "illegal" to "not allowed".
56282
56283 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56284
56285         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56286         pr_byname.h. Needed for the rare case when the maintainer has done
56287         "make maintainer-clean" in the source directory and then attempts a
56288         build outside the source directory.
56289         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56290         scripts_byname.h.
56291
56292 2007-12-02  Martin Lambers <marlam@marlam.de>
56293             Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/getpagesize.h: Remove file.
56296         * lib/unistd.in.h: Include declaration of getpagesize here.
56297         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56298         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56299         HAVE_SYS_PARAM_H.
56300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56301         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56302         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56303         (Depends-on): Add unistd.
56304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56305         (Include): Use <unistd.h> instead of getpagesize.h.
56306         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56307         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56308         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56309         gl_GETPAGESIZE invocation, already handled by module dependency.
56310         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56311
56312 2007-12-02  Bruno Haible  <bruno@clisp.org>
56313
56314         * modules/strings-tests: New file.
56315         * tests/test-strings.c: New file.
56316
56317         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56318         * lib/strings.in.h: New file.
56319         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56320         * m4/strings_h.m4: New file.
56321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56322         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56323         * modules/strings: New file.
56324         * modules/string (Makefile.am): Update.
56325         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56326         Reported by Karl Berry.
56327
56328 2007-12-01  Eric Blake  <ebb9@byu.net>
56329
56330         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56331         accomodate fix in cygwin 1.5.25.
56332
56333 2007-12-01  Jim Meyering  <meyering@redhat.com>
56334
56335         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56336         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56337         that would inhibit utf8-optimization of a regexp containing line-
56338         or buffer-anchors, e.g., `^', `$'.
56339
56340 2007-11-30  Bruno Haible  <bruno@clisp.org>
56341
56342         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56343         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56344         glthread_recursive_lock_init.
56345         * lib/lock.c (glthread_recursive_lock_init)
56346         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56347         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56348
56349 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56350
56351         New function qset_acl, like set_acl but with syscall semantics.
56352         * lib/acl.h (qset_acl): New decl.
56353         * lib/acl.c (qset_acl): New function.
56354         (set_acl): Use new function.  Use more-consistent diagnostics.
56355
56356 2007-11-28  Jim Meyering  <meyering@redhat.com>
56357
56358         * modules/physmem (License): Change from GPL to LGPLv2+.
56359
56360 2007-11-26  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56363         'long double' type has excess precision.
56364         Reported by Jim Meyering in
56365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56366
56367 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56368
56369         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56370         Sync from <http://gnu.org/licenses>.
56371         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56372         with license text from same location.
56373         * doc/maintain.texi, doc/standards.texi:  Sync from
56374         <http://savannah.gnu.org/projects/gnustandards>.
56375
56376 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56377         and Jim Meyering  <meyering@redhat.com>
56378
56379         Adjust getdate' grammar to accept a slightly more regular language.
56380         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56381         Before, the former was rejected.
56382         * lib/getdate.y (digits_to_date_time): New function, factored
56383         out of ...
56384         (number): ...here.  Just call digits_to_date_time.
56385         (hybrid): New non-terminal to handle an <unsigned number,
56386         signed relative offset> sequence consistently.
56387
56388 2007-11-18  Jim Meyering  <meyering@redhat.com>
56389
56390         Pull my changes from coreutils:
56391         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56392         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56393         use of $gnulib_tool_option_extras, so that it's separated from the
56394         preceding argument.
56395
56396         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56397         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56398         parent destination directories before copying a file into place.
56399
56400 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56401
56402         bootstrap: work also with 4-argument variant of AC_INIT
56403         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56404
56405 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56406
56407         Port test-getaddrinfo to Solaris.
56408         Problem reported by Bruno Haible in
56409         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56410         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56411         explanation of setting 'hints'.
56412         Don't reject an implementation merely because it returns EAI_SERVICE.
56413         (EAI_SERVICE): Define to 0 if not defined.
56414
56415 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         The license of gnu-make and posix-shell is now "GPLed build tool".
56418         * modules/gnu-make (License): Likewise.
56419         * modules/posix-shell (License): Likewise.
56420
56421         New module posix-shell, for determining a POSIX shell
56422         or perhaps something that is close enough to a POSIX shell.
56423         * m4/posix-shell.m4: New file.
56424         * modules/posix-shell: New file.
56425
56426         * MODULES.html.sh: Mention new module.
56427
56428         New module gnu-make, for determining whether we're using GNU Make.
56429         * m4/gnu-make.m4: New file.
56430         * modules/gnu-make: New file.
56431         * MODULES.html.sh: Mention new module.
56432
56433 2007-11-14  Jim Meyering  <meyering@redhat.com>
56434
56435         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56436         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56437         use this macro to create a function _definition_.
56438         Remove useless "#undef ARGMATCH_DIE".
56439
56440 2007-11-14  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/config.charset: Update for OpenBSD 4.1.
56443         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56444
56445 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56446
56447         Document 64-bit #if problems in stdint.texi.
56448         * doc/headers/stdint.texi (stdint.h): Mention problems with
56449         64-bit-#if, and how to work around them.
56450
56451         Don't insist on 'long long int' support in the preprocessor.  It
56452         breaks too many things.  For example, PRIdMAX still uses a 'long
56453         long int' format with the latest Sun compiler, even though
56454         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56455         preprocessor problem.  This causes the latest coreutils to dump
56456         core on Solaris 10 sparc with the Sun C compiler.
56457         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56458         the troublesome expressions at configure-time, not at #if-time.
56459         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56460         preprocessor.
56461         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56462         compile-time C checks, done at 'configure'-time.
56463         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56464         * modules/inttypes (Makefile): Substitute the new symbols that
56465         gl_INTTYPES_H now generates.
56466         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56467
56468 2007-11-12  Bruno Haible  <bruno@clisp.org>
56469
56470         Tests for Unicode character classification functions.
56471
56472         * modules/unictype/bidicategory-byname-tests: New file.
56473         * modules/unictype/bidicategory-name-tests: New file.
56474         * modules/unictype/bidicategory-of-tests: New file.
56475         * modules/unictype/bidicategory-test-tests: New file.
56476         * modules/unictype/block-list-tests: New file.
56477         * modules/unictype/block-of-tests: New file.
56478         * modules/unictype/block-test-tests: New file.
56479         * modules/unictype/category-C-tests: New file.
56480         * modules/unictype/category-Cc-tests: New file.
56481         * modules/unictype/category-Cf-tests: New file.
56482         * modules/unictype/category-Cn-tests: New file.
56483         * modules/unictype/category-Co-tests: New file.
56484         * modules/unictype/category-Cs-tests: New file.
56485         * modules/unictype/category-L-tests: New file.
56486         * modules/unictype/category-Ll-tests: New file.
56487         * modules/unictype/category-Lm-tests: New file.
56488         * modules/unictype/category-Lo-tests: New file.
56489         * modules/unictype/category-Lt-tests: New file.
56490         * modules/unictype/category-Lu-tests: New file.
56491         * modules/unictype/category-M-tests: New file.
56492         * modules/unictype/category-Mc-tests: New file.
56493         * modules/unictype/category-Me-tests: New file.
56494         * modules/unictype/category-Mn-tests: New file.
56495         * modules/unictype/category-N-tests: New file.
56496         * modules/unictype/category-Nd-tests: New file.
56497         * modules/unictype/category-Nl-tests: New file.
56498         * modules/unictype/category-No-tests: New file.
56499         * modules/unictype/category-P-tests: New file.
56500         * modules/unictype/category-Pc-tests: New file.
56501         * modules/unictype/category-Pd-tests: New file.
56502         * modules/unictype/category-Pe-tests: New file.
56503         * modules/unictype/category-Pf-tests: New file.
56504         * modules/unictype/category-Pi-tests: New file.
56505         * modules/unictype/category-Po-tests: New file.
56506         * modules/unictype/category-Ps-tests: New file.
56507         * modules/unictype/category-S-tests: New file.
56508         * modules/unictype/category-Sc-tests: New file.
56509         * modules/unictype/category-Sk-tests: New file.
56510         * modules/unictype/category-Sm-tests: New file.
56511         * modules/unictype/category-So-tests: New file.
56512         * modules/unictype/category-Z-tests: New file.
56513         * modules/unictype/category-Zl-tests: New file.
56514         * modules/unictype/category-Zp-tests: New file.
56515         * modules/unictype/category-Zs-tests: New file.
56516         * modules/unictype/category-and-not-tests: New file.
56517         * modules/unictype/category-and-tests: New file.
56518         * modules/unictype/category-byname-tests: New file.
56519         * modules/unictype/category-name-tests: New file.
56520         * modules/unictype/category-none-tests: New file.
56521         * modules/unictype/category-of-tests: New file.
56522         * modules/unictype/category-or-tests: New file.
56523         * modules/unictype/category-test-withtable-tests: New file.
56524         * modules/unictype/combining-class-tests: New file.
56525         * modules/unictype/ctype-alnum-tests: New file.
56526         * modules/unictype/ctype-alpha-tests: New file.
56527         * modules/unictype/ctype-blank-tests: New file.
56528         * modules/unictype/ctype-cntrl-tests: New file.
56529         * modules/unictype/ctype-digit-tests: New file.
56530         * modules/unictype/ctype-graph-tests: New file.
56531         * modules/unictype/ctype-lower-tests: New file.
56532         * modules/unictype/ctype-print-tests: New file.
56533         * modules/unictype/ctype-punct-tests: New file.
56534         * modules/unictype/ctype-space-tests: New file.
56535         * modules/unictype/ctype-upper-tests: New file.
56536         * modules/unictype/ctype-xdigit-tests: New file.
56537         * modules/unictype/decimal-digit-tests: New file.
56538         * modules/unictype/digit-tests: New file.
56539         * modules/unictype/mirror-tests: New file.
56540         * modules/unictype/numeric-tests: New file.
56541         * modules/unictype/property-alphabetic-tests: New file.
56542         * modules/unictype/property-ascii-hex-digit-tests: New file.
56543         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56544         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56545         * modules/unictype/property-bidi-block-separator-tests: New file.
56546         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56547         * modules/unictype/property-bidi-common-separator-tests: New file.
56548         * modules/unictype/property-bidi-control-tests: New file.
56549         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56550         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56551         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56552         * modules/unictype/property-bidi-european-digit-tests: New file.
56553         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56554         * modules/unictype/property-bidi-left-to-right-tests: New file.
56555         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56556         * modules/unictype/property-bidi-other-neutral-tests: New file.
56557         * modules/unictype/property-bidi-pdf-tests: New file.
56558         * modules/unictype/property-bidi-segment-separator-tests: New file.
56559         * modules/unictype/property-bidi-whitespace-tests: New file.
56560         * modules/unictype/property-byname-tests: New file.
56561         * modules/unictype/property-combining-tests: New file.
56562         * modules/unictype/property-composite-tests: New file.
56563         * modules/unictype/property-currency-symbol-tests: New file.
56564         * modules/unictype/property-dash-tests: New file.
56565         * modules/unictype/property-decimal-digit-tests: New file.
56566         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56567         * modules/unictype/property-deprecated-tests: New file.
56568         * modules/unictype/property-diacritic-tests: New file.
56569         * modules/unictype/property-extender-tests: New file.
56570         * modules/unictype/property-format-control-tests: New file.
56571         * modules/unictype/property-grapheme-base-tests: New file.
56572         * modules/unictype/property-grapheme-extend-tests: New file.
56573         * modules/unictype/property-grapheme-link-tests: New file.
56574         * modules/unictype/property-hex-digit-tests: New file.
56575         * modules/unictype/property-hyphen-tests: New file.
56576         * modules/unictype/property-id-continue-tests: New file.
56577         * modules/unictype/property-id-start-tests: New file.
56578         * modules/unictype/property-ideographic-tests: New file.
56579         * modules/unictype/property-ids-binary-operator-tests: New file.
56580         * modules/unictype/property-ids-trinary-operator-tests: New file.
56581         * modules/unictype/property-ignorable-control-tests: New file.
56582         * modules/unictype/property-iso-control-tests: New file.
56583         * modules/unictype/property-join-control-tests: New file.
56584         * modules/unictype/property-left-of-pair-tests: New file.
56585         * modules/unictype/property-line-separator-tests: New file.
56586         * modules/unictype/property-logical-order-exception-tests: New file.
56587         * modules/unictype/property-lowercase-tests: New file.
56588         * modules/unictype/property-math-tests: New file.
56589         * modules/unictype/property-non-break-tests: New file.
56590         * modules/unictype/property-not-a-character-tests: New file.
56591         * modules/unictype/property-numeric-tests: New file.
56592         * modules/unictype/property-other-alphabetic-tests: New file.
56593         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56594         * modules/unictype/property-other-grapheme-extend-tests: New file.
56595         * modules/unictype/property-other-id-continue-tests: New file.
56596         * modules/unictype/property-other-id-start-tests: New file.
56597         * modules/unictype/property-other-lowercase-tests: New file.
56598         * modules/unictype/property-other-math-tests: New file.
56599         * modules/unictype/property-other-uppercase-tests: New file.
56600         * modules/unictype/property-paired-punctuation-tests: New file.
56601         * modules/unictype/property-paragraph-separator-tests: New file.
56602         * modules/unictype/property-pattern-syntax-tests: New file.
56603         * modules/unictype/property-pattern-white-space-tests: New file.
56604         * modules/unictype/property-private-use-tests: New file.
56605         * modules/unictype/property-punctuation-tests: New file.
56606         * modules/unictype/property-quotation-mark-tests: New file.
56607         * modules/unictype/property-radical-tests: New file.
56608         * modules/unictype/property-sentence-terminal-tests: New file.
56609         * modules/unictype/property-soft-dotted-tests: New file.
56610         * modules/unictype/property-space-tests: New file.
56611         * modules/unictype/property-terminal-punctuation-tests: New file.
56612         * modules/unictype/property-test-tests: New file.
56613         * modules/unictype/property-titlecase-tests: New file.
56614         * modules/unictype/property-unassigned-code-value-tests: New file.
56615         * modules/unictype/property-unified-ideograph-tests: New file.
56616         * modules/unictype/property-uppercase-tests: New file.
56617         * modules/unictype/property-variation-selector-tests: New file.
56618         * modules/unictype/property-white-space-tests: New file.
56619         * modules/unictype/property-xid-continue-tests: New file.
56620         * modules/unictype/property-xid-start-tests: New file.
56621         * modules/unictype/property-zero-width-tests: New file.
56622         * modules/unictype/scripts-tests: New file.
56623         * modules/unictype/syntax-c-ident-tests: New file.
56624         * modules/unictype/syntax-c-whitespace-tests: New file.
56625         * modules/unictype/syntax-java-ident-tests: New file.
56626         * modules/unictype/syntax-java-whitespace-tests: New file.
56627         * tests/unictype/test-bidi_byname.c: New file.
56628         * tests/unictype/test-bidi_name.c: New file.
56629         * tests/unictype/test-bidi_of.c: New file.
56630         * tests/unictype/test-bidi_test.c: New file.
56631         * tests/unictype/test-block_list.c: New file.
56632         * tests/unictype/test-block_of.c: New file.
56633         * tests/unictype/test-block_test.c: New file.
56634         * tests/unictype/test-categ_and.c: New file.
56635         * tests/unictype/test-categ_and_not.c: New file.
56636         * tests/unictype/test-categ_byname.c: New file.
56637         * tests/unictype/test-categ_name.c: New file.
56638         * tests/unictype/test-categ_none.c: New file.
56639         * tests/unictype/test-categ_of.c: New file.
56640         * tests/unictype/test-categ_or.c: New file.
56641         * tests/unictype/test-categ_test_withtable.c: New file.
56642         * tests/unictype/test-combining.c: New file.
56643         * tests/unictype/test-decdigit.c: New file.
56644         * tests/unictype/test-digit.c: New file.
56645         * tests/unictype/test-mirror.c: New file.
56646         * tests/unictype/test-numeric.c: New file.
56647         * tests/unictype/test-pr_byname.c: New file.
56648         * tests/unictype/test-pr_test.c: New file.
56649         * tests/unictype/test-predicate-part1.h: New file.
56650         * tests/unictype/test-predicate-part2.h: New file.
56651         * tests/unictype/test-scripts.c: New file.
56652         * tests/unictype/test-sy_c_ident.c: New file.
56653         * tests/unictype/test-sy_java_ident.c: New file.
56654
56655         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56656         for Unicode 5.0.0.
56657         * tests/unictype/test-categ_Cc.c: Likewise.
56658         * tests/unictype/test-categ_Cf.c: Likewise.
56659         * tests/unictype/test-categ_Cn.c: Likewise.
56660         * tests/unictype/test-categ_Co.c: Likewise.
56661         * tests/unictype/test-categ_Cs.c: Likewise.
56662         * tests/unictype/test-categ_L.c: Likewise.
56663         * tests/unictype/test-categ_Ll.c: Likewise.
56664         * tests/unictype/test-categ_Lm.c: Likewise.
56665         * tests/unictype/test-categ_Lo.c: Likewise.
56666         * tests/unictype/test-categ_Lt.c: Likewise.
56667         * tests/unictype/test-categ_Lu.c: Likewise.
56668         * tests/unictype/test-categ_M.c: Likewise.
56669         * tests/unictype/test-categ_Mc.c: Likewise.
56670         * tests/unictype/test-categ_Me.c: Likewise.
56671         * tests/unictype/test-categ_Mn.c: Likewise.
56672         * tests/unictype/test-categ_N.c: Likewise.
56673         * tests/unictype/test-categ_Nd.c: Likewise.
56674         * tests/unictype/test-categ_Nl.c: Likewise.
56675         * tests/unictype/test-categ_No.c: Likewise.
56676         * tests/unictype/test-categ_P.c: Likewise.
56677         * tests/unictype/test-categ_Pc.c: Likewise.
56678         * tests/unictype/test-categ_Pd.c: Likewise.
56679         * tests/unictype/test-categ_Pe.c: Likewise.
56680         * tests/unictype/test-categ_Pf.c: Likewise.
56681         * tests/unictype/test-categ_Pi.c: Likewise.
56682         * tests/unictype/test-categ_Po.c: Likewise.
56683         * tests/unictype/test-categ_Ps.c: Likewise.
56684         * tests/unictype/test-categ_S.c: Likewise.
56685         * tests/unictype/test-categ_Sc.c: Likewise.
56686         * tests/unictype/test-categ_Sk.c: Likewise.
56687         * tests/unictype/test-categ_Sm.c: Likewise.
56688         * tests/unictype/test-categ_So.c: Likewise.
56689         * tests/unictype/test-categ_Z.c: Likewise.
56690         * tests/unictype/test-categ_Zl.c: Likewise.
56691         * tests/unictype/test-categ_Zp.c: Likewise.
56692         * tests/unictype/test-categ_Zs.c: Likewise.
56693         * tests/unictype/test-ctype_alnum.c: Likewise.
56694         * tests/unictype/test-ctype_alpha.c: Likewise.
56695         * tests/unictype/test-ctype_blank.c: Likewise.
56696         * tests/unictype/test-ctype_cntrl.c: Likewise.
56697         * tests/unictype/test-ctype_digit.c: Likewise.
56698         * tests/unictype/test-ctype_graph.c: Likewise.
56699         * tests/unictype/test-ctype_lower.c: Likewise.
56700         * tests/unictype/test-ctype_print.c: Likewise.
56701         * tests/unictype/test-ctype_punct.c: Likewise.
56702         * tests/unictype/test-ctype_space.c: Likewise.
56703         * tests/unictype/test-ctype_upper.c: Likewise.
56704         * tests/unictype/test-ctype_xdigit.c: Likewise.
56705         * tests/unictype/test-decdigit.h: Likewise.
56706         * tests/unictype/test-digit.h: Likewise.
56707         * tests/unictype/test-numeric.h: Likewise.
56708         * tests/unictype/test-pr_alphabetic.c: Likewise.
56709         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56710         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56711         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56712         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56713         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56714         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56715         * tests/unictype/test-pr_bidi_control.c: Likewise.
56716         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56717         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56718         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56719         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56720         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56721         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56722         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56723         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56724         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56725         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56726         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56727         * tests/unictype/test-pr_combining.c: Likewise.
56728         * tests/unictype/test-pr_composite.c: Likewise.
56729         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56730         * tests/unictype/test-pr_dash.c: Likewise.
56731         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56732         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56733         * tests/unictype/test-pr_deprecated.c: Likewise.
56734         * tests/unictype/test-pr_diacritic.c: Likewise.
56735         * tests/unictype/test-pr_extender.c: Likewise.
56736         * tests/unictype/test-pr_format_control.c: Likewise.
56737         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56738         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56739         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56740         * tests/unictype/test-pr_hex_digit.c: Likewise.
56741         * tests/unictype/test-pr_hyphen.c: Likewise.
56742         * tests/unictype/test-pr_id_continue.c: Likewise.
56743         * tests/unictype/test-pr_id_start.c: Likewise.
56744         * tests/unictype/test-pr_ideographic.c: Likewise.
56745         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56746         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56747         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56748         * tests/unictype/test-pr_iso_control.c: Likewise.
56749         * tests/unictype/test-pr_join_control.c: Likewise.
56750         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56751         * tests/unictype/test-pr_line_separator.c: Likewise.
56752         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56753         * tests/unictype/test-pr_lowercase.c: Likewise.
56754         * tests/unictype/test-pr_math.c: Likewise.
56755         * tests/unictype/test-pr_non_break.c: Likewise.
56756         * tests/unictype/test-pr_not_a_character.c: Likewise.
56757         * tests/unictype/test-pr_numeric.c: Likewise.
56758         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56759         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56760         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56761         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56762         * tests/unictype/test-pr_other_id_start.c: Likewise.
56763         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56764         * tests/unictype/test-pr_other_math.c: Likewise.
56765         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56766         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56767         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56768         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56769         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56770         * tests/unictype/test-pr_private_use.c: Likewise.
56771         * tests/unictype/test-pr_punctuation.c: Likewise.
56772         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56773         * tests/unictype/test-pr_radical.c: Likewise.
56774         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56775         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56776         * tests/unictype/test-pr_space.c: Likewise.
56777         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56778         * tests/unictype/test-pr_titlecase.c: Likewise.
56779         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56780         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56781         * tests/unictype/test-pr_uppercase.c: Likewise.
56782         * tests/unictype/test-pr_variation_selector.c: Likewise.
56783         * tests/unictype/test-pr_white_space.c: Likewise.
56784         * tests/unictype/test-pr_xid_continue.c: Likewise.
56785         * tests/unictype/test-pr_xid_start.c: Likewise.
56786         * tests/unictype/test-pr_zero_width.c: Likewise.
56787         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56788         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56789
56790 2007-11-12  Bruno Haible  <bruno@clisp.org>
56791
56792         Unicode character classification functions.
56793         * lib/unictype.h: New file.
56794         * modules/unictype/base: New file.
56795         * modules/unictype/category-L: New file.
56796         * modules/unictype/category-Lu: New file.
56797         * modules/unictype/category-Ll: New file.
56798         * modules/unictype/category-Lt: New file.
56799         * modules/unictype/category-Lm: New file.
56800         * modules/unictype/category-Lo: New file.
56801         * modules/unictype/category-M: New file.
56802         * modules/unictype/category-Mn: New file.
56803         * modules/unictype/category-Mc: New file.
56804         * modules/unictype/category-Me: New file.
56805         * modules/unictype/category-N: New file.
56806         * modules/unictype/category-Nd: New file.
56807         * modules/unictype/category-Nl: New file.
56808         * modules/unictype/category-No: New file.
56809         * modules/unictype/category-P: New file.
56810         * modules/unictype/category-Pc: New file.
56811         * modules/unictype/category-Pd: New file.
56812         * modules/unictype/category-Ps: New file.
56813         * modules/unictype/category-Pe: New file.
56814         * modules/unictype/category-Pi: New file.
56815         * modules/unictype/category-Pf: New file.
56816         * modules/unictype/category-Po: New file.
56817         * modules/unictype/category-S: New file.
56818         * modules/unictype/category-Sm: New file.
56819         * modules/unictype/category-Sc: New file.
56820         * modules/unictype/category-Sk: New file.
56821         * modules/unictype/category-So: New file.
56822         * modules/unictype/category-Z: New file.
56823         * modules/unictype/category-Zs: New file.
56824         * modules/unictype/category-Zl: New file.
56825         * modules/unictype/category-Zp: New file.
56826         * modules/unictype/category-C: New file.
56827         * modules/unictype/category-Cc: New file.
56828         * modules/unictype/category-Cf: New file.
56829         * modules/unictype/category-Cs: New file.
56830         * modules/unictype/category-Co: New file.
56831         * modules/unictype/category-Cn: New file.
56832         * modules/unictype/category-or: New file.
56833         * modules/unictype/category-of: New file.
56834         * modules/unictype/category-test: New file.
56835         * modules/unictype/category-test-withtable: New file.
56836         * modules/unictype/category-byname: New file.
56837         * modules/unictype/category-none: New file.
56838         * modules/unictype/category-and: New file.
56839         * modules/unictype/category-and-not: New file.
56840         * modules/unictype/category-name: New file.
56841         * modules/unictype/combining-class: New file.
56842         * modules/unictype/category-all: New file.
56843         * modules/unictype/bidicategory-all: New file.
56844         * modules/unictype/bidicategory-byname: New file.
56845         * modules/unictype/bidicategory-name: New file.
56846         * modules/unictype/bidicategory-of: New file.
56847         * modules/unictype/bidicategory-test: New file.
56848         * modules/unictype/decimal-digit: New file.
56849         * modules/unictype/digit: New file.
56850         * modules/unictype/numeric: New file.
56851         * modules/unictype/mirror: New file.
56852         * modules/unictype/property-white-space: New file.
56853         * modules/unictype/property-alphabetic: New file.
56854         * modules/unictype/property-other-alphabetic: New file.
56855         * modules/unictype/property-not-a-character: New file.
56856         * modules/unictype/property-default-ignorable-code-point: New file.
56857         * modules/unictype/property-other-default-ignorable-code-point: New
56858         file.
56859         * modules/unictype/property-deprecated: New file.
56860         * modules/unictype/property-logical-order-exception: New file.
56861         * modules/unictype/property-variation-selector: New file.
56862         * modules/unictype/property-private-use: New file.
56863         * modules/unictype/property-unassigned-code-value: New file.
56864         * modules/unictype/property-uppercase: New file.
56865         * modules/unictype/property-other-uppercase: New file.
56866         * modules/unictype/property-lowercase: New file.
56867         * modules/unictype/property-other-lowercase: New file.
56868         * modules/unictype/property-titlecase: New file.
56869         * modules/unictype/property-soft-dotted: New file.
56870         * modules/unictype/property-id-start: New file.
56871         * modules/unictype/property-other-id-start: New file.
56872         * modules/unictype/property-id-continue: New file.
56873         * modules/unictype/property-other-id-continue: New file.
56874         * modules/unictype/property-xid-start: New file.
56875         * modules/unictype/property-xid-continue: New file.
56876         * modules/unictype/property-pattern-white-space: New file.
56877         * modules/unictype/property-pattern-syntax: New file.
56878         * modules/unictype/property-join-control: New file.
56879         * modules/unictype/property-grapheme-base: New file.
56880         * modules/unictype/property-grapheme-extend: New file.
56881         * modules/unictype/property-other-grapheme-extend: New file.
56882         * modules/unictype/property-grapheme-link: New file.
56883         * modules/unictype/property-bidi-control: New file.
56884         * modules/unictype/property-bidi-left-to-right: New file.
56885         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56886         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56887         * modules/unictype/property-bidi-european-digit: New file.
56888         * modules/unictype/property-bidi-eur-num-separator: New file.
56889         * modules/unictype/property-bidi-eur-num-terminator: New file.
56890         * modules/unictype/property-bidi-arabic-digit: New file.
56891         * modules/unictype/property-bidi-common-separator: New file.
56892         * modules/unictype/property-bidi-block-separator: New file.
56893         * modules/unictype/property-bidi-segment-separator: New file.
56894         * modules/unictype/property-bidi-whitespace: New file.
56895         * modules/unictype/property-bidi-non-spacing-mark: New file.
56896         * modules/unictype/property-bidi-boundary-neutral: New file.
56897         * modules/unictype/property-bidi-pdf: New file.
56898         * modules/unictype/property-bidi-embedding-or-override: New file.
56899         * modules/unictype/property-bidi-other-neutral: New file.
56900         * modules/unictype/property-hex-digit: New file.
56901         * modules/unictype/property-ascii-hex-digit: New file.
56902         * modules/unictype/property-ideographic: New file.
56903         * modules/unictype/property-unified-ideograph: New file.
56904         * modules/unictype/property-radical: New file.
56905         * modules/unictype/property-ids-binary-operator: New file.
56906         * modules/unictype/property-ids-trinary-operator: New file.
56907         * modules/unictype/property-zero-width: New file.
56908         * modules/unictype/property-space: New file.
56909         * modules/unictype/property-non-break: New file.
56910         * modules/unictype/property-iso-control: New file.
56911         * modules/unictype/property-format-control: New file.
56912         * modules/unictype/property-dash: New file.
56913         * modules/unictype/property-hyphen: New file.
56914         * modules/unictype/property-punctuation: New file.
56915         * modules/unictype/property-line-separator: New file.
56916         * modules/unictype/property-paragraph-separator: New file.
56917         * modules/unictype/property-quotation-mark: New file.
56918         * modules/unictype/property-sentence-terminal: New file.
56919         * modules/unictype/property-terminal-punctuation: New file.
56920         * modules/unictype/property-currency-symbol: New file.
56921         * modules/unictype/property-math: New file.
56922         * modules/unictype/property-other-math: New file.
56923         * modules/unictype/property-paired-punctuation: New file.
56924         * modules/unictype/property-left-of-pair: New file.
56925         * modules/unictype/property-combining: New file.
56926         * modules/unictype/property-composite: New file.
56927         * modules/unictype/property-decimal-digit: New file.
56928         * modules/unictype/property-numeric: New file.
56929         * modules/unictype/property-diacritic: New file.
56930         * modules/unictype/property-extender: New file.
56931         * modules/unictype/property-ignorable-control: New file.
56932         * modules/unictype/property-test: New file.
56933         * modules/unictype/property-byname: New file.
56934         * modules/unictype/property-all: New file.
56935         * modules/unictype/scripts: New file.
56936         * modules/unictype/scripts-all: New file.
56937         * modules/unictype/block-of: New file.
56938         * modules/unictype/block-test: New file.
56939         * modules/unictype/block-list: New file.
56940         * modules/unictype/block-all: New file.
56941         * modules/unictype/syntax-c-whitespace: New file.
56942         * modules/unictype/syntax-java-whitespace: New file.
56943         * modules/unictype/syntax-c-ident: New file.
56944         * modules/unictype/syntax-java-ident: New file.
56945         * modules/unictype/ctype-alnum: New file.
56946         * modules/unictype/ctype-alpha: New file.
56947         * modules/unictype/ctype-cntrl: New file.
56948         * modules/unictype/ctype-digit: New file.
56949         * modules/unictype/ctype-graph: New file.
56950         * modules/unictype/ctype-lower: New file.
56951         * modules/unictype/ctype-print: New file.
56952         * modules/unictype/ctype-punct: New file.
56953         * modules/unictype/ctype-space: New file.
56954         * modules/unictype/ctype-upper: New file.
56955         * modules/unictype/ctype-xdigit: New file.
56956         * modules/unictype/ctype-blank: New file.
56957         * lib/unictype/bidi_byname.c: New file.
56958         * lib/unictype/bidi_name.c: New file.
56959         * lib/unictype/bidi_of.c: New file.
56960         * lib/unictype/bidi_test.c: New file.
56961         * lib/unictype/bitmap.h: New file.
56962         * lib/unictype/block_test.c: New file.
56963         * lib/unictype/blocks.c: New file.
56964         * lib/unictype/categ_C.c: New file.
56965         * lib/unictype/categ_Cc.c: New file.
56966         * lib/unictype/categ_Cf.c: New file.
56967         * lib/unictype/categ_Cn.c: New file.
56968         * lib/unictype/categ_Co.c: New file.
56969         * lib/unictype/categ_Cs.c: New file.
56970         * lib/unictype/categ_L.c: New file.
56971         * lib/unictype/categ_Ll.c: New file.
56972         * lib/unictype/categ_Lm.c: New file.
56973         * lib/unictype/categ_Lo.c: New file.
56974         * lib/unictype/categ_Lt.c: New file.
56975         * lib/unictype/categ_Lu.c: New file.
56976         * lib/unictype/categ_M.c: New file.
56977         * lib/unictype/categ_Mc.c: New file.
56978         * lib/unictype/categ_Me.c: New file.
56979         * lib/unictype/categ_Mn.c: New file.
56980         * lib/unictype/categ_N.c: New file.
56981         * lib/unictype/categ_Nd.c: New file.
56982         * lib/unictype/categ_Nl.c: New file.
56983         * lib/unictype/categ_No.c: New file.
56984         * lib/unictype/categ_P.c: New file.
56985         * lib/unictype/categ_Pc.c: New file.
56986         * lib/unictype/categ_Pd.c: New file.
56987         * lib/unictype/categ_Pe.c: New file.
56988         * lib/unictype/categ_Pf.c: New file.
56989         * lib/unictype/categ_Pi.c: New file.
56990         * lib/unictype/categ_Po.c: New file.
56991         * lib/unictype/categ_Ps.c: New file.
56992         * lib/unictype/categ_S.c: New file.
56993         * lib/unictype/categ_Sc.c: New file.
56994         * lib/unictype/categ_Sk.c: New file.
56995         * lib/unictype/categ_Sm.c: New file.
56996         * lib/unictype/categ_So.c: New file.
56997         * lib/unictype/categ_Z.c: New file.
56998         * lib/unictype/categ_Zl.c: New file.
56999         * lib/unictype/categ_Zp.c: New file.
57000         * lib/unictype/categ_Zs.c: New file.
57001         * lib/unictype/categ_and.c: New file.
57002         * lib/unictype/categ_and_not.c: New file.
57003         * lib/unictype/categ_byname.c: New file.
57004         * lib/unictype/categ_name.c: New file.
57005         * lib/unictype/categ_none.c: New file.
57006         * lib/unictype/categ_of.c: New file.
57007         * lib/unictype/categ_or.c: New file.
57008         * lib/unictype/categ_test.c: New file.
57009         * lib/unictype/combining.c: New file.
57010         * lib/unictype/ctype_alnum.c: New file.
57011         * lib/unictype/ctype_alpha.c: New file.
57012         * lib/unictype/ctype_blank.c: New file.
57013         * lib/unictype/ctype_cntrl.c: New file.
57014         * lib/unictype/ctype_digit.c: New file.
57015         * lib/unictype/ctype_graph.c: New file.
57016         * lib/unictype/ctype_lower.c: New file.
57017         * lib/unictype/ctype_print.c: New file.
57018         * lib/unictype/ctype_punct.c: New file.
57019         * lib/unictype/ctype_space.c: New file.
57020         * lib/unictype/ctype_upper.c: New file.
57021         * lib/unictype/ctype_xdigit.c: New file.
57022         * lib/unictype/decdigit.c: New file.
57023         * lib/unictype/digit.c: New file.
57024         * lib/unictype/identsyntaxmap.h: New file.
57025         * lib/unictype/mirror.c: New file.
57026         * lib/unictype/numeric.c: New file.
57027         * lib/unictype/pr_alphabetic.c: New file.
57028         * lib/unictype/pr_ascii_hex_digit.c: New file.
57029         * lib/unictype/pr_bidi_arabic_digit.c: New file.
57030         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
57031         * lib/unictype/pr_bidi_block_separator.c: New file.
57032         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
57033         * lib/unictype/pr_bidi_common_separator.c: New file.
57034         * lib/unictype/pr_bidi_control.c: New file.
57035         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
57036         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
57037         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
57038         * lib/unictype/pr_bidi_european_digit.c: New file.
57039         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
57040         * lib/unictype/pr_bidi_left_to_right.c: New file.
57041         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
57042         * lib/unictype/pr_bidi_other_neutral.c: New file.
57043         * lib/unictype/pr_bidi_pdf.c: New file.
57044         * lib/unictype/pr_bidi_segment_separator.c: New file.
57045         * lib/unictype/pr_bidi_whitespace.c: New file.
57046         * lib/unictype/pr_byname.c: New file.
57047         * lib/unictype/pr_byname.gperf: New file.
57048         * lib/unictype/pr_combining.c: New file.
57049         * lib/unictype/pr_composite.c: New file.
57050         * lib/unictype/pr_currency_symbol.c: New file.
57051         * lib/unictype/pr_dash.c: New file.
57052         * lib/unictype/pr_decimal_digit.c: New file.
57053         * lib/unictype/pr_default_ignorable_code_point.c: New file.
57054         * lib/unictype/pr_deprecated.c: New file.
57055         * lib/unictype/pr_diacritic.c: New file.
57056         * lib/unictype/pr_extender.c: New file.
57057         * lib/unictype/pr_format_control.c: New file.
57058         * lib/unictype/pr_grapheme_base.c: New file.
57059         * lib/unictype/pr_grapheme_extend.c: New file.
57060         * lib/unictype/pr_grapheme_link.c: New file.
57061         * lib/unictype/pr_hex_digit.c: New file.
57062         * lib/unictype/pr_hyphen.c: New file.
57063         * lib/unictype/pr_id_continue.c: New file.
57064         * lib/unictype/pr_id_start.c: New file.
57065         * lib/unictype/pr_ideographic.c: New file.
57066         * lib/unictype/pr_ids_binary_operator.c: New file.
57067         * lib/unictype/pr_ids_trinary_operator.c: New file.
57068         * lib/unictype/pr_ignorable_control.c: New file.
57069         * lib/unictype/pr_iso_control.c: New file.
57070         * lib/unictype/pr_join_control.c: New file.
57071         * lib/unictype/pr_left_of_pair.c: New file.
57072         * lib/unictype/pr_line_separator.c: New file.
57073         * lib/unictype/pr_logical_order_exception.c: New file.
57074         * lib/unictype/pr_lowercase.c: New file.
57075         * lib/unictype/pr_math.c: New file.
57076         * lib/unictype/pr_non_break.c: New file.
57077         * lib/unictype/pr_not_a_character.c: New file.
57078         * lib/unictype/pr_numeric.c: New file.
57079         * lib/unictype/pr_other_alphabetic.c: New file.
57080         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
57081         * lib/unictype/pr_other_grapheme_extend.c: New file.
57082         * lib/unictype/pr_other_id_continue.c: New file.
57083         * lib/unictype/pr_other_id_start.c: New file.
57084         * lib/unictype/pr_other_lowercase.c: New file.
57085         * lib/unictype/pr_other_math.c: New file.
57086         * lib/unictype/pr_other_uppercase.c: New file.
57087         * lib/unictype/pr_paired_punctuation.c: New file.
57088         * lib/unictype/pr_paragraph_separator.c: New file.
57089         * lib/unictype/pr_pattern_syntax.c: New file.
57090         * lib/unictype/pr_pattern_white_space.c: New file.
57091         * lib/unictype/pr_private_use.c: New file.
57092         * lib/unictype/pr_punctuation.c: New file.
57093         * lib/unictype/pr_quotation_mark.c: New file.
57094         * lib/unictype/pr_radical.c: New file.
57095         * lib/unictype/pr_sentence_terminal.c: New file.
57096         * lib/unictype/pr_soft_dotted.c: New file.
57097         * lib/unictype/pr_space.c: New file.
57098         * lib/unictype/pr_terminal_punctuation.c: New file.
57099         * lib/unictype/pr_test.c: New file.
57100         * lib/unictype/pr_titlecase.c: New file.
57101         * lib/unictype/pr_unassigned_code_value.c: New file.
57102         * lib/unictype/pr_unified_ideograph.c: New file.
57103         * lib/unictype/pr_uppercase.c: New file.
57104         * lib/unictype/pr_variation_selector.c: New file.
57105         * lib/unictype/pr_white_space.c: New file.
57106         * lib/unictype/pr_xid_continue.c: New file.
57107         * lib/unictype/pr_xid_start.c: New file.
57108         * lib/unictype/pr_zero_width.c: New file.
57109         * lib/unictype/scripts.c: New file.
57110         * lib/unictype/sy_c_ident.c: New file.
57111         * lib/unictype/sy_c_whitespace.c: New file.
57112         * lib/unictype/sy_java_ident.c: New file.
57113         * lib/unictype/sy_java_whitespace.c: New file.
57114
57115         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
57116         Unicode 5.0.0.
57117         * lib/unictype/blocks.h: Likewise.
57118         * lib/unictype/categ_C.h: Likewise.
57119         * lib/unictype/categ_Cc.h: Likewise.
57120         * lib/unictype/categ_Cf.h: Likewise.
57121         * lib/unictype/categ_Cn.h: Likewise.
57122         * lib/unictype/categ_Co.h: Likewise.
57123         * lib/unictype/categ_Cs.h: Likewise.
57124         * lib/unictype/categ_L.h: Likewise.
57125         * lib/unictype/categ_Ll.h: Likewise.
57126         * lib/unictype/categ_Lm.h: Likewise.
57127         * lib/unictype/categ_Lo.h: Likewise.
57128         * lib/unictype/categ_Lt.h: Likewise.
57129         * lib/unictype/categ_Lu.h: Likewise.
57130         * lib/unictype/categ_M.h: Likewise.
57131         * lib/unictype/categ_Mc.h: Likewise.
57132         * lib/unictype/categ_Me.h: Likewise.
57133         * lib/unictype/categ_Mn.h: Likewise.
57134         * lib/unictype/categ_N.h: Likewise.
57135         * lib/unictype/categ_Nd.h: Likewise.
57136         * lib/unictype/categ_Nl.h: Likewise.
57137         * lib/unictype/categ_No.h: Likewise.
57138         * lib/unictype/categ_P.h: Likewise.
57139         * lib/unictype/categ_Pc.h: Likewise.
57140         * lib/unictype/categ_Pd.h: Likewise.
57141         * lib/unictype/categ_Pe.h: Likewise.
57142         * lib/unictype/categ_Pf.h: Likewise.
57143         * lib/unictype/categ_Pi.h: Likewise.
57144         * lib/unictype/categ_Po.h: Likewise.
57145         * lib/unictype/categ_Ps.h: Likewise.
57146         * lib/unictype/categ_S.h: Likewise.
57147         * lib/unictype/categ_Sc.h: Likewise.
57148         * lib/unictype/categ_Sk.h: Likewise.
57149         * lib/unictype/categ_Sm.h: Likewise.
57150         * lib/unictype/categ_So.h: Likewise.
57151         * lib/unictype/categ_Z.h: Likewise.
57152         * lib/unictype/categ_Zl.h: Likewise.
57153         * lib/unictype/categ_Zp.h: Likewise.
57154         * lib/unictype/categ_Zs.h: Likewise.
57155         * lib/unictype/categ_of.h: Likewise.
57156         * lib/unictype/combining.h: Likewise.
57157         * lib/unictype/ctype_alnum.h: Likewise.
57158         * lib/unictype/ctype_alpha.h: Likewise.
57159         * lib/unictype/ctype_blank.h: Likewise.
57160         * lib/unictype/ctype_cntrl.h: Likewise.
57161         * lib/unictype/ctype_digit.h: Likewise.
57162         * lib/unictype/ctype_graph.h: Likewise.
57163         * lib/unictype/ctype_lower.h: Likewise.
57164         * lib/unictype/ctype_print.h: Likewise.
57165         * lib/unictype/ctype_punct.h: Likewise.
57166         * lib/unictype/ctype_space.h: Likewise.
57167         * lib/unictype/ctype_upper.h: Likewise.
57168         * lib/unictype/ctype_xdigit.h: Likewise.
57169         * lib/unictype/decdigit.h: Likewise.
57170         * lib/unictype/digit.h: Likewise.
57171         * lib/unictype/mirror.h: Likewise.
57172         * lib/unictype/numeric.h: Likewise.
57173         * lib/unictype/pr_alphabetic.h: Likewise.
57174         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57175         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57176         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57177         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57178         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57179         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57180         * lib/unictype/pr_bidi_control.h: Likewise.
57181         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57182         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57183         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57184         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57185         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57186         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57187         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57188         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57189         * lib/unictype/pr_bidi_pdf.h: Likewise.
57190         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57191         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57192         * lib/unictype/pr_combining.h: Likewise.
57193         * lib/unictype/pr_composite.h: Likewise.
57194         * lib/unictype/pr_currency_symbol.h: Likewise.
57195         * lib/unictype/pr_dash.h: Likewise.
57196         * lib/unictype/pr_decimal_digit.h: Likewise.
57197         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57198         * lib/unictype/pr_deprecated.h: Likewise.
57199         * lib/unictype/pr_diacritic.h: Likewise.
57200         * lib/unictype/pr_extender.h: Likewise.
57201         * lib/unictype/pr_format_control.h: Likewise.
57202         * lib/unictype/pr_grapheme_base.h: Likewise.
57203         * lib/unictype/pr_grapheme_extend.h: Likewise.
57204         * lib/unictype/pr_grapheme_link.h: Likewise.
57205         * lib/unictype/pr_hex_digit.h: Likewise.
57206         * lib/unictype/pr_hyphen.h: Likewise.
57207         * lib/unictype/pr_id_continue.h: Likewise.
57208         * lib/unictype/pr_id_start.h: Likewise.
57209         * lib/unictype/pr_ideographic.h: Likewise.
57210         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57211         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57212         * lib/unictype/pr_ignorable_control.h: Likewise.
57213         * lib/unictype/pr_iso_control.h: Likewise.
57214         * lib/unictype/pr_join_control.h: Likewise.
57215         * lib/unictype/pr_left_of_pair.h: Likewise.
57216         * lib/unictype/pr_line_separator.h: Likewise.
57217         * lib/unictype/pr_logical_order_exception.h: Likewise.
57218         * lib/unictype/pr_lowercase.h: Likewise.
57219         * lib/unictype/pr_math.h: Likewise.
57220         * lib/unictype/pr_non_break.h: Likewise.
57221         * lib/unictype/pr_not_a_character.h: Likewise.
57222         * lib/unictype/pr_numeric.h: Likewise.
57223         * lib/unictype/pr_other_alphabetic.h: Likewise.
57224         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57225         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57226         * lib/unictype/pr_other_id_continue.h: Likewise.
57227         * lib/unictype/pr_other_id_start.h: Likewise.
57228         * lib/unictype/pr_other_lowercase.h: Likewise.
57229         * lib/unictype/pr_other_math.h: Likewise.
57230         * lib/unictype/pr_other_uppercase.h: Likewise.
57231         * lib/unictype/pr_paired_punctuation.h: Likewise.
57232         * lib/unictype/pr_paragraph_separator.h: Likewise.
57233         * lib/unictype/pr_pattern_syntax.h: Likewise.
57234         * lib/unictype/pr_pattern_white_space.h: Likewise.
57235         * lib/unictype/pr_private_use.h: Likewise.
57236         * lib/unictype/pr_punctuation.h: Likewise.
57237         * lib/unictype/pr_quotation_mark.h: Likewise.
57238         * lib/unictype/pr_radical.h: Likewise.
57239         * lib/unictype/pr_sentence_terminal.h: Likewise.
57240         * lib/unictype/pr_soft_dotted.h: Likewise.
57241         * lib/unictype/pr_space.h: Likewise.
57242         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57243         * lib/unictype/pr_titlecase.h: Likewise.
57244         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57245         * lib/unictype/pr_unified_ideograph.h: Likewise.
57246         * lib/unictype/pr_uppercase.h: Likewise.
57247         * lib/unictype/pr_variation_selector.h: Likewise.
57248         * lib/unictype/pr_white_space.h: Likewise.
57249         * lib/unictype/pr_xid_continue.h: Likewise.
57250         * lib/unictype/pr_xid_start.h: Likewise.
57251         * lib/unictype/pr_zero_width.h: Likewise.
57252         * lib/unictype/scripts.h: Likewise.
57253         * lib/unictype/scripts_byname.gperf: Likewise.
57254         * lib/unictype/sy_c_ident.h: Likewise.
57255         * lib/unictype/sy_c_whitespace.h: Likewise.
57256         * lib/unictype/sy_java_ident.h: Likewise.
57257         * lib/unictype/sy_java_whitespace.h: Likewise.
57258
57259         * lib/unictype/Makefile: New file.
57260         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57261         glibc.
57262         * lib/unictype/3level.h: New file, copied from glibc.
57263         * lib/unictype/3levelbit.h: New file.
57264
57265 2007-11-11  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/gperf: New file.
57268         * modules/iconv_open (Depends-on): Add it.
57269         (Makefile.am): Remove the GPERF definition.
57270
57271 2007-11-11  Bruno Haible  <bruno@clisp.org>
57272
57273         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57274         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57275
57276 2007-11-11  Bruno Haible  <bruno@clisp.org>
57277
57278         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57279         (usage): Remove function.
57280
57281 2007-11-11  Bruno Haible  <bruno@clisp.org>
57282
57283         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57284         gl_FUNC_CEILF_LIBS.
57285         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57286         gl_FUNC_CEIL_LIBS.
57287         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57288         gl_FUNC_CEILL_LIBS.
57289         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57290         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57291         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57292
57293 2007-11-11  Bruno Haible  <bruno@clisp.org>
57294
57295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57296         roundf were declared but do not exist on functions.
57297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57298         roundl were declared but do not exist on functions.
57299         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57300         HAVE_FLOORL_AND_CEILL, respectively.
57301         Needed for Sun C on Solaris 10.
57302
57303 2007-11-11  Bruno Haible  <bruno@clisp.org>
57304
57305         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57306         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57307         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57308         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57309         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57310         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57311         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57312         HAVE_DECL_ROUNDF.
57313         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57314         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57316         of HAVE_DECL_ROUND*.
57317         * modules/math (Makefile.am): Update.
57318
57319 2007-11-10  Bruno Haible  <bruno@clisp.org>
57320
57321         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57322         ptrdiff_t as m4/intl.m4.
57323
57324 2007-11-10  Jim Meyering  <meyering@redhat.com>
57325
57326         Avoid link failure for the argmatch test.
57327         * tests/test-argmatch.c (usage): Define function to avoid a link
57328         failure: argmatch_die requires a usage function.
57329
57330 2007-11-09  Bruno Haible  <bruno@clisp.org>
57331
57332         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57333         * doc/functions/vsnprintf.texi: Likewise.
57334         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57335         with a size argument < 2.
57336
57337 2007-11-09  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57340         buffer. Fixes an inefficiency introduced on 2007-11-03.
57341
57342 2007-11-09  Bruno Haible  <bruno@clisp.org>
57343
57344         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57345         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57346
57347 2007-11-08  Jim Meyering  <meyering@redhat.com>
57348
57349         Change cache variable name prefix "jm_" to "gl_" everywhere.
57350         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57351         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57352         * m4/uptime.m4: s/gl_/jm_/
57353
57354 2007-11-07  Bruno Haible  <bruno@clisp.org>
57355
57356         Update to GNU gettext 0.17.
57357         * m4/intl.m4: Update to GNU gettext 0.17.
57358         * m4/po.m4: Likewise.
57359         * modules/gettext (Files): Remove m4/ulonglong.m4.
57360         (configure.ac): Require gettext infrastructure from version 0.17.
57361
57362 2007-11-06  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57365         symbolic values are not defined in a public header.
57366         * lib/freadable.c (freadable) [QNX]: Likewise.
57367         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57368         * lib/freading.c (freading) [QNX]: Likewise.
57369         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57370         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57371         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57372         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57373         Reported by Alain Magloire.
57374
57375         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57376
57377 2007-11-05  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57380         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57381         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57382         Reported by Eric Blake.
57383
57384 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57385             Bruno Haible  <bruno@clisp.org>
57386
57387         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57388         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57389         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57390         (malloc): Undefine also before including <stdlib.h>.
57391         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57392         Needed on OSF/1 4.0.
57393
57394 2007-11-05  Jim Meyering  <meyering@redhat.com>
57395
57396         git-version-gen: sync from coreutils.
57397         * build-aux/git-version-gen: Add comments.
57398         Change the first '-' to '.' in the snapshot version string,
57399         e.g., 6.9-377-08144 -> 6.9.377-08144
57400         Remove first parameter.
57401         Don't declare a version "-dirty" merely because a time
57402         stamp has changed.
57403
57404 2007-11-04  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/lock.h: Protect all macro definitions containing an 'if'
57407         statement through a "do { ... } while (0)".
57408         * lib/tls.h: Likewise.
57409
57410 2007-11-04  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57413
57414 2007-11-04  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57417         * modules/fprintf-posix (Depends-on): Add nocrash.
57418         * modules/snprintf-posix (Depends-on): Likewise.
57419         * modules/sprintf-posix (Depends-on): Likewise.
57420         * modules/vasnprintf-posix (Depends-on): Likewise.
57421         * modules/vasprintf-posix (Depends-on): Likewise.
57422         * modules/vfprintf-posix (Depends-on): Likewise.
57423         * modules/vsnprintf-posix (Depends-on): Likewise.
57424         * modules/vsprintf-posix (Depends-on): Likewise.
57425         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57426         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57427         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57428         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57429         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57430         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57431         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57432
57433 2007-11-04  Bruno Haible  <bruno@clisp.org>
57434
57435         * modules/nocrash: New file.
57436         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57437         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57438
57439 2007-11-04  Bruno Haible  <bruno@clisp.org>
57440
57441         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57442         precision handling.
57443         * tests/test-vasprintf-posix.c (test_function): Likewise.
57444         * tests/test-snprintf-posix.h (test_function): Likewise.
57445         * tests/test-sprintf-posix.h (test_function): Likewise.
57446
57447         Fix *printf behaviour for large precisions on mingw and BeOS.
57448         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57449         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57451         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57453         gl_PRINTF_PRECISION and test its result. Invoke
57454         gl_PREREQ_VASNPRINTF_PRECISION.
57455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57462         * doc/functions/fprintf.texi: Update.
57463         * doc/functions/printf.texi: Update.
57464         * doc/functions/snprintf.texi: Update.
57465         * doc/functions/sprintf.texi: Update.
57466         * doc/functions/vfprintf.texi: Update.
57467         * doc/functions/vprintf.texi: Update.
57468         * doc/functions/vsnprintf.texi: Update.
57469         * doc/functions/vsprintf.texi: Update.
57470
57471 2007-11-04  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57474
57475 2007-11-04  Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57478         Reported by Sylvain Beucler <beuc@gnu.org>.
57479
57480 2007-11-03  Bruno Haible  <bruno@clisp.org>
57481
57482         * tests/test-fprintf-posix2.sh: New file.
57483         * tests/test-fprintf-posix2.c: New file.
57484         * modules/fprintf-posix-tests (Files): Add them.
57485         (TESTS): Add test-fprintf-posix2.sh.
57486         (configure.ac): Check for getrlimit and setrlimit.
57487         (check_PROGRAMS): Add test-fprintf-posix2.
57488
57489         * tests/test-printf-posix2.sh: New file.
57490         * tests/test-printf-posix2.c: New file.
57491         * modules/printf-posix-tests (Files): Add them.
57492         (TESTS): Add test-printf-posix2.sh.
57493         (configure.ac): Check for getrlimit and setrlimit.
57494         (check_PROGRAMS): Add test-printf-posix2.
57495
57496         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57497         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57498         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57499         (decode_double): New function, copied from decode_long_double.
57500         (scale10_round_decimal_decoded): New function, extracted from
57501         scale10_round_decimal_long_double.
57502         (scale10_round_decimal_long_double): Use it.
57503         (scale10_round_decimal_double): New function.
57504         (floorlog10): New function.
57505         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57507         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57509         gl_PRINTF_ENOMEM and test its result. Invoke
57510         gl_PREREQ_VASNPRINTF_ENOMEM.
57511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57518         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57519         * modules/snprintf-posix (Depends-on): Likewise.
57520         * modules/sprintf-posix (Depends-on): Likewise.
57521         * modules/vasnprintf-posix (Depends-on): Likewise.
57522         * modules/vasprintf-posix (Depends-on): Likewise.
57523         * modules/vfprintf-posix (Depends-on): Likewise.
57524         * modules/vsnprintf-posix (Depends-on): Likewise.
57525         * modules/vsprintf-posix (Depends-on): Likewise.
57526         * doc/functions/fprintf.texi: Update.
57527         * doc/functions/printf.texi: Update.
57528         * doc/functions/snprintf.texi: Update.
57529         * doc/functions/sprintf.texi: Update.
57530         * doc/functions/vfprintf.texi: Update.
57531         * doc/functions/vprintf.texi: Update.
57532         * doc/functions/vsnprintf.texi: Update.
57533         * doc/functions/vsprintf.texi: Update.
57534
57535 2007-11-03  Bruno Haible  <bruno@clisp.org>
57536
57537         * modules/frexp-nolibm-tests: New file.
57538
57539         * modules/frexp-nolibm: New file.
57540         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57541
57542 2007-11-03  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57545         value is C99 compliant.
57546         Needed for OSF/1 5.1.
57547
57548 2007-11-03  Bruno Haible  <bruno@clisp.org>
57549
57550         Fix out-of-memory handling of vasnprintf.
57551         * lib/printf-parse.c: Include <errno.h>.
57552         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57553         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57554         is already set.
57555
57556 2007-11-02  Eric Blake  <ebb9@byu.net>
57557
57558         Fix tests on cygwin.
57559         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57560
57561 2007-11-01  Bruno Haible  <bruno@clisp.org>
57562
57563         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57564         warning.
57565         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57566         needed for POSIX compatibility.
57567
57568 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57571         for compatibility with GNU.
57572
57573 2007-11-01  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57576         (putenv): Renamed from rpl_putenv. Change argument type from
57577         'const char *' to 'char *'.
57578         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57579         of defining putenv in config.h, just set REPLACE_PUTENV.
57580         * modules/putenv (Depends-on): Add stdlib.
57581         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57582         (Include): Use <stdlib.h>.
57583         * lib/stdlib.in.h (putenv): New declaration.
57584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57585         REPLACE_PUTENV.
57586         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57587         REPLACE_PUTENV.
57588         Needed for MacOS X 10.5.0.
57589         Reported by Peter O'Gorman <peter@pogma.com>.
57590
57591 2007-11-01  Jim Meyering  <meyering@redhat.com>
57592
57593         Treat an empty date string exactly like "0".
57594         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57595         if the remaining date string (to be parsed) is empty, use "0".
57596         Reported by Mischa Molhoek and discussed in this thread:
57597         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57598
57599 2007-10-31  Bruno Haible  <bruno@clisp.org>
57600
57601         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57602         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57603         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57604         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57605         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57606         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57607
57608 2007-10-31  Bruno Haible  <bruno@clisp.org>
57609
57610         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57611         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57612         (AC_TYPE_LONG_LONG_INT): Use it.
57613         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57614         it as well.
57615         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57616         to m4/longlong.m4.
57617         * modules/stdint (Files): Remove m4/ulonglong.m4.
57618         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57619         m4/ulonglong.m4.
57620         * modules/strtoumax (Files): Likewise.
57621
57622 2007-10-30  Bruno Haible  <bruno@clisp.org>
57623
57624         * modules/xvasprintf-posix: New file.
57625         Suggested by Eric Blake.
57626
57627 2007-10-30  Bruno Haible  <bruno@clisp.org>
57628
57629         * modules/xprintf-posix-tests: New file.
57630         * tests/test-xprintf-posix.sh: New file.
57631         * tests/test-xprintf-posix.c: New file.
57632         * tests/test-xfprintf-posix.c: New file.
57633
57634         * modules/xprintf-posix: New file.
57635
57636 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57637
57638         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57639         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57640         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57641
57642 2007-10-29  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57645         contain the special marker '_cv_'.
57646         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57647         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57648         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57649         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57650         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57651         Reported by Ralf Wildenhues.
57652
57653 2007-10-29  Bruno Haible  <bruno@clisp.org>
57654
57655         * gnulib-tool (func_import): When --lgpl is not specified, set
57656         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57657         GPLv3.
57658         Reported by Simon Josefsson.
57659
57660 2007-10-28  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57663         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57664         HAVE_DECL_ISFINITE.
57665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57666         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57667         HAVE_DECL_ISFINITE.
57668
57669 2007-10-28  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57672         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57673
57674 2007-10-28  Bruno Haible  <bruno@clisp.org>
57675
57676         Fix link errors with Sun C 5.0 on Solaris 10.
57677         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57678         function is declared but not present in the compiler's libm.
57679         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57680         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57681         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57682         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57683         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57684         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57685         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57687         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57688         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57689         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57690         HAVE_DECL_FLOORL.
57691
57692 2007-10-28  Bruno Haible  <bruno@clisp.org>
57693
57694         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57695         gl_FUNC_FLOORL. Cache the result.
57696         (gl_FUNC_FLOORL): Use it.
57697         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57698         gl_FUNC_CEILL. Cache the result.
57699         (gl_FUNC_CEILL): Use it.
57700
57701         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57702         gl_FUNC_FLOOR. Cache the result.
57703         (gl_FUNC_FLOOR): Use it.
57704         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57705         gl_FUNC_CEIL. Cache the result.
57706         (gl_FUNC_CEIL): Use it.
57707
57708         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57709         gl_FUNC_FLOORF. Cache the result.
57710         (gl_FUNC_FLOORF): Use it.
57711         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57712         gl_FUNC_CEILF. Cache the result.
57713         (gl_FUNC_CEILF): Use it.
57714
57715 2007-10-28  Bruno Haible  <bruno@clisp.org>
57716
57717         * gnulib-tool: Allow specifying the LGPL version number through
57718         --lgpl=2 or --lgpl=3.
57719         (func_usage): Document --lgpl with argument.
57720         Handle --lgpl=... arguments.
57721         (func_import): Recognize also gl_LGPL calls with an argument. When
57722         --lgpl=2 is used and the module's license is just LGPL, report an
57723         error. Set sed_transform_lib_file according to the lgpl variable. In
57724         the generated files, use --lgpl or gl_LGPL invocations with argument,
57725         if necessary.
57726         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57727         an LGPv2+ license.
57728         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57729         gl_LGPL macro.
57730
57731 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57732             Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57735         (u16_uctomb_aux): Likewise.
57736         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57737         !HAVE_INLINE.
57738         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57739
57740 2007-10-28  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57743         Invoke AM_GETTEXT_OPTION if it exists.
57744         * modules/vasprintf: Likewise.
57745         * modules/verror: Likewise.
57746         * modules/xprintf: Likewise.
57747         * modules/xvasprintf: Likewise.
57748
57749 2007-10-27  Ben Pfaff  <blp@gnu.org>
57750
57751         * lib/math.in.h: Define isfinite macro and prototypes for
57752         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57753         implementations.
57754         * m4/math_h.m4: New substitutions for isfinite module.
57755         * lib/isfinite.c: New file.
57756         * m4/isfinite.m4: New file.
57757         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57758         * modules/isfinite: New file.
57759         * modules/isfinite-tests: New file.
57760         * tests/tests-isfinite.c: New file.
57761         * doc/functions/isfinite.texi: Mention isfinite module.
57762         * MODULES.html.sh: Mention new module.
57763
57764 2007-10-27  Ben Pfaff  <blp@gnu.org>
57765
57766         Ralf Wildenhues reported that Tru64 4.0D declares the round
57767         functions but does not have definitions.
57768         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57769         cannot be found in any library, set the output variable to
57770         "missing" instead of "".
57771         * m4/round.m4: Also use our substitute if we cannot find round in
57772         any library, even if it is declared.
57773         * m4/roundf.m4: Likewise for roundf.
57774         * m4/roundl.m4: Likewise for roundl.
57775         * lib/math.in.h: Undefine roundf, round, roundl before defining
57776         their replacements, to allow for hypothetical systems where these
57777         may be defined as macros but not available in libraries.
57778
57779 2007-10-27  Bruno Haible  <bruno@clisp.org>
57780
57781         * doc/gnulib.texi: Invoke @firstparagraphindent.
57782         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57783         changes in gnulib.
57784         (Source changes): New section.
57785
57786 2007-10-26  Bruno Haible  <bruno@clisp.org>
57787
57788         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57789         borrowed from autoconf.
57790
57791 2007-10-26  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57794         strerror returned the empty string. Needed on HP-UX 11.00.
57795
57796 2007-10-24  Micah Cowan  <micah@cowan.name>
57797
57798         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57799         * build-aux/bootstrap: Remove support for now-unnecessary option,
57800         --cvs-user, and envvars CVS_USER, CVS_RSH.
57801
57802 2007-10-24  Jim Meyering  <meyering@redhat.com>
57803
57804         Avoid diagnostics from sha1sum when there is no cached checksum.
57805         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57806         if the po.s1 file hasn't been created yet.
57807
57808         * build-aux/bootstrap: Sync from coreutils:
57809         2007-10-24  Jim Meyering  <meyering@redhat.com>
57810         Get gnulib from the git repository, not from an obsolete cvs one.
57811         * build-aux/bootstrap: Suggestion from Micah Cowan.
57812         2007-10-04  Jim Meyering  <jim@meyering.net>
57813         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57814         (update_po_files): Work also when there are no .po files in po/.
57815
57816 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         * README: Append ".git" to git and cg examples.
57819         Problem reported by Benoit Sigoure.
57820
57821 2007-10-23  Micah Cowan  <micah@cowan.name>
57822
57823         * users.txt: Add wget.
57824
57825 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57826
57827         Fix linking of some unistdio tests on FreeBSD.
57828         * modules/unistdio/u16-vsnprintf-tests
57829         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57830         * modules/unistdio/u16-vsprintf-tests
57831         (test_u16_vsnprintf1_LDADD): Likewise.
57832         * modules/unistdio/u32-vsnprintf-tests
57833         (test_u32_vsnprintf1_LDADD): Likewise.
57834         * modules/unistdio/u32-vsprintf-tests
57835         (test_u32_vsprintf1_LDADD): Likewise.
57836         * modules/unistdio/u8-vsnprintf-tests
57837         (test_u8_vsnprintf1_LDADD): Likewise.
57838         * modules/unistdio/u8-vsprintf-tests
57839         (test_u8_vsprintf1_LDADD): Likewise.
57840         * modules/unistdio/ulc-vsnprintf-tests
57841         (test_ulc_vsnprintf1_LDADD): Likewise.
57842         * modules/unistdio/ulc-vsprintf-tests
57843         (test_ulc_vsprintf1_LDADD): Likewise.
57844
57845         Fix linking of some uniconv tests on FreeBSD.
57846         * modules/uniconv/u16-conv-from-enc-tests
57847         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57848         * modules/uniconv/u16-conv-to-enc-tests
57849         (test_u16_conv_to_enc_LDADD): Likewise.
57850         * modules/uniconv/u16-strconv-from-enc-tests
57851         (test_u16_strconv_from_enc_LDADD): Likewise.
57852         * modules/uniconv/u16-strconv-to-enc-tests
57853         (test_u16_strconv_to_enc_LDADD): Likewise.
57854         * modules/uniconv/u32-conv-from-enc-tests
57855         (test_u32_conv_from_enc_LDADD): Likewise.
57856         * modules/uniconv/u32-conv-to-enc-tests
57857         (test_u32_conv_to_enc_LDADD): Likewise.
57858         * modules/uniconv/u32-strconv-from-enc-tests
57859         (test_u32_strconv_from_enc_LDADD): Likewise.
57860         * modules/uniconv/u32-strconv-to-enc-tests
57861         (test_u32_strconv_to_enc_LDADD): Likewise.
57862         * modules/uniconv/u8-conv-from-enc-tests
57863         (test_u8_conv_from_enc_LDADD): Likewise.
57864         * modules/uniconv/u8-conv-to-enc-tests
57865         (test_u8_conv_to_enc_LDADD): Likewise.
57866         * modules/uniconv/u8-strconv-from-enc-tests
57867         (test_u8_strconv_from_enc_LDADD): Likewise.
57868         * modules/uniconv/u8-strconv-to-enc-tests
57869         (test_u8_strconv_to_enc_LDADD): Likewise.
57870
57871 2007-10-22  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57874         size.
57875
57876 2007-10-22  Eric Blake  <ebb9@byu.net>
57877
57878         Tweak x*printf documentation.
57879         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57880         variable name and comments.
57881         Suggested by Bruno Haible.
57882
57883 2007-10-22  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/acl.c (copy_acl): Fix file name in comment.
57886
57887 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         Fix Tru64 problem with stdbool.h.
57890         * lib/stdbool.in.h (false, true):
57891         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57892         Don't declare as an enum in this situation; it runs afoul of Tru64.
57893         Problem reported by Steven M. Schweda in
57894         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57895
57896 2007-10-22  Eric Blake  <ebb9@byu.net>
57897
57898         Also wrap vf?printf.
57899         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57900         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57901         (xvprintf, xvfprintf): New functions.
57902
57903 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57904
57905         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57906         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57907
57908         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57909         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57910
57911 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57914         by Bruno Haible.
57915
57916 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57917
57918         * lib/getloadavg.c
57919         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57920         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57921
57922         * tests/test-i-ring.c: Work for C89.
57923
57924 2007-10-22  Bruno Haible  <bruno@clisp.org>
57925
57926         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57927         -1u, in preprocessor expression, so that we don't test for the bug
57928         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57930
57931 2007-10-22  Eric Blake  <ebb9@byu.net>
57932
57933         * tests/test-yesno.sh: Silence stderr during test.
57934
57935 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57936
57937         * modules/crypto/gc-camellia: New file.
57938
57939         * m4/gc-camellia.m4: New file.
57940
57941         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57942
57943         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57944
57945 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57946
57947         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57948         --help to stdout.  Reported by sms@antinode.org (Steven
57949         M. Schweda).
57950
57951 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57952
57953         * users.txt: Fix link to libksba.
57954
57955 2007-10-21  Ben Pfaff  <blp@gnu.org>
57956
57957         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57958         round.c roundf implementation that depends on floorf and ceilf to
57959         be tested unconditionally.
57960
57961 2007-10-21  Ben Pfaff  <blp@gnu.org>
57962
57963         * m4/check-libm-func.m4: Removed.
57964         * m4/check-math-lib.m4: New file.
57965         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57966         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57967         definition and lack of AC_LIBOBJ([roundf]).
57968         * m4/roundl.m4: Ditto, and similarly for roundl.
57969         * modules/round: Reference new m4 file.
57970         * modules/roundf: Ditto.
57971         * modules/roundl: Ditto.
57972         * tests/test-round2.c (main): Use ROUND instead of round.
57973         Bug report from Bruno Haible.
57974
57975 2007-10-21  Bruno Haible  <bruno@clisp.org>
57976
57977         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57978         context.
57979
57980 2007-10-21  Bruno Haible  <bruno@clisp.org>
57981
57982         * tests/test-wcwidth.c (main): Allow negative result for some control
57983         characters.
57984
57985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57986         Needed on OSF/1 5.1.
57987
57988 2007-10-21  Bruno Haible  <bruno@clisp.org>
57989
57990         * tests/test-floorf1.c: Include isnanf.h.
57991         (main): Use isnanf() instead of isnan().
57992         * tests/test-ceilf1.c: Include isnanf.h.
57993         (main): Use isnanf() instead of isnan().
57994         * tests/test-truncf1.c: Include isnanf.h.
57995         (main): Use isnanf() instead of isnan().
57996         * tests/test-roundf1.c: Include isnanf.h.
57997         (main): Use isnanf() instead of isnan().
57998
57999 2007-10-21  Eric Blake  <ebb9@byu.net>
58000
58001         * users.txt: Update URL for m4.
58002
58003 2007-10-21  Bruno Haible  <bruno@clisp.org>
58004
58005         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
58006
58007 2007-10-21  Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
58010         Git's management files if the CVS files are not present.
58011
58012 2007-10-20  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
58015         gcc-3.4.x.
58016
58017 2007-10-20  Ben Pfaff  <blp@gnu.org>
58018
58019         * lib/math.in.h: Declare round, roundf, roundl if we are providing
58020         implementations.
58021         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
58022         * lib/round.c: New file.
58023         * lib/roundf.c: New file.
58024         * lib/roundl.c: New file.
58025         * m4/round.m4: New file.
58026         * m4/roundf.m4: New file.
58027         * m4/roundl.m4: New file.
58028         * m4/check-libm-func-m4: New file.
58029         * modules/math: Replace round, roundf, roundl related @VARS@ in
58030         math.in.h.
58031         * modules/round: New file.
58032         * modules/round-tests: New file.
58033         * modules/roundf: New file.
58034         * modules/roundf-tests: New file.
58035         * modules/roundl: New file.
58036         * modules/roundl-tests: New file.
58037         * tests/test-round1.c: New file.
58038         * tests/test-round2.c: New file.
58039         * tests/test-roundf1.c: New file.
58040         * tests/test-roundf2.c: New file.
58041         * tests/test-roundl.c: New file.
58042         * doc/functions/round.texi: Mention round module.
58043         * doc/functions/roundf.texi: Mention roundf module.
58044         * doc/functions/roundl.texi: Mention roundl module.
58045         * MODULES.html.sh: Mention new modules.
58046         Thanks to Bruno Haible for suggestions.
58047
58048 2007-10-20  Jim Meyering  <meyering@redhat.com>
58049
58050         * lib/xprintf.c: Include <config.h> unconditionally.
58051
58052         Change xprintf's license to GPL.
58053         * modules/xprintf (License): s/LGPL/GPL/, since this module
58054         depends on modules (exit and exitfail) which are GPL.
58055         Suggestion from Bruno Haible.
58056
58057         xprintf fixes.
58058         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
58059         Use a clearer diagnostic.
58060         Patch from Bruno Haible.
58061
58062 2007-10-20  Bruno Haible  <bruno@clisp.org>
58063
58064         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
58065         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
58066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58067
58068 2007-10-20  Bruno Haible  <bruno@clisp.org>
58069
58070         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
58071         precision in the comparison result > x - 1 or similar.
58072         * tests/test-ceilf2.c (correct_result_p): Likewise.
58073         * tests/test-truncf2.c (correct_result_p): Likewise.
58074         * tests/test-trunc2.c (correct_result_p): Likewise.
58075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58076
58077 2007-10-20  Bruno Haible  <bruno@clisp.org>
58078
58079         * modules/ceil: New file.
58080         * m4/ceil.m4: New file.
58081         * doc/functions/ceil.texi: Mention the 'ceil' module.
58082
58083 2007-10-20  Bruno Haible  <bruno@clisp.org>
58084
58085         * modules/floor: New file.
58086         * m4/floor.m4: New file.
58087         * doc/functions/floor.texi: Mention the 'floor' module.
58088
58089 2007-10-20  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
58092         of %a.
58093         * modules/floorf-tests (Depends-on): Likewise.
58094         * modules/truncf-tests (Depends-on): Likewise.
58095         * modules/trunc-tests (Depends-on): Likewise.
58096         Reported by Ben Pfaff.
58097
58098 2007-10-19  Jim Meyering  <meyering@redhat.com>
58099
58100         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
58101         Don't bother testing specific errno values.  Just test ferror.
58102
58103         New module: xprintf
58104         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
58105
58106 2007-10-19  Bruno Haible  <bruno@clisp.org>
58107
58108         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
58109         syntax.
58110         * modules/javaexec (Makefile.am): Likewise.
58111         * modules/relocatable-prog (Makefile.am): Likewise.
58112         Suggested by Jim Meyering.
58113
58114 2007-10-18  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
58117         Reported by Jim Meyering.
58118
58119 2007-10-18  Eric Blake  <ebb9@byu.net>
58120
58121         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
58122
58123 2007-10-18  Bruno Haible  <bruno@clisp.org>
58124
58125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
58126         the format string into writable memory. Needed in Fortify conditions.
58127
58128 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
58129             Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
58132         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
58133         * modules/trim (Depends-on): Add mbchar.
58134         (configure.ac): Add gl_FUNC_MBRTOWC.
58135         (Makefile.am): Augment lib_SOURCES.
58136
58137 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         Modify glob.c to use fstatat and dirfd, to simplify it.
58140         Suggested by Eric Blake.
58141         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
58142         Don't include <stdbool.h>; not used.
58143         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
58144         (link_exists_p): Simplify implementation, since we can now assume
58145         dirfd and fstatat.
58146         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
58147
58148 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58149
58150         * gnulib-tool (func_get_dependencies): Fix sed script to
58151         match only tests.
58152
58153 2007-10-17  Bruno Haible  <bruno@clisp.org>
58154
58155         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
58156         allow locale names without encoding suffix.
58157         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58158         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58159
58160 2007-10-16  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
58163         * lib/getgroups.c (getgroups): Likewise.
58164         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
58165
58166 2007-10-16  Bruno Haible  <bruno@clisp.org>
58167
58168         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
58169         * modules/malloc-posix (License): Likewise.
58170         * modules/realloc-posix (License): Likewise.
58171         * modules/calloc-posix (License): Likewise.
58172         * modules/intprops (License): Change from GPL to LGPL, with
58173         Paul Eggert's approval.
58174
58175 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         Merge glibc changes into lib/glob.c.
58178
58179         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
58180         2007-10-15 04:59:03 UTC.  Here are the changes:
58181
58182         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
58183
58184         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
58185
58186         * lib/glob.c: Add some branch prediction throughout.
58187
58188         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
58189
58190         [BZ #5103]
58191         * lib/glob.c (glob): Recognize patterns starting \/.
58192
58193         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
58194
58195         [BZ #3996]
58196         * lib/glob.c (attribute_hidden): Define if not defined.
58197         (glob): Unescape dirname, filename or username when needed and not
58198         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
58199         is NULL.  Handle unescaped [ in pattern without closing ].
58200         Don't pass GLOB_CHECK down to recursive glob for directories.
58201         (__glob_pattern_type): New function.
58202         (__glob_pattern_p): Implement using __glob_pattern_type.
58203         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
58204         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
58205         Remove unreachable code.
58206
58207         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
58208
58209         * lib/glob.c (glob_in_dir): Add some comments and asserts to
58210         explain why there are no leaks.
58211
58212         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
58213
58214         [BZ #3253]
58215         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
58216         time, rather allocate increasingly bigger arrays of pointers, if
58217         possible with alloca, if too large with malloc.
58218
58219 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58222         Problem reported by H.Merijn Brand in
58223         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58224         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58225         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58226
58227 2007-10-15  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58230         with explicit rpl_ prefix.
58231         * lib/fopen.c (fopen): Likewise.
58232         * lib/freopen.c (freopen): Likewise.
58233         * lib/iconv.c (iconv): Likewise.
58234         * lib/iconv_close.c (iconv_close): Likewise.
58235
58236 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58237
58238         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58239
58240 2007-10-15  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58243         <stddef.h> instead of <stdlib.h> since we only need NULL.
58244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58245
58246 2007-10-15  Bruno Haible  <bruno@clisp.org>
58247
58248         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58249         Replace paragraph talking about LIBOBJS.
58250         Reported by Colin Watson <cjwatson@debian.org>.
58251
58252 2007-10-15  Bruno Haible  <bruno@clisp.org>
58253
58254         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58255         <stdlib.h> before using NULL.
58256
58257 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58258
58259         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58260         Reported by Albert Chin <china@thewrittenword.com>.
58261
58262 2007-10-14  Bruno Haible  <bruno@clisp.org>
58263
58264         * modules/iconv_open-utf-tests: New file.
58265         * tests/test-iconv-utf.c: New file.
58266
58267         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58268         * modules/iconv_open-utf: New file.
58269         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58270         (iconv, iconv_close): New declarations.
58271         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58272         be defined.
58273         (iconv_open): Add special handling of conversion between UTF-8 and
58274         UTF-{16,32}{BE,LE}.
58275         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58276         * lib/iconv_close.c: New file.
58277         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58278         gl_FUNC_ICONV_OPEN.
58279         (gl_FUNC_ICONV_OPEN): Use it.
58280         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58281         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58282         and REPLACE_ICONV_UTF.
58283         * modules/iconv_open (Depends-on): Add c-strcase.
58284         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58285         ICONV_CONST.
58286         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58287
58288 2007-10-13  Albert Chin  <china@thewrittenword.com>
58289             Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58292         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58293
58294 2007-10-13  Bruno Haible  <bruno@clisp.org>
58295
58296         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58297         defined, use the ISO C99 inline semantics.
58298         * lib/argp.h (ARGP_EI): Likewise.
58299
58300 2007-10-13  Bruno Haible  <bruno@clisp.org>
58301
58302         Handle 'inline' change in gcc 4.3.0.
58303         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58304         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58305         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58306         argp_fmtstream_point): Disable 'extern' declaration if the function
58307         definition is going to be provided inline.
58308         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58309         semantics, not the ISO C99 inline semantics.
58310         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58311         'extern' declaration if the function definition is going to be provided
58312         inline.
58313         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58314         the GNU C inline semantics, not the ISO C99 inline semantics. With
58315         GCC 4.2, avoid a warning.
58316
58317 2007-10-13  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/freading.h (freading): Enable the use of __freading for
58320         glibc >= 2.7.
58321         * lib/freading.c (freading): Likewise.
58322
58323 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58326         "warning: C99 inline functions are not supported; using GNU89".
58327
58328 2007-10-12  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58331         of 2.
58332         * tests/test-ceilf2.c: New file.
58333         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58334
58335         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58336         * modules/ceilf-tests: Update.
58337
58338 2007-10-12  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58341         of 2.
58342         * tests/test-floorf2.c: New file.
58343         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58344
58345         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58346         * modules/floorf-tests: Update.
58347
58348 2007-10-12  Bruno Haible  <bruno@clisp.org>
58349
58350         * tests/test-trunc2.c: New file.
58351         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58352
58353         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58354         * modules/trunc-tests: Update.
58355
58356 2007-10-12  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58359         of 2.
58360         * tests/test-truncf2.c: New file.
58361         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58362
58363         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58364         * modules/truncf-tests: Update.
58365
58366 2007-10-11  Eric Blake  <ebb9@byu.net>
58367
58368         Don't claim strerror is broken on Interix.
58369         * doc/functions/strerror.texi (strerror): Known broken systems are
58370         now Solaris 8, and not Interix.
58371         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58372         Interix on cross-compile.
58373         Reported by Martin Koeppe in
58374         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58375
58376 2007-10-11  Bruno Haible  <bruno@clisp.org>
58377
58378         * modules/i-ring-tests: New file.
58379         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58380         instead of assert.
58381
58382 2007-10-11  Bruno Haible  <bruno@clisp.org>
58383
58384         * modules/filenamecat-tests: New file.
58385         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58386         * lib/filenamecat.c: Remove test code.
58387
58388 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58389
58390         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58391
58392         * lib/strerror.c: Include <string.h> always, to test interface,
58393         and to remove the need for the dummy.
58394         Include intprops.h to compute width instead of doing it ourselves
58395         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58396         (strerror): Define it to return NULL if there's no system strerror.
58397         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58398         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58399         ancient pre-strerror Unix systems well any more.  Saying "unknown
58400         system error" is enough.
58401         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58402         simpler strerror.c implementation.
58403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58404         Simplify the tests to reflect the simpler strerror implementation.
58405         * modules/strerror (Depends-on): Add intprops.
58406
58407 2007-10-09  Eric Blake  <ebb9@byu.net>
58408
58409         Silence test-fpending.
58410         * modules/fpending-tests (Files): Add wrapper script.
58411         * tests/test-fpending.sh: New file.
58412
58413 2007-10-09  Bruno Haible  <bruno@clisp.org>
58414
58415         * MODULES.html.sh (func_module): Don't create a hyperlink for
58416         function names like 'printf_frexp'.
58417         (Misc): Add crc, memxor.
58418         (Characteristics of floating types): New section.
58419         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58420         isnanf-nolibm, signbit, trunc, truncf, truncl.
58421         (Enhancements for ISO C 99 functions): New subsection Input/output.
58422         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58423         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58424         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58425         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58426         (Enhancements for POSIX:2001 functions): Add chdir-long.
58427         (File system functions): Add areadlink, chdir-safer, read-file.
58428         Remove cycle-check.
58429         (File system as inode set): New section.
58430         (Date and time): Add gethrxtime.
58431         (Multithreading): Add openmp.
58432         (Internationalization functions): Add localename.
58433         (Unicode string functions): Add unistr/u*-mbsnlen.
58434         (Support for maintaining and releasing projects): Add git-version-gen.
58435         (Lone files): Remove directories.
58436
58437 2007-10-08  Ben Pfaff  <blp@gnu.org>
58438
58439         * lib/xmalloca.h: Fix typo in comment.
58440
58441 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58442
58443         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58444         when avoiding problems with integer overflow.  Use a portable test
58445         instead.
58446
58447 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58448
58449         * modules/dummy (License): Change to LGPLv2+.
58450         * modules/float (License): Likewise
58451         * modules/realloc (License): Likewise
58452         * modules/stdlib (License): Likewise
58453
58454 2007-10-07  Bruno Haible  <bruno@clisp.org>
58455
58456         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58457         * floor.c (TWO_MANT_DIG): Likewise.
58458         * ceil.c (TWO_MANT_DIG): Likewise.
58459         Reported by Ben Pfaff.
58460
58461 2007-10-07  Bruno Haible  <bruno@clisp.org>
58462
58463         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58464         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58465         * lib/frexp.c (FUNC): Likewise.
58466         * lib/printf-frexp.h (printf_frexp): Likewise.
58467         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58468         * lib/printf-frexp.c (FUNC): Likewise.
58469         Suggested by Jim Meyering.
58470
58471 2007-10-07  Jim Meyering  <meyering@redhat.com>
58472
58473         Make xnanosleep's integer overflow test more robust.
58474         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58475         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58476
58477 2007-10-07  Bruno Haible  <bruno@clisp.org>
58478
58479         * NEWS: Mention the license change.
58480
58481         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58482         abbreviations in the modules files.
58483
58484         Change copyright notice from GPLv2+ to GPLv3+.
58485         * README: Change copyright notice.
58486         * MODULES.html.sh: Likewise.
58487         * build-aux/bootstrap.conf: Likewise.
58488         * build-aux/config.libpath: Likewise.
58489         * build-aux/csharpcomp.sh.in: Likewise.
58490         * build-aux/csharpexec.sh.in: Likewise.
58491         * build-aux/install-reloc: Likewise.
58492         * build-aux/javacomp.sh.in: Likewise.
58493         * build-aux/javaexec.sh.in: Likewise.
58494         * build-aux/ldd.sh.in: Likewise.
58495         * build-aux/reloc-ldflags: Likewise.
58496         * build-aux/relocatable.sh.in: Likewise.
58497         * build-aux/x-to-1.in: Likewise.
58498         * check-module: Likewise.
58499         * config/srclistvars.sh: Likewise.
58500         * gnulib-tool: Likewise.
58501         * lib/acl-internal.h: Likewise.
58502         * lib/acl.c: Likewise.
58503         * lib/acl.h: Likewise.
58504         * lib/acl_entries.c: Likewise.
58505         * lib/areadlink-with-size.c: Likewise.
58506         * lib/areadlink.c: Likewise.
58507         * lib/areadlink.h: Likewise.
58508         * lib/argmatch.c: Likewise.
58509         * lib/argmatch.h: Likewise.
58510         * lib/argp-ba.c: Likewise.
58511         * lib/argp-eexst.c: Likewise.
58512         * lib/argp-fmtstream.c: Likewise.
58513         * lib/argp-fmtstream.h: Likewise.
58514         * lib/argp-fs-xinl.c: Likewise.
58515         * lib/argp-help.c: Likewise.
58516         * lib/argp-namefrob.h: Likewise.
58517         * lib/argp-parse.c: Likewise.
58518         * lib/argp-pin.c: Likewise.
58519         * lib/argp-pv.c: Likewise.
58520         * lib/argp-pvh.c: Likewise.
58521         * lib/argp-xinl.c: Likewise.
58522         * lib/argp.h: Likewise.
58523         * lib/at-func.c: Likewise.
58524         * lib/atanl.c: Likewise.
58525         * lib/backupfile.c: Likewise.
58526         * lib/backupfile.h: Likewise.
58527         * lib/basename.c: Likewise.
58528         * lib/binary-io.h: Likewise.
58529         * lib/byteswap.in.h: Likewise.
58530         * lib/c-stack.c: Likewise.
58531         * lib/c-stack.h: Likewise.
58532         * lib/c-strcasestr.c: Likewise.
58533         * lib/c-strcasestr.h: Likewise.
58534         * lib/c-strstr.c: Likewise.
58535         * lib/c-strstr.h: Likewise.
58536         * lib/c-strtod.c: Likewise.
58537         * lib/calloc.c: Likewise.
58538         * lib/canon-host.c: Likewise.
58539         * lib/canon-host.h: Likewise.
58540         * lib/canonicalize-lgpl.c: Likewise.
58541         * lib/canonicalize.c: Likewise.
58542         * lib/canonicalize.h: Likewise.
58543         * lib/ceil.c: Likewise.
58544         * lib/ceilf.c: Likewise.
58545         * lib/ceill.c: Likewise.
58546         * lib/chdir-long.c: Likewise.
58547         * lib/chdir-long.h: Likewise.
58548         * lib/chdir-safer.c: Likewise.
58549         * lib/chdir-safer.h: Likewise.
58550         * lib/chown.c: Likewise.
58551         * lib/classpath.c: Likewise.
58552         * lib/classpath.h: Likewise.
58553         * lib/clean-temp.c: Likewise.
58554         * lib/clean-temp.h: Likewise.
58555         * lib/cloexec.c: Likewise.
58556         * lib/close-stream.c: Likewise.
58557         * lib/closein.c: Likewise.
58558         * lib/closein.h: Likewise.
58559         * lib/closeout.c: Likewise.
58560         * lib/closeout.h: Likewise.
58561         * lib/concat-filename.c: Likewise.
58562         * lib/copy-file.c: Likewise.
58563         * lib/copy-file.h: Likewise.
58564         * lib/count-one-bits.h: Likewise.
58565         * lib/crc.c: Likewise.
58566         * lib/crc.h: Likewise.
58567         * lib/creat-safer.c: Likewise.
58568         * lib/csharpcomp.c: Likewise.
58569         * lib/csharpcomp.h: Likewise.
58570         * lib/csharpexec.c: Likewise.
58571         * lib/csharpexec.h: Likewise.
58572         * lib/cycle-check.c: Likewise.
58573         * lib/cycle-check.h: Likewise.
58574         * lib/diacrit.c: Likewise.
58575         * lib/diacrit.h: Likewise.
58576         * lib/diffseq.h: Likewise.
58577         * lib/dirchownmod.c: Likewise.
58578         * lib/dirent.in.h: Likewise.
58579         * lib/dirfd.c: Likewise.
58580         * lib/dirfd.h: Likewise.
58581         * lib/dirname.c: Likewise.
58582         * lib/dirname.h: Likewise.
58583         * lib/dummy.c: Likewise.
58584         * lib/dup-safer.c: Likewise.
58585         * lib/dup2.c: Likewise.
58586         * lib/eealloc.h: Likewise.
58587         * lib/error.c: Likewise.
58588         * lib/error.h: Likewise.
58589         * lib/euidaccess.c: Likewise.
58590         * lib/exclude.c: Likewise.
58591         * lib/exclude.h: Likewise.
58592         * lib/execute.c: Likewise.
58593         * lib/execute.h: Likewise.
58594         * lib/exitfail.c: Likewise.
58595         * lib/exitfail.h: Likewise.
58596         * lib/expl.c: Likewise.
58597         * lib/fatal-signal.c: Likewise.
58598         * lib/fatal-signal.h: Likewise.
58599         * lib/fbufmode.c: Likewise.
58600         * lib/fbufmode.h: Likewise.
58601         * lib/fchdir.c: Likewise.
58602         * lib/fchmodat.c: Likewise.
58603         * lib/fchownat.c: Likewise.
58604         * lib/fcntl--.h: Likewise.
58605         * lib/fcntl-safer.h: Likewise.
58606         * lib/fcntl.in.h: Likewise.
58607         * lib/fd-safer.c: Likewise.
58608         * lib/fflush.c: Likewise.
58609         * lib/file-has-acl.c: Likewise.
58610         * lib/file-set.c: Likewise.
58611         * lib/file-type.c: Likewise.
58612         * lib/file-type.h: Likewise.
58613         * lib/fileblocks.c: Likewise.
58614         * lib/filemode.c: Likewise.
58615         * lib/filemode.h: Likewise.
58616         * lib/filename.h: Likewise.
58617         * lib/filenamecat.c: Likewise.
58618         * lib/filenamecat.h: Likewise.
58619         * lib/findprog.c: Likewise.
58620         * lib/findprog.h: Likewise.
58621         * lib/float.in.h: Likewise.
58622         * lib/floor.c: Likewise.
58623         * lib/floorf.c: Likewise.
58624         * lib/floorl.c: Likewise.
58625         * lib/fopen-safer.c: Likewise.
58626         * lib/fopen.c: Likewise.
58627         * lib/fpending.c: Likewise.
58628         * lib/fpending.h: Likewise.
58629         * lib/fprintf.c: Likewise.
58630         * lib/fprintftime.h: Likewise.
58631         * lib/fpucw.h: Likewise.
58632         * lib/fpurge.c: Likewise.
58633         * lib/fpurge.h: Likewise.
58634         * lib/freadable.c: Likewise.
58635         * lib/freadable.h: Likewise.
58636         * lib/freadahead.c: Likewise.
58637         * lib/freadahead.h: Likewise.
58638         * lib/freading.c: Likewise.
58639         * lib/freading.h: Likewise.
58640         * lib/free.c: Likewise.
58641         * lib/freopen.c: Likewise.
58642         * lib/frexp.c: Likewise.
58643         * lib/frexpl.c: Likewise.
58644         * lib/fseek.c: Likewise.
58645         * lib/fseterr.c: Likewise.
58646         * lib/fseterr.h: Likewise.
58647         * lib/fstatat.c: Likewise.
58648         * lib/fstrcmp.c: Likewise.
58649         * lib/fstrcmp.h: Likewise.
58650         * lib/fsusage.c: Likewise.
58651         * lib/fsusage.h: Likewise.
58652         * lib/ftell.c: Likewise.
58653         * lib/ftello.c: Likewise.
58654         * lib/fts-cycle.c: Likewise.
58655         * lib/fts.c: Likewise.
58656         * lib/fts_.h: Likewise.
58657         * lib/full-read.c: Likewise.
58658         * lib/full-read.h: Likewise.
58659         * lib/full-write.c: Likewise.
58660         * lib/full-write.h: Likewise.
58661         * lib/fwritable.c: Likewise.
58662         * lib/fwritable.h: Likewise.
58663         * lib/fwriteerror.c: Likewise.
58664         * lib/fwriteerror.h: Likewise.
58665         * lib/fwriting.c: Likewise.
58666         * lib/fwriting.h: Likewise.
58667         * lib/gcd.c: Likewise.
58668         * lib/gcd.h: Likewise.
58669         * lib/getcwd.c: Likewise.
58670         * lib/getdate.h: Likewise.
58671         * lib/getdate.y: Likewise.
58672         * lib/getdomainname.c: Likewise.
58673         * lib/getdomainname.h: Likewise.
58674         * lib/getgroups.c: Likewise.
58675         * lib/gethostname.c: Likewise.
58676         * lib/gethrxtime.c: Likewise.
58677         * lib/gethrxtime.h: Likewise.
58678         * lib/getloadavg.c: Likewise.
58679         * lib/getndelim2.c: Likewise.
58680         * lib/getndelim2.h: Likewise.
58681         * lib/getnline.c: Likewise.
58682         * lib/getnline.h: Likewise.
58683         * lib/getopt.c: Likewise.
58684         * lib/getopt.in.h: Likewise.
58685         * lib/getopt1.c: Likewise.
58686         * lib/getopt_int.h: Likewise.
58687         * lib/getpagesize.h: Likewise.
58688         * lib/getsubopt.c: Likewise.
58689         * lib/gettime.c: Likewise.
58690         * lib/getugroups.c: Likewise.
58691         * lib/getugroups.h: Likewise.
58692         * lib/getusershell.c: Likewise.
58693         * lib/gl_anyavltree_list1.h: Likewise.
58694         * lib/gl_anyavltree_list2.h: Likewise.
58695         * lib/gl_anyhash_list1.h: Likewise.
58696         * lib/gl_anyhash_list2.h: Likewise.
58697         * lib/gl_anylinked_list1.h: Likewise.
58698         * lib/gl_anylinked_list2.h: Likewise.
58699         * lib/gl_anyrbtree_list1.h: Likewise.
58700         * lib/gl_anyrbtree_list2.h: Likewise.
58701         * lib/gl_anytree_list1.h: Likewise.
58702         * lib/gl_anytree_list2.h: Likewise.
58703         * lib/gl_anytree_oset.h: Likewise.
58704         * lib/gl_anytreehash_list1.h: Likewise.
58705         * lib/gl_anytreehash_list2.h: Likewise.
58706         * lib/gl_array_list.c: Likewise.
58707         * lib/gl_array_list.h: Likewise.
58708         * lib/gl_array_oset.c: Likewise.
58709         * lib/gl_array_oset.h: Likewise.
58710         * lib/gl_avltree_list.c: Likewise.
58711         * lib/gl_avltree_list.h: Likewise.
58712         * lib/gl_avltree_oset.c: Likewise.
58713         * lib/gl_avltree_oset.h: Likewise.
58714         * lib/gl_avltreehash_list.c: Likewise.
58715         * lib/gl_avltreehash_list.h: Likewise.
58716         * lib/gl_carray_list.c: Likewise.
58717         * lib/gl_carray_list.h: Likewise.
58718         * lib/gl_linked_list.c: Likewise.
58719         * lib/gl_linked_list.h: Likewise.
58720         * lib/gl_linkedhash_list.c: Likewise.
58721         * lib/gl_linkedhash_list.h: Likewise.
58722         * lib/gl_list.c: Likewise.
58723         * lib/gl_list.h: Likewise.
58724         * lib/gl_oset.c: Likewise.
58725         * lib/gl_oset.h: Likewise.
58726         * lib/gl_rbtree_list.c: Likewise.
58727         * lib/gl_rbtree_list.h: Likewise.
58728         * lib/gl_rbtree_oset.c: Likewise.
58729         * lib/gl_rbtree_oset.h: Likewise.
58730         * lib/gl_rbtreehash_list.c: Likewise.
58731         * lib/gl_rbtreehash_list.h: Likewise.
58732         * lib/gl_sublist.c: Likewise.
58733         * lib/gl_sublist.h: Likewise.
58734         * lib/group-member.c: Likewise.
58735         * lib/group-member.h: Likewise.
58736         * lib/hard-locale.c: Likewise.
58737         * lib/hard-locale.h: Likewise.
58738         * lib/hash-pjw.c: Likewise.
58739         * lib/hash-pjw.h: Likewise.
58740         * lib/hash-triple.c: Likewise.
58741         * lib/hash.c: Likewise.
58742         * lib/hash.h: Likewise.
58743         * lib/human.c: Likewise.
58744         * lib/human.h: Likewise.
58745         * lib/i-ring.c: Likewise.
58746         * lib/i-ring.h: Likewise.
58747         * lib/idcache.c: Likewise.
58748         * lib/imaxabs.c: Likewise.
58749         * lib/imaxdiv.c: Likewise.
58750         * lib/inet_pton.c: Likewise.
58751         * lib/inet_pton.h: Likewise.
58752         * lib/intprops.h: Likewise.
58753         * lib/inttostr.c: Likewise.
58754         * lib/inttostr.h: Likewise.
58755         * lib/inttypes.in.h: Likewise.
58756         * lib/isapipe.c: Likewise.
58757         * lib/isdir.c: Likewise.
58758         * lib/isnan.c: Likewise.
58759         * lib/isnan.h: Likewise.
58760         * lib/isnanf.c: Likewise.
58761         * lib/isnanf.h: Likewise.
58762         * lib/isnanl-nolibm.h: Likewise.
58763         * lib/isnanl.c: Likewise.
58764         * lib/isnanl.h: Likewise.
58765         * lib/javacomp.c: Likewise.
58766         * lib/javacomp.h: Likewise.
58767         * lib/javaexec.c: Likewise.
58768         * lib/javaexec.h: Likewise.
58769         * lib/javaversion.c: Likewise.
58770         * lib/javaversion.h: Likewise.
58771         * lib/javaversion.java: Likewise.
58772         * lib/lbrkprop.h: Likewise.
58773         * lib/lchmod.h: Likewise.
58774         * lib/lchown.c: Likewise.
58775         * lib/ldexpl.c: Likewise.
58776         * lib/linebreak.c: Likewise.
58777         * lib/linebreak.h: Likewise.
58778         * lib/linebuffer.c: Likewise.
58779         * lib/linebuffer.h: Likewise.
58780         * lib/locale.in.h: Likewise.
58781         * lib/logl.c: Likewise.
58782         * lib/long-options.c: Likewise.
58783         * lib/long-options.h: Likewise.
58784         * lib/lstat.c: Likewise.
58785         * lib/lstat.h: Likewise.
58786         * lib/math.in.h: Likewise.
58787         * lib/mbchar.c: Likewise.
58788         * lib/mbchar.h: Likewise.
58789         * lib/mbfile.h: Likewise.
58790         * lib/mbiter.h: Likewise.
58791         * lib/mbscasecmp.c: Likewise.
58792         * lib/mbscasestr.c: Likewise.
58793         * lib/mbschr.c: Likewise.
58794         * lib/mbscspn.c: Likewise.
58795         * lib/mbslen.c: Likewise.
58796         * lib/mbsncasecmp.c: Likewise.
58797         * lib/mbsnlen.c: Likewise.
58798         * lib/mbspbrk.c: Likewise.
58799         * lib/mbspcasecmp.c: Likewise.
58800         * lib/mbsrchr.c: Likewise.
58801         * lib/mbssep.c: Likewise.
58802         * lib/mbsspn.c: Likewise.
58803         * lib/mbsstr.c: Likewise.
58804         * lib/mbstok_r.c: Likewise.
58805         * lib/mbswidth.c: Likewise.
58806         * lib/mbswidth.h: Likewise.
58807         * lib/mbuiter.h: Likewise.
58808         * lib/memcasecmp.c: Likewise.
58809         * lib/memcasecmp.h: Likewise.
58810         * lib/memchr.c: Likewise.
58811         * lib/memcmp.c: Likewise.
58812         * lib/memcoll.c: Likewise.
58813         * lib/memcoll.h: Likewise.
58814         * lib/memcpy.c: Likewise.
58815         * lib/memrchr.c: Likewise.
58816         * lib/mkancesdirs.c: Likewise.
58817         * lib/mkdir-p.c: Likewise.
58818         * lib/mkdir-p.h: Likewise.
58819         * lib/mkdir.c: Likewise.
58820         * lib/mkdirat.c: Likewise.
58821         * lib/mkdtemp.c: Likewise.
58822         * lib/mkstemp-safer.c: Likewise.
58823         * lib/mkstemp.c: Likewise.
58824         * lib/modechange.c: Likewise.
58825         * lib/modechange.h: Likewise.
58826         * lib/mountlist.c: Likewise.
58827         * lib/mountlist.h: Likewise.
58828         * lib/mpsort.c: Likewise.
58829         * lib/nanosleep.c: Likewise.
58830         * lib/obstack.c: Likewise.
58831         * lib/obstack.h: Likewise.
58832         * lib/open-safer.c: Likewise.
58833         * lib/open.c: Likewise.
58834         * lib/openat-die.c: Likewise.
58835         * lib/openat-priv.h: Likewise.
58836         * lib/openat-proc.c: Likewise.
58837         * lib/openat.c: Likewise.
58838         * lib/openat.h: Likewise.
58839         * lib/pagealign_alloc.c: Likewise.
58840         * lib/pagealign_alloc.h: Likewise.
58841         * lib/physmem.c: Likewise.
58842         * lib/physmem.h: Likewise.
58843         * lib/pipe-safer.c: Likewise.
58844         * lib/pipe.c: Likewise.
58845         * lib/pipe.h: Likewise.
58846         * lib/posixtm.c: Likewise.
58847         * lib/posixtm.h: Likewise.
58848         * lib/posixver.c: Likewise.
58849         * lib/printf-frexp.c: Likewise.
58850         * lib/printf-frexp.h: Likewise.
58851         * lib/printf-frexpl.c: Likewise.
58852         * lib/printf-frexpl.h: Likewise.
58853         * lib/printf.c: Likewise.
58854         * lib/progname.c: Likewise.
58855         * lib/progname.h: Likewise.
58856         * lib/progreloc.c: Likewise.
58857         * lib/putenv.c: Likewise.
58858         * lib/quote.c: Likewise.
58859         * lib/quote.h: Likewise.
58860         * lib/quotearg.c: Likewise.
58861         * lib/quotearg.h: Likewise.
58862         * lib/raise.c: Likewise.
58863         * lib/readline.c: Likewise.
58864         * lib/readline.h: Likewise.
58865         * lib/readlink.c: Likewise.
58866         * lib/readtokens.c: Likewise.
58867         * lib/readtokens.h: Likewise.
58868         * lib/readtokens0.c: Likewise.
58869         * lib/readtokens0.h: Likewise.
58870         * lib/readutmp.c: Likewise.
58871         * lib/readutmp.h: Likewise.
58872         * lib/realloc.c: Likewise.
58873         * lib/relocwrapper.c: Likewise.
58874         * lib/rename-dest-slash.c: Likewise.
58875         * lib/rename.c: Likewise.
58876         * lib/rmdir.c: Likewise.
58877         * lib/rpmatch.c: Likewise.
58878         * lib/safe-read.c: Likewise.
58879         * lib/safe-read.h: Likewise.
58880         * lib/safe-write.c: Likewise.
58881         * lib/safe-write.h: Likewise.
58882         * lib/same-inode.h: Likewise.
58883         * lib/same.c: Likewise.
58884         * lib/same.h: Likewise.
58885         * lib/save-cwd.c: Likewise.
58886         * lib/save-cwd.h: Likewise.
58887         * lib/savedir.c: Likewise.
58888         * lib/savedir.h: Likewise.
58889         * lib/savewd.c: Likewise.
58890         * lib/savewd.h: Likewise.
58891         * lib/search.in.h: Likewise.
58892         * lib/setenv.c: Likewise.
58893         * lib/setenv.h: Likewise.
58894         * lib/settime.c: Likewise.
58895         * lib/sh-quote.c: Likewise.
58896         * lib/sh-quote.h: Likewise.
58897         * lib/sig2str.c: Likewise.
58898         * lib/sig2str.h: Likewise.
58899         * lib/signal.in.h: Likewise.
58900         * lib/signbitd.c: Likewise.
58901         * lib/signbitf.c: Likewise.
58902         * lib/signbitl.c: Likewise.
58903         * lib/sigprocmask.c: Likewise.
58904         * lib/sincosl.c: Likewise.
58905         * lib/sleep.c: Likewise.
58906         * lib/sprintf.c: Likewise.
58907         * lib/sqrtl.c: Likewise.
58908         * lib/stat-time.h: Likewise.
58909         * lib/stdio--.h: Likewise.
58910         * lib/stdio-safer.h: Likewise.
58911         * lib/stdlib--.h: Likewise.
58912         * lib/stdlib-safer.h: Likewise.
58913         * lib/stdlib.in.h: Likewise.
58914         * lib/stpcpy.c: Likewise.
58915         * lib/stpncpy.c: Likewise.
58916         * lib/strchrnul.c: Likewise.
58917         * lib/strcspn.c: Likewise.
58918         * lib/strerror.c: Likewise.
58919         * lib/strftime.c: Likewise.
58920         * lib/strftime.h: Likewise.
58921         * lib/striconveh.c: Likewise.
58922         * lib/striconveh.h: Likewise.
58923         * lib/striconveha.c: Likewise.
58924         * lib/striconveha.h: Likewise.
58925         * lib/stripslash.c: Likewise.
58926         * lib/strnlen1.c: Likewise.
58927         * lib/strnlen1.h: Likewise.
58928         * lib/strtod.c: Likewise.
58929         * lib/strtoimax.c: Likewise.
58930         * lib/strtok_r.c: Likewise.
58931         * lib/strtol.c: Likewise.
58932         * lib/strtoll.c: Likewise.
58933         * lib/strtoul.c: Likewise.
58934         * lib/strtoull.c: Likewise.
58935         * lib/sysexits.in.h: Likewise.
58936         * lib/tempname.c: Likewise.
58937         * lib/tempname.h: Likewise.
58938         * lib/timespec.h: Likewise.
58939         * lib/tls.c: Likewise.
58940         * lib/tls.h: Likewise.
58941         * lib/tmpdir.c: Likewise.
58942         * lib/tmpdir.h: Likewise.
58943         * lib/tmpfile-safer.c: Likewise.
58944         * lib/tmpfile.c: Likewise.
58945         * lib/trigl.c: Likewise.
58946         * lib/trigl.h: Likewise.
58947         * lib/trim.c: Likewise.
58948         * lib/trim.h: Likewise.
58949         * lib/trunc.c: Likewise.
58950         * lib/truncf.c: Likewise.
58951         * lib/truncl.c: Likewise.
58952         * lib/tsearch.c: Likewise.
58953         * lib/unicodeio.c: Likewise.
58954         * lib/unicodeio.h: Likewise.
58955         * lib/unistd--.h: Likewise.
58956         * lib/unistd-safer.h: Likewise.
58957         * lib/unistdio/ulc-fprintf.c: Likewise.
58958         * lib/unistdio/ulc-vfprintf.c: Likewise.
58959         * lib/unlinkdir.c: Likewise.
58960         * lib/unlinkdir.h: Likewise.
58961         * lib/unlocked-io.h: Likewise.
58962         * lib/unsetenv.c: Likewise.
58963         * lib/userspec.c: Likewise.
58964         * lib/utime.c: Likewise.
58965         * lib/utimecmp.c: Likewise.
58966         * lib/utimecmp.h: Likewise.
58967         * lib/utimens.c: Likewise.
58968         * lib/verify.h: Likewise.
58969         * lib/verror.c: Likewise.
58970         * lib/verror.h: Likewise.
58971         * lib/version-etc-fsf.c: Likewise.
58972         * lib/version-etc.c: Likewise.
58973         * lib/version-etc.h: Likewise.
58974         * lib/vfprintf.c: Likewise.
58975         * lib/vprintf.c: Likewise.
58976         * lib/vsprintf.c: Likewise.
58977         * lib/w32spawn.h: Likewise.
58978         * lib/wait-process.c: Likewise.
58979         * lib/wait-process.h: Likewise.
58980         * lib/wcwidth.c: Likewise.
58981         * lib/write-any-file.c: Likewise.
58982         * lib/xalloc-die.c: Likewise.
58983         * lib/xalloc.h: Likewise.
58984         * lib/xasprintf.c: Likewise.
58985         * lib/xgetcwd.c: Likewise.
58986         * lib/xgetcwd.h: Likewise.
58987         * lib/xgetdomainname.c: Likewise.
58988         * lib/xgetdomainname.h: Likewise.
58989         * lib/xgethostname.c: Likewise.
58990         * lib/xmalloc.c: Likewise.
58991         * lib/xmalloca.c: Likewise.
58992         * lib/xmalloca.h: Likewise.
58993         * lib/xmemcoll.c: Likewise.
58994         * lib/xnanosleep.c: Likewise.
58995         * lib/xreadlink.c: Likewise.
58996         * lib/xreadlink.h: Likewise.
58997         * lib/xsetenv.c: Likewise.
58998         * lib/xsetenv.h: Likewise.
58999         * lib/xstriconv.c: Likewise.
59000         * lib/xstriconv.h: Likewise.
59001         * lib/xstrndup.c: Likewise.
59002         * lib/xstrndup.h: Likewise.
59003         * lib/xstrtod.c: Likewise.
59004         * lib/xstrtod.h: Likewise.
59005         * lib/xstrtol-error.c: Likewise.
59006         * lib/xstrtol.c: Likewise.
59007         * lib/xstrtol.h: Likewise.
59008         * lib/xtime.h: Likewise.
59009         * lib/xvasprintf.c: Likewise.
59010         * lib/xvasprintf.h: Likewise.
59011         * lib/yesno.c: Likewise.
59012         * lib/yesno.h: Likewise.
59013         * posix-modules: Likewise.
59014         * tests/test-alloca-opt.c: Likewise.
59015         * tests/test-arcfour.c: Likewise.
59016         * tests/test-arctwo.c: Likewise.
59017         * tests/test-argmatch.c: Likewise.
59018         * tests/test-argp-2.sh: Likewise.
59019         * tests/test-argp.c: Likewise.
59020         * tests/test-arpa_inet.c: Likewise.
59021         * tests/test-array_list.c: Likewise.
59022         * tests/test-array_oset.c: Likewise.
59023         * tests/test-atexit.c: Likewise.
59024         * tests/test-avltree_list.c: Likewise.
59025         * tests/test-avltree_oset.c: Likewise.
59026         * tests/test-avltreehash_list.c: Likewise.
59027         * tests/test-base64.c: Likewise.
59028         * tests/test-binary-io.c: Likewise.
59029         * tests/test-byteswap.c: Likewise.
59030         * tests/test-c-ctype.c: Likewise.
59031         * tests/test-c-strcasecmp.c: Likewise.
59032         * tests/test-c-strcasestr.c: Likewise.
59033         * tests/test-c-strncasecmp.c: Likewise.
59034         * tests/test-c-strstr.c: Likewise.
59035         * tests/test-canonicalize-lgpl.c: Likewise.
59036         * tests/test-canonicalize.c: Likewise.
59037         * tests/test-carray_list.c: Likewise.
59038         * tests/test-ceilf.c: Likewise.
59039         * tests/test-ceill.c: Likewise.
59040         * tests/test-count-one-bits.c: Likewise.
59041         * tests/test-crc.c: Likewise.
59042         * tests/test-dirname.c: Likewise.
59043         * tests/test-fbufmode.c: Likewise.
59044         * tests/test-fcntl.c: Likewise.
59045         * tests/test-fflush.c: Likewise.
59046         * tests/test-floorf.c: Likewise.
59047         * tests/test-floorl.c: Likewise.
59048         * tests/test-fopen.c: Likewise.
59049         * tests/test-fprintf-posix.c: Likewise.
59050         * tests/test-fprintf-posix.h: Likewise.
59051         * tests/test-fpurge.c: Likewise.
59052         * tests/test-freadable.c: Likewise.
59053         * tests/test-freadahead.c: Likewise.
59054         * tests/test-freading.c: Likewise.
59055         * tests/test-freopen.c: Likewise.
59056         * tests/test-frexp.c: Likewise.
59057         * tests/test-frexpl.c: Likewise.
59058         * tests/test-fseek.c: Likewise.
59059         * tests/test-fseeko.c: Likewise.
59060         * tests/test-fseterr.c: Likewise.
59061         * tests/test-fstrcmp.c: Likewise.
59062         * tests/test-ftell.c: Likewise.
59063         * tests/test-ftello.c: Likewise.
59064         * tests/test-fwritable.c: Likewise.
59065         * tests/test-fwriting.c: Likewise.
59066         * tests/test-getaddrinfo.c: Likewise.
59067         * tests/test-getpass.c: Likewise.
59068         * tests/test-gettimeofday.c: Likewise.
59069         * tests/test-hmac-md5.c: Likewise.
59070         * tests/test-hmac-sha1.c: Likewise.
59071         * tests/test-iconv.c: Likewise.
59072         * tests/test-iconvme.c: Likewise.
59073         * tests/test-inttypes.c: Likewise.
59074         * tests/test-isnan.c: Likewise.
59075         * tests/test-isnanf.c: Likewise.
59076         * tests/test-isnanl-nolibm.c: Likewise.
59077         * tests/test-isnanl.c: Likewise.
59078         * tests/test-isnanl.h: Likewise.
59079         * tests/test-ldexpl.c: Likewise.
59080         * tests/test-linked_list.c: Likewise.
59081         * tests/test-linkedhash_list.c: Likewise.
59082         * tests/test-locale.c: Likewise.
59083         * tests/test-localename.c: Likewise.
59084         * tests/test-lock.c: Likewise.
59085         * tests/test-lseek.c: Likewise.
59086         * tests/test-malloca.c: Likewise.
59087         * tests/test-math.c: Likewise.
59088         * tests/test-mbscasecmp.c: Likewise.
59089         * tests/test-mbscasestr1.c: Likewise.
59090         * tests/test-mbscasestr2.c: Likewise.
59091         * tests/test-mbscasestr3.c: Likewise.
59092         * tests/test-mbscasestr4.c: Likewise.
59093         * tests/test-mbschr.c: Likewise.
59094         * tests/test-mbscspn.c: Likewise.
59095         * tests/test-mbsncasecmp.c: Likewise.
59096         * tests/test-mbspbrk.c: Likewise.
59097         * tests/test-mbspcasecmp.c: Likewise.
59098         * tests/test-mbsrchr.c: Likewise.
59099         * tests/test-mbsspn.c: Likewise.
59100         * tests/test-mbsstr1.c: Likewise.
59101         * tests/test-mbsstr2.c: Likewise.
59102         * tests/test-mbsstr3.c: Likewise.
59103         * tests/test-md5.c: Likewise.
59104         * tests/test-memmem.c: Likewise.
59105         * tests/test-netinet_in.c: Likewise.
59106         * tests/test-open.c: Likewise.
59107         * tests/test-printf-frexp.c: Likewise.
59108         * tests/test-printf-frexpl.c: Likewise.
59109         * tests/test-printf-posix.c: Likewise.
59110         * tests/test-printf-posix.h: Likewise.
59111         * tests/test-rbtree_list.c: Likewise.
59112         * tests/test-rbtree_oset.c: Likewise.
59113         * tests/test-rbtreehash_list.c: Likewise.
59114         * tests/test-read-file.c: Likewise.
59115         * tests/test-rijndael.c: Likewise.
59116         * tests/test-search.c: Likewise.
59117         * tests/test-signbit.c: Likewise.
59118         * tests/test-sleep.c: Likewise.
59119         * tests/test-snprintf-posix.c: Likewise.
59120         * tests/test-snprintf-posix.h: Likewise.
59121         * tests/test-snprintf.c: Likewise.
59122         * tests/test-sprintf-posix.c: Likewise.
59123         * tests/test-sprintf-posix.h: Likewise.
59124         * tests/test-stat-time.c: Likewise.
59125         * tests/test-stdbool.c: Likewise.
59126         * tests/test-stdint.c: Likewise.
59127         * tests/test-stdio.c: Likewise.
59128         * tests/test-stdlib.c: Likewise.
59129         * tests/test-stpncpy.c: Likewise.
59130         * tests/test-strcasestr.c: Likewise.
59131         * tests/test-striconv.c: Likewise.
59132         * tests/test-striconveh.c: Likewise.
59133         * tests/test-striconveha.c: Likewise.
59134         * tests/test-string.c: Likewise.
59135         * tests/test-sys_select.c: Likewise.
59136         * tests/test-sys_socket.c: Likewise.
59137         * tests/test-sys_stat.c: Likewise.
59138         * tests/test-sys_time.c: Likewise.
59139         * tests/test-sysexits.c: Likewise.
59140         * tests/test-time.c: Likewise.
59141         * tests/test-tls.c: Likewise.
59142         * tests/test-trunc.c: Likewise.
59143         * tests/test-truncf.c: Likewise.
59144         * tests/test-truncl.c: Likewise.
59145         * tests/test-unistd.c: Likewise.
59146         * tests/test-vasnprintf-posix.c: Likewise.
59147         * tests/test-vasnprintf-posix2.c: Likewise.
59148         * tests/test-vasnprintf.c: Likewise.
59149         * tests/test-vasprintf-posix.c: Likewise.
59150         * tests/test-vasprintf.c: Likewise.
59151         * tests/test-verify.c: Likewise.
59152         * tests/test-vfprintf-posix.c: Likewise.
59153         * tests/test-vprintf-posix.c: Likewise.
59154         * tests/test-vsnprintf-posix.c: Likewise.
59155         * tests/test-vsnprintf.c: Likewise.
59156         * tests/test-vsprintf-posix.c: Likewise.
59157         * tests/test-wchar.c: Likewise.
59158         * tests/test-wctype.c: Likewise.
59159         * tests/test-wcwidth.c: Likewise.
59160         * tests/test-xstrtol.c: Likewise.
59161         * tests/test-xvasprintf.c: Likewise.
59162         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59163         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59164         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59165         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59166         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59167         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59168         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59169         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59170         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59171         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59172         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59173         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59174         * tests/uniname/test-uninames.c: Likewise.
59175         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59176         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
59177         * tests/unistdio/test-u16-printf1.h: Likewise.
59178         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59179         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59180         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59181         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59182         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59183         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59184         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59185         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
59186         * tests/unistdio/test-u32-printf1.h: Likewise.
59187         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59188         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59189         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59190         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59191         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59192         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59193         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59194         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
59195         * tests/unistdio/test-u8-printf1.h: Likewise.
59196         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59197         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59198         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59199         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59200         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59201         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59202         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59203         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
59204         * tests/unistdio/test-ulc-printf1.h: Likewise.
59205         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59206         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59207         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59208         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59209         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59210         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59211         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59212         * tests/uniwidth/test-u16-width.c: Likewise.
59213         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59214         * tests/uniwidth/test-u32-width.c: Likewise.
59215         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59216         * tests/uniwidth/test-u8-width.c: Likewise.
59217         * tests/uniwidth/test-uc_width.c: Likewise.
59218         * config/srclist-update: Likewise.
59219         (fixlicense): Update to GPLv3+.
59220
59221         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59222         * tests/test-tsearch.c: Change copyright notice.
59223
59224         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59225         * lib/c-strcaseeq.h: Change copyright notice.
59226         * lib/streq.h: Likewise.
59227         * lib/uniconv.h: Likewise.
59228         * lib/uniconv/u-conv-from-enc.h: Likewise.
59229         * lib/uniconv/u-conv-to-enc.h: Likewise.
59230         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59231         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59232         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59233         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59234         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59235         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59236         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59237         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59238         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59239         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59240         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59241         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59242         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59243         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59244         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59245         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59246         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59247         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59248         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59249         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59250         * lib/uniname.h: Likewise.
59251         * lib/uniname/uniname.c: Likewise.
59252         * lib/unistdio.h: Likewise.
59253         * lib/unistdio/u-asnprintf.h: Likewise.
59254         * lib/unistdio/u-asprintf.h: Likewise.
59255         * lib/unistdio/u-printf-args.c: Likewise.
59256         * lib/unistdio/u-printf-args.h: Likewise.
59257         * lib/unistdio/u-printf-parse.h: Likewise.
59258         * lib/unistdio/u-snprintf.h: Likewise.
59259         * lib/unistdio/u-sprintf.h: Likewise.
59260         * lib/unistdio/u-vasprintf.h: Likewise.
59261         * lib/unistdio/u-vsnprintf.h: Likewise.
59262         * lib/unistdio/u-vsprintf.h: Likewise.
59263         * lib/unistdio/u16-asnprintf.c: Likewise.
59264         * lib/unistdio/u16-asprintf.c: Likewise.
59265         * lib/unistdio/u16-printf-parse.c: Likewise.
59266         * lib/unistdio/u16-snprintf.c: Likewise.
59267         * lib/unistdio/u16-sprintf.c: Likewise.
59268         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59269         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59270         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59271         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59272         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59273         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59274         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59275         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59276         * lib/unistdio/u16-vasnprintf.c: Likewise.
59277         * lib/unistdio/u16-vasprintf.c: Likewise.
59278         * lib/unistdio/u16-vsnprintf.c: Likewise.
59279         * lib/unistdio/u16-vsprintf.c: Likewise.
59280         * lib/unistdio/u32-asnprintf.c: Likewise.
59281         * lib/unistdio/u32-asprintf.c: Likewise.
59282         * lib/unistdio/u32-printf-parse.c: Likewise.
59283         * lib/unistdio/u32-snprintf.c: Likewise.
59284         * lib/unistdio/u32-sprintf.c: Likewise.
59285         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59286         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59287         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59288         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59289         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59290         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59291         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59292         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59293         * lib/unistdio/u32-vasnprintf.c: Likewise.
59294         * lib/unistdio/u32-vasprintf.c: Likewise.
59295         * lib/unistdio/u32-vsnprintf.c: Likewise.
59296         * lib/unistdio/u32-vsprintf.c: Likewise.
59297         * lib/unistdio/u8-asnprintf.c: Likewise.
59298         * lib/unistdio/u8-asprintf.c: Likewise.
59299         * lib/unistdio/u8-printf-parse.c: Likewise.
59300         * lib/unistdio/u8-snprintf.c: Likewise.
59301         * lib/unistdio/u8-sprintf.c: Likewise.
59302         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59303         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59304         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59305         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59306         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59307         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59308         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59309         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59310         * lib/unistdio/u8-vasnprintf.c: Likewise.
59311         * lib/unistdio/u8-vasprintf.c: Likewise.
59312         * lib/unistdio/u8-vsnprintf.c: Likewise.
59313         * lib/unistdio/u8-vsprintf.c: Likewise.
59314         * lib/unistdio/ulc-asnprintf.c: Likewise.
59315         * lib/unistdio/ulc-asprintf.c: Likewise.
59316         * lib/unistdio/ulc-printf-parse.c: Likewise.
59317         * lib/unistdio/ulc-snprintf.c: Likewise.
59318         * lib/unistdio/ulc-sprintf.c: Likewise.
59319         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59320         * lib/unistdio/ulc-vasprintf.c: Likewise.
59321         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59322         * lib/unistdio/ulc-vsprintf.c: Likewise.
59323         * lib/unistr.h: Likewise.
59324         * lib/unistr/u-cpy-alloc.h: Likewise.
59325         * lib/unistr/u-cpy.h: Likewise.
59326         * lib/unistr/u-endswith.h: Likewise.
59327         * lib/unistr/u-move.h: Likewise.
59328         * lib/unistr/u-set.h: Likewise.
59329         * lib/unistr/u-startswith.h: Likewise.
59330         * lib/unistr/u-stpcpy.h: Likewise.
59331         * lib/unistr/u-stpncpy.h: Likewise.
59332         * lib/unistr/u-strcat.h: Likewise.
59333         * lib/unistr/u-strcpy.h: Likewise.
59334         * lib/unistr/u-strcspn.h: Likewise.
59335         * lib/unistr/u-strdup.h: Likewise.
59336         * lib/unistr/u-strlen.h: Likewise.
59337         * lib/unistr/u-strncat.h: Likewise.
59338         * lib/unistr/u-strncpy.h: Likewise.
59339         * lib/unistr/u-strnlen.h: Likewise.
59340         * lib/unistr/u-strpbrk.h: Likewise.
59341         * lib/unistr/u-strspn.h: Likewise.
59342         * lib/unistr/u-strstr.h: Likewise.
59343         * lib/unistr/u-strtok.h: Likewise.
59344         * lib/unistr/u16-check.c: Likewise.
59345         * lib/unistr/u16-chr.c: Likewise.
59346         * lib/unistr/u16-cmp.c: Likewise.
59347         * lib/unistr/u16-cpy-alloc.c: Likewise.
59348         * lib/unistr/u16-cpy.c: Likewise.
59349         * lib/unistr/u16-endswith.c: Likewise.
59350         * lib/unistr/u16-mblen.c: Likewise.
59351         * lib/unistr/u16-mbsnlen.c: Likewise.
59352         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59353         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59354         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59355         * lib/unistr/u16-mbtouc.c: Likewise.
59356         * lib/unistr/u16-mbtoucr.c: Likewise.
59357         * lib/unistr/u16-move.c: Likewise.
59358         * lib/unistr/u16-next.c: Likewise.
59359         * lib/unistr/u16-prev.c: Likewise.
59360         * lib/unistr/u16-set.c: Likewise.
59361         * lib/unistr/u16-startswith.c: Likewise.
59362         * lib/unistr/u16-stpcpy.c: Likewise.
59363         * lib/unistr/u16-stpncpy.c: Likewise.
59364         * lib/unistr/u16-strcat.c: Likewise.
59365         * lib/unistr/u16-strchr.c: Likewise.
59366         * lib/unistr/u16-strcmp.c: Likewise.
59367         * lib/unistr/u16-strcpy.c: Likewise.
59368         * lib/unistr/u16-strcspn.c: Likewise.
59369         * lib/unistr/u16-strdup.c: Likewise.
59370         * lib/unistr/u16-strlen.c: Likewise.
59371         * lib/unistr/u16-strmblen.c: Likewise.
59372         * lib/unistr/u16-strmbtouc.c: Likewise.
59373         * lib/unistr/u16-strncat.c: Likewise.
59374         * lib/unistr/u16-strncmp.c: Likewise.
59375         * lib/unistr/u16-strncpy.c: Likewise.
59376         * lib/unistr/u16-strnlen.c: Likewise.
59377         * lib/unistr/u16-strpbrk.c: Likewise.
59378         * lib/unistr/u16-strrchr.c: Likewise.
59379         * lib/unistr/u16-strspn.c: Likewise.
59380         * lib/unistr/u16-strstr.c: Likewise.
59381         * lib/unistr/u16-strtok.c: Likewise.
59382         * lib/unistr/u16-to-u32.c: Likewise.
59383         * lib/unistr/u16-to-u8.c: Likewise.
59384         * lib/unistr/u16-uctomb-aux.c: Likewise.
59385         * lib/unistr/u16-uctomb.c: Likewise.
59386         * lib/unistr/u32-check.c: Likewise.
59387         * lib/unistr/u32-chr.c: Likewise.
59388         * lib/unistr/u32-cmp.c: Likewise.
59389         * lib/unistr/u32-cpy-alloc.c: Likewise.
59390         * lib/unistr/u32-cpy.c: Likewise.
59391         * lib/unistr/u32-endswith.c: Likewise.
59392         * lib/unistr/u32-mblen.c: Likewise.
59393         * lib/unistr/u32-mbsnlen.c: Likewise.
59394         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59395         * lib/unistr/u32-mbtouc.c: Likewise.
59396         * lib/unistr/u32-mbtoucr.c: Likewise.
59397         * lib/unistr/u32-move.c: Likewise.
59398         * lib/unistr/u32-next.c: Likewise.
59399         * lib/unistr/u32-prev.c: Likewise.
59400         * lib/unistr/u32-set.c: Likewise.
59401         * lib/unistr/u32-startswith.c: Likewise.
59402         * lib/unistr/u32-stpcpy.c: Likewise.
59403         * lib/unistr/u32-stpncpy.c: Likewise.
59404         * lib/unistr/u32-strcat.c: Likewise.
59405         * lib/unistr/u32-strchr.c: Likewise.
59406         * lib/unistr/u32-strcmp.c: Likewise.
59407         * lib/unistr/u32-strcpy.c: Likewise.
59408         * lib/unistr/u32-strcspn.c: Likewise.
59409         * lib/unistr/u32-strdup.c: Likewise.
59410         * lib/unistr/u32-strlen.c: Likewise.
59411         * lib/unistr/u32-strmblen.c: Likewise.
59412         * lib/unistr/u32-strmbtouc.c: Likewise.
59413         * lib/unistr/u32-strncat.c: Likewise.
59414         * lib/unistr/u32-strncmp.c: Likewise.
59415         * lib/unistr/u32-strncpy.c: Likewise.
59416         * lib/unistr/u32-strnlen.c: Likewise.
59417         * lib/unistr/u32-strpbrk.c: Likewise.
59418         * lib/unistr/u32-strrchr.c: Likewise.
59419         * lib/unistr/u32-strspn.c: Likewise.
59420         * lib/unistr/u32-strstr.c: Likewise.
59421         * lib/unistr/u32-strtok.c: Likewise.
59422         * lib/unistr/u32-to-u16.c: Likewise.
59423         * lib/unistr/u32-to-u8.c: Likewise.
59424         * lib/unistr/u32-uctomb.c: Likewise.
59425         * lib/unistr/u8-check.c: Likewise.
59426         * lib/unistr/u8-chr.c: Likewise.
59427         * lib/unistr/u8-cmp.c: Likewise.
59428         * lib/unistr/u8-cpy-alloc.c: Likewise.
59429         * lib/unistr/u8-cpy.c: Likewise.
59430         * lib/unistr/u8-endswith.c: Likewise.
59431         * lib/unistr/u8-mblen.c: Likewise.
59432         * lib/unistr/u8-mbsnlen.c: Likewise.
59433         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59434         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59435         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59436         * lib/unistr/u8-mbtouc.c: Likewise.
59437         * lib/unistr/u8-mbtoucr.c: Likewise.
59438         * lib/unistr/u8-move.c: Likewise.
59439         * lib/unistr/u8-next.c: Likewise.
59440         * lib/unistr/u8-prev.c: Likewise.
59441         * lib/unistr/u8-set.c: Likewise.
59442         * lib/unistr/u8-startswith.c: Likewise.
59443         * lib/unistr/u8-stpcpy.c: Likewise.
59444         * lib/unistr/u8-stpncpy.c: Likewise.
59445         * lib/unistr/u8-strcat.c: Likewise.
59446         * lib/unistr/u8-strchr.c: Likewise.
59447         * lib/unistr/u8-strcmp.c: Likewise.
59448         * lib/unistr/u8-strcpy.c: Likewise.
59449         * lib/unistr/u8-strcspn.c: Likewise.
59450         * lib/unistr/u8-strdup.c: Likewise.
59451         * lib/unistr/u8-strlen.c: Likewise.
59452         * lib/unistr/u8-strmblen.c: Likewise.
59453         * lib/unistr/u8-strmbtouc.c: Likewise.
59454         * lib/unistr/u8-strncat.c: Likewise.
59455         * lib/unistr/u8-strncmp.c: Likewise.
59456         * lib/unistr/u8-strncpy.c: Likewise.
59457         * lib/unistr/u8-strnlen.c: Likewise.
59458         * lib/unistr/u8-strpbrk.c: Likewise.
59459         * lib/unistr/u8-strrchr.c: Likewise.
59460         * lib/unistr/u8-strspn.c: Likewise.
59461         * lib/unistr/u8-strstr.c: Likewise.
59462         * lib/unistr/u8-strtok.c: Likewise.
59463         * lib/unistr/u8-to-u16.c: Likewise.
59464         * lib/unistr/u8-to-u32.c: Likewise.
59465         * lib/unistr/u8-uctomb-aux.c: Likewise.
59466         * lib/unistr/u8-uctomb.c: Likewise.
59467         * lib/unitypes.h: Likewise.
59468         * lib/uniwidth.h: Likewise.
59469         * lib/uniwidth/cjk.h: Likewise.
59470         * lib/uniwidth/u16-strwidth.c: Likewise.
59471         * lib/uniwidth/u16-width.c: Likewise.
59472         * lib/uniwidth/u32-strwidth.c: Likewise.
59473         * lib/uniwidth/u32-width.c: Likewise.
59474         * lib/uniwidth/u8-strwidth.c: Likewise.
59475         * lib/uniwidth/u8-width.c: Likewise.
59476         * lib/uniwidth/width.c: Likewise.
59477
59478 2007-10-07  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59481         The file is still under LGPL (see modules/inttypes).
59482
59483 2007-10-06  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/trunc (Dependencies): Add 'extensions'.
59486         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59487         Reported by Ben Pfaff <blp@gnu.org>.
59488
59489 2007-10-06  Bruno Haible  <bruno@clisp.org>
59490
59491         * modules/freopen-tests: New file.
59492         * tests/test-freopen.c: New file.
59493
59494         * modules/fopen-tests: New file.
59495         * tests/test-fopen.c: New file.
59496
59497         * modules/fopen: New file.
59498         * lib/fopen.c: New file.
59499         * m4/fopen.m4: New file.
59500         * modules/freopen: New file.
59501         * lib/freopen.c: New file.
59502         * m4/freopen.m4: New file.
59503         * lib/stdio.in.h (fopen, freopen): New declarations.
59504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59505         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59506         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59507         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59508         * doc/functions/fopen.texi: Mention the 'fopen' module.
59509         * doc/functions/freopen.texi: Mention the 'freopen' module.
59510
59511 2007-10-06  Bruno Haible  <bruno@clisp.org>
59512
59513         * modules/open-tests: New file.
59514         * tests/test-open.c: New file.
59515
59516         * modules/open: New file.
59517         * lib/open.c: New file.
59518         * m4/open.m4: New file.
59519         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59520         lib/open.c does.
59521         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59522         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59523         macros.
59524         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59525         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59526         REPLACE_OPEN.
59527         * doc/functions/open.texi: Mention the 'open' module.
59528
59529 2007-10-04  Bruno Haible  <bruno@clisp.org>
59530
59531         * modules/ceill-tests: New file.
59532         * tests/test-ceill.c: New file.
59533
59534         * modules/ceill: New file.
59535         * lib/ceill.c: Replace entire file.
59536         * m4/ceill.m4: New file.
59537         * lib/math.in.h (ceill): Replace declaration.
59538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59539         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59540         * doc/functions/ceill.texi: Mention the 'ceill' module.
59541         * modules/mathl (Files): Remove lib/ceill.c.
59542         (Depends-on): Add ceill.
59543
59544 2007-10-04  Bruno Haible  <bruno@clisp.org>
59545
59546         * modules/ceilf-tests: New file.
59547         * tests/test-ceilf.c: New file.
59548
59549         * modules/ceilf: New file.
59550         * lib/ceil.c: New file.
59551         * lib/ceilf.c: New file.
59552         * m4/ceilf.m4: New file.
59553         * lib/math.in.h (ceilf): New declaration.
59554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59555         HAVE_DECL_CEILF.
59556         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59557         HAVE_DECL_CEILF.
59558         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59559
59560 2007-10-04  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/floorl-tests: New file.
59563         * tests/test-floorl.c: New file.
59564
59565         * modules/floorl: New file.
59566         * lib/floorl.c: Replace entire file.
59567         * m4/floorl.m4: New file.
59568         * lib/math.in.h (floorl): Replace declaration.
59569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59570         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59571         * doc/functions/floorl.texi: Mention the 'floorl' module.
59572         * modules/mathl (Files): Remove lib/floorl.c.
59573         (Depends-on): Add floorl.
59574
59575 2007-10-04  Bruno Haible  <bruno@clisp.org>
59576
59577         * modules/floorf-tests: New file.
59578         * tests/test-floorf.c: New file.
59579
59580         * modules/floorf: New file.
59581         * lib/floor.c: New file.
59582         * lib/floorf.c: New file.
59583         * m4/floorf.m4: New file.
59584         * lib/math.in.h (floorf): New declaration.
59585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59586         HAVE_DECL_FLOORF.
59587         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59588         HAVE_DECL_FLOORF.
59589         * doc/functions/floorf.texi: Mention the 'floorf' module.
59590
59591 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59592             Bruno Haible  <bruno@clisp.org>
59593
59594         Advertise for the Git server instead of the CVS server.
59595         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59596         repository instead of the CVS one.
59597         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59598         about all VCS systems generically.
59599         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59600
59601 2007-10-04  Bruno Haible  <bruno@clisp.org>
59602
59603         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59604         means.
59605         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59606
59607 2007-10-04  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/truncl-tests: New file.
59610         * tests/test-truncl.c: New file.
59611
59612         * modules/truncl: New file.
59613         * lib/truncl.c: New file.
59614         * m4/truncl.m4: New file.
59615         * lib/math.in.h (truncl): New declaration.
59616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59617         HAVE_DECL_TRUNCL.
59618         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59619         HAVE_DECL_TRUNCL.
59620         * doc/functions/truncl.texi: Mention the 'truncl' module.
59621
59622 2007-10-04  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/truncf-tests: New file.
59625         * tests/test-truncf.c: New file.
59626
59627         * modules/truncf: New file.
59628         * lib/trunc.c: Make paramerizable through USE_* macros.
59629         * lib/truncf.c: New file.
59630         * m4/truncf.m4: New file.
59631         * lib/math.in.h (truncf): New declaration.
59632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59633         HAVE_DECL_TRUNCF.
59634         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59635         HAVE_DECL_TRUNCF.
59636         * doc/functions/truncf.texi: Mention the 'truncf' module.
59637
59638 2007-10-03  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59641         augmentation also for tests modules.
59642         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59643         * modules/atexit-tests (Makefile.am): Likewise.
59644         * modules/binary-io-tests (Makefile.am): Likewise.
59645         * modules/c-strcase-tests (Makefile.am): Likewise.
59646         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59647         * modules/canonicalize-tests (Makefile.am): Likewise.
59648         * modules/closein-tests (Makefile.am): Likewise.
59649         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59650         * modules/freadahead-tests (Makefile.am): Likewise.
59651         * modules/fseek-tests (Makefile.am): Likewise.
59652         * modules/fseeko-tests (Makefile.am): Likewise.
59653         * modules/ftell-tests (Makefile.am): Likewise.
59654         * modules/ftello-tests (Makefile.am): Likewise.
59655         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59656         * modules/isnanl-tests (Makefile.am): Likewise.
59657         * modules/lseek-tests (Makefile.am): Likewise.
59658         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59659         * modules/mbscasestr-tests (Makefile.am): Likewise.
59660         * modules/mbschr-tests (Makefile.am): Likewise.
59661         * modules/mbscspn-tests (Makefile.am): Likewise.
59662         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59663         * modules/mbspbrk-tests (Makefile.am): Likewise.
59664         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59665         * modules/mbsrchr-tests (Makefile.am): Likewise.
59666         * modules/mbsspn-tests (Makefile.am): Likewise.
59667         * modules/mbsstr-tests (Makefile.am): Likewise.
59668         * modules/printf-posix-tests (Makefile.am): Likewise.
59669         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59670         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59671         * modules/tsearch-tests (Makefile.am): Likewise.
59672         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59673         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59674         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59675         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59676         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59677         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59678         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59679         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59680         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59681         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59682         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59683         * modules/xstrtol-tests (Makefile.am): Likewise.
59684         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59685         * modules/yesno-tests (Makefile.am): Likewise.
59686
59687 2007-10-03  Bruno Haible  <bruno@clisp.org>
59688
59689         * modules/trunc-tests: New file.
59690         * tests/test-trunc.c: New file.
59691
59692         * modules/trunc: New file.
59693         * lib/trunc.c: New file.
59694         * m4/trunc.m4: New file.
59695         * lib/math.in.h (trunc): New declaration.
59696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59697         HAVE_DECL_TRUNC.
59698         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59699         HAVE_DECL_TRUNC.
59700         * doc/functions/trunc.texi: Mention the 'trunc' module.
59701
59702 2007-10-03  Bruno Haible  <bruno@clisp.org>
59703
59704         * tests/test-fpending.c: New file, mostly copied
59705         from coreutils/lib/t-fpending.c.
59706         * modules/fpending-tests: New file.
59707
59708 2007-10-03  Bruno Haible  <bruno@clisp.org>
59709
59710         Port the stdio extensions to QNX (untested).
59711         * lib/fseterr.c (fseterr): Add support for QNX.
59712         * lib/fbufmode.c (fbufmode): Likewise.
59713         * lib/freadable.c (freadable): Likewise.
59714         * lib/fwritable.c (fwritable): Likewise.
59715         * lib/freading.c (freading): Likewise.
59716         * lib/fwriting.c (fwriting): Likewise.
59717         * lib/freadahead.c (freadahed): Likewise.
59718         * lib/fpurge.c (fpurge): Likewise.
59719         * lib/fseeko.c (rpl_fseeko): Likewise.
59720
59721 2007-10-03  Bruno Haible  <bruno@clisp.org>
59722             Jim Meyering  <jim@meyering.net>
59723             Eric Blake  <ebb9@byu.net>
59724
59725         * doc/relocatable.texi: Use @command instead of @program.
59726
59727 2007-10-02  Jim Meyering  <jim@meyering.net>
59728
59729         Perform one more "_.h" -> ".in.h" substitution.
59730         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59731         instead of unistd_.h here, too.
59732
59733 2007-10-01  Bruno Haible  <bruno@clisp.org>
59734
59735         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59736         Needed for the alloca-opt module.
59737
59738 2007-09-30  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59741         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59742         alloca_.h.
59743         * lib/argz.in.h: Renamed from lib/argz_.h.
59744         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59745         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59746         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59747         byteswap_.h.
59748         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59749         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59750         dirent_.h.
59751         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59752         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59753         fcntl_.h.
59754         * lib/float.in.h: Renamed from lib/float_.h.
59755         * modules/float (Files, Makefile.am): Use float.in.h instead of
59756         float_.h.
59757         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59758         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59759         fnmatch_.h.
59760         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59761         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59762         getopt_.h.
59763         * lib/glob.in.h: Renamed from lib/glob_.h.
59764         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59765         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59766         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59767         iconv_.h.
59768         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59769         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59770         inttypes_.h.
59771         * lib/locale.in.h: Renamed from lib/locale_.h.
59772         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59773         locale_.h.
59774         * lib/math.in.h: Renamed from lib/math_.h.
59775         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59776         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59777         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59778         of netinet_in_.h. Add dependency.
59779         * lib/poll.in.h: Renamed from lib/poll_.h.
59780         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59781         * lib/search.in.h: Renamed from lib/search_.h.
59782         * modules/search (Files, Makefile.am): Use search.in.h instead of
59783         search_.h.
59784         * lib/signal.in.h: Renamed from lib/signal_.h.
59785         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59786         _signal.h.
59787         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59788         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59789         stdbool_.h.
59790         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59791         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59792         stdint_.h.
59793         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59794         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59795         stdio_.h.
59796         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59797         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59798         stdlib_.h.
59799         * lib/string.in.h: Renamed from lib/string_.h.
59800         * modules/string (Files, Makefile.am): Use string.in.h instead of
59801         string_.h.
59802         * doc/gnulib-tool.texi (Initial import): Update.
59803         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59804         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59805         of sys_select_.h. Add dependency.
59806         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59807         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59808         of sys_socket_.h.
59809         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59810         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59811         sys_stat_.h.
59812         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59813         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59814         sys_time_.h.
59815         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59816         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59817         sysexits_.h.
59818         * lib/time.in.h: Renamed from lib/time_.h.
59819         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59820         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59821         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59822         unistd_.h.
59823         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59824         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59825         wchar_.h.
59826         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59827         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59828         wctype_.h.
59829         * build-aux/bootstrap (slurp): Update.
59830         * lib/.cppi-disable: Update.
59831
59832 2007-09-30  Bruno Haible  <bruno@clisp.org>
59833
59834         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59835         Needed on BeOS.
59836
59837 2007-09-30  Bruno Haible  <bruno@clisp.org>
59838
59839         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59840
59841 2007-09-29  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59844
59845 2007-09-29  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59848         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59849         * build-aux/install-reloc: Compile also areadlink.c.
59850         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59851
59852 2007-09-29  Bruno Haible  <bruno@clisp.org>
59853
59854         * gnulib-tool (func_emit_initmacro_done): Indentation.
59855
59856 2007-09-29  Bruno Haible  <bruno@clisp.org>
59857
59858         * README: Add CVS checkout update instructions.
59859         Info from Bob Proulx <bob@proulx.com>.
59860
59861 2007-09-28  Eric Blake  <ebb9@byu.net>
59862
59863         Provide move-if-change.
59864         * build-aux/move-if-change: New file, based on best practice
59865         rather than any canonical upstream location.
59866
59867 2007-09-28  Jim Meyering  <jim@meyering.net>
59868
59869         Fix canonicalize loop-detection corner case.
59870         Do not attempt to stat the symlink values stored via seen_triple.
59871         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59872         on linux-2.6.18, (but not 2.6.22).
59873         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59874         triple_compare.  The former compares dev,ino,filename, while the latter
59875         would actually stat dirname(filename) when dev and ino were equal.
59876         * lib/hash-triple.c: Install <string.h>.
59877         (STREQ): Define.
59878         (triple_compare_ino_str): New function.
59879         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59880
59881 2007-09-28  Eric Blake  <ebb9@byu.net>
59882
59883         Enforce that AC_REPLACE_FUNCS files exist.
59884         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59885         override check for typos.
59886
59887         Fix test-closein on Solaris 10.
59888         * tests/test-closein.c (main): Don't assume stdin can be inherited
59889         closed on all systems.
59890         * tests/test-closein.sh: Likewise.
59891         Reported by Piotr Tarnowski.
59892
59893 2007-09-28  Jim Meyering  <jim@meyering.net>
59894
59895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59896
59897 2007-09-27  Jim Meyering  <jim@meyering.net>
59898
59899         canonicalize: Avoid a false-positive cycle failure.
59900         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59901         Sort.  Remove cycle-check.
59902         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59903         not cycle-check.h.
59904         (seen_triple): New function.
59905         (canonicalize_filename_mode): Use it instead of cycle-check.
59906         * tests/test-canonicalize.c: Add a test for this bug.
59907         * tests/test-canonicalize.sh: Set up and run the test.
59908
59909         New module, file-set, from coreutils.
59910         * modules/file-set: Define it.
59911         * lib/file-set.c, lib/file-set.h: Implement.
59912
59913         New module, hash-triple, from coreutils.
59914         * modules/hash-triple: Define it.
59915         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59916
59917 2007-09-25  Eric Blake  <ebb9@byu.net>
59918
59919         Fix strerror on Interix.
59920         * lib/string_.h (strerror): Declare replacement.
59921         * doc/functions/strerror.texi (strerror): Document the Interix
59922         shortcoming.
59923         * modules/string (Makefile.am): Support new hooks.
59924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59925         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59926         gl_FUNC_STRERROR_SEPARATE.
59927         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59928         * lib/strerror.c (rpl_strerror): Provide replacement.
59929         * modules/strerror (Depends-on): Add string.
59930         (configure.ac): Detect use of module.
59931         * tests/test-strerror.c: New file.
59932         * modules/strerror-tests: New test module.
59933         * modules/argp (Depends-on): Add strerror.
59934         * modules/error (Depends-on): Likewise.
59935         Reported by Martin Koeppe.
59936
59937 2007-09-24  Bruno Haible  <bruno@clisp.org>
59938
59939         * README: Update git instructions.
59940
59941 2007-09-24  Eric Blake  <ebb9@byu.net>
59942
59943         Revert fpending breakage from 2007-09-08.
59944         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59945         __fpending.c.
59946
59947 2007-09-24  Jim Meyering  <jim@meyering.net>
59948
59949         filenamecat.c: Add a test.
59950         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59951         showing how the function works when DIR is the empty string.
59952
59953 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59954
59955         * tests/test-canonicalize.sh: Turn on executable bit.
59956
59957 2007-09-19  Eric Blake  <ebb9@byu.net>
59958
59959         * README: Update CVS instructions.
59960
59961 2007-09-18  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/areadlink: New file.
59964         * lib/areadlink.h (areadlink): New declaration.
59965         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59966
59967 2007-09-17  Jim Meyering  <jim@meyering.net>
59968
59969         * lib/savewd.c (ESTALE) [!defined]: Define.
59970         Reported to be required on Interix by Martin Koeppe.
59971
59972 2007-09-17  Bruno Haible  <bruno@clisp.org>
59973
59974         * gnulib-tool (func_version): Use $version.
59975
59976 2007-09-16  Bruno Haible  <bruno@clisp.org>
59977
59978         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59979         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59980         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59981         Reported by Greg Schafer <gschafer@zip.com.au>.
59982
59983 2007-09-15  Bruno Haible  <bruno@clisp.org>
59984
59985         * gnulib-tool (sed): Try a little harder to make bash understand the
59986         alias.
59987         Reported by Bruce Korb <bruce.korb@gmail.com>.
59988
59989 2007-09-13  Eric Blake  <ebb9@byu.net>
59990
59991         * ChangeLog: Remove conflict markers.
59992
59993 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59994
59995         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59996         Reported by Bruno Haible <bruno@clisp.org>.
59997
59998 2007-09-12  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
60001         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
60002         is not defined.
60003
60004 2007-09-12  Eric Blake  <ebb9@byu.net>
60005
60006         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
60007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
60008         Autoconf definition.
60009         * modules/euidaccess (Depends-on): Add extensions, for
60010         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
60011         * modules/fnmatch (Depends-on): Likewise.
60012         * modules/getaddrinfo (Depends-on): Likewise.
60013         * modules/getdelim (Depends-on): Likewise.
60014         * modules/getline (Depends-on): Likewise.
60015         * modules/getsubopt (Depends-on): Likewise.
60016         * modules/gettext (Depends-on): Likewise.
60017         * modules/group-member (Depends-on): Likewise.
60018         * modules/mbchar (Depends-on): Likewise.
60019         * modules/memmem (Depends-on): Likewise.
60020         * modules/mempcpy (Depends-on): Likewise.
60021         * modules/memrchr (Depends-on): Likewise.
60022         * modules/pagealign_alloc (Depends-on): Likewise.
60023         * modules/readutmp (Depends-on): Likewise.
60024         * modules/stpcpy (Depends-on): Likewise.
60025         * modules/stpncpy (Depends-on): Likewise.
60026         * modules/strchrnul (Depends-on): Likewise.
60027         * modules/strndup (Depends-on): Likewise.
60028         * modules/strsep (Depends-on): Likewise.
60029         * modules/strverscmp (Depends-on): Likewise.
60030         * modules/vasprintf (Depends-on): Likewise.
60031         * modules/wcwidth (Depends-on): Likewise.
60032         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
60033         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
60034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
60035         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
60036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60038         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
60039         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60040         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
60041         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
60042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60043         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60044         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60045         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60046         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
60047         * m4/readutmp.m4 (gl_READUTMP): Likewise.
60048         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60049         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60050         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60051         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60053         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60054         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60055         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
60056         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
60057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60058         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
60059         so that lock.m4 can be used in gettext without extensions module.
60060
60061 2007-09-11  Bruno Haible  <bruno@clisp.org>
60062
60063         * m4/isc-posix.m4: Remove file.
60064         Suggested by Eric Blake.
60065
60066 2007-09-11  Eric Blake  <ebb9@byu.net>
60067
60068         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
60069
60070 2007-09-10  Bruno Haible  <bruno@clisp.org>
60071
60072         * posix-modules: Fix typo in error message.
60073         Reported by Matt <mkraai@beckman.com>.
60074
60075 2007-09-09  Bruno Haible  <bruno@clisp.org>
60076
60077         * doc/functions/getdelim.texi: Update list of platforms lacking the
60078         function.
60079         * doc/functions/getline.texi: Likewise.
60080
60081 2007-09-09  Jim Meyering  <jim@meyering.net>
60082
60083         * lib/hash.c (hash_initialize): Detect calloc failure.
60084         Reported by Bruno Haible.
60085
60086 2007-09-09  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
60089         malloc or realloc fails.
60090
60091 2007-09-09  Bruno Haible  <bruno@clisp.org>
60092
60093         * modules/getcwd (Depends-on): Add malloc-posix.
60094         * modules/glob (Depends-on): Likewise.
60095         * modules/putenv (Depends-on): Likewise.
60096         * modules/strdup (Depends-on): Likewise.
60097         * modules/getdelim (Depends-on): Add realloc-posix.
60098         * modules/read-file (Depends-on): Likewise.
60099
60100 2007-09-09  Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
60103         (gl_FUNC_MALLOC_POSIX): Require it.
60104         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
60105         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
60106         * modules/realloc (Files): Add m4/malloc.m4.
60107         * modules/calloc (Files): Likewise.
60108
60109 2007-09-09  Bruno Haible  <bruno@clisp.org>
60110
60111         * modules/malloc-posix: New file.
60112         * modules/malloc (Depends-on): Add malloc-posix.
60113         * lib/malloc.c: Include errno.h.
60114         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
60115         and a POSIX-compatible malloc into a single function. Set ENOMEM
60116         when returning NULL.
60117         * m4/malloc.m4: New file.
60118         * doc/functions/malloc.texi: Mention the malloc-posix module.
60119         * lib/stdlib_.h (malloc): New declaration.
60120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60121         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
60122         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
60123         and HAVE_MALLOC_POSIX.
60124
60125 2007-09-09  Bruno Haible  <bruno@clisp.org>
60126
60127         * modules/realloc-posix: New file.
60128         * modules/realloc (Depends-on): Add realloc-posix.
60129         * lib/realloc.c: Include errno.h.
60130         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
60131         and a POSIX-compatible realloc into a single function. Set ENOMEM
60132         when returning NULL.
60133         * m4/realloc.m4: New file.
60134         * doc/functions/realloc.texi: Mention the realloc-posix module.
60135         * lib/stdlib_.h (realloc): New declaration.
60136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60137         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
60138         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
60139         and HAVE_REALLOC_POSIX.
60140
60141 2007-09-09  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/calloc-posix: New file.
60144         * modules/calloc (Depends-on): Add calloc-posix.
60145         * lib/calloc.c: Include errno.h.
60146         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
60147         and a POSIX-compatible calloc into a single function. Set ENOMEM
60148         when returning NULL.
60149         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
60150         * doc/functions/calloc.texi: Mention the calloc-posix module.
60151         * lib/stdlib_.h (calloc): New declaration.
60152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60153         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
60154         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
60155         and HAVE_CALLOC_POSIX.
60156
60157 2007-09-09  Bruno Haible  <bruno@clisp.org>
60158
60159         Allow for modules to show an arbitrary notice.
60160         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
60161         * gnulib-tool: New option --extract-notice.
60162         (func_usage): Document it.
60163         (sed_extract_prog): Update.
60164         (func_get_notice): New function.
60165         (func_modules_notice): New function.
60166         (func_import, func_create_testdir): Invoke it.
60167         Suggested by Jim Meyering.
60168
60169 2007-09-09  Bruno Haible  <bruno@clisp.org>
60170
60171         * gnulib-tool: New options --verbose, --quiet.
60172         (func_usage): Document them.
60173         (verbose): New variable.
60174         (func_execute_command): New function.
60175         (func_import): Don't show the module list and the file list if
60176         $verbose < 0.
60177         (func_create_testdir): Likewise. Use func_execute_command.
60178         (func_create_megatestdir): Use func_execute_command.
60179
60180 2007-09-08  Bruno Haible  <bruno@clisp.org>
60181
60182         * gnulib-tool (func_import): Prefer rsync over wget when available,
60183         for fetching the PO files.
60184
60185 2007-09-08  Bruno Haible  <bruno@clisp.org>
60186
60187         * posix-modules: New file. Portions copied from gnulib-tool.
60188         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
60189
60190 2007-09-08  Jim Meyering  <jim@meyering.net>
60191
60192         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
60193         * lib/fpending.h: Rename from __fpending.h.
60194         * lib/fpending.c: Rename from __fpending.c.
60195         Include "fpending.h", not "__fpending.h".
60196         * lib/__fpending.h, lib/__fpending.c: Remove files.
60197         * modules/fpending (Files): Reflect new file names.
60198         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
60199
60200 2007-09-08  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/inttypes-h.m4: Remove stub file.
60203
60204 2007-09-07  Simon Josefsson  <simon@josefsson.org>
60205
60206         * doc/headers/stdint.texi: Discuss #include_next issue.
60207
60208 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * build-aux/bootstrap: Remove obsolete comment about wget --help.
60211
60212 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60213
60214         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
60215         in variable name.
60216
60217 2007-09-03  Jim Meyering  <jim@meyering.net>
60218
60219         New module: git-version-gen.
60220         * modules/git-version-gen: New file.
60221
60222         Import changes from coreutils for bootstrap script.
60223
60224         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60225
60226         bootstrap: uses rsync to download the .po files
60227         * build-aux/bootstrap (po_download_command_format): New global.
60228         (download_po_files): Use rsync.
60229         (update_po_files): Don't remove .po files after download,
60230         so future rsync runs can take advantage of the copies.
60231
60232         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60233
60234         Solve the unnecessary-.po-file-regeneration problem once and for all.
60235         * build-aux/bootstrap (download_po_files): New function, renamed from
60236         get_translations.  Now, downloads, but doesn't update LINGUAS.
60237         (update_po_files): New function.
60238
60239         bootstrap: Ignore more.
60240         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60241         uniwidth to e.g., lib/.gitignore.
60242         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60243
60244         * build-aux/bootstrap: New setting: vc_ignore.
60245         (insert_sorted_if_absent): Create $file if absent.
60246         Adapt to new, possibly empty, list: $vc_ignore.
60247
60248         bootstrap: generate more ignorable names
60249         * build-aux/bootstrap (slurp): When generating ignorable names,
60250         also map .sin to .sed, .gperf to .c, and .y to .c.
60251
60252 2007-09-03  Jim Meyering  <jim@meyering.net>
60253
60254         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60255         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60256
60257 2007-09-02  Bruno Haible  <bruno@clisp.org>
60258
60259         Fix mis-recognition of 'mcs' on QNX 6.
60260         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60261         output contains the string "Mono".
60262         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60263         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60264
60265 2007-09-01  Bruno Haible  <bruno@clisp.org>
60266
60267         Fix collision between uniwidth/* and linebreak modules.
60268         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60269         u32_width): Remove declarations.
60270         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60271         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60272         streq3, streq2, streq1, streq0): Remove functions.
60273         (STREQ): Remove macro.
60274         (is_cjk_encoding): Remove function.
60275         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60276         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60277         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60278         * NEWS: Document the change.
60279
60280 2007-09-01  Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/streq.h: Add double-inclusion guard.
60283
60284 2007-09-01  Karl Berry  <karl@gnu.org>
60285
60286         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60287
60288 2007-08-28  Jim Meyering  <jim@meyering.net>
60289
60290         Rename mreadlink_with_size to areadlink_with_size.
60291         * NEWS: Document the change.
60292         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60293         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60294         * lib/mreadlink.h: Rename this to...
60295         * lib/areadlink.h: ...this.
60296         * modules/mreadlink-with-size: Rename this to...
60297         * modules/areadlink-with-size: ...this.
60298         * lib/canonicalize.c: Reflect the renaming.
60299         * modules/canonicalize: Likewise.
60300
60301 2007-08-26  Bruno Haible  <bruno@clisp.org>
60302
60303         * gnulib-tool (func_import): When deciding which files to remove,
60304         consider also dangling symbolic links.
60305         Reported by Eric Blake.
60306
60307 2007-08-26  Bruno Haible  <bruno@clisp.org>
60308
60309         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60310
60311 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60312
60313         * lib/readline.c: Don't include getline.h, the prototype is now
60314         found in stdio.h.
60315
60316 2007-08-23  Jim Meyering  <jim@meyering.net>
60317
60318         Getdelim touchup.
60319         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60320         around the funlockfile call, since funlockfile never sets errno.
60321         Don't set errno upon failed realloc.
60322
60323 2007-08-22  Eric Blake  <ebb9@byu.net>
60324
60325         Getline touchups.
60326         * lib/getdelim.c (getdelim): Revert regression that required *n to
60327         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60329         getdelim, rather than whether implementation is missing.
60330         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60331         * lib/stdio_.h (getline): Also declare if replacement is
60332         required.
60333         * doc/functions/getdelim.texi: New file.
60334         * doc/functions/getline.texi: Likewise.
60335         * doc/gnulib.texi (Function Substitutes): Add new files.
60336         Reported by Bruno Haible.
60337
60338 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60339
60340         * users.txt: Add Guile.
60341
60342 2007-08-22  Eric Blake  <ebb9@byu.net>
60343
60344         * tests/test-getdelim.c (main): Use remove, not unlink.
60345         * tests/test-getline.c (main): Likewise.
60346
60347         Move getline and getdelim into stdio.h, per POSIX 200x.
60348         * modules/getline (Files): Remove getline.h.
60349         (Depends-on): Add stdio.
60350         (configure.ac): Add module indicator.
60351         * modules/getdelim (Files): Remove getdelim.h.
60352         (Depends-on): Add stdio.
60353         (configure.ac): Add module indicator.
60354         * modules/stdio (Makefile.am): Work with new indicators.
60355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60358         * lib/getdelim.h: Delete.
60359         * lib/getline.h: Delete.
60360         * lib/stdio_.h (getdelim, getline): Declare.
60361         * modules/getdelim-tests: New module.
60362         * modules/getline-tests: Likewise.
60363         * tests/test-getdelim.c: New file.
60364         * tests/test-getline.c: Likewise.
60365         * NEWS: Document the change.
60366         * lib/getline.c: Update choice of header.
60367         * lib/csharpcomp.c: Likewise.
60368         * lib/getpass.c: Likewise.
60369         * lib/javacomp.c: Likewise.
60370         * lib/javaversion.c: Likewise.
60371         * lib/yesno.c: Likewise.
60372         * lib/getdelim.c: Likewise.
60373         (getdelim): Set errno on failure, and avoid memory leak.
60374
60375 2007-08-19  Bruno Haible  <bruno@clisp.org>
60376
60377         * modules/closein (Depends-on): Add freadahead.
60378         * lib/closein.c: Include freadahead.h.
60379         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60380         is zero.
60381
60382 2007-08-19  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/freadahead-tests: New file.
60385         * tests/test-freadahead.sh: New file.
60386         * tests/test-freadahead.c: New file.
60387
60388         * modules/freadahead: New file.
60389         * lib/freadahead.h: New file.
60390         * lib/freadahead.c: New file.
60391         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60392         fbufmode, fpurge, freadable, fwritable.
60393
60394 2007-08-19  Eric Blake  <ebb9@byu.net>
60395
60396         Test yesno in combination with closein.
60397         * lib/yesno.c (yesno): Document use of stdin.
60398         * modules/yesno-tests (Files): New module.
60399         * tests/test-yesno.c (main): New file.
60400         * tests/test-yesno.sh: Likewise.
60401
60402 2007-08-19  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60405         * lib/fseeko.c (rpl_fseeko): Likewise.
60406         * lib/fseterr.c (fseterr): Likewise.
60407
60408 2007-08-19  Bruno Haible  <bruno@clisp.org>
60409
60410         * tests/test-lseek.c (main): Disable a test for BeOS.
60411         * doc/functions/lseek.texi: Document the BeOS bug.
60412
60413 2007-08-19  Bruno Haible  <bruno@clisp.org>
60414             Eric Blake  <ebb9@byu.net>
60415
60416         * lib/lseek.c: Include <sys/stat.h>.
60417         (rpl_lseek): Add workaround code also for Unix platforms.
60418         Needed for BeOS.
60419         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60420         * doc/functions/lseek.texi: Document BeOS definiency.
60421
60422 2007-08-18  Bruno Haible  <bruno@clisp.org>
60423
60424         * modules/fstrcmp-tests: New file.
60425         * tests/test-fstrcmp.c: New file.
60426
60427 2007-08-18  Bruno Haible  <bruno@clisp.org>
60428
60429         * modules/fstrcmp: New file, from GNU gettext with modifications.
60430         * lib/fstrcmp.h: New file, from GNU gettext.
60431         * lib/fstrcmp.c: New file, from GNU gettext.
60432         * MODULES.html.sh (String handling): Add fstrcmp.
60433
60434 2007-08-18  Bruno Haible  <bruno@clisp.org>
60435
60436         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60437         'bool'.
60438         (diag, compareseq): Remove const from the ctxt argument.
60439         (USE_HEURISTIC): Undefine at the end.
60440
60441 2007-08-18  Jim Meyering  <jim@meyering.net>
60442
60443         New file: lib/idcache.h
60444         * NEWS: Mention the addition.
60445         * modules/idcache (Files): Add lib/idcache.h
60446         * lib/idcache.c: Include "idcache.h".
60447         Don't include <sys/types.h>.
60448         Add a FIXME comment.
60449         Move file-scoped "static" declarations to the top.
60450         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60451
60452 2007-08-17  Bruno Haible  <bruno@clisp.org>
60453         and Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         * MODULES.html.sh: Add diffseq.
60456         * modules/diffseq: New file.
60457         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60458         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60459
60460 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         Import changes from coreutils for bootstrap script.
60463
60464         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60465
60466         * build-aux/bootstrap (slurp): Work even in environments where
60467         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60468         current code does not slurp files whose names start with ".", and
60469         this looks like it might be a troublesome area.
60470
60471         2007-07-11  Jim Meyering  <jim@meyering.net>
60472
60473         If there's a GPL vN copyright comment, require that N == 3.
60474
60475         2007-07-08  Jim Meyering  <jim@meyering.net>
60476
60477         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60478         * build-aux/bootstrap (mam_template): Move definition out of loop.
60479
60480         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60481
60482         * build-aux/bootstrap (symlink_to_dir): Rename function from
60483         symlink_to_gnulib.  Add a directory parameter.  Update all
60484         callers.
60485         (cp_mark_as_generated): Also check for -- and link to -- files in
60486         gl/.
60487
60488         2007-07-08  Jim Meyering  <jim@meyering.net>
60489
60490         Adapt to deeper hierarchy in gnulib.
60491         * build-aux/bootstrap (symlink_to_dir): If the destination
60492         directory doesn't exist, create it. This is required at least for
60493         "lib/uniwidth/cjk.h".
60494
60495         2007-05-15  Jim Meyering  <jim@meyering.net>
60496
60497         * build-aux/bootstrap: Now that generated Makefile.am files
60498         are no longer under version control, they must be created at
60499         bootstrap time.
60500
60501 2007-08-14  Ben Pfaff  <blp@gnu.org>
60502
60503         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60504
60505 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60508         given the changes below.
60509         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60510         even on hosts that have padding bits beyond the supported 64.
60511
60512 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60515         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60516         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60517         depends on it.
60518         (xstrtol_error): Remove.
60519         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60520         but with a different signature.
60521         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60522         * lib/xstrtol-error.c: Include exitfail.h.
60523         (xstrtol_fatal): New function, with a different signature from the
60524         old xstrtol_error, so that the caller need not worry about passing
60525         in an exit status, or about storage management of the option argument.
60526         (xstrtol_error): Now a static function.  Redo signature to
60527         implement xstrtol_fatal.  Output the correct number of hyphens in
60528         front of the option so that the caller need not worry about
60529         storage management.
60530         (N_): New macro.
60531         (_): Remove; not used now.
60532         * modules/xstrtol: Depend on getopt.
60533         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60534         of old STRTOL_FATAL_ERROR macro.
60535         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60536         of test program.
60537         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60538         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60539
60540 2007-08-08  Eric Blake  <ebb9@byu.net>
60541
60542         * lib/xstrtol-error.c: Add missing include.
60543
60544         Move xstrtol messages into gnulib domain, when --pobase is used.
60545         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60546         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60547         * modules/xstrtol (Files): Distribute new file.
60548         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60549         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60550         * tests/test-xstrtol.c: ...into new file.
60551         * tests/test-xstrtoul.c: Also test xstrtoul.
60552         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60553         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60554         * tests/test-xstrtol.sh: Drive the tests.
60555         * tests/test-xstrtoimax.sh: Likewise.
60556         * tests/test-xstrtoumax.sh: Likewise.
60557         * modules/xstrtol-tests: New module.
60558         * modules/xstrtoimax-tests: Likewise.
60559         * modules/xstrtoumax-tests: Likewise.
60560
60561 2007-08-08  Jim Meyering  <jim@meyering.net>
60562
60563         New function: mfile_name_concat.
60564         * lib/filenamecat.c (mfile_name_concat): New function, just like
60565         file_name_concat, but return NULL upon failure rather than exiting
60566         with a diagnostic.
60567         * lib/filenamecat.h: Declare it.
60568
60569 2007-08-07  Bruno Haible  <bruno@clisp.org>
60570
60571         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60572         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60573         warning from gcc.
60574         Reported by Eric Blake.
60575
60576 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60577
60578         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60579         * modules/crypto/arcfour (License): Likewise.
60580         * modules/crypto/des-tests (License): Likewise.
60581         * modules/crypto/gc-arctwo-tests (License): Likewise.
60582         * modules/crypto/gc-des-tests (License): Likewise.
60583         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60584         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60585         * modules/crypto/gc-md2-tests (License): Likewise.
60586         * modules/crypto/gc-md4-tests (License): Likewise.
60587         * modules/crypto/gc-md5-tests (License): Likewise.
60588         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60589         * modules/crypto/gc-rijndael-tests (License): Likewise.
60590         * modules/crypto/gc-sha1-tests (License): Likewise.
60591         * modules/crypto/gc-tests (License): Likewise.
60592         * modules/crypto/hmac-md5 (License): Likewise.
60593         * modules/crypto/hmac-sha1 (License): Likewise.
60594         * modules/crypto/md2-tests (License): Likewise.
60595         * modules/crypto/md4-tests (License): Likewise.
60596         * modules/crypto/md5 (License): Likewise.
60597         * modules/crypto/rijndael (License): Likewise.
60598         * modules/crypto/sha1 (License): Likewise.
60599         * modules/memxor (License): Likewise.
60600
60601 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60602         and Bruno Haible  <bruno@clisp.org>
60603
60604         * NEWS: Describe interface changes to human, xstrtol.
60605         * lib/human.h: Include <xstrtol.h>.
60606         (human_options): Return enum strtol_error, not int.  Remove
60607         bool arg; take int * instead.
60608         * lib/human.c: Don't include "gettext.h".
60609         (_): Remove; no longer used.
60610         Don't include <xstrtol.h>, since human.h does it.
60611         (human_options): Adjust to abovementioned interface changes.
60612         Do not report error to stderr; that's now the caller's
60613         responsibility.
60614         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60615         interface change.
60616         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60617         Str, Argument_type_string.  All uses changed.  Put " argument"
60618         in diagnostics to make them clearer.  Change wording of suffix
60619         message for clarity.
60620         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60621         Argument_type_string.
60622         (STRTOL_FATAL_WARN): Remove; no longer used.
60623         * modules/human (Depends-on): Remove gettext-h.
60624
60625 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60626
60627         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60628
60629 2007-07-31  Bruno Haible  <bruno@clisp.org>
60630
60631         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60632         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60633         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60634
60635 2007-07-31  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60638         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60639
60640 2007-07-30  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60643         * modules/c-ctype (License): Likewise.
60644         * modules/c-strcase (License): Likewise.
60645         * modules/check-version (License): Likewise.
60646         * modules/iconv (License): Likewise.
60647         * modules/iconv_open (License): Likewise.
60648         * modules/read-file (License): Likewise.
60649         * modules/striconv (License): Likewise.
60650         * modules/strverscmp (License): Likewise.
60651         * modules/vasprintf (License): Likewise.
60652         * modules/crypto/des (License): Likewise.
60653         * modules/crypto/gc (License): Likewise.
60654         * modules/crypto/gc-arcfour (License): Likewise.
60655         * modules/crypto/gc-arctwo (License): Likewise.
60656         * modules/crypto/gc-des (License): Likewise.
60657         * modules/crypto/gc-hmac-md5 (License): Likewise.
60658         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60659         * modules/crypto/gc-md2 (License): Likewise.
60660         * modules/crypto/gc-md4 (License): Likewise.
60661         * modules/crypto/gc-md5 (License): Likewise.
60662         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60663         * modules/crypto/gc-random (License): Likewise.
60664         * modules/crypto/gc-rijndael (License): Likewise.
60665         * modules/crypto/gc-sha1 (License): Likewise.
60666         * modules/crypto/md2 (License): Likewise.
60667         * modules/crypto/md4 (License): Likewise.
60668
60669 2007-07-30  Jim Meyering  <jim@meyering.net>
60670
60671         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60672         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60673         it has valid stat data.  This bug would cause du not to count the
60674         sizes of inaccessible directories.
60675         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60676         in <http://bugzilla.redhat.com/250077>.
60677
60678 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60679             Bruno Haible  <bruno@clisp.org>
60680
60681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60682         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60683         #include_next, gives a diagnostic about it, but reports no error in
60684         the exit code.
60685         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60686
60687 2007-07-24  Ben Pfaff  <blp@gnu.org>
60688
60689         Improve name: "count-one-bits" is better than "popcount".
60690         * MODULES.html.sh: Update name.
60691         * lib/popcount.h: Renamed lib/count-one-bits.h.
60692         (popcount): Renamed count_one_bits.
60693         (popcountl): Renamed count_one_bits_l.
60694         (popcountll): Renamed count_one_bits_ll.
60695         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60696         * modules/popcount: Renamed module/count-one-bits.
60697         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60698         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60699
60700 2007-07-23  Ben Pfaff  <blp@gnu.org>
60701
60702         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60703         better code generation, and add U to large constants to avoid
60704         warnings, in non-GCC case.
60705         Suggested by Bruno Haible.
60706
60707 2007-07-23  Ben Pfaff  <blp@gnu.org>
60708
60709         * lib/popcount.h: Use verify_true instead of if...abort.
60710         * modules/popcount: Depend on verify module.
60711         Suggested by Jim Meyering.
60712
60713 2007-07-23  Bruno Haible  <bruno@clisp.org>
60714
60715         * gnulib-tool (func_import): Create a .cvsignore file also when the
60716         directory is not yet in CVS but the toplevel directory is. When
60717         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60718         Reported by Karl Berry.
60719
60720 2007-07-22  Ben Pfaff  <blp@gnu.org>
60721
60722         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60723         case.
60724         Suggested by Eric Blake.
60725
60726 2007-07-22  Ben Pfaff  <blp@gnu.org>
60727
60728         New module: popcount.
60729         * MODULES.html.sh: Add popcount.
60730         * modules/popcount: New file.
60731         * modules/popcount-tests: New file.
60732         * tests/test-popcount.c: New file.
60733         * lib/popcount.h: New file.
60734         * m4/popcount.m4: New file.
60735
60736 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * build-aux/announce-gen: Update to GPLv3.
60739
60740         * build-aux/config.guess: Update from config.
60741
60742 2007-07-21  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60745         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60746
60747 2007-07-20  Jim Meyering  <jim@meyering.net>
60748
60749         * check-module: Diagnose a self-dependency.
60750
60751 2007-07-19  Bruno Haible  <bruno@clisp.org>
60752
60753         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60754         empty.
60755         Reported by Eric Blake.
60756
60757 2007-07-18  Bruno Haible  <bruno@clisp.org>
60758
60759         * gnulib-tool: New options --po-base, --po-domain.
60760         (func_usage): Document them.
60761         (pobase, po_domain): New variables.
60762         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60763         DEFAULT_TEXT_DOMAIN.
60764         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60765         (func_import): Consider pobase and po_domain. Create a po/ directory.
60766         (func_create_testdir): Set pobase and po_domain to empty.
60767         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60768         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60769
60770 2007-07-18  Bruno Haible  <bruno@clisp.org>
60771
60772         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60773         EXTRA_DIST augmentation for files in build-aux/.
60774
60775 2007-07-16  Bruno Haible  <bruno@clisp.org>
60776
60777         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60778         * modules/getdelim (License): Likewise.
60779
60780 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60781
60782         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60783         * modules/d-type (License): Likewise.
60784         * modules/extensions (License): Likewise.
60785         * modules/fnmatch (License): Likewise.
60786         * modules/fseeko (License): Likewise.
60787         * modules/getaddrinfo (License): Likewise.
60788         * modules/getline (License): Likewise.
60789         * modules/getlogin_r (License): Likewise.
60790         * modules/getpass (License): Likewise.
60791         * modules/gettimeofday (License): Likewise.
60792         * modules/glob (License): Likewise.
60793         * modules/inet_ntop (License): Likewise.
60794         * modules/malloc (License): Likewise.
60795         * modules/malloca (License): Likewise.
60796         * modules/memmem (License): Likewise.
60797         * modules/mempcpy (License): Likewise.
60798         * modules/memset (License): Likewise.
60799         * modules/minmax (License): Likewise.
60800         * modules/mktime (License): Likewise.
60801         * modules/netinet_in (License): Likewise.
60802         * modules/pathmax (License): Likewise.
60803         * modules/poll (License): Likewise.
60804         * modules/regex (License): Likewise.
60805         * modules/snprintf (License): Likewise.
60806         * modules/stdbool (License): Likewise.
60807         * modules/stdint (License): Likewise.
60808         * modules/stdio (License): Likewise.
60809         * modules/strcase (License): Likewise.
60810         * modules/strcasestr (License): Likewise.
60811         * modules/strdup (License): Likewise.
60812         * modules/string (License): Likewise.
60813         * modules/strndup (License): Likewise.
60814         * modules/strnlen (License): Likewise.
60815         * modules/strpbrk (License): Likewise.
60816         * modules/strptime (License): Likewise.
60817         * modules/strsep (License): Likewise.
60818         * modules/sys_select (License): Likewise.
60819         * modules/sys_socket (License): Likewise.
60820         * modules/sys_stat (License): Likewise.
60821         * modules/sys_time (License): Likewise.
60822         * modules/time (License): Likewise.
60823         * modules/time_r (License): Likewise.
60824         * modules/timegm (License): Likewise.
60825         * modules/unistd (License): Likewise.
60826         * modules/vsnprintf (License): Likewise.
60827         * modules/wctype (License): Likewise.
60828
60829 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60830
60831         * modules/argz (License): LGPLv2+.
60832
60833 2007-07-15  Karl Berry  <karl@gnu.org>
60834
60835         * doc/gnulib.texi: revise node structure per new fdl.texi.
60836
60837 2007-07-14  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60840         the output file.
60841         * lib/uniname/uninames.h: Regenerated.
60842
60843 2007-07-14  Karl Berry  <karl@gnu.org>
60844
60845         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60846         omitting sectioning and index commands.
60847
60848 2007-07-13  Bruno Haible  <bruno@clisp.org>
60849
60850         New gnulib-tool option --more-symlinks.
60851         * gnulib-tool (func_usage): Document --more-symlinks.
60852         (do_copyrights): New variable.
60853         Recognize option --more-symlinks.
60854         (func_import): Don't add a copyright notice transform to
60855         sed_transform_lib_file if do_copyrights is empty.
60856
60857 2007-07-13  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/vasnprintf.c (decimal_point_char): Define also if
60860         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60861         && !NEED_PRINTF_DIRECTIVE_A.
60862         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60863         Gary V. Vaughan <gary@gnu.org>.
60864
60865 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * lib/inttypes_.h: Undo previous change, since it was fixed
60868         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60869
60870 2007-07-13  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60873         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60874
60875 2007-07-13  Jim Meyering  <jim@meyering.net>
60876
60877         df: Don't fail for Tru64's "file-on-file mount".
60878         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60879         so we fall through and use statfs instead.  Details here:
60880         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60881         Reported by Albert Chin.
60882
60883 2007-07-13  Bruno Haible  <bruno@clisp.org>
60884
60885         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60886         * modules/configmake (License): Likewise.
60887         * modules/gettext (License): Likewise.
60888         * modules/gettext-h (License): Likewise.
60889         * modules/include_next (License): Likewise.
60890         * modules/link-warning (License): Likewise.
60891         * modules/localcharset (License): Likewise.
60892         * modules/localename (License): Likewise.
60893         * modules/lock (License): Likewise.
60894         * modules/relocatable-lib-lgpl (License): Likewise.
60895         * modules/size_max (License): Likewise.
60896         * modules/vasnprintf (License): Likewise.
60897         * modules/wchar (License): Likewise.
60898         * modules/xsize (License): Likewise.
60899
60900 2007-07-13  Bruno Haible  <bruno@clisp.org>
60901
60902         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60903         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60904
60905 2007-07-12  Bruno Haible  <bruno@clisp.org>
60906
60907         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60908         in the modules files.
60909
60910 2007-07-11  Karl Berry  <karl@gnu.org>
60911
60912         * MODULES.html.sh (func_module): use
60913          sed -e '\|^'"${includefile}"'$|d'
60914          instead of /.../d, to avoid errors on $includefile's containing /.
60915
60916 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60917
60918         * gnulib-tool (func_import): Avoid duplication of --avoid
60919         statements
60920         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60921         names to `_' in variable names.
60922
60923 2007-07-10  Eric Blake  <ebb9@byu.net>
60924
60925         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60926         * NEWS: Document this change.
60927
60928 2007-07-08  Bruno Haible  <bruno@clisp.org>
60929
60930         Update to Unicode 5.0.
60931         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60932         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60933         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60934         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60935         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60936         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60937         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60938         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60939         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60940         U+10A3F, U+1D242..U+1D244.
60941         (nonspacing_table_ind): Update.
60942         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60943         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60944
60945 2007-07-08  Bruno Haible  <bruno@clisp.org>
60946
60947         Update to Unicode 5.0.
60948         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60949         code transform. Extend the name index field of unicode_name_to_code and
60950         unicode_code_to_name from 16 to 24 bits.
60951         * lib/uniname/uniname.c (unicode_character_name,
60952         unicode_name_character): Add the range 0x12xxx to the code transform.
60953         * lib/uniname/uninames.h: Regenerated.
60954         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60955
60956 2007-07-07  Bruno Haible  <bruno@clisp.org>
60957
60958         * modules/wcwidth-tests: New file.
60959         * tests/test-wcwidth.c: New file.
60960
60961         Work around MacOS X wcwidth() bug.
60962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60963         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60964         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60965         original wcwidth in non-UTF-8 locales.
60966         * modules/wcwidth (Depends-on): Add localcharset, streq,
60967         uniwidth/width.
60968         * doc/functions/wcwidth.texi: Update.
60969
60970 2007-07-07  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60973         (wcwidth): New declaration.
60974         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60975         macros.
60976         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60977         here. Prepare for creating <wchar.h> unconditionally.
60978         * modules/wchar (Depends-on): Add link-warning.
60979         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60980         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60981         * lib/wcwidth.h: Remove file.
60982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60983         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60984         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60985         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60986         (Include): Replace wcwidth.h with <wchar.h>.
60987         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60988         * lib/mbchar.h: Don't include wcwidth.h.
60989         * lib/mbswidth.c: Likewise.
60990         * NEWS: Mention the change.
60991
60992 2007-07-07  Bruno Haible  <bruno@clisp.org>
60993
60994         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60995         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60996         definition with an external declaration.
60997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60998         defined as a function. Remove AC_C_INLINE requirement.
60999         * modules/wcwidth (Files): Add lib/wcwidth.c.
61000         (Makefile.am): Remove redundant statement.
61001
61002 2007-07-07  Bruno Haible  <bruno@clisp.org>
61003
61004         * MODULES.html.sh (Unicode string functions): Add the new modules.
61005
61006         * tests/uniwidth/test-u32-strwidth.c: New file.
61007         * modules/uniwidth/u32-strwidth-tests: New file.
61008
61009         * lib/uniwidth/u32-strwidth.c: New file.
61010         * modules/uniwidth/u32-strwidth: New file.
61011
61012         * tests/uniwidth/test-u16-strwidth.c: New file.
61013         * modules/uniwidth/u16-strwidth-tests: New file.
61014
61015         * lib/uniwidth/u16-strwidth.c: New file.
61016         * modules/uniwidth/u16-strwidth: New file.
61017
61018         * tests/uniwidth/test-u8-strwidth.c: New file.
61019         * modules/uniwidth/u8-strwidth-tests: New file.
61020
61021         * lib/uniwidth/u8-strwidth.c: New file.
61022         * modules/uniwidth/u8-strwidth: New file.
61023
61024         * tests/uniwidth/test-u32-width.c: New file.
61025         * modules/uniwidth/u32-width-tests: New file.
61026
61027         * lib/uniwidth/u32-width.c: New file.
61028         * modules/uniwidth/u32-width: New file.
61029
61030         * tests/uniwidth/test-u16-width.c: New file.
61031         * modules/uniwidth/u16-width-tests: New file.
61032
61033         * lib/uniwidth/u16-width.c: New file.
61034         * modules/uniwidth/u16-width: New file.
61035
61036         * tests/uniwidth/test-u8-width.c: New file.
61037         * modules/uniwidth/u8-width-tests: New file.
61038
61039         * lib/uniwidth/u8-width.c: New file.
61040         * modules/uniwidth/u8-width: New file.
61041
61042         * tests/uniwidth/test-uc_width.c: New file.
61043         * modules/uniwidth/width-tests: New file.
61044
61045         * lib/uniwidth/width.c: New file, from GNU libiconv.
61046         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
61047         * modules/uniwidth/width: New file.
61048
61049         * lib/uniwidth.h: New file, from GNU libiconv.
61050         * modules/uniwidth/base: New file.
61051
61052 2007-07-07  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/uniname.h: New file, from GNU gettext.
61055         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
61056         * lib/uniname/uninames.h: New file, from GNU gettext.
61057         * lib/uniname/uniname.c: New file, from GNU gettext.
61058         * tests/uniname/test-uninames.sh: New file.
61059         * tests/uniname/test-uninames.c: New file, from GNU gettext.
61060         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
61061         * modules/uniname/base: New file.
61062         * modules/uniname/uniname: New file.
61063         * modules/uniname/uniname-tests: New file.
61064         * MODULES.html.sh (Unicode string functions): Add the new modules.
61065
61066 2007-07-06  Bruno Haible  <bruno@clisp.org>
61067
61068         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
61069
61070 2007-07-06  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
61073         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
61074         includes <cygwin/sys_time.h> which includes <sys/select.h> which
61075         include <sys/time.h>.
61076         Reported by Eric Blake.
61077
61078 2007-07-06  Eric Blake  <ebb9@byu.net>
61079
61080         Fix testing canonicalize on cygwin.
61081         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61082         Revert patch from 2007-06-19.
61083         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
61084         canonicalize module is also in use.
61085         * tests/test-canonicalize.c: New file.
61086         * tests/test-canonicalize.sh: Likewise.
61087         * modules/canonicalize-tests: Likewise.
61088
61089 2007-07-06  Jim Meyering  <jim@meyering.net>
61090
61091         * lib/getugroups.c (getugroups): Detect getgrent failure.
61092         Adjust comment to reflect reality: this function may return -1.
61093
61094 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61095
61096         * build-aux/bootstrap (TP_URL,get_translations): Update to use
61097         the new TP address.
61098         (usage): Fix typo
61099         (gnulib_mk): New variable.
61100
61101 2007-07-05  Jim Meyering  <jim@meyering.net>
61102
61103         Don't let endgrent clobber errno, no matter how improbable.
61104         * lib/getugroups.c (getugroups): Save and restore errno around
61105         endgrent call.
61106
61107         Close the group DB even when failing with 2^31 or more members.
61108         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
61109
61110 2007-07-04  Jim Meyering  <jim@meyering.net>
61111
61112         * lib/getugroups.h: New file.
61113         * lib/getugroups.c: Include "getugroups.h".
61114         Remove uses of "register" keyword.
61115         Move local variable, "cp", down into scope where used.
61116         Give "username" parameter the "const" attribute.
61117         * modules/getugroups (Files): Add lib/getugroups.h
61118
61119 2007-07-04  Karl Berry  <karl@gnu.org>
61120
61121         * MODULES.html.sh (func_all_modules): Complete rename of
61122         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
61123
61124 2007-07-02  Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
61127         mode, when inttypes.h comes from gnulib.
61128         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61129
61130 2007-07-02  Simon Josefsson  <simon@josefsson.org>
61131
61132         * NEWS: Mention lgpl module name change.
61133
61134         * modules/lgpl-2.1: Renamed from lgpl.
61135
61136         * NEWS: Mention gpl module name change.
61137
61138         * modules/gpl-3.0: New file, based on gpl-2.0.
61139
61140         * modules/gpl-2.0: Renamed from gpl.
61141
61142         * modules/gpl: Fix filename, doc/gpl.texi is now found at
61143         doc/gpl-2.0.texi.
61144
61145 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61146
61147         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
61148         #define __STDC_LIMIT_MACROS temporarily while including
61149         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
61150         Problem reported by Joel E. Denny in
61151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
61152
61153 2007-07-01  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/unistdio.h: New file.
61156         * lib/unistdio/u-asnprintf.h: New file.
61157         * lib/unistdio/u-asprintf.h: New file.
61158         * lib/unistdio/u-printf-args.c: New file.
61159         * lib/unistdio/u-printf-args.h: New file.
61160         * lib/unistdio/u-printf-parse.h: New file.
61161         * lib/unistdio/u-snprintf.h: New file.
61162         * lib/unistdio/u-sprintf.h: New file.
61163         * lib/unistdio/u-vasprintf.h: New file.
61164         * lib/unistdio/u-vsnprintf.h: New file.
61165         * lib/unistdio/u-vsprintf.h: New file.
61166         * lib/unistdio/ulc-asnprintf.c: New file.
61167         * lib/unistdio/ulc-asprintf.c: New file.
61168         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
61169         * lib/unistdio/ulc-printf-parse.c: New file.
61170         * lib/unistdio/ulc-snprintf.c: New file.
61171         * lib/unistdio/ulc-sprintf.c: New file.
61172         * lib/unistdio/ulc-vasnprintf.c: New file.
61173         * lib/unistdio/ulc-vasprintf.c: New file.
61174         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
61175         * lib/unistdio/ulc-vsnprintf.c: New file.
61176         * lib/unistdio/ulc-vsprintf.c: New file.
61177         * lib/unistdio/u8-asnprintf.c: New file.
61178         * lib/unistdio/u8-asprintf.c: New file.
61179         * lib/unistdio/u8-printf-parse.c: New file.
61180         * lib/unistdio/u8-snprintf.c: New file.
61181         * lib/unistdio/u8-sprintf.c: New file.
61182         * lib/unistdio/u8-vasnprintf.c: New file.
61183         * lib/unistdio/u8-vasprintf.c: New file.
61184         * lib/unistdio/u8-vsnprintf.c: New file.
61185         * lib/unistdio/u8-vsprintf.c: New file.
61186         * lib/unistdio/u8-u8-asnprintf.c: New file.
61187         * lib/unistdio/u8-u8-asprintf.c: New file.
61188         * lib/unistdio/u8-u8-snprintf.c: New file.
61189         * lib/unistdio/u8-u8-sprintf.c: New file.
61190         * lib/unistdio/u8-u8-vasnprintf.c: New file.
61191         * lib/unistdio/u8-u8-vasprintf.c: New file.
61192         * lib/unistdio/u8-u8-vsnprintf.c: New file.
61193         * lib/unistdio/u8-u8-vsprintf.c: New file.
61194         * lib/unistdio/u16-asnprintf.c: New file.
61195         * lib/unistdio/u16-asprintf.c: New file.
61196         * lib/unistdio/u16-printf-parse.c: New file.
61197         * lib/unistdio/u16-snprintf.c: New file.
61198         * lib/unistdio/u16-sprintf.c: New file.
61199         * lib/unistdio/u16-vasnprintf.c: New file.
61200         * lib/unistdio/u16-vasprintf.c: New file.
61201         * lib/unistdio/u16-vsnprintf.c: New file.
61202         * lib/unistdio/u16-vsprintf.c: New file.
61203         * lib/unistdio/u16-u16-asnprintf.c: New file.
61204         * lib/unistdio/u16-u16-asprintf.c: New file.
61205         * lib/unistdio/u16-u16-snprintf.c: New file.
61206         * lib/unistdio/u16-u16-sprintf.c: New file.
61207         * lib/unistdio/u16-u16-vasnprintf.c: New file.
61208         * lib/unistdio/u16-u16-vasprintf.c: New file.
61209         * lib/unistdio/u16-u16-vsnprintf.c: New file.
61210         * lib/unistdio/u16-u16-vsprintf.c: New file.
61211         * lib/unistdio/u32-asnprintf.c: New file.
61212         * lib/unistdio/u32-asprintf.c: New file.
61213         * lib/unistdio/u32-printf-parse.c: New file.
61214         * lib/unistdio/u32-snprintf.c: New file.
61215         * lib/unistdio/u32-sprintf.c: New file.
61216         * lib/unistdio/u32-vasnprintf.c: New file.
61217         * lib/unistdio/u32-vasprintf.c: New file.
61218         * lib/unistdio/u32-vsnprintf.c: New file.
61219         * lib/unistdio/u32-vsprintf.c: New file.
61220         * lib/unistdio/u32-u32-asnprintf.c: New file.
61221         * lib/unistdio/u32-u32-asprintf.c: New file.
61222         * lib/unistdio/u32-u32-snprintf.c: New file.
61223         * lib/unistdio/u32-u32-sprintf.c: New file.
61224         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61225         * lib/unistdio/u32-u32-vasprintf.c: New file.
61226         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61227         * lib/unistdio/u32-u32-vsprintf.c: New file.
61228         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61229         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61230         * tests/unistdio/test-ulc-printf1.h: New file.
61231         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61232         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61233         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61234         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61235         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61236         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61237         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61238         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61239         * tests/unistdio/test-u8-asnprintf1.c: New file.
61240         * tests/unistdio/test-u8-asnprintf1.h: New file.
61241         * tests/unistdio/test-u8-printf1.h: New file.
61242         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61243         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61244         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61245         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61246         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61247         * tests/unistdio/test-u8-vasprintf1.c: New file.
61248         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61249         * tests/unistdio/test-u8-vsprintf1.c: New file.
61250         * tests/unistdio/test-u16-asnprintf1.c: New file.
61251         * tests/unistdio/test-u16-asnprintf1.h: New file.
61252         * tests/unistdio/test-u16-printf1.h: New file.
61253         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61254         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61255         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61256         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61257         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61258         * tests/unistdio/test-u16-vasprintf1.c: New file.
61259         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61260         * tests/unistdio/test-u16-vsprintf1.c: New file.
61261         * tests/unistdio/test-u32-asnprintf1.c: New file.
61262         * tests/unistdio/test-u32-asnprintf1.h: New file.
61263         * tests/unistdio/test-u32-printf1.h: New file.
61264         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61265         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61266         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61267         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61268         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61269         * tests/unistdio/test-u32-vasprintf1.c: New file.
61270         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61271         * tests/unistdio/test-u32-vsprintf1.c: New file.
61272         * modules/unistdio/base: New file.
61273         * modules/unistdio/u-printf-args: New file.
61274         * modules/unistdio/ulc-asnprintf: New file.
61275         * modules/unistdio/ulc-asprintf: New file.
61276         * modules/unistdio/ulc-fprintf: New file.
61277         * modules/unistdio/ulc-printf-parse: New file.
61278         * modules/unistdio/ulc-snprintf: New file.
61279         * modules/unistdio/ulc-sprintf: New file.
61280         * modules/unistdio/ulc-vasnprintf: New file.
61281         * modules/unistdio/ulc-vasprintf: New file.
61282         * modules/unistdio/ulc-vfprintf: New file.
61283         * modules/unistdio/ulc-vsnprintf: New file.
61284         * modules/unistdio/ulc-vsprintf: New file.
61285         * modules/unistdio/u8-asnprintf: New file.
61286         * modules/unistdio/u8-asprintf: New file.
61287         * modules/unistdio/u8-printf-parse: New file.
61288         * modules/unistdio/u8-snprintf: New file.
61289         * modules/unistdio/u8-sprintf: New file.
61290         * modules/unistdio/u8-vasnprintf: New file.
61291         * modules/unistdio/u8-vasprintf: New file.
61292         * modules/unistdio/u8-vsnprintf: New file.
61293         * modules/unistdio/u8-vsprintf: New file.
61294         * modules/unistdio/u8-u8-asnprintf: New file.
61295         * modules/unistdio/u8-u8-asprintf: New file.
61296         * modules/unistdio/u8-u8-snprintf: New file.
61297         * modules/unistdio/u8-u8-sprintf: New file.
61298         * modules/unistdio/u8-u8-vasnprintf: New file.
61299         * modules/unistdio/u8-u8-vasprintf: New file.
61300         * modules/unistdio/u8-u8-vsnprintf: New file.
61301         * modules/unistdio/u8-u8-vsprintf: New file.
61302         * modules/unistdio/u16-asnprintf: New file.
61303         * modules/unistdio/u16-asprintf: New file.
61304         * modules/unistdio/u16-printf-parse: New file.
61305         * modules/unistdio/u16-snprintf: New file.
61306         * modules/unistdio/u16-sprintf: New file.
61307         * modules/unistdio/u16-vasnprintf: New file.
61308         * modules/unistdio/u16-vasprintf: New file.
61309         * modules/unistdio/u16-vsnprintf: New file.
61310         * modules/unistdio/u16-vsprintf: New file.
61311         * modules/unistdio/u16-u16-asnprintf: New file.
61312         * modules/unistdio/u16-u16-asprintf: New file.
61313         * modules/unistdio/u16-u16-snprintf: New file.
61314         * modules/unistdio/u16-u16-sprintf: New file.
61315         * modules/unistdio/u16-u16-vasnprintf: New file.
61316         * modules/unistdio/u16-u16-vasprintf: New file.
61317         * modules/unistdio/u16-u16-vsnprintf: New file.
61318         * modules/unistdio/u16-u16-vsprintf: New file.
61319         * modules/unistdio/u32-asnprintf: New file.
61320         * modules/unistdio/u32-asprintf: New file.
61321         * modules/unistdio/u32-printf-parse: New file.
61322         * modules/unistdio/u32-snprintf: New file.
61323         * modules/unistdio/u32-sprintf: New file.
61324         * modules/unistdio/u32-vasnprintf: New file.
61325         * modules/unistdio/u32-vasprintf: New file.
61326         * modules/unistdio/u32-vsnprintf: New file.
61327         * modules/unistdio/u32-vsprintf: New file.
61328         * modules/unistdio/u32-u32-asnprintf: New file.
61329         * modules/unistdio/u32-u32-asprintf: New file.
61330         * modules/unistdio/u32-u32-snprintf: New file.
61331         * modules/unistdio/u32-u32-sprintf: New file.
61332         * modules/unistdio/u32-u32-vasnprintf: New file.
61333         * modules/unistdio/u32-u32-vasprintf: New file.
61334         * modules/unistdio/u32-u32-vsnprintf: New file.
61335         * modules/unistdio/u32-u32-vsprintf: New file.
61336         * modules/unistdio/ulc-asnprintf-tests: New file.
61337         * modules/unistdio/ulc-vasnprintf-tests: New file.
61338         * modules/unistdio/ulc-vasprintf-tests: New file.
61339         * modules/unistdio/ulc-vsnprintf-tests: New file.
61340         * modules/unistdio/ulc-vsprintf-tests: New file.
61341         * modules/unistdio/u8-asnprintf-tests: New file.
61342         * modules/unistdio/u8-vasnprintf-tests: New file.
61343         * modules/unistdio/u8-vasprintf-tests: New file.
61344         * modules/unistdio/u8-vsnprintf-tests: New file.
61345         * modules/unistdio/u8-vsprintf-tests: New file.
61346         * modules/unistdio/u16-asnprintf-tests: New file.
61347         * modules/unistdio/u16-vasnprintf-tests: New file.
61348         * modules/unistdio/u16-vasprintf-tests: New file.
61349         * modules/unistdio/u16-vsnprintf-tests: New file.
61350         * modules/unistdio/u16-vsprintf-tests: New file.
61351         * modules/unistdio/u32-asnprintf-tests: New file.
61352         * modules/unistdio/u32-vasnprintf-tests: New file.
61353         * modules/unistdio/u32-vasprintf-tests: New file.
61354         * modules/unistdio/u32-vsnprintf-tests: New file.
61355         * modules/unistdio/u32-vsprintf-tests: New file.
61356         * MODULES.html.sh (Unicode string functions): Add the new modules.
61357
61358 2007-07-01  Bruno Haible  <bruno@clisp.org>
61359
61360         * lib/sprintf.c (sprintf): Limit the available length estimation,
61361         to avoid address wraparound.
61362         * lib/vsprintf.c (vsprintf): Likewise.
61363         * modules/sprintf-posix (Dependencies): Add stdint.
61364         * modules/vsprintf-posix (Dependencies): Likewise.
61365
61366 2007-07-01  Bruno Haible  <bruno@clisp.org>
61367
61368         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61369         Windows PATH as well. Conservative double-quoting. Comments.
61370
61371 2007-07-01  Bruno Haible  <bruno@clisp.org>
61372             Eric Blake  <ebb9@byu.net>
61373             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61374
61375         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61376         empty components in $PATH, denoting '.'.
61377
61378 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61379
61380         * gnulib-tool: Fix indentation.
61381         (func_create_megatestdir): Likewise.
61382         Report by Bruno Haible.
61383
61384 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61385
61386         Sync from Automake.
61387         * build-aux/gnupload: Fix shell portability issues with for loops.
61388         Report by Karl Berry.
61389
61390 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61391
61392         * build-aux/maint.mk (POURL): Use translationproject.org.
61393
61394 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61395             Bruno Haible  <bruno@clisp.org>
61396
61397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61398         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61399         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61400         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61401         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61402
61403 2007-06-27  Bruno Haible  <bruno@clisp.org>
61404
61405         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61406         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61407
61408 2007-06-26  Karl Berry  <karl@gnu.org>
61409
61410         * MODULES.html.sh: remove xreadlink-with-size.
61411
61412 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61415         method that I hope also handles the double-include problem noted
61416         by Bruno Haible in
61417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61418
61419 2007-06-23  Bruno Haible  <bruno@clisp.org>
61420
61421         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61422         Don't let the 'mostlyclean' target fail if the last subdirectory could
61423         not be removed.
61424         Reported by Karl Berry.
61425
61426 2007-06-23  Bruno Haible  <bruno@clisp.org>
61427
61428         * gnulib-tool (echo): Add a speedier workaround for ksh.
61429         * tests/test-echo.sh: Likewise.
61430
61431 2007-06-23  Bruno Haible  <bruno@clisp.org>
61432
61433         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61434         * tests/test-echo.sh: Likewise.
61435
61436 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61437
61438         * gnulib-tool (IFS): Initialize early, so we don't set it to
61439         empty later.
61440         (self_abspathname): Rewrite algorithm to set it, reindent.
61441         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61442         (func_create_megatestdir): Merge some sed scripts.
61443
61444 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61447         exposed by Sun Studio 11 cc on Solaris 8.
61448
61449 2007-06-22  Bruno Haible  <bruno@clisp.org>
61450
61451         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61452         backslashes.
61453         * tests/test-echo.sh: New file.
61454
61455 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61456
61457         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61458         simplify `sed_replace_build_aux' scripts, they are portable but
61459         echoing them with `echo' is not.
61460         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61461
61462 2007-06-21  Karl Berry  <karl@gnu.org>
61463
61464         * config/srclist.txt: guess we can't handle the licenses via
61465         srclist at the moment.
61466
61467 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * MODULES.html.sh: Add include_next.
61470         * modules/include_next: New file.
61471
61472 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61475         INCLUDE_NEXT.
61476         (gl_CHECK_NEXT_HEADERS): New macro.
61477         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61478         the obsolescent gl_ABSOLUTE_HEADER.
61479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61480         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61481         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61482         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61483         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61484         * m4/math_h.m4 (gl_MATH_H): Likewise.
61485         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61486         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61487         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61488         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61489         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61490         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61491         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61495         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61496         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61497         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61498         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61499         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61500         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61501         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61502         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61503         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61504         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61505         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61506         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61507         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61508         * lib/float_.h: Likewise.
61509         * lib/inttypes_.h: Likewise.
61510         * lib/math_.h: Likewise.
61511         * lib/search_.h: Likewise.
61512         * lib/signal_.h: Likewise.
61513         * lib/stdint_.h: Likewise.
61514         * lib/stdio_.h: Likewise.
61515         * lib/stdlib_.h: Likewise.
61516         * lib/string_.h: Likewise.
61517         * lib/sys_stat_.h: Likewise.
61518         * lib/sys_time_.h: Likewise.
61519         * lib/time_.h: Likewise.
61520         * lib/unistd_.h: Likewise.
61521         * lib/wchar_.h: Likewise.
61522         * lib/wctype_.h: Likewise.
61523         * lib/dirent_.h: Likewise.
61524         * lib/iconv_.h: Likewise.
61525         * lib/locale_.h: Likewise.
61526         * lib/netinet_in_.h: Likewise.
61527         * lib/sys_select_.h: Likewise.
61528         * lib/sys_socket_.h: Likewise.
61529         * lib/sysexits_.h: Likewise.
61530         * modules/fcntl (Depends-on): Depend on include_next, not
61531         absolute_header.
61532         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61533         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61534         * modules/fchdir: Likewise.
61535         * modules/float: Likewise.
61536         * modules/iconv_open: Likewise.
61537         * modules/inttypes: Likewise.
61538         * modules/locale: Likewise.
61539         * modules/math: Likewise.
61540         * modules/netinet_in: Likewise.
61541         * modules/search: Likewise.
61542         * modules/signal: Likewise.
61543         * modules/stdint: Likewise.
61544         * modules/stdio: Likewise.
61545         * modules/stdlib: Likewise.
61546         * modules/string: Likewise.
61547         * modules/sys_select: Likewise.
61548         * modules/sys_socket: Likewise.
61549         * modules/sys_stat: Likewise.
61550         * modules/sys_time: Likewise.
61551         * modules/sysexits: Likewise.
61552         * modules/time: Likewise.
61553         * modules/unistd: Likewise.
61554         * modules/wchar: Likewise.
61555         * modules/wctype: Likewise.
61556         * modules/sys_stat: Change maintainer to "all".
61557         * modules/unistd: Likewise.
61558
61559 2007-06-20  Karl Berry  <karl@gnu.org>
61560
61561         * config/srclist.txt: track www changes in license files.
61562
61563 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61564
61565         * build-aux/bootstrap: Remove stray dot.
61566         Make sure build_aux settings are honored when linking
61567         gnulib_extra_files.
61568
61569 2007-06-19  Eric Blake  <ebb9@byu.net>
61570
61571         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61572         Allow compilation on cygwin.
61573
61574 2007-06-19  Jim Meyering  <jim@meyering.net>
61575
61576         xreadlink-with-size: Remove module.  No longer used.
61577         Ex-callers now use xreadlink or mreadlink-with-size.
61578         * modules/xreadlink-with-size: Remove module.
61579         * lib/xreadlink-with-size.c: Remove file.
61580         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61581         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61582         just before the function definition *is* accurate.
61583
61584         Eliminate one way canonicalize_filename_mode could exit.
61585         * lib/canonicalize.c (canonicalize_filename_mode):
61586         Use mreadlink_with_size, not xreadlink_with_size.
61587
61588 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         Detect porting problems to FreeBSD/arm, which has time_t wider than
61591         long int.  Original problem reported for GNU diff by Xin Li in
61592         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61593         * modules/getdate (Depends-on): Add intprops, verify.
61594         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61595         is an integer type no wider than long int.
61596
61597 2007-06-18  Jim Meyering  <jim@meyering.net>
61598
61599         New module: mreadlink-with-size.
61600         * MODULES.html.sh: Add mreadlink-with-size.
61601         * modules/mreadlink-with-size: New module
61602         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61603         not xreadlink-with-size.
61604         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61605
61606 2007-06-16  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61609         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61610         Reported by Gary V. Vaughan <gary@gnu.org>.
61611
61612 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         Revamp lchown so that it lives in unistd.h where it belongs.
61615         * lib/lchown.h: Remove.
61616         * lib/dirchownmod.c: Don't include lib/lchown.h.
61617         * lib/fchownat.c: Likewise.
61618         * lib/openat.c: Likewise.
61619         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61620         does not follow symlinks.
61621         (EOPNOTSUPP): Define if not defined.
61622         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61623         is defined to 0.
61624         (lchown): New decl.
61625         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61626         Do not check for lchown decl.
61627         Set REPLACE_LCHOWN.
61628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61629         REPLACE_LCHOWN.
61630         * modules/chown: Make it clear it follows symlinks.
61631         * modules/lchown: Make it clear it doesn't follow symlinks.
61632         (Files): Remove lib/lchown.h
61633         (Depends-on): Add unistd.
61634         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61635         (Include): Include <unistd.h>, not "lchown.h".
61636         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61637         REPLACE_LCHOWN.
61638
61639 2007-06-15  Jim Meyering  <jim@meyering.net>
61640
61641         Change license (GPL to LGPL) of fsusage and dependents.
61642         * modules/fsusage (License): Change to LGPL.
61643         * modules/full-read (License): Likewise.
61644         * modules/full-write (License): Likewise.
61645         * modules/safe-read (License): Likewise.
61646         * modules/safe-write (License): Likewise.
61647
61648 2007-06-14  Ben Pfaff  <blp@gnu.org>
61649
61650         Missing part of allocsa -> malloca transition.
61651         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61652         gl_MALLOCA.
61653
61654 2007-06-12  Bruno Haible  <bruno@clisp.org>
61655
61656         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61657         to ia64, x86_64, i386.
61658         Reported by Eric Blake.
61659
61660 2007-06-12  Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61663         cross-compiling to x86_64.
61664
61665 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61668         glitch reported by Ralf Wildenhues in
61669         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61670
61671         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61672         Vin Shelton.
61673
61674 2007-06-11  Bruno Haible  <bruno@clisp.org>
61675
61676         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61677         replacement string.
61678         Reported by Eric Blake.
61679
61680 2007-06-10  Bruno Haible  <bruno@clisp.org>
61681
61682         Prepare vasnprintf code for use with Unicode strings.
61683         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61684         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61685         TYPE_U32_STRING.
61686         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61687         a_u32_string variants.
61688         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61689         * lib/printf-args.c: Don't include config.h and the specification
61690         header if PRINTF_FETCHARGS is already defined.
61691         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61692         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61693         TYPE_U16_STRING, TYPE_U32_STRING.
61694         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61695         u16_directive, u16_directives, u32_directive, u32_directives): New
61696         types.
61697         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61698         New declarations.
61699         * lib/printf-parse.c: Don't include config.h and the specification
61700         header if PRINTF_PARSE is already defined. Eliminate the set of
61701         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61702         them now. Include c-ctype.h.
61703         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61704         directive and CHAR_T_ONLY_ASCII.
61705         * lib/vasnprintf.c: Don't include config.h and the specification header
61706         if VASNPRINTF is already defined.
61707         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61708         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61709         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61710         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61711         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61712         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61713         code accordingly.
61714         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61715         pad_ourselves also in this case, with the 'c' and 's' directives, and
61716         with a different notion of "width".
61717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61718
61719 2007-06-10  Bruno Haible  <bruno@clisp.org>
61720
61721         * modules/unistr/u32-mbsnlen: New file.
61722         * lib/unistr/u32-mbsnlen.c: New file.
61723
61724         * modules/unistr/u16-mbsnlen: New file.
61725         * lib/unistr/u16-mbsnlen.c: New file.
61726
61727         * modules/unistr/u8-mbsnlen: New file.
61728         * lib/unistr/u8-mbsnlen.c: New file.
61729
61730         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61731         declarations.
61732
61733 2007-06-10  Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/string_.h (mbsnlen): New declaration.
61736         * lib/mbsnlen.c: New file.
61737         * m4/mbsnlen.m4: New file.
61738         * modules/mbsnlen: New file.
61739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61740         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61741         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61742
61743 2007-06-10  Bruno Haible  <bruno@clisp.org>
61744
61745         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61746
61747 2007-06-10  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61750         * lib/mbuiter.h: Likewise.
61751
61752 2007-06-10  Bruno Haible  <bruno@clisp.org>
61753
61754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61755         declaration.
61756
61757 2007-06-10  Karl Berry  <karl@gnu.org>
61758
61759         * config/srclist.txt: remove gettext entries, Bruno prefers
61760         to update individually.
61761
61762 2007-06-10  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61765         'maxlen'. Ensure only length + width bytes are allocated, not
61766         length + 1 + width.
61767
61768 2007-06-09  Bruno Haible  <bruno@clisp.org>
61769
61770         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61771         (CHAR_T): Remove macro.
61772         (VASNPRINTF): Update.
61773
61774 2007-06-09  Bruno Haible  <bruno@clisp.org>
61775
61776         * MODULES.html.sh (Unicode string functions): Add the new modules.
61777
61778         * modules/uniconv/u32-conv-to-enc: New file.
61779         * lib/uniconv/u32-conv-to-enc.c: New file.
61780         * modules/uniconv/u32-conv-to-enc-tests: New file.
61781         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61782
61783         * modules/uniconv/u16-conv-to-enc: New file.
61784         * lib/uniconv/u16-conv-to-enc.c: New file.
61785         * lib/uniconv/u-conv-to-enc.h: New file.
61786         * modules/uniconv/u16-conv-to-enc-tests: New file.
61787         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61788
61789         * modules/uniconv/u8-conv-to-enc: New file.
61790         * lib/uniconv/u8-conv-to-enc.c: New file.
61791         * modules/uniconv/u8-conv-to-enc-tests: New file.
61792         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61793
61794         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61795         u32_conv_to_encoding): New declarations.
61796
61797 2007-06-09  Bruno Haible  <bruno@clisp.org>
61798
61799         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61800
61801 2007-06-09  Bruno Haible  <bruno@clisp.org>
61802
61803         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61804         * modules/malloca: Renamed from modules/allocsa, updated.
61805         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61806         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61807         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61808         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61809         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61810         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61811         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61812         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61813         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61814         * modules/c-strcasestr (Depends-on): Update.
61815         * lib/c-strcasestr.c: Update.
61816         * modules/c-strstr (Depends-on): Update.
61817         * lib/c-strstr.c: Update.
61818         * modules/canonicalize-lgpl (Depends-on): Update.
61819         * lib/canonicalize-lgpl.c: Update.
61820         * modules/clean-temp (Depends-on): Update.
61821         * lib/clean-temp.c: Update.
61822         * modules/csharpcomp (Depends-on): Update.
61823         * lib/csharpcomp.c: Update.
61824         * modules/csharpexec (Depends-on): Update.
61825         * lib/csharpexec.c: Update.
61826         * modules/javacomp (Depends-on): Update.
61827         * lib/javacomp.c: Update.
61828         * modules/javaexec (Depends-on): Update.
61829         * lib/javaexec.c: Update.
61830         * modules/mbscasestr (Depends-on): Update.
61831         * lib/mbscasestr.c: Update.
61832         * modules/mbsstr (Depends-on): Update.
61833         * lib/mbsstr.c: Update.
61834         * modules/setenv (Depends-on): Update.
61835         * lib/setenv.c: Update.
61836         * modules/strcasestr (Depends-on): Update.
61837         * lib/strcasestr.c: Update.
61838         * modules/striconveha (Depends-on): Update.
61839         * lib/striconveha.c: Update.
61840         * modules/relocatable-prog-wrapper (Files): Update.
61841         * lib/relocwrapper.c: Update.
61842         * build-aux/install-reloc: Update.
61843         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61844
61845 2007-06-08  Bruno Haible  <bruno@clisp.org>
61846
61847         Port to uClibc.
61848         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61849         * lib/fpurge.c (fpurge): Likewise.
61850         * lib/freading.c (freading): Likewise.
61851         * lib/fseeko.c (rpl_fseeko): Likewise.
61852         * lib/fseterr.c (fseterr): Likewise.
61853         * lib/fwriting.c (fwriting): Likewise.
61854         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61855
61856 2007-06-08  Bruno Haible  <bruno@clisp.org>
61857
61858         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61859         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61860         * modules/gettext (Files): Add m4/intlmacosx.m4.
61861
61862 2007-06-07  Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/localename-tests: New file.
61865         * tests/test-localename.c: New file.
61866
61867         New module 'localename'.
61868         * lib/localename.h: New file.
61869         * lib/localename.c: New file, from GNU gettext.
61870         * m4/localename.m4: New file.
61871         * modules/localename: New file.
61872
61873 2007-06-07  Bruno Haible  <bruno@clisp.org>
61874
61875         Work around the lack of <wchar.h> on some builds of uClibc.
61876         * doc/headers/wchar.texi: Update.
61877         * lib/wchar_.h: Include <wchar.h> only if it exists.
61878         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61879         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61880         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61881         doesn't exist.
61882         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61883         * modules/mbfile (Depends-on): Add wchar.
61884         * modules/mbiter (Depends-on): Likewise.
61885         * modules/mbuiter (Depends-on): Likewise.
61886         Reported by Simon Josefsson.
61887
61888 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         Work around problem reported by Steven M. Schweda in
61891         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61892         Tru64 5.1B with the Compaq compiler environment installed declares
61893         an 'isblank' function but does not define it in the C library.
61894         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61895         * lib/regex_internal.h (isblank): Likewise.
61896         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61897         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61898
61899 2007-06-05  Bruno Haible  <bruno@clisp.org>
61900
61901         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61902         ia64.
61903         * modules/printf-safe: New file.
61904         * modules/fprintf-posix (Depends-on): Add printf-safe.
61905         * modules/printf-posix (Depends-on): Likewise.
61906         * modules/snprintf-posix (Depends-on): Likewise.
61907         * modules/sprintf-posix (Depends-on): Likewise.
61908         * modules/vasnprintf-posix (Depends-on): Likewise.
61909         * modules/vasprintf-posix (Depends-on): Likewise.
61910         * modules/vfprintf-posix (Depends-on): Likewise.
61911         * modules/vprintf-posix (Depends-on): Likewise.
61912         * modules/vsnprintf-posix (Depends-on): Likewise.
61913         * modules/vsprintf-posix (Depends-on): Likewise.
61914         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61915         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61916         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61917         "no" on i386, x86_64, ia64.
61918         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61919         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61920         on i386, x86_64, ia64.
61921         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61922         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61923         on i386, x86_64, ia64.
61924         * tests/test-vasnprintf-posix.c: Include float.h.
61925         (LDBL80_WORDS): New macro.
61926         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61927         on i386, x86_64, ia64.
61928         * tests/test-vasprintf-posix.c: Include float.h.
61929         (LDBL80_WORDS): New macro.
61930         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61931         on i386, x86_64, ia64.
61932         * tests/test-snprintf-posix.c: Include float.h.
61933         * tests/test-sprintf-posix.c: Likewise.
61934         * tests/test-vsnprintf-posix.c: Likewise.
61935         * tests/test-vsprintf-posix.c: Likewise.
61936
61937 2007-06-05  Bruno Haible  <bruno@clisp.org>
61938
61939         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61940         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61941         non-IEEE numbers on i386, x86_64, ia64.
61942         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61943         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61944         * tests/test-isnanl.h: Include float.h.
61945         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61946
61947 2007-06-05  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61950         also the %a / %A. Handle the %a / %A code before this extra handling.
61951
61952 2007-06-05  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61955         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61956
61957 2007-06-05  Bruno Haible  <bruno@clisp.org>
61958
61959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61960         typo in variable name.
61961
61962 2007-06-05  Eric Blake  <ebb9@byu.net>
61963
61964         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61965         Reported by Simon Josefsson.
61966
61967 2007-06-04  Bruno Haible  <bruno@clisp.org>
61968
61969         Avoid test failures on some PowerPC platforms.
61970         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61971         Define differently for PowerPC.
61972         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61973         Reported by Gary V. Vaughan <gary@gnu.org>.
61974
61975 2007-06-02  Bruno Haible  <bruno@clisp.org>
61976
61977         Fix test-stdint failure on FreeBSD/ia64.
61978         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61979         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61980         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61981         * doc/headers/stdint.texi: Update.
61982
61983 2007-06-01  Bruno Haible  <bruno@clisp.org>
61984
61985         * tests/test-binary-io.c (main): Pass a third argument to open().
61986         Reported by Gary V. Vaughan <gary@gnu.org>.
61987
61988 2007-06-01  Bruno Haible  <bruno@clisp.org>
61989
61990         * doc/functions/frexpl.texi: Update for mingw.
61991
61992 2007-06-01  Bruno Haible  <bruno@clisp.org>
61993
61994         * tests/test-lseek.c (main): Disable test of errno for invalid third
61995         argument.
61996         * doc/functions/lseek.texi: Update.
61997         Reported by Gary V. Vaughan <gary@gnu.org>.
61998
61999 2007-05-28  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
62002
62003 2007-05-31  Eric Blake  <ebb9@byu.net>
62004
62005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
62006         cross compiling.
62007
62008 2007-05-30  Eric Blake  <ebb9@byu.net>
62009         and Bruno Haible  <bruno@clisp.org>
62010
62011         Work around mingw test failures exposed by m4-1.4.9b.
62012         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
62013         * tests/test-unistd.c: Disable uid_t and git_t tests for the
62014         moment.
62015
62016 2007-05-30  Bruno Haible  <bruno@clisp.org>
62017
62018         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
62019         assuming that they are closed. Needed on HP-UX 11.
62020
62021 2007-05-29  Bruno Haible  <bruno@clisp.org>
62022
62023         Fix a problem with #include_next.
62024         * lib/dirent_.h: Split the double-inclusion guard.
62025         * lib/fcntl_.h: Likewise.
62026         * lib/float_.h: Likewise.
62027         * lib/iconv_.h: Likewise.
62028         * lib/inttypes_.h: Likewise.
62029         * lib/locale_.h: Likewise.
62030         * lib/math_.h: Likewise.
62031         * lib/netinet_in_.h: Likewise.
62032         * lib/search_.h: Likewise.
62033         * lib/signal_.h: Likewise.
62034         * lib/stdint_.h: Likewise.
62035         * lib/stdio_.h: Likewise.
62036         * lib/stdlib_.h: Likewise.
62037         * lib/string_.h: Likewise.
62038         * lib/sys_select_.h: Likewise.
62039         * lib/sys_socket_.h: Likewise.
62040         * lib/sys_stat_.h: Likewise.
62041         * lib/sys_time_.h: Likewise.
62042         * lib/sysexits_.h: Likewise.
62043         * lib/time_.h: Likewise.
62044         * lib/unistd_.h: Likewise.
62045         * lib/wchar_.h: Likewise.
62046         * lib/wctype_.h: Likewise.
62047
62048 2007-05-29  Bruno Haible  <bruno@clisp.org>
62049
62050         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
62051         for the moment.
62052
62053 2007-05-29  Bruno Haible  <bruno@clisp.org>
62054
62055         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
62056         invocation.
62057         Reported by Eric Blake.
62058
62059 2007-05-29  Bruno Haible  <bruno@clisp.org>
62060
62061         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
62062         compiling case.
62063
62064 2007-05-29  Eric Blake  <ebb9@byu.net>
62065             Bruno Haible  <bruno@clisp.org>
62066
62067         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
62068         cross compiles.
62069
62070 2007-05-28  Eric Blake  <ebb9@byu.net>
62071
62072         * modules/closein-tests (test_closein_LDADD): Support test on
62073         cygwin with libtool.
62074
62075 2007-05-28  Bruno Haible  <bruno@clisp.org>
62076
62077         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
62078         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62079         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62080         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62081         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62082         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62083         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62084         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62085         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62086
62087 2007-05-28  Eric Blake  <ebb9@byu.net>
62088
62089         Unconditionally include <config.h> in unit tests.
62090         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
62091         * tests/test-allocsa.c, tests/test-arcfour.c,
62092         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
62093         tests/test-array_list.c, tests/test-array_oset.c,
62094         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
62095         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
62096         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
62097         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
62098         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
62099         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
62100         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
62101         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
62102         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
62103         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
62104         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
62105         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
62106         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
62107         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
62108         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
62109         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
62110         test-md5.c, test-memmem.c, test-printf-posix.c,
62111         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
62112         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
62113         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
62114         test-strcasestr.c, test-striconv.c, test-striconveh.c,
62115         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
62116         test-vasnprintf-posix2.c, test-vasnprintf.c,
62117         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
62118         test-vfprintf-posix.c, test-vprintf-posix.c,
62119         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
62120         test-xvasprintf.c: Likewise.
62121
62122 2007-05-28  Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool (func_import): Remember the --with-tests command-line
62125         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
62126         Reported by Eric Blake.
62127
62128 2007-05-28  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/ftell-tests: New file.
62131         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
62132         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
62133
62134         * lib/ftell.c: New file.
62135         * modules/ftell: New file.
62136         * m4/ftell.m4: New file.
62137         * doc/functions/ftell.texi: Update.
62138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
62139         REPLACE_FTELL.
62140         * lib/stdio_.h (rpl_ftell): New declaration.
62141         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
62142         REPLACE_FTELL.
62143
62144 2007-05-28  Eric Blake  <ebb9@byu.net>
62145
62146         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
62147
62148 2007-05-28  Bruno Haible  <bruno@clisp.org>
62149
62150         * modules/fseek-tests: New file.
62151         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
62152         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
62153
62154         * lib/fseek.c: New file.
62155         * modules/fseek: New file.
62156         * m4/fseek.m4: New file.
62157         * doc/functions/fseek.texi: Update.
62158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
62159         REPLACE_FSEEK.
62160         * lib/stdio_.h (rpl_fseek): New declaration.
62161         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
62162         REPLACE_FSEEK.
62163
62164 2007-05-28  Bruno Haible  <bruno@clisp.org>
62165
62166         * lib/stdio_.h (fflush): More comments.
62167
62168 2007-05-28  Bruno Haible  <bruno@clisp.org>
62169
62170         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
62171         runtime test.
62172
62173 2007-05-28  Eric Blake  <ebb9@byu.net>
62174
62175         Improve lseek module.
62176         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
62177         * lib/unistd_.h (lseek): Scale back link warning message.
62178         * tests/test-lseek.c: Beef up test.
62179         * tests/test-lseek.sh: Exercise more facets of lseek.
62180         Reported by Bruno Haible.
62181
62182 2007-05-28  Bruno Haible  <bruno@clisp.org>
62183
62184         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
62185         to define.
62186
62187 2007-05-27  Bruno Haible  <bruno@clisp.org>
62188
62189         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
62190
62191 2007-05-27  Bruno Haible  <bruno@clisp.org>
62192
62193         * modules/openmp: New file.
62194         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
62195         Noah Misch.
62196
62197 2007-05-26  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/chdir-long (Depends-on): Add fchdir.
62200         * modules/chdir-safer (Depends-on): Likewise.
62201         * modules/fts (Depends-on): Likewise.
62202         * modules/fts-lgpl (Depends-on): Likewise.
62203         * modules/openat (Depends-on): Likewise.
62204         * modules/savewd (Depends-on): Likewise.
62205
62206 2007-05-24  Eric Blake  <ebb9@byu.net>
62207
62208         Fix lseek on mingw.
62209         * modules/lseek: New module.
62210         * m4/lseek.m4: New file.
62211         * lib/lseek.c: New file.
62212         * modules/lseek-tests: New file.
62213         * tests/test-lseek.c: New file.
62214         * tests/test-lseek.sh: New file.
62215         * MODULES.html.sh: Document lseek module.
62216         * modules/fflush (Depends-on): Add lseek, fseeko.
62217         * modules/fseeko (Depends-on): Likewise.
62218         * modules/ftello (Depends-on): Likewise.
62219         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
62220         broken.
62221         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62222         broken.
62223         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62224         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62225         * lib/ftello.c (rpl_ftello): Likewise.
62226         * tests/test-fseeko.c (main): Test this.
62227         * tests/test-fseeko.sh: Likewise.
62228         * tests/test-ftello.c (main): Likewise.
62229         * tests/test-ftello.sh: Likewise.
62230         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62231         implies replacing fseek.
62232         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62233         HAVE_FTELLO.
62234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62235         * modules/unistd (Makefile.am): Likewise.
62236         * lib/unistd_.h (lseek): Declare a replacement.
62237         * doc/functions/lseek.texi (lseek): Document this fix.
62238         * doc/functions/fseek.texi (fseek): Likewise.
62239         * doc/functions/ftell.texi (ftell): Likewise.
62240
62241 2007-05-24  Bruno Haible  <bruno@clisp.org>
62242
62243         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62244         in the printed representation of a NaN.
62245         * tests/test-vasprintf-posix.c (test_function): Likewise.
62246         * tests/test-snprintf-posix.h (test_function): Likewise.
62247         * tests/test-sprintf-posix.h (test_function): Likewise.
62248         Reported by Eric Blake.
62249
62250 2007-05-23  Eric Blake  <ebb9@byu.net>
62251
62252         Fix fseeko/ftello on cygwin 1.5.24.
62253         * doc/functions/fseeko.texi (fseeko): Document the fix.
62254         * doc/functions/ftello.texi (ftello): Document the fix.
62255         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62256         * doc/functions/stdout.text (stdout): New file.
62257         * doc/functions/stderr.text (stderr): New file.
62258         * doc/gnulib.texi (Function Substitutes): Use new files.
62259         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62260         prior to 1.7.0.
62261         * tests/test-ftello.c (main): Likewise for ftello.
62262         * tests/test-fseeko.sh: New file.
62263         * tests/test-ftello.sh: New file.
62264         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62265         with seekable stdin.
62266         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62268         (gl_REPLACE_FSEEKO): New macro.
62269         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62270         * modules/fseeko (Files): Distribute fseeko.c.
62271         * modules/ftello (Files): Distribute ftello.c.
62272         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62273         mode.
62274         * lib/ftello.c (rpl_ftello): New file.
62275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62276         fseeko, ftello.
62277         (gl_STDIN_LARGE_OFFSET): New macro.
62278         * modules/stdio (Makefile.am): Perform the replacement.
62279         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62280
62281 2007-05-23  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62284         GNULIB_POSIXCHECK is defined.
62285
62286 2007-05-21  Bruno Haible  <bruno@clisp.org>
62287
62288         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62289         Check also the output for NaN arguments. When cross-compiling, guess
62290         no on IRIX.
62291         * lib/vasnprintf.c: Update comments.
62292         * tests/test-vasnprintf-posix.c (strisnan): New function.
62293         (test_function): Use it.
62294         * tests/test-vasprintf-posix.c (strisnan): New function.
62295         (test_function): Use it.
62296         * tests/test-snprintf-posix.h (strisnan): New function.
62297         (test_function): Use it.
62298         * tests/test-sprintf-posix.h (strisnan): New function.
62299         (test_function): Use it.
62300         Reported by Eric Blake.
62301
62302 2007-05-20  Bruno Haible  <bruno@clisp.org>
62303
62304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62305         numbers that fails on BeOS.
62306         * doc/functions/frexpl.texi: Update.
62307
62308 2007-05-20  Jim Meyering  <jim@meyering.net>
62309
62310         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62311         forced upon us by glibc-2.6.
62312
62313 2007-05-20  Bruno Haible  <bruno@clisp.org>
62314
62315         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62316         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62317         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62318         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62319         NEED_PRINTF_INFINITE.
62320         (is_infinitel): New function.
62321         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62323         gl_PREREQ_VASNPRINTF_INFINITE.
62324         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62326         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62327         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62328         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62329         gl_PREREQ_VASNPRINTF_INFINITE.
62330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62337         * doc/functions/fprintf.texi: Update.
62338         * doc/functions/printf.texi: Update.
62339         * doc/functions/snprintf.texi: Update.
62340         * doc/functions/sprintf.texi: Update.
62341         * doc/functions/vfprintf.texi: Update.
62342         * doc/functions/vprintf.texi: Update.
62343         * doc/functions/vsnprintf.texi: Update.
62344         * doc/functions/vsprintf.texi: Update.
62345
62346 2007-05-20  Bruno Haible  <bruno@clisp.org>
62347
62348         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62349         was not found in libc.
62350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62351
62352 2007-05-20  Bruno Haible  <bruno@clisp.org>
62353
62354         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62355         printed as "-nan" instead of "nan".
62356         * tests/test-vasprintf-posix.c (test_function): Likewise.
62357         * tests/test-snprintf-posix.h (test_function): Likewise.
62358         * tests/test-sprintf-posix.h (test_function): Likewise.
62359         Needed for HP-UX 11.
62360
62361 2007-05-20  Jim Meyering  <jim@meyering.net>
62362
62363         Fix buggy test for the fchownat-deref bug.
62364         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62365         symlink required for the run-test.  Without it, this test would
62366         always declare that fchownat doesn't work, and client code would
62367         unnecessarily use the replacement function with fixed libc.
62368         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62369         Reported by Greg Schafer.
62370
62371 2007-05-19  Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62374         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62375         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62376         Needed for IRIX 6.5 and Solaris 2.5.1.
62377
62378 2007-05-19  Bruno Haible  <bruno@clisp.org>
62379
62380         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62381         (test_function): Skip tests involving -0.0 on platforms where
62382         -0.0 = 0.0.
62383         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62384         (test_function): Skip tests involving -0.0 on platforms where
62385         -0.0 = 0.0.
62386         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62387         (test_function): Skip tests involving -0.0 on platforms where
62388         -0.0 = 0.0.
62389         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62390         (test_function): Skip tests involving -0.0 on platforms where
62391         -0.0 = 0.0.
62392         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62393         tests.
62394         * tests/test-printf-posix.h (test_function): Likewise.
62395         * tests/test-printf-posix.output: Remove all -0.0 related results.
62396         Needed for IRIX 6.5.
62397
62398 2007-05-19  Bruno Haible  <bruno@clisp.org>
62399
62400         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62401         printed as "nan0x7fffffff" instead of "nan".
62402         * tests/test-vasprintf-posix.c (test_function): Likewise.
62403         * tests/test-snprintf-posix.h (test_function): Likewise.
62404         * tests/test-sprintf-posix.h (test_function): Likewise.
62405         * tests/test-fprintf-posix.h (NaN): Remove macro.
62406         (test_function): Remove all NaN related tests.
62407         * tests/test-printf-posix.h (NaN): Remove macro.
62408         (test_function): Remove all NaN related tests.
62409         * tests/test-printf-posix.output: Remove all NaN related results.
62410         Needed for IRIX 6.5.
62411
62412 2007-05-19  Bruno Haible  <bruno@clisp.org>
62413
62414         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62416
62417 2007-05-19  Bruno Haible  <bruno@clisp.org>
62418
62419         * lib/float_.h: New file.
62420         * m4/float_h.m4: New file.
62421         * modules/float: New file.
62422         * modules/isnanl (Dependencies): Add float.
62423         * modules/isnanl-nolibm (Dependencies): Likewise.
62424         * modules/mathl (Dependencies): Likewise.
62425         * modules/printf-frexpl (Dependencies): Likewise.
62426         * modules/signbit (Dependencies): Likewise.
62427         * modules/vasnprintf (Dependencies): Likewise.
62428         * doc/headers/float.texi: Update.
62429
62430 2007-05-19  Jim Meyering  <jim@meyering.net>
62431
62432         * lib/utimens.c (gl_futimens): Rename from futimens,
62433         now that glibc-2.6 declares futimens.
62434         * lib/utimens.h: Likewise.
62435
62436 2007-05-19  Bruno Haible  <bruno@clisp.org>
62437
62438         Avoid test failures on mingw.
62439         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62440         * tests/test-printf-posix.sh: Likewise.
62441         * tests/test-vfprintf-posix.sh: Likewise.
62442         * tests/test-vprintf-posix.sh: Likewise.
62443
62444 2007-05-19  Bruno Haible  <bruno@clisp.org>
62445
62446         Fix *printf result for NaN, Inf, -0.0 on mingw.
62447         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62448         * lib/vasnprintf.c: Include math.h and isnan.h.
62449         (is_infinite_or_zero): New function.
62450         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62451         values in the %f, %F, %e, %E, %g, %G directives.
62452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62454         gl_PRINTF_INFINITE and test its result. Invoke
62455         gl_PREREQ_VASNPRINTF_INFINITE.
62456         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62460         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62462         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62463         * doc/functions/fprintf.texi: Update.
62464         * doc/functions/printf.texi: Update.
62465         * doc/functions/snprintf.texi: Update.
62466         * doc/functions/sprintf.texi: Update.
62467         * doc/functions/vfprintf.texi: Update.
62468         * doc/functions/vprintf.texi: Update.
62469         * doc/functions/vsnprintf.texi: Update.
62470         * doc/functions/vsprintf.texi: Update.
62471
62472 2007-05-19  Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62475         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62476         Instead of multiplying with 10^k, set extra_zeroes to k.
62477         (scale10_round_long_double): Remove function.
62478
62479 2007-05-18  Bruno Haible  <bruno@clisp.org>
62480
62481         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62482         introduced on 2007-05-06.
62483
62484 2007-05-18  Bruno Haible  <bruno@clisp.org>
62485
62486         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62487         %g directives.
62488         * tests/test-vasprintf-posix.c (test_function): Likewise.
62489         * tests/test-snprintf-posix.h (test_function): Likewise.
62490         * tests/test-sprintf-posix.h (test_function): Likewise.
62491
62492 2007-05-18  Bruno Haible  <bruno@clisp.org>
62493
62494         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62495         (strmatch): New function.
62496         (test_function): Test the %f directive on numbers of various exponents.
62497         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62498         (strmatch): New function.
62499         (test_function): Test the %f directive on numbers of various exponents.
62500         * tests/test-snprintf-posix.h (strmatch): New function.
62501         (test_function): Test the %f directive on numbers of various exponents.
62502         * tests/test-sprintf-posix.h (strmatch): New function.
62503         (test_function): Test the %f directive on numbers of various exponents.
62504         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62505         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62506         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62507         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62508
62509 2007-05-18  Bruno Haible  <bruno@clisp.org>
62510
62511         Add support for 'long double' number output.
62512         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62513         * lib/vasnprintf.c: Include math.h and float+.h.
62514         (mp_limb_t): New type.
62515         (GMP_LIMB_BITS): New macro.
62516         (mp_twolimb_t): New type.
62517         (GMP_TWOLIMB_BITS): New macro.
62518         (mpn_t): New type.
62519         (multiply, divide, convert_to_decimal, decode_long_double,
62520         scale10_round_long_double, scale10_round_decimal_long_double,
62521         floorlog10l): New functions.
62522         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62523         for the %f, %F, %e, %E, %g, %G directives.
62524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62526         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62527         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62535         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62536         * modules/snprintf-posix (Depends-on): Likewise.
62537         * modules/sprintf-posix (Depends-on): Likewise.
62538         * modules/vasnprintf-posix (Depends-on): Likewise.
62539         * modules/vasprintf-posix (Depends-on): Likewise.
62540         * modules/vfprintf-posix (Depends-on): Likewise.
62541         * modules/vsnprintf-posix (Depends-on): Likewise.
62542         * modules/vsprintf-posix (Depends-on): Likewise.
62543         * modules/vasnprintf (Files): Add lib/float+.h.
62544         * doc/functions/fprintf.texi: Update.
62545         * doc/functions/printf.texi: Update.
62546         * doc/functions/snprintf.texi: Update.
62547         * doc/functions/sprintf.texi: Update.
62548         * doc/functions/vfprintf.texi: Update.
62549         * doc/functions/vprintf.texi: Update.
62550         * doc/functions/vsnprintf.texi: Update.
62551         * doc/functions/vsprintf.texi: Update.
62552
62553 2007-05-18  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62556
62557 2007-05-18  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62560         for printing 64-bit integers. Needed for mingw.
62561
62562 2007-05-18  Bruno Haible  <bruno@clisp.org>
62563
62564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62565         gl_FUNC_FREXPL_WORKS.
62566         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62567
62568 2007-05-18  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/frexpl-nolibm-tests: New file.
62571
62572         * modules/frexpl-nolibm: New file.
62573         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62574
62575 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62578         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62579         GCC 4.2, which otherwise issues a lot of warnings.
62580         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62581         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62582         Likewise.
62583         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62584         * modules/iconv_open (iconv.h): Likewise.
62585         * modules/locale (locale.h): Likewise.
62586         * modules/netinet_in (netinet/in.h): Likewise.
62587         * modules/sys_select (sys_select.h): Likewise.
62588         * modules/sys_socket (sys/socket.h): Likewise.
62589         * modules/sys_stat (sys/stat.h): Likewise.
62590         * modules/sysexits (sysexits.h): Likewise.
62591         * modules/unistd (unistd.h): Likewise.
62592
62593 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62594
62595         * modules/closein-tests (Makefile.am): Distribute
62596         `test-closein.sh'.
62597
62598 2007-05-17  Bruno Haible  <bruno@clisp.org>
62599
62600         * tests/test-printf-posix.output: Renamed from
62601         tests/test-fprintf-posix.out.
62602         * modules/fprintf-posix-tests: Update.
62603         * modules/printf-posix-tests: Update.
62604         * modules/vfprintf-posix-tests: Update.
62605         * modules/vprintf-posix-tests: Update.
62606         * tests/test-fprintf-posix.sh: Update.
62607         * tests/test-printf-posix.sh: Update.
62608         * tests/test-vfprintf-posix.sh: Update.
62609         * tests/test-vprintf-posix.sh: Update.
62610         Reported by Ralf Wildenhues.
62611
62612 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62615         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62616         GCC 4.2, which otherwise issues a lot of warnings.
62617         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62618         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62619         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62620         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62621         it should no longer be needed.
62622         * lib/string_.h: Likewise.
62623         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62624         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62625         * modules/inttypes (inttypes.h): Likewise.
62626         * modules/math (math.h): Likewise.
62627         * modules/search (search.h): Likewise.
62628         * modules/signal (signal.h): Likewise.
62629         * modules/stdint (stdint.h): Likewise.
62630         * modules/stdio (stdio.h): Likewise.
62631         * modules/stdlib (stdlib.h): Likewise.
62632         * modules/string (string.h): Likewise.
62633         * modules/sys_time (sys/time.h): Likewise.
62634         * modules/time (time.h): Likewise.
62635         * modules/wchar (wchar.h): Likewise.
62636         * modules/wctype (wtype.h): Likewise.
62637
62638 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62639
62640         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62641
62642 2007-05-13  Bruno Haible  <bruno@clisp.org>
62643
62644         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62645         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62646         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62647         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62648         (gl_PREREQ_STRTOK_R): Don't require it here.
62649
62650 2007-05-13  Bruno Haible  <bruno@clisp.org>
62651
62652         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62653         when used in C++ mode.
62654
62655 2007-05-12  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/linebuffer.h: Tweak doc.
62658         * lib/linebuffer.c: Likewise.
62659
62660 2007-05-12  James Youngman  <jay@gnu.org>
62661
62662         * lib/linebuffer.c (readlinebuffer_delim): New function,
62663         like readlinebuffer, but use a caller-specified delimiter.
62664         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62665         as the delimiter.
62666         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62667
62668 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62669
62670         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62671         * modules/openat (Files): Remove openat-die.c.
62672         (Depends-on): Add openat-die.
62673         * modules/openat-die: New module.
62674
62675 2007-05-06  Bruno Haible  <bruno@clisp.org>
62676
62677         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62678         Update with info about Cygwin.
62679         * doc/functions/fprintf.texi: Update.
62680         * doc/functions/printf.texi: Update.
62681         * doc/functions/snprintf.texi: Update.
62682         * doc/functions/sprintf.texi: Update.
62683         * doc/functions/vfprintf.texi: Update.
62684         * doc/functions/vprintf.texi: Update.
62685         * doc/functions/vsnprintf.texi: Update.
62686         * doc/functions/vsprintf.texi: Update.
62687         Reported by Eric Blake.
62688
62689 2007-05-06  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62692         padding ourselves for the floating-point directives.
62693         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62696         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62697         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62699         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62705         * tests/test-snprintf-posix.h (test_function): Also check the width
62706         and some flags in the %f directive.
62707         * tests/test-sprintf-posix.h (test_function): Likewise.
62708         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62709         * tests/test-vasprintf-posix.c (test_function): Likewise.
62710         * doc/functions/fprintf.texi: Update.
62711         * doc/functions/printf.texi: Update.
62712         * doc/functions/snprintf.texi: Update.
62713         * doc/functions/sprintf.texi: Update.
62714         * doc/functions/vfprintf.texi: Update.
62715         * doc/functions/vprintf.texi: Update.
62716         * doc/functions/vsnprintf.texi: Update.
62717         * doc/functions/vsprintf.texi: Update.
62718
62719 2007-05-06  Bruno Haible  <bruno@clisp.org>
62720
62721         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62722         pass the ' flag character to sprintf or snprintf.
62723         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62726         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62727         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62728         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62729         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62735         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62736         flag.
62737         * tests/test-sprintf-posix.h (test_function): Likewise.
62738         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62739         * tests/test-vasprintf-posix.c (test_function): Likewise.
62740         * doc/functions/fprintf.texi: Update.
62741         * doc/functions/printf.texi: Update.
62742         * doc/functions/snprintf.texi: Update.
62743         * doc/functions/sprintf.texi: Update.
62744         * doc/functions/vfprintf.texi: Update.
62745         * doc/functions/vprintf.texi: Update.
62746         * doc/functions/vsnprintf.texi: Update.
62747         * doc/functions/vsprintf.texi: Update.
62748
62749 2007-05-01  Bruno Haible  <bruno@clisp.org>
62750
62751         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62752
62753 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62754
62755         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62756         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62757
62758 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62761         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62763
62764 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62765
62766         * lib/argp-help.c (struct hol_entry): New member `ord'.
62767         (HOL_ENTRY_PTRCMP): Use ord for comparison
62768         (hol_sort): Initialize ord.
62769
62770 2007-05-01  Bruno Haible  <bruno@clisp.org>
62771
62772         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62773         Reported by Eric Blake.
62774         * doc/gnulib.texi (Function Substitutes): Update.
62775
62776 2007-05-01  Bruno Haible  <bruno@clisp.org>
62777
62778         * doc/functions.texi: Remove file, now redundant through
62779         doc/functions/*.texi.
62780
62781 2007-05-01  Bruno Haible  <bruno@clisp.org>
62782
62783         * modules/argp (Depends-on): Add sleep.
62784
62785 2007-05-01  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/sleep-tests: New file.
62788         * tests/test-sleep.c: New file.
62789
62790         * modules/sleep: New file.
62791         * lib/sleep.c: New file.
62792         * m4/sleep.m4: New file.
62793         * lib/unistd_.h (sleep): New declaration.
62794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62795         HAVE_SLEEP.
62796         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62797         * doc/functions/sleep.texi: Document the sleep module.
62798
62799 2007-05-01  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/sigprocmask.h: Remove file.
62802         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62803         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62804         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62805         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62806         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62807         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62808         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62809         HAVE_SIGSET_T as a shell variable.
62810         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62811         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62812         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62813         (Depends-on): Add signal. Remove verify.
62814         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62815         (Include): Mention <signal.h> instead of sigprocmask.h.
62816         * NEWS: Mention the change.
62817         * lib/fatal-signal.c: Don't include sigprocmask.h.
62818
62819 2007-05-01  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/signal: New file.
62822         * lib/signal_.h: New file.
62823         * m4/signal_h.m4: New file.
62824
62825 2007-05-01  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62828         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62829         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62830         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62831
62832 2007-05-01  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62835         configure time.
62836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62837         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62838         * modules/sys_stat (Makefile.am): Substitute their values into
62839         sys/stat.h.
62840
62841 2007-05-01  Bruno Haible  <bruno@clisp.org>
62842
62843         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62844         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62845         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62846
62847 2007-05-01  Bruno Haible  <bruno@clisp.org>
62848
62849         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62850         'assert' module here.
62851
62852 2007-05-01  Bruno Haible  <bruno@clisp.org>
62853
62854         * doc/functions/*.texi: New files.
62855         * doc/functions/google-ranking.txt: New file.
62856         * doc/gnulib.texi (Function Substitutes): New chapter.
62857         (ctime, inet_ntoa): Remove sections.
62858         * doc/ctime.texi: Remove file.
62859         * doc/inet_ntoa.texi: Remove file.
62860         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62861         dependencies.
62862         (%.info): New rule, specifying a --reference-limit.
62863
62864 2007-05-01  Bruno Haible  <bruno@clisp.org>
62865
62866         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62867
62868 2007-05-01  Bruno Haible  <bruno@clisp.org>
62869
62870         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62871         the portability of 'mkdir' to mingw systems.
62872
62873 2007-05-01  Bruno Haible  <bruno@clisp.org>
62874
62875         * doc/headers/google-ranking.txt: New file.
62876
62877 2007-04-30  Eric Blake  <ebb9@byu.net>
62878
62879         Prefer fseeko to fseek.
62880         * modules/getpass (Depends-on): Add fseeko.
62881         * lib/getpass.c (getpass): Use fseeko, not fseek.
62882
62883 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62884
62885         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62886         assumes the sorting is stable, while most qsort implementations
62887         are not.  Use argument addresses to ensure they never compare as
62888         equal.
62889
62890         * tests/test-argp-2.sh (usage-indent test): Fix output
62891         (func_compare): Restore diff options
62892         * tests/test-argp.c: Restore #include "progname.h"
62893
62894 2007-04-29  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62898         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62900         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62901         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62902         (TESTS, check_PROGRAMS): Add test-snprintf.
62903         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62904         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62905         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62906         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62907         assertions that fail on HP-UX, OSF/1, or IRIX.
62908         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62909
62910 2007-04-29  Bruno Haible  <bruno@clisp.org>
62911
62912         * MODULES.html.sh (posix_functions): Remove 'contents'.
62913
62914 2007-04-29  Karl Berry  <karl@gnu.org>
62915
62916         * config/srclist.txt (gendocs_template_min): new entry.
62917
62918 2007-04-29  Bruno Haible  <bruno@clisp.org>
62919
62920         Work around fpurge bug on BSD systems.
62921         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62923         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62924         fpurge to rpl_fpurge if the system already has this function.
62925         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62926         the case where the system already has this function. Correct invariants
62927         on BSD systems.
62928         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62929         BSD systems.
62930
62931 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62932
62933         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62934         proposed by Sven Verdoolaege.
62935
62936         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62937         options.
62938         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62939         (usage and help tests): Update
62940
62941 2007-04-29  Bruno Haible  <bruno@clisp.org>
62942
62943         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62944         Print more information in case of failure. Disable a test on BeOS.
62945
62946 2007-04-29  Bruno Haible  <bruno@clisp.org>
62947
62948         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62949         This helps debugging on systems on which no gdb is available.
62950
62951 2007-04-29  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/freading.h: Improve comments.
62954         * lib/fwriting.h: Likewise.
62955         * tests/test-freading.c (main): Don't check freading immediately after
62956         repositioning. Needed for glibc.
62957
62958 2007-04-29  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/freading.c (freading): Trivial simplification.
62961
62962 2007-04-28  Bruno Haible  <bruno@clisp.org>
62963
62964         * tests/test-fwriting.c (main): Also test the interaction between
62965         fflush and fwriting.
62966         * modules/fwriting-tests (Depends-on): Add fflush.
62967
62968         * tests/test-freading.c (main): Also test the interaction between
62969         fflush and freading.
62970         * modules/freading-tests (Depends-on): Add fflush.
62971
62972 2007-04-28  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62975         fseeko and ftello.
62976         Suggested by Eric Blake.
62977
62978 2007-04-28  Jim Meyering  <jim@meyering.net>
62979
62980         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62981         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62982         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62983
62984 2007-04-27  Eric Blake  <ebb9@byu.net>
62985
62986         * doc/headers/assert.texi (assert.h): Document assert module use.
62987
62988 2007-04-27  Bruno Haible  <bruno@clisp.org>
62989
62990         * doc/headers/*.texi: New files.
62991         * doc/gnulib.texi (Header File Substitutes): New chapter.
62992         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62993         dependencies.
62994         (standards.info ,standards.html, standards.dvi): Update dependencies.
62995         (mostlyclean, clean): New targets.
62996
62997 2007-04-27  Bruno Haible  <bruno@clisp.org>
62998
62999         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
63000         * modules/sysexits (Files, Makefile.am): Update.
63001
63002         * lib/sys_socket_.h: Renamed from lib/socket_.h.
63003         * modules/sys_socket (Files, Makefile.am): Update.
63004
63005         * lib/sys_stat_.h: Renamed from lib/stat_.h.
63006         * modules/sys_stat (Files, Makefile.am): Update.
63007
63008 2007-04-27  Eric Blake  <ebb9@byu.net>
63009
63010         * lib/freading.h: Improve comments.
63011         * lib/fwriting.h: Likewise.
63012         * lib/fflush.c: Likewise.
63013
63014         Fix closein for mingw.
63015         * modules/closein-tests: Add tests for closein.
63016         * tests/test-closein.c: New file.
63017         * tests/test-closein.sh: Likewise.
63018         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
63019         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
63020
63021 2007-04-27  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
63024         version is < 6.
63025         * lib/math_.h [__DECC]: Likewise.
63026         * lib/stdio_.h [__DECC]: Likewise.
63027         * lib/stdlib_.h [__DECC]: Likewise.
63028         * lib/string_.h [__DECC]: Likewise.
63029         * lib/time_.h [__DECC]: Likewise.
63030         * lib/wchar_.h [__DECC]: Likewise.
63031         * lib/wctype_.h [__DECC]: Likewise.
63032
63033 2007-04-27  Bruno Haible  <bruno@clisp.org>
63034
63035         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
63036
63037 2007-04-27  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/fflush.c: Add comments.
63040         * modules/fpurge-tests (Depends-on): Add fflush.
63041         * modules/freadable-tests (Depends-on): Likewise.
63042         * modules/fwritable-tests (Depends-on): Likewise.
63043
63044 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
63045
63046         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
63047         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
63048         Report by Bruno Haible <bruno@clisp.org>.
63049
63050 2007-04-26  Eric Blake  <ebb9@byu.net>
63051
63052         Fix fflush on mingw.
63053         * modules/fflush (Depends-on): Add freading.
63054         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
63055         but unread data.
63056
63057 2007-04-26  Eric Blake  <ebb9@byu.net>
63058         and Bruno Haible  <bruno@clisp.org>
63059
63060         Implement freading and fwriting.
63061         * lib/freading.c: New file.
63062         * lib/freading.h: Likewise.
63063         * m4/freading.m4: Likewise.
63064         * modules/freading: Likewise.
63065         * modules/freading-tests: Likewise.
63066         * tests/test-freading.c: Likewise.
63067         * lib/fwriting.c: New file.
63068         * lib/fwriting.h: Likewise.
63069         * m4/fwriting.m4: Likewise.
63070         * modules/fwriting: Likewise.
63071         * modules/fwriting-tests: Likewise.
63072         * tests/test-fwriting.c: Likewise.
63073         * MODULES.html.sh (File stream based Input/Output): Mention them.
63074
63075 2007-04-26  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
63078         'long' when we assume it.
63079         Suggested by Eric Blake.
63080
63081 2007-04-26  Bruno Haible  <bruno@clisp.org>
63082
63083         Ensure fseeko, ftello are declared on glibc systems.
63084         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
63085         * modules/fseeko (configure.ac-early): Likewise.
63086         * modules/ftello (configure.ac-early): Likewise.
63087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
63088         AC_FUNC_FSEEKO for this.
63089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
63090         (gl_CHECK_FSEEKO): Remove macro.
63091
63092 2007-04-26  Bruno Haible  <bruno@clisp.org>
63093
63094         * tests/test-fflush.c (main): Also check the ftell result after
63095         fflush and fseek/fseeko.
63096         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
63097         file descriptor position cache in the stream.
63098         * lib/fseeko.c (rpl_fseeko): Likewise.
63099
63100 2007-04-26  Bruno Haible  <bruno@clisp.org>
63101
63102         * modules/fflush-tests (Depends-on): Add fseeko.
63103
63104 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
63105             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63106
63107         * lib/argz_.h: ensure error_t definition is obtained in same
63108         mechanism system argz.h would have.
63109         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
63110         argz facilities are known bad.  Err on the side of caution if
63111         cross-compiling.
63112
63113 2007-04-25  Eric Blake  <ebb9@byu.net>
63114
63115         * lib/fpurge.c (includes): Use stdlib.h for free.
63116         * tests/test-fflush.c (main): Also test fflush-fseeko.
63117
63118 2007-04-25  Bruno Haible  <bruno@clisp.org>
63119
63120         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
63121         * lib/fseeko.c: New file.
63122         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
63123         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
63124         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
63125         gl_FUNC_FSEEKO.
63126         (gl_FUNC_FSEEKO): Invoke it.
63127         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
63128         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
63129         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
63130
63131 2007-04-25  Bruno Haible  <bruno@clisp.org>
63132
63133         * modules/fflush (Depends-on): Add ftello.
63134
63135 2007-04-25  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/ftello-tests: New file.
63138         * tests/test-ftello.c: New file.
63139
63140         * modules/ftello: New file.
63141         * m4/ftello.m4: New file.
63142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63143         HAVE_FTELLO.
63144         * lib/stdio_.h (ftello): New declaration.
63145         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
63146         HAVE_FTELLO.
63147
63148 2007-04-25  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/fseeko-tests: New file.
63151         * tests/test-fseeko.c: New file.
63152
63153         * modules/fseeko: New file.
63154         * m4/fseeko.m4: New file.
63155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
63156         HAVE_FSEEKO.
63157         * lib/stdio_.h (fseeko): New declaration.
63158         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
63159         HAVE_FSEEKO.
63160
63161 2007-04-25  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
63164
63165 2007-04-25  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
63168         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
63169         * tests/test-unistd.c: Likewise.
63170         * tests/test-fcntl.c: Likewise.
63171
63172 2007-04-23  Eric Blake  <ebb9@byu.net>
63173
63174         * lib/fflush.c: Fix missing include.
63175         Reported by Bruno Haible.
63176
63177 2007-04-23  Bruno Haible  <bruno@clisp.org>
63178
63179         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
63180         Reported by Eric Blake.
63181
63182 2007-04-23  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
63185
63186 2007-04-23  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
63189
63190 2007-04-23  Bruno Haible  <bruno@clisp.org>
63191
63192         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
63193         Needed on HP-UX 11.
63194
63195 2007-04-16  Eric Blake  <ebb9@byu.net>
63196
63197         Make fflush rely on fpurge.
63198         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
63199         open coding all variants.
63200         * modules/fflush (Depends-on): Add fpurge and unistd.
63201         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
63202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
63203
63204         Fix --with-tests compilation on cygwin.
63205         * modules/argmatch-tests (Makefile.am): List gnulib library first
63206         in LDADD.
63207         * modules/argp-tests (Makefile.am): Likewise.
63208         * modules/array-list-tests (Makefile.am): Likewise.
63209         * modules/array-oset-tests (Makefile.am): Likewise.
63210         * modules/avltree-list-tests (Makefile.am): Likewise.
63211         * modules/avltree-oset-tests (Makefile.am): Likewise.
63212         * modules/avltreehash-list-tests (Makefile.am): Likewise.
63213         * modules/carray-list-tests (Makefile.am): Likewise.
63214         * modules/dirname-tests (Makefile.am): Likewise.
63215         * modules/frexp-tests (Makefile.am): Likewise.
63216         * modules/isnanl-tests (Makefile.am): Likewise.
63217         * modules/linked-list-tests (Makefile.am): Likewise.
63218         * modules/linkedhash-list-tests (Makefile.am): Likewise.
63219         * modules/lock-tests (Makefile.am): Likewise.
63220         * modules/rbtree-list-tests (Makefile.am): Likewise.
63221         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63222         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63223         * modules/tls-tests (Makefile.am): Likewise.
63224         * modules/tsearch-tests (Makefile.am): Likewise.
63225         * modules/xvasprintf-tests (Makefile.am): Likewise.
63226
63227         Fix fpurge for cygwin.
63228         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63229         value.
63230         * modules/fpurge-tests (Depends-on): Clean up trash.
63231
63232 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63233
63234         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63235
63236         * m4/autobuild.m4: Re-indent.
63237
63238 2007-04-13  Bruno Haible  <bruno@clisp.org>
63239
63240         * modules/fpurge-tests: New file.
63241         * tests/test-fpurge.c: New file.
63242
63243         * modules/fpurge: New file.
63244         * lib/fpurge.h: New file.
63245         * lib/fpurge.c: New file.
63246         * m4/fpurge.m4: New file.
63247
63248 2007-04-13  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/fbufmode-tests: New file.
63251         * tests/test-fbufmode.c: New file.
63252
63253         * modules/fbufmode: New file.
63254         * lib/fbufmode.h: New file.
63255         * lib/fbufmode.c: New file.
63256         * m4/fbufmode.m4: New file.
63257
63258 2007-04-13  Bruno Haible  <bruno@clisp.org>
63259
63260         * modules/fwritable-tests: New file.
63261         * tests/test-fwritable.c: New file.
63262
63263         * modules/fwritable: New file.
63264         * lib/fwritable.h: New file.
63265         * lib/fwritable.c: New file.
63266         * m4/fwritable.m4: New file.
63267
63268 2007-04-13  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/freadable-tests: New file.
63271         * tests/test-freadable.c: New file.
63272
63273         * modules/freadable: New file.
63274         * lib/freadable.h: New file.
63275         * lib/freadable.c: New file.
63276         * m4/freadable.m4: New file.
63277
63278 2007-04-13  Bruno Haible  <bruno@clisp.org>
63279
63280         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63281         MOSTLYCLEANFILES.
63282
63283 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63286         gzip bootstrap.conf to avoid dragging in i18n machinery.
63287         (gnulib_tool_option): Use it.
63288
63289 2007-04-13  Bruno Haible  <bruno@clisp.org>
63290
63291         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63292         %F directives.
63293         * tests/test-vasprintf-posix.c (test_function): Likewise.
63294         * tests/test-snprintf-posix.h (test_function): Likewise.
63295         * tests/test-sprintf-posix.h (test_function): Likewise.
63296         * tests/test-fprintf-posix.h (test_function): Likewise.
63297         * tests/test-printf-posix.h (test_function): Likewise.
63298         * tests/test-fprintf-posix.out: Likewise.
63299
63300 2007-04-13  Bruno Haible  <bruno@clisp.org>
63301
63302         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63303         * modules/tls-tests (configure.ac): Likewise.
63304         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63305
63306 2007-04-13  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/tls.c (glthread_tls_get): Fix return type.
63309         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63310
63311 2007-04-12  Eric Blake  <ebb9@byu.net>
63312
63313         * modules/gettime (Depends-on): Remove gettime.
63314         Reported by Dmitry V. Levin.
63315
63316 2007-04-12  Bruno Haible  <bruno@clisp.org>
63317
63318         * modules/fflush (Include): Mention <stdio.h>.
63319         * modules/strtoimax (Include): Mention <inttypes.h>.
63320         * modules/strtoumax (Include): Likewise.
63321
63322 2007-04-12  Eric Blake  <ebb9@byu.net>
63323
63324         * .cvsignore: New file.
63325         * .gitignore: Likewise.
63326
63327 2007-04-12  Bruno Haible  <bruno@clisp.org>
63328
63329         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63330         not before, since $(LDADD) often contains libgnu.a.
63331         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63332         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63333         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63334         Needed on Cygwin.
63335
63336 2007-04-12  Eric Blake  <ebb9@byu.net>
63337
63338         Work around glibc's failure to flush stdin on fclose.
63339         * lib/closein.c (close_stdin): Flush stdin before closing.
63340
63341         Work around glibc's failure to reset seekable stdin on exit.
63342         * modules/closein: New module.
63343         * lib/closein.c: New file.
63344         * lib/closein.h: Likewise.
63345         * m4/closein.m4: Likewise.
63346         * MODULES.html.sh (File stream based Input/Output): Document it.
63347
63348 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63349
63350         * gnulib-tool: Rename generated 'autobuild' script to
63351         'do-autobuild' in --create-megatestdir output.
63352
63353         * doc/gnulib.texi (Build robot for gnulib): Fix.
63354
63355 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63356
63357         * modules/sysexits (Depends-on): Add absolute-header.
63358
63359 2007-04-12  Eric Blake  <ebb9@byu.net>
63360
63361         No need to preserve errno on success.
63362         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63363         Reported by Bruno Haible.
63364
63365 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63366
63367         * MODULES.html.sh (Support for maintaining and releasing
63368         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63369
63370 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63371
63372         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63373
63374 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63375
63376         * modules/autobuild: New module.
63377
63378         * m4/autobuild.m4: New file.
63379
63380 2007-04-11  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63383         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63384         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63387         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63388         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63390         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63391         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63393         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63394         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63396         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63397         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63399         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63400         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63401         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63402         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63403         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63405         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63406         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63408         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63409         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63410         Reported by Eric Blake.
63411
63412 2007-04-11  Bruno Haible  <bruno@clisp.org>
63413
63414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63415
63416 2007-04-10  Bruno Haible  <bruno@clisp.org>
63417
63418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63419         for NaN and Infinity. Needed on FreeBSD 6.1.
63420         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63421         regarding results for "%010a" of Infinity and NaN.
63422         * tests/test-vasprintf-posix.c (test_function): Likewise.
63423         * tests/test-snprintf-posix.h (test_function): Likewise.
63424         * tests/test-sprintf-posix.h (test_function): Likewise.
63425         * tests/test-fprintf-posix.h (test_function): Likewise.
63426         * tests/test-printf-posix.h (test_function): Likewise.
63427         * tests/test-fprintf-posix.out: Likewise.
63428
63429 2007-04-10  Bruno Haible  <bruno@clisp.org>
63430
63431         * modules/locale-tests: New file.
63432         * tests/test-locale.c: New file.
63433
63434         * modules/locale: New file.
63435         * lib/locale_.h: New file.
63436         * m4/locale_h.m4: New file.
63437
63438 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63439             Bruno Haible  <bruno@clisp.org>
63440
63441         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63442         be determined, test for availability of the copysignf, copysign,
63443         copysignl functions.
63444         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63445         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63446         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63447
63448 2007-04-09  Eric Blake  <ebb9@byu.net>
63449
63450         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63451         * modules/stdio (Makefile.am): Support fflush.
63452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63453         * modules/fflush: New file.
63454         * lib/fflush.c: Likewise.
63455         * m4/fflush.m4: Likewise.
63456         * modules/fflush-tests: New test.
63457         * tests/test-fflush.c: Likewise.
63458         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63459
63460 2007-04-06  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63463         (VASNPRINTF): Use signbit for faster determination whether to print a
63464         minus sign.
63465         * modules/vasnprintf (Files): Remove lib/float+.h.
63466         * modules/fprintf-posix (Depends-on): Add signbit.
63467         * modules/snprintf-posix (Depends-on): Likewise.
63468         * modules/sprintf-posix (Depends-on): Likewise.
63469         * modules/vasnprintf-posix (Depends-on): Likewise.
63470         * modules/vasprintf-posix (Depends-on): Likewise.
63471         * modules/vfprintf-posix (Depends-on): Likewise.
63472         * modules/vsnprintf-posix (Depends-on): Likewise.
63473         * modules/vsprintf-posix (Depends-on): Likewise.
63474
63475 2007-04-06  Bruno Haible  <bruno@clisp.org>
63476
63477         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63478         * tests/test-frexpl.c (main): Likewise.
63479         * tests/test-ldexpl.c (main): Likewise.
63480         * modules/frexp-tests (Depends-on): Add signbit.
63481         * modules/frexpl-tests (Depdends-on): Likewise.
63482         * modules/ldexpl-tests (Depdends-on): Likewise.
63483
63484 2007-04-06  Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/signbit-tests: New file.
63487         * tests/test-signbit.c: New file.
63488
63489         * modules/signbit: New file.
63490         * lib/signbitf.c: New file.
63491         * lib/signbitd.c: New file.
63492         * lib/signbitl.c: New file.
63493         * m4/signbit.m4: New file.
63494         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63495         (signbit): New macro.
63496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63497         REPLACE_SIGNBIT.
63498         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63499         REPLACE_FREXPL into math.h.
63500
63501 2007-04-06  Bruno Haible  <bruno@clisp.org>
63502
63503         * modules/isnanf-nolibm-tests: New file.
63504         * tests/test-isnanf.c: New file.
63505
63506         * modules/isnanf-nolibm: New file.
63507         * lib/isnanf.h: New file.
63508         * lib/isnanf.c: New file.
63509         * lib/isnan.c: Consider the USE_FLOAT macro.
63510         * m4/isnanf.m4: New file.
63511
63512 2007-04-06  Bruno Haible  <bruno@clisp.org>
63513
63514         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63515         (Link): New section.
63516
63517         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63518
63519 2007-04-06  Bruno Haible  <bruno@clisp.org>
63520
63521         Assume the 'long double' type.
63522         * m4/longdouble.m4: Remove file.
63523         * config/srclist.txt: Don't mention longdouble.m4.
63524         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63525         * lib/float+.h: Likewise.
63526         * lib/frexp.c: Likewise.
63527         * lib/printf-args.h: Likewise.
63528         * lib/printf-args.c: Likewise.
63529         * lib/printf-frexp.c: Likewise.
63530         * lib/printf-parse.c: Likewise.
63531         * lib/vasnprintf.c: Likewise.
63532         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63533         * m4/intl.m4: Likewise.
63534         * m4/isnanl.m4: Likewise.
63535         * m4/printf.m4: Likewise.
63536         * m4/printf-frexpl.m4: Likewise.
63537         * m4/vasnprintf.m4: Likewise.
63538         * modules/allocsa (Files): Remove m4/longdouble.m4.
63539         * modules/gettext (Files): Likewise.
63540         * modules/relocatable-prog-wrapper (Files): Likewise.
63541         * modules/vasnprintf (Files): Likewise.
63542         * modules/isnanl (Files): Likewise.
63543         (Include): Simplify.
63544         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63545         (Include): Simplify.
63546         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63547         (Include): Simplify.
63548         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63549         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63550         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63551         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63552         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63553         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63554         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63555         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63556         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63557         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63558         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63559         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63560         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63561         * tests/test-isnanl.c: Likewise.
63562         * tests/test-snprintf-posix.h: Likewise.
63563         * tests/test-sprintf-posix.h: Likewise.
63564         * tests/test-vasnprintf-posix.c: Likewise.
63565         * tests/test-vasnprintf-posix2.c: Likewise.
63566         * tests/test-vasprintf-posix.c: Likewise.
63567
63568 2007-04-06  Bruno Haible  <bruno@clisp.org>
63569
63570         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63571         * lib/math_.h [__DECC]: Include the overridden include file through
63572         #include_next, outside the double-inclusion guard.
63573         * lib/stdio_.h [__DECC]: Likewise.
63574         * lib/stdlib_.h [__DECC]: Likewise.
63575         * lib/string_.h [__DECC]: Likewise.
63576         * lib/time_.h [__DECC]: Likewise.
63577         * lib/wchar_.h [__DECC]: Likewise.
63578         * lib/wctype_.h [__DECC]: Likewise.
63579         * lib/inttypes_.h [__DECC]: Likewise.
63580         Reported by Albert Chin <china@thewrittenword.com> in
63581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63582
63583 2007-04-04  Eric Blake  <ebb9@byu.net>
63584
63585         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63586         1.5.x.
63587
63588 2007-04-04  Bruno Haible  <bruno@clisp.org>
63589
63590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63591         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63592
63593 2007-04-04  Bruno Haible  <bruno@clisp.org>
63594
63595         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63596         results for "%010a" of Infinity and NaN.
63597         * tests/test-vasprintf-posix.c (test_function): Likewise.
63598         * tests/test-snprintf-posix.h (test_function): Likewise.
63599         * tests/test-sprintf-posix.h (test_function): Likewise.
63600         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63601         * tests/test-printf-posix.h (test_function): Likewise.
63602         * tests/test-fprintf-posix.out: Update.
63603         Needed for FreeBSD 6.1.
63604
63605 2007-04-04  Bruno Haible  <bruno@clisp.org>
63606
63607         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63608         directly used by the gnulib modules nor by gnulib-tool.
63609
63610 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         * DEPENDENCIES: Give overall description of version dependency
63613         desirability.  Use more-typical names for apps.
63614         Add shell, coreutils, diffutils, grep, tar, gzip.
63615
63616 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63617
63618         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63619
63620 2007-04-04  Karl Berry  <karl@gnu.org>
63621
63622         * MODULES.html.sh (func_module): missing '.
63623
63624 2007-04-03  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/argmatch-tests (Makefile.am): New variable
63627         test_argmatch_LDADD.
63628         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63629         * modules/array-list-tests (Makefile.am): New variable
63630         test_array_list_LDADD.
63631         * modules/array-oset-tests (Makefile.am): New variable
63632         test_array_oset_LDADD.
63633         * modules/avltree-list-tests (Makefile.am): New variable
63634         test_avltree_list_LDADD.
63635         * modules/avltree-oset-tests (Makefile.am): New variable
63636         test_avltree_oset_LDADD.
63637         * modules/avltreehash-list-tests (Makefile.am): New variable
63638         test_avltreehash_list_LDADD.
63639         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63640         test_canonicalize_lgpl_LDADD.
63641         * modules/carray-list-tests (Makefile.am): New variable
63642         test_carray_list_LDADD.
63643         * modules/dirname-tests (Makefile.am): New variable
63644         test_dirname_LDADD.
63645         * modules/linked-list-tests (Makefile.am): New variable
63646         test_linked_list_LDADD.
63647         * modules/linkedhash-list-tests (Makefile.am): New variable
63648         test_linkedhash_list_LDADD.
63649         * modules/rbtree-list-tests (Makefile.am): New variable
63650         test_rbtree_list_LDADD.
63651         * modules/rbtree-oset-tests (Makefile.am): New variable
63652         test_rbtree_oset_LDADD.
63653         * modules/rbtreehash-list-tests (Makefile.am): New variable
63654         test_rbtreehash_list_LDADD.
63655         * modules/xvasprintf-tests (Makefile.am): New variable
63656         test_xvasprintf_LDADD.
63657         Reported by Eric Blake.
63658
63659 2007-04-03  Eric Blake  <ebb9@byu.net>
63660
63661         * DEPENDENCIES: Weaken m4 requirements.
63662
63663 2007-04-03  Bruno Haible  <bruno@clisp.org>
63664
63665         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63666         * modules/isnanl-tests (configure.ac): Likewise.
63667
63668 2007-04-03  Ben Pfaff  <blp@gnu.org>
63669
63670         * modules/iconv_open: Add $(srcdir)/ to source directory
63671         references in Makefile fragments that call gperf, to fix VPATH
63672         builds.
63673
63674 2007-04-03  Bruno Haible  <bruno@clisp.org>
63675
63676         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63677         * lib/ldexpl.c: Undo last change.
63678
63679 2007-04-03  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/printf-frexpl (Depends-on): Undo last change.
63682         (Files): Add m4/ldexpl.m4.
63683
63684 2007-04-03  Bruno Haible  <bruno@clisp.org>
63685
63686         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63687         * modules/isnanl (Link): New section.
63688
63689         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63690         * modules/frexp (Link): New section.
63691
63692         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63693         * modules/frexpl (Link): New section.
63694
63695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63696         * modules/ldexpl (Link): New section.
63697
63698 2007-04-03  Bruno Haible  <bruno@clisp.org>
63699
63700         * modules/TEMPLATE-EXTENDED: New file.
63701         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63702
63703 2007-04-03  Bruno Haible  <bruno@clisp.org>
63704
63705         * DEPENDENCIES: New file.
63706         Suggested by Simon Josefsson.
63707
63708 2007-04-03  Bruno Haible  <bruno@clisp.org>
63709
63710         * doc/gnulib.texi: Escape @.
63711
63712 2007-04-03  James Youngman  <jay@gnu.org>
63713         and Paul Eggert  <eggert@cs.ucla.edu>
63714
63715         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63716         birthtime on all systems that have birthtime, not just those which
63717         use st_birthtimensec rather than st_birthtim.  Putting zero in
63718         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63719         that the birth time is not available for files on an NFS mount.
63720
63721 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63722
63723         * modules/memxor: Move back from crypto/, suggested by Bruno.
63724         * modules/crypto/hmac-sha1: Fix memxor dependency.
63725
63726         * modules/crypto/gc: Moved from ../.
63727
63728 2007-04-02  Eric Blake  <ebb9@byu.net>
63729
63730         * lib/ldexpl.c (includes): Avoid libm.
63731
63732         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63733
63734 2007-04-02  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63737         on IRIX.
63738
63739 2007-04-02  Bruno Haible  <bruno@clisp.org>
63740
63741         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63742         x86 or x86_64 platforms running MacOS X.
63743         Reported by Ryan Schmidt <@ryandesign.com>.
63744
63745 2007-04-02  Bruno Haible  <bruno@clisp.org>
63746
63747         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63748         i386.
63749
63750 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63751
63752         * modules/crypto/arcfour: Moved from ../.
63753         * modules/crypto/arcfour-tests: Moved from ../.
63754         * modules/crypto/arctwo: Moved from ../.
63755         * modules/crypto/arctwo-tests: Moved from ../.
63756         * modules/crypto/des: Moved from ../.
63757         * modules/crypto/des-tests: Moved from ../.
63758         * modules/crypto/gc-arcfour: Moved from ../.
63759         * modules/crypto/gc-arcfour-tests: Moved from ../.
63760         * modules/crypto/gc-arctwo: Moved from ../.
63761         * modules/crypto/gc-arctwo-tests: Moved from ../.
63762         * modules/crypto/gc-des: Moved from ../.
63763         * modules/crypto/gc-des-tests: Moved from ../.
63764         * modules/crypto/gc-hmac-md5: Moved from ../.
63765         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63766         * modules/crypto/gc-hmac-sha1: Moved from ../.
63767         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63768         * modules/crypto/gc-md2: Moved from ../.
63769         * modules/crypto/gc-md2-tests: Moved from ../.
63770         * modules/crypto/gc-md4: Moved from ../.
63771         * modules/crypto/gc-md4-tests: Moved from ../.
63772         * modules/crypto/gc-md5: Moved from ../.
63773         * modules/crypto/gc-md5-tests: Moved from ../.
63774         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63775         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63776         * modules/crypto/gc-random: Moved from ../.
63777         * modules/crypto/gc-rijndael: Moved from ../.
63778         * modules/crypto/gc-rijndael-tests: Moved from ../.
63779         * modules/crypto/gc-sha1: Moved from ../.
63780         * modules/crypto/gc-sha1-tests: Moved from ../.
63781         * modules/crypto/gc-tests: Moved from ../.
63782         * modules/crypto/hmac-md5: Moved from ../.
63783         * modules/crypto/hmac-md5-tests: Moved from ../.
63784         * modules/crypto/hmac-sha1: Moved from ../.
63785         * modules/crypto/hmac-sha1-tests: Moved from ../.
63786         * modules/crypto/md2: Moved from ../.
63787         * modules/crypto/md2-tests: Moved from ../.
63788         * modules/crypto/md4: Moved from ../.
63789         * modules/crypto/md4-tests: Moved from ../.
63790         * modules/crypto/md5: Moved from ../.
63791         * modules/crypto/md5-tests: Moved from ../.
63792         * modules/crypto/memxor: Moved from ../.
63793         * modules/crypto/rijndael: Moved from ../.
63794         * modules/crypto/rijndael-tests: Moved from ../.
63795         * modules/crypto/sha1: Moved from ../.
63796
63797 2007-03-30  James Youngman  <jay@gnu.org>
63798
63799         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63800         rename() to change the ctime of a file (because ctime is unaffected
63801         by rename on jfs2 on AIX 5.1).
63802         (main): Start by doing cleanup, in case a previous run failed leaving
63803         test files behind.
63804
63805 2007-03-31  Bruno Haible  <bruno@clisp.org>
63806
63807         Support old proprietary implementations of iconv.
63808         * modules/iconv_open: New file.
63809         * lib/iconv_.h: New file.
63810         * m4/iconv_h.m4: New file.
63811         * lib/iconv_open.c: New file.
63812         * lib/iconv_open-aix.gperf: New file.
63813         * lib/iconv_open-hpux.gperf: New file.
63814         * lib/iconv_open-irix.gperf: New file.
63815         * lib/iconv_open-osf.gperf: New file.
63816         * m4/iconv_open.m4: New file.
63817         * modules/linebreak (Depends-on): Add iconv_open.
63818         * modules/striconv (Depends-on): Likewise.
63819         * modules/striconveh (Depends-on): Likewise.
63820         * modules/unicodeio (Depends-on): Likewise.
63821         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63822         (iconv_t)(-1).
63823         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63824         conversion if cd is (iconv_t)(-1).
63825         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63826         is not possible.
63827
63828 2007-03-31  Bruno Haible  <bruno@clisp.org>
63829
63830         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63831         work on Solaris either. Protect also second use of "autodetect_jp".
63832
63833 2007-03-31  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63836         the function is not present.
63837
63838 2007-03-31  Bruno Haible  <bruno@clisp.org>
63839
63840         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63841         the function is not present.
63842
63843 2007-03-31  Bruno Haible  <bruno@clisp.org>
63844
63845         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63846         a bug in HP-UX iconv_open().
63847
63848 2007-03-31  Bruno Haible  <bruno@clisp.org>
63849
63850         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63851         (Mathematics <math.h>): New section, add fpieee.
63852         (Input/output <stdio.h>): Add fseterr.
63853         (Mathematics <math.h>): New section, add printf-frexp.
63854         (Container data structures): Add sublist.
63855         (Core language properties): Add fpucw, inline.
63856         (Functions for greatest-width integer types <inttypes.h>): Add
63857         imaxabs, imaxdiv, inttypes.
63858         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63859         isnanl-nolibm, ldexp.
63860         (Mathematics <math.h>): New section, add printf-frexpl.
63861         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63862         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63863         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63864         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63865         (Unicode string functions): Add unistr/u*-mbtoucr.
63866         (Java): Add javacomp-script, javaexec-script.
63867         (C#): Add csharpcomp-script, csharpexec-script.
63868         (Support for building libraries and executables): Add havelib,
63869         relocatable-*.
63870         (Support for maintaining and releasing projects): Renamed from
63871         'Support for maintaining and release projects'. Add announce-gen.
63872
63873 2007-03-31  Bruno Haible  <bruno@clisp.org>
63874
63875         * README: Talk primarily about git.
63876         (git and CVS): Renamed from CVS.
63877         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63878         gnulib is available through git.
63879         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63880
63881 2007-03-30  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63884         * lib/poll_.h: Likewise.
63885         * lib/stat_.h: Likewise.
63886         * lib/sys_time_.h: Likewise.
63887         * lib/sysexit_.h: Likewise.
63888         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63889         * lib/stdbool_.h: Likewise.
63890         * lib/byteswap_.h: Add double-inclusion guard.
63891
63892 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63893
63894         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63895
63896 2007-03-30  Karl Berry  <karl@gnu.org>
63897
63898         * config/srclist-update: double space after USA in the license
63899         substitution, since that's how it's usually (?) written.
63900
63901 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63904         reported by Bruno Haible.
63905
63906 2007-03-29  Bruno Haible  <bruno@clisp.org>
63907
63908         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63909         a bug in AIX iconv().
63910
63911 2007-03-29  Bruno Haible  <bruno@clisp.org>
63912
63913         * modules/ldexpl-tests: New file.
63914         * tests/test-ldexpl.c: New file.
63915
63916 2007-03-29  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/ldexpl.c: Include fpucw.h.
63919         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63920         multiplication.
63921         * modules/ldexpl (Depends-on): Add fpucw.
63922
63923 2007-03-29  Bruno Haible  <bruno@clisp.org>
63924
63925         * modules/ldexpl: New file.
63926         * m4/ldexpl.m4: New file.
63927         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63928         set.
63929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63930         REPLACE_LDEXPL.
63931         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63932         REPLACE_LDEXPL.
63933         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63934         gl_FUNC_LDEXPL_WORKS.
63935         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63936         * modules/mathl (Files): Remove lib/ldexpl.c.
63937         (Depends-on): Add ldexpl.
63938
63939 2007-03-29  Bruno Haible  <bruno@clisp.org>
63940
63941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63942
63943 2007-03-29  Bruno Haible  <bruno@clisp.org>
63944
63945         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63946         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63947         and possibly also HP-UX.
63948         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63949         work on AIX, IRIX, HP-UX, OSF/1.
63950         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63951         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63952         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63953         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63954         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63955         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63956
63957 2007-03-29  Bruno Haible  <bruno@clisp.org>
63958
63959         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63960
63961 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63964         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63965
63966 2007-03-29  Eric Blake  <ebb9@byu.net>
63967
63968         * lib/acl-internal.h: Remove redundant include.
63969         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63970         Cygwin when a file is locked.
63971
63972 2007-03-29  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63975         file.
63976         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63977
63978 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63981         try to remove a parent directory if the child couldn't be removed
63982         (except for the first rmdir, which could fail because the child
63983         doesn't exist).  Problem reported by Jeff Blaine in
63984         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63985
63986 2007-03-28  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/striconveh.c (utf8conv_carefully): New function.
63989         (mem_cd_iconveh_internal): Invoke it.
63990
63991 2007-03-28  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63994         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63995         input.
63996         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63997         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63998         unistr/u8-uctomb.
63999
64000 2007-03-28  Bruno Haible  <bruno@clisp.org>
64001
64002         * modules/unistr/u8-mbtoucr: New file.
64003         * lib/unistr/u8-mbtoucr.c: New file.
64004         * modules/unistr/u16-mbtoucr: New file.
64005         * lib/unistr/u16-mbtoucr.c: New file.
64006         * modules/unistr/u16-mbtoucr: New file.
64007         * lib/unistr/u16-mbtoucr.c: New file.
64008         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
64009
64010 2007-03-27  Simon Josefsson  <simon@josefsson.org>
64011             Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
64014         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
64015         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
64016
64017         * m4/stdio_h.m4: Add stubs for vasprintf too.
64018
64019         * modules/stdio: Support vasprintf in sed command.
64020
64021         * modules/vasprintf: Depend on stdio for prototypes.  Remove
64022         vasprintf.h.  Add stdio module indicator.
64023
64024         * lib/stdio_.h: Declare asprintf and vasprintf, based on
64025         vasprintf.h.
64026
64027         * lib/vasprintf.h: File removed.
64028
64029         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
64030         * lib/vasprintf.c: Ditto.
64031         * lib/xvasprintf.c: Ditto.
64032         * tests/test-vasprintf-posix.c: Ditto.
64033         * tests/test-vasprintf.c: Ditto.
64034
64035 2007-03-27  Bruno Haible  <bruno@clisp.org>
64036
64037         Make vasnprintf multithread-safe.
64038         * lib/vasnprintf.c (decimal_point_char): New function.
64039         (VASNPRINTF): Use it.
64040         Suggested by Simon Josefsson.
64041
64042 2007-03-27  Eric Blake  <ebb9@byu.net>
64043
64044         Support sub-second birthtime on cygwin.
64045         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
64046         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
64047         (get_stat_birthtime): Also work with st_birthtim.
64048
64049 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * lib/stat-time.h (USE_BIRTHTIME): Remove.
64052         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
64053         (get_stat_birthtime_ns): Do not try to use "spare" fields.
64054         (get_stat_birthtime_ns): Simplify compile-time tests.
64055         (get_stat_birthtime): Change the API to look like
64056         get_stat_mtime etc., except return a negative tv_nsec on error.
64057         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
64058         Don't check for "spare" fields.
64059         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
64060         or for struct stat.st_birthtime, as these tests aren't used.
64061         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
64062
64063 2007-03-27  Bruno Haible  <bruno@clisp.org>
64064
64065         * lib/stat-time.h: Include <sys/stat.h>.
64066
64067 2007-03-27  James Youngman  <jay@gnu.org>
64068
64069         * lib/stat-time.h (get_stat_birthtime): New function for
64070           retrieving st_birthtime as provided by UFS2 (hence *BSD).
64071         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
64072           and its variants.
64073         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
64074         * modules/stat-time-test: New file.
64075         * tests/test-stat-time.c: New test, devised by Bruno Haible.
64076
64077 2007-03-26  Bruno Haible  <bruno@clisp.org>
64078
64079         Better support of signalling NaNs.
64080         * lib/atanl.c: Include isnanl.h.
64081         (atanl): Perform test for NaN at the beginning of the function and
64082         through a call to isnanl.
64083         * lib/cosl.c: Include isnanl.h.
64084         (cosl): Perform test for NaN at the beginning of the function and
64085         through a call to isnanl.
64086         * lib/ldexpl.c: Include isnanl.h.
64087         (ldexpl): Perform test for NaN through a call to isnanl.
64088         * lib/logl.c: Include isnanl.h.
64089         (logl): Perform test for NaN at the beginning of the function and
64090         through a call to isnanl.
64091         * lib/sinl.c: Include isnanl.h.
64092         (sinl): Perform test for NaN at the beginning of the function and
64093         through a call to isnanl.
64094         * lib/sqrtl.c: Include isnanl.h.
64095         (sqrtl): Perform test for NaN at the beginning of the function and
64096         through a call to isnanl.
64097         * lib/tanl.c: Include isnanl.h.
64098         (tanl): Perform test for NaN at the beginning of the function and
64099         through a call to isnanl.
64100         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
64101         * modules/mathl (Depends-on): Add isnanl.
64102
64103 2007-03-26  Eric Blake  <ebb9@byu.net>
64104
64105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
64106         regression in logic sense of previous patch.
64107
64108 2007-03-26  Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
64111         unportable shell command "if ! ...".
64112         Reported by Ralf Wildenhues.
64113
64114 2007-03-25  Bruno Haible  <bruno@clisp.org>
64115
64116         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
64117         <sysexits.h> file, and only add EX_CONFIG.
64118         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
64119         absolute file name and whether it is sufficient. Substitute also
64120         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
64121         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
64122         ABSOLUTE_SYSEXITS_H into sysexits.h.
64123
64124 2007-03-25  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
64127         hints is NULL.
64128
64129 2007-03-25  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
64132         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
64133
64134 2007-03-25  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/vasnprintf.c: Include langinfo.h.
64137         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
64138         multithread-safe.
64139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
64140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
64141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64143         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64144         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
64147         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64148         Reported by Simon Josefsson.
64149
64150 2007-03-25  Bruno Haible  <bruno@clisp.org>
64151
64152         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
64153         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
64154         * modules/vasnprintf (Depends-on): Add stdint.
64155
64156 2007-03-25  Bruno Haible  <bruno@clisp.org>
64157
64158         * modules/fpieee: New file.
64159         * m4/fpieee.m4: New file.
64160         * modules/isnan-nolibm (Depends-on): Add fpieee.
64161         * modules/isnanl-nolibm (Depends-on): Add fpieee.
64162         * modules/isnanl (Depends-on): Add fpieee.
64163
64164 2007-03-25  Bruno Haible  <bruno@clisp.org>
64165
64166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
64167
64168 2007-03-25  Bruno Haible  <bruno@clisp.org>
64169
64170         Avoid test failures on IRIX 6.5.
64171         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
64172         (main): Use it.
64173         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
64174         macros.
64175         (main): Use them.
64176
64177 2007-03-25  Bruno Haible  <bruno@clisp.org>
64178
64179         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
64180         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
64181         exists but doesn't work.
64182         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
64183         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
64184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
64185         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
64186         math.h.
64187
64188 2007-03-25  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
64191         returns inf. Needed on IRIX 6.5.
64192
64193 2007-03-25  Bruno Haible  <bruno@clisp.org>
64194
64195         * tests/test-frexpl.c: Include isnanl-nolibm.h.
64196         (main): Use isnanl instead of x != x idiom.
64197         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
64198
64199         * tests/test-frexp.c: Include isnan.h.
64200         (main): Use isnan instead of x != x idiom.
64201         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
64202
64203 2007-03-25  Bruno Haible  <bruno@clisp.org>
64204
64205         * tests/test-frexp.c (NaN): New function/macro.
64206         (main): Use it instead of 0.0 / 0.0.
64207         * tests/test-isnan.c (NaN): New function/macro.
64208         (main): Use it instead of 0.0 / 0.0.
64209         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
64210         (test_function): Use it instead of 0.0 / 0.0.
64211         * tests/test-vasprintf-posix.c (NaN): New function/macro.
64212         (test_function): Use it instead of 0.0 / 0.0.
64213         * tests/test-snprintf-posix.h (NaN): New function/macro.
64214         (test_function): Use it instead of 0.0 / 0.0.
64215         * tests/test-sprintf-posix.h (NaN): New function/macro.
64216         (test_function): Use it instead of 0.0 / 0.0.
64217         * tests/test-fprintf-posix.h (NaN): New function/macro.
64218         (test_function): Use it instead of 0.0 / 0.0.
64219         * tests/test-printf-posix.h (NaN): New function/macro.
64220         (test_function): Use it instead of 0.0 / 0.0.
64221
64222         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64223
64224 2007-03-25  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64227
64228 2007-03-25  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/regexec.c (merge_state_with_log): Make static.
64231
64232 2007-03-25  Bruno Haible  <bruno@clisp.org>
64233
64234         * lib/trigl.c (kernel_rem_pio2): Make static.
64235
64236 2007-03-25  Bruno Haible  <bruno@clisp.org>
64237
64238         * lib/sincosl.c (sincosl_table): Make static.
64239
64240 2007-03-25  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64243         if the compiler does not support C99.
64244
64245 2007-03-25  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/time (Makefile.am): Ensure all rule action lines start with a
64248         tab.
64249
64250 2007-03-24  Bruno Haible  <bruno@clisp.org>
64251
64252         * modules/tsearch-tests: New file.
64253         * tests/test-tsearch.sh: New file.
64254         * tests/test-tsearch.c: New file, mostly copied from glibc.
64255
64256         * modules/search-tests: New file.
64257         * tests/test-search.c: New file.
64258
64259         * modules/search: New file.
64260         * lib/search_.h: New file, incorporating lib/tsearch.h.
64261         * m4/search_h.m4: New file.
64262         * lib/tsearch.h: Remove file.
64263         * lib/tsearch.c: Include search.h instead of tsearch.h.
64264         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64265         HAVE_TSEARCH.
64266         * modules/tsearch (Files): Remove lib/tsearch.h.
64267         (Depends-on): Add search.
64268         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64269         (Include): Change tsearch.h into search.h.
64270
64271 2007-03-24  Bruno Haible  <bruno@clisp.org>
64272
64273         * modules/fpucw: New file.
64274         * lib/fpucw.h: New file.
64275         * lib/frexp.c: Include fpucw.h.
64276         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64277         (FUNC): Use them.
64278         * lib/printf-frexp.c: Include fpucw.h.
64279         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64280         (FUNC): Use them.
64281         * lib/vasnprintf.c: Include fpucw.h.
64282         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64283         'long double' calculations.
64284         * tests/test-frexpl.c: Include fpucw.h.
64285         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64286         * tests/test-printf-frexpl.c: Include fpucw.h.
64287         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64288         * modules/frexpl (Depends-on): Add fpucw.
64289         * modules/printf-frexpl (Depends-on): Likewise.
64290         * modules/fprintf-posix (Depends-on): Likewise.
64291         * modules/snprintf-posix (Depends-on): Likewise.
64292         * modules/sprintf-posix (Depends-on): Likewise.
64293         * modules/vasnprintf-posix (Depends-on): Likewise.
64294         * modules/vasprintf-posix (Depends-on): Likewise.
64295         * modules/vfprintf-posix (Depends-on): Likewise.
64296         * modules/vsnprintf-posix (Depends-on): Likewise.
64297         * modules/vsprintf-posix (Depends-on): Likewise.
64298         * modules/frexpl-tests (Depends-on): Likewise.
64299         * modules/printf-frexpl-tests (Depends-on): Likewise.
64300
64301 2007-03-24  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/float+.h: New file.
64304         * lib/isnan.c: Include float+.h.
64305         (SIZE): New macro.
64306         (FUNC): Compare only SIZE bytes of the value.
64307         * lib/vasnprintf.c: Include float+.h.
64308         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64309         SIZEOF_LDBL or SIZEOF_DBL bytes.
64310         * modules/isnan-nolibm (Files): Add lib/float+.h.
64311         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64312         * modules/isnanl (Files): Add lib/float+.h.
64313         * modules/vasnprintf (Files): Add lib/float+.h.
64314
64315 2007-03-24  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64318         include isnanl-nolibm.h.
64319
64320 2007-03-24  Bruno Haible  <bruno@clisp.org>
64321
64322         * tests/test-read-file.c (main): Don't produce spurious output for
64323         expected situations. Make the test fail if it encountered unexpected
64324         results.
64325
64326 2007-03-24  Bruno Haible  <bruno@clisp.org>
64327
64328         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64329         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64330
64331 2007-03-24  Bruno Haible  <bruno@clisp.org>
64332
64333         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64334
64335 2007-03-24  Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64338         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64339
64340         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64341         * modules/utf8-ucs4: Turn into a symbolic link to module
64342         unistr/u8-mbtouc.
64343
64344         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64345         utf8-ucs4-unsafe.
64346         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64347         unistr/u8-mbtouc-unsafe.
64348
64349         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64350         * modules/utf16-ucs4: Turn into a symbolic link to module
64351         unistr/u16-mbtouc.
64352
64353         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64354         utf16-ucs4-unsafe.
64355         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64356         unistr/u16-mbtouc-unsafe.
64357
64358         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64359         * modules/ucs4-utf8: Turn into a symbolic link to module
64360         unistr/u8-ubtomb.
64361
64362         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64363         * modules/ucs4-utf16: Turn into a symbolic link to module
64364         unistr/u16-ubtomb.
64365
64366 2007-03-24  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64369         Enable the function only if HAVE_INLINE.
64370         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64371         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64372         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64373         Enable the function only if HAVE_INLINE.
64374         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64375         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64376         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64377         Enable the function only if HAVE_INLINE.
64378         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64379         Enable the function only if HAVE_INLINE.
64380         * modules/utf8-ucs4: Update.
64381         * modules/utf8-ucs4-unsafe: Update.
64382         * modules/utf16-ucs4: Update.
64383         * modules/utf16-ucs4-unsafe: Update.
64384         * modules/ucs4-utf8: Update.
64385         * modules/ucs4-utf16: Update.
64386
64387 2007-03-24  Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/utf8-ucs4.h: Remove file.
64390         * lib/utf8-ucs4-unsafe.h: Remove file.
64391         * lib/utf16-ucs4.h: Remove file.
64392         * lib/utf16-ucs4-unsafe.h: Remove file.
64393         * lib/ucs4-utf8.h: Remove file.
64394         * lib/ucs4-utf16.h: Remove file.
64395         * lib/unistr.h: Include their previous contents.
64396         * m4/utf-ucs4.m4: Remove file.
64397         * m4/ucs4-utf.m4: Remove file.
64398         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64399         (Depends-on): Add unistr/base.
64400         (configure.ac): Remove gl_UTF_UCS4.
64401         (Makefile.am): Update.
64402         (Include): Change to unistr.h.
64403         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64404         (Depends-on): Add unistr/base.
64405         (configure.ac): Remove gl_UTF_UCS4.
64406         (Makefile.am): Update.
64407         (Include): Change to unistr.h.
64408         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64409         (Depends-on): Add unistr/base.
64410         (configure.ac): Remove gl_UTF_UCS4.
64411         (Makefile.am): Update.
64412         (Include): Change to unistr.h.
64413         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64414         (Depends-on): Add unistr/base.
64415         (configure.ac): Remove gl_UTF_UCS4.
64416         (Makefile.am): Update.
64417         (Include): Change to unistr.h.
64418         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64419         (Depends-on): Add unistr/base.
64420         (configure.ac): Remove gl_UCS4_UTF.
64421         (Makefile.am): Update.
64422         (Include): Change to unistr.h.
64423         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64424         (Depends-on): Add unistr/base.
64425         (configure.ac): Remove gl_UCS4_UTF.
64426         (Makefile.am): Update.
64427         (Include): Change to unistr.h.
64428         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64429         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64430         utf8-ucs4-unsafe.h.
64431         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64432         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64433         utf16-ucs4-unsafe.h.
64434         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64435         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64436         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64437         * lib/unistr/u8-strchr.c: Likewise.
64438         * lib/unistr/u8-strrchr.c: Likewise.
64439         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64440         * lib/unistr/u16-strchr.c: Likewise.
64441         * lib/unistr/u16-strrchr.c: Likewise.
64442         * lib/striconveh.c: Update.
64443         * lib/linebreak.c: Update.
64444
64445 2007-03-24  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64448         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64449
64450 2007-03-22  Bruno Haible  <bruno@clisp.org>
64451
64452         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64453
64454 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64455
64456         * MODULES.html.sh (File system functions): New module write-any-file.
64457         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64458         * m4/write-any-file.m4: New files.
64459
64460 2007-03-23  Eric Blake  <ebb9@byu.net>
64461
64462         * gnulib-tool: Rearrange space-tab sequences, since some editors
64463         like to eat them.
64464
64465 2007-03-23  Eric Blake  <ebb9@byu.net>
64466
64467         * lib/version-etc.c (version_etc_va): Update license wording to
64468         be more concise.  Recommended by Richard Stallman.
64469
64470 2007-03-22  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/poll.c (MSG_PEEK): New fallback definition.
64473
64474 2007-03-22  Bruno Haible  <bruno@clisp.org>
64475
64476         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64477         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64478         (main): Update.
64479         Fixes a compilation error on BeOS.
64480
64481 2007-03-22  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/frexpl-tests: New file.
64484         * tests/test-frexpl.c: New file.
64485
64486         * modules/frexpl: New file.
64487         * m4/frexpl.m4: New file.
64488         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64489         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64491         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64492         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64493         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64494
64495 2007-03-22  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/frexpl.c: Share code with lib/frexp.c.
64498         * modules/mathl (Files): Add lib/frexp.c.
64499         (Depends-on): Add isnanl-nolibm.
64500
64501 2007-03-22  Bruno Haible  <bruno@clisp.org>
64502
64503         * modules/printf-frexp (Files): Add m4/frexp.m4.
64504         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64505         only if the found frexp function actually works.
64506
64507 2007-03-22  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/frexp.c: Remove older implementation that uses divisions.
64510
64511 2007-03-21  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/frexp-tests: New file.
64514         * tests/test-frexp.c: New file.
64515
64516         * modules/frexp: New file.
64517         * lib/frexp.c: New file.
64518         * m4/frexp.m4: New file.
64519         * lib/math_.h (frexp): New declaration.
64520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64521         REPLACE_FREXP.
64522         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64523
64524 2007-03-21  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/isnanl-tests: New file.
64527         * tests/test-isnanl.c: New file.
64528
64529         * modules/isnanl: New file.
64530         * lib/isnanl.h: New file.
64531         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64532         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64533         gl_FUNC_ISNANL_WORKS.
64534         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64535         New macros.
64536
64537 2007-03-21  Bruno Haible  <bruno@clisp.org>
64538
64539         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64540         lib/isnanl.h.
64541         (Include): Update.
64542         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64543         * lib/vasnprintf.c: Update.
64544         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64545         tests/test-isnanl.h, remove tests/test-isnanl.c.
64546         (Makefile.am): Update.
64547         * tests/test-isnanl-nolibm.c: New file.
64548         * tests/test-isnanl.h: New file.
64549         * tests/test-isnanl.c: Remove file.
64550
64551 2007-03-21  Jim Meyering  <jim@meyering.net>
64552
64553         When trying to open ".", treat ESTALE like EACCES.
64554         * lib/savewd.c (savewd_save): Resort to forking not just upon
64555         failure with EACCES, but also when errno is ESTALE.
64556
64557 2007-03-20  Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64560         Needed on AIX 5.1. Reported by Matthew Woehlke.
64561
64562 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         Suggestions by Bruno Haible:
64565         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64566         our own.
64567         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64568         * modules/acl (Depends-on): Add gettext.
64569
64570 2007-03-19  Bruno Haible  <bruno@clisp.org>
64571
64572         * modules/iconvme: Remove file.
64573         * lib/iconvme.h: Remove file.
64574         * lib/iconvme.c: Remove file.
64575         * m4/iconvme.m4: Remove file.
64576
64577 2007-03-19  Bruno Haible  <bruno@clisp.org>
64578
64579         * doc/relocatable-maint.texi: Break long shell script line.
64580         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64581
64582 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64585         handle file_has_acl.
64586         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64587         * lib/acl.c: Move header inclusions and related macro defns into
64588         lib/acl-internal.h.
64589         (S_ISLNK): Remove defn, since that's now done for us.
64590         (file_has_acl): Move to lib/file-has-acl.c.
64591         Call acl_trivial if available.  This is the crucial part of the fix.
64592         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64593         shared within the library.  Rewrite a bit, partly to make it compatible
64594         with the GNU coding style.
64595         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64596         Remove unnecessary double-quotes.
64597         Don't test for acl_to_text; the build will catch that.
64598         Replace acl_entries if it doesn't exist and it is needed.
64599         Check for -lsec and acl_trivial (as used on Solaris 10).
64600         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64601         lib/file-has-acl.c.
64602         (Depends-on): Add sys_stat, for S_ISLNK.
64603
64604 2007-03-19  Ben Pfaff  <blp@gnu.org>
64605
64606         * doc/gnulib.texi: Fix typos.
64607         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64608
64609 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64612         If size is zero here, buf must be zero.
64613
64614 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64615
64616         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64617         <bruno@clisp.org>.
64618
64619 2007-03-18  Bruno Haible  <bruno@clisp.org>
64620
64621         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64622         Suggested by Eric Blake.
64623
64624 2007-03-18  Ben Pfaff  <blp@gnu.org>
64625
64626         * doc/relocatable.texi: Recommend using as prefix a directory
64627         that does not exist and will never be created.  Based on
64628         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64629         and others.
64630
64631 2007-03-17  Bruno Haible  <bruno@clisp.org>
64632
64633         * lib/fchownat.c: Include lchown.h.
64634
64635 2007-03-17  Bruno Haible  <bruno@clisp.org>
64636
64637         Fix endless loop when the given allocated size was > INT_MAX.
64638         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64639         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64640         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64641         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64642         * lib/sprintf.c (sprintf): Likewise.
64643
64644 2007-03-17  Bruno Haible  <bruno@clisp.org>
64645
64646         * tests/test-argp-2.sh (func_compare): Output a context diff.
64647
64648 2007-03-17  Bruno Haible  <bruno@clisp.org>
64649
64650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64651         locale's decimal-point character.
64652
64653 2007-03-17  Bruno Haible  <bruno@clisp.org>
64654
64655         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64656         before comparing it. Needed because on some platforms (e.g. x86) a
64657         'long double' occupies less bytes than sizeof (long double).
64658
64659 2007-03-17  Bruno Haible  <bruno@clisp.org>
64660
64661         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64662         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64663         * tests/test-getaddrinfo.c (simple): Likewise.
64664         * tests/test-read-file.c (main): Likewise.
64665
64666 2007-03-17  Bruno Haible  <bruno@clisp.org>
64667
64668         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64669
64670 2007-03-17  Bruno Haible  <bruno@clisp.org>
64671
64672         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64673         unused variable.
64674
64675 2007-03-17  Bruno Haible  <bruno@clisp.org>
64676
64677         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64678         * tests/test-c-strncasecmp.c: Likewise.
64679
64680 2007-03-17  Bruno Haible  <bruno@clisp.org>
64681
64682         * modules/stdlib (Depends-on): Add unistd.
64683         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64684         Needed for MacOS X 10.3.
64685
64686 2007-03-17  Bruno Haible  <bruno@clisp.org>
64687
64688         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64689
64690 2007-03-17  Bruno Haible  <bruno@clisp.org>
64691
64692         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64693
64694 2007-03-17  Bruno Haible  <bruno@clisp.org>
64695
64696         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64697         to reflect files copied from gnulib (with or without modifications).
64698         Suggested by Jim Meyering.
64699
64700 2007-03-17  Eric Blake  <ebb9@byu.net>
64701
64702         * NEWS: Document stdlib change from 2007-02-18.
64703
64704 2007-03-17  Jim Meyering  <jim@meyering.net>
64705
64706         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64707         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64708         someone uses a name containing shell meta-characters.
64709         Reported by Alfred M. Szmidt.
64710
64711         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64712
64713 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64714
64715         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64716         and copy gettext configuration files only if configure.ac contains
64717         a use of AM_GNU_GETTEXT_VERSION.
64718
64719 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64720
64721         * build-aux/bootstrap (gnulib_name): New variable.
64722         (gnulib_tool_options): Use it.
64723
64724 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64725
64726         * tests/test-des.c: Use new namespace.
64727
64728 2007-03-15  Bruno Haible  <bruno@clisp.org>
64729
64730         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64731         Reported by James Youngman <jay@gnu.org>.
64732
64733 2007-03-15  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64736         declared prototype. Needed with cc on OSF/1 5.1.
64737
64738 2007-03-15  Bruno Haible  <bruno@clisp.org>
64739
64740         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64741         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64742         (struct gl_list_implementation): Add dispose_fn argument to the
64743         'create_empty', 'create' methods.
64744         (struct gl_list_impl_base): Add field 'dispose_fn'.
64745         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64746         argument.
64747         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64748         dispose_fn argument.
64749         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64750         dispose_fn on the dropped values.
64751         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64752         dispose_fn argument.
64753         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64754         dropped values.
64755         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64756         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64757         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64758         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64759         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64760         argument.
64761         (gl_tree_list_free): Call dispose_fn on the dropped values.
64762         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64763         the dropped values.
64764         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64765         Add dispose_fn argument.
64766         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64767         Call dispose_fn on the dropped values.
64768         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64769         Add dispose_fn argument.
64770         (gl_sublist_create): Initialize the 'dispose_fn' field.
64771         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64772         * tests/test-array_list.c (main): Update.
64773         * tests/test-carray_list.c (main): Update.
64774         * tests/test-avltree_list.c (main): Update.
64775         * tests/test-rbtree_list.c (main): Update.
64776         * tests/test-avltreehash_list.c (main): Update.
64777         * tests/test-rbtreehash_list.c (main): Update.
64778         * tests/test-linked_list.c (main): Update.
64779         * tests/test-linkedhash_list.c (main): Update.
64780         * tests/test-array_oset.c (main): Update.
64781
64782 2007-03-15  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64785         (gl_oset_create_empty): Add dispose_fn argument.
64786         (struct gl_oset_implementation): Add dispose_fn argument to
64787         'create_empty' method.
64788         (struct gl_oset_impl_base): Add dispose_fn field.
64789         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64790         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64791         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64792         values.
64793         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64794         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64795         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64796         dropped value.
64797         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64798         dropped value.
64799         * tests/test-array_oset.c (main): Update.
64800         * tests/test-avltree_oset.c (main): Update.
64801         * tests/test-rbtree_oset.c (main): Update.
64802         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64803
64804 2007-03-13  Bruno Haible  <bruno@clisp.org>
64805
64806         * tests/test-stdbool.c (i): Update after last patch.
64807
64808 2007-03-12  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64811         the iswprint macro. Needed on Solaris 2.5.1.
64812
64813 2007-03-12  Bruno Haible  <bruno@clisp.org>
64814
64815         * tests/test-printf-frexp.c (main): Declare x as volatile.
64816
64817 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64818
64819         * doc/gnulib.texi (Build robot for gnulib): New section.
64820
64821 2007-03-12  Jim Meyering  <jim@meyering.net>
64822
64823         * build-aux/bootstrap: New file.
64824         * build-aux/bootstrap.conf: New file, from coreutils.
64825
64826 2007-03-11  Bruno Haible  <bruno@clisp.org>
64827
64828         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64829
64830 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64831
64832         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64833         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64834         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64835
64836 2007-03-11  Bruno Haible  <bruno@clisp.org>
64837
64838         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64839         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64840
64841 2007-03-11  Bruno Haible  <bruno@clisp.org>
64842
64843         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64844         formula. Needed for SunPRO C 5.0.
64845
64846 2007-03-11  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/long-options (Depends-on): Add getopt.
64849
64850 2007-03-11  Bruno Haible  <bruno@clisp.org>
64851
64852         * modules/modechange (Depends-on): Add stdbool.
64853
64854 2007-03-11  Bruno Haible  <bruno@clisp.org>
64855
64856         * modules/i-ring (Depends-on): Add stdbool.
64857
64858 2007-03-11  Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/gc-des (Depends-on): Add stdbool.
64861
64862 2007-03-11  Bruno Haible  <bruno@clisp.org>
64863
64864         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64865
64866 2007-03-11  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64869
64870 2007-03-11  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64873
64874 2007-03-11  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/vasnprintf.c (sprintf): Undefine.
64877
64878 2007-03-11  Bruno Haible  <bruno@clisp.org>
64879
64880         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64881         initializers in SunPRO C and Compaq C compilers.
64882
64883 2007-03-11  Bruno Haible  <bruno@clisp.org>
64884
64885         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64886         decrementing code ANSI C compliant.
64887
64888 2007-03-11  Bruno Haible  <bruno@clisp.org>
64889
64890         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64891         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64892
64893 2007-03-11  Bruno Haible  <bruno@clisp.org>
64894
64895         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64896         <stdbool.h> substitute doesn't pass.
64897
64898 2007-03-11  Bruno Haible  <bruno@clisp.org>
64899
64900         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64901
64902 2007-03-11  Bruno Haible  <bruno@clisp.org>
64903
64904         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64905         script, for submission to autobuild.josefsson.org.
64906
64907 2007-03-10  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/canonicalize-lgpl-tests: New file.
64910         * tests/test-canonicalize-lgpl.sh: New file.
64911         * tests/test-canonicalize-lgpl.c: New file.
64912
64913         * modules/c-strcase-tests: New file.
64914         * tests/test-c-strcase.sh: New file.
64915         * tests/test-c-strcasecmp.c: New file.
64916         * tests/test-c-strncasecmp.c: New file.
64917
64918         * modules/atexit-tests: New file.
64919         * tests/test-atexit.sh: New file.
64920         * tests/test-atexit.c: New file.
64921
64922 2007-03-10  Bruno Haible  <bruno@clisp.org>
64923
64924         * tests/test-binary-io.sh: Use temporary filenames that are not so
64925         likely to clash with those of other tests (in a parallel make).
64926         * tests/test-binary-io.c: Likewise.
64927
64928 2007-03-10  Bruno Haible  <bruno@clisp.org>
64929
64930         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64931         fallback; use #error instead.
64932         Suggested by Simon Josefsson.
64933
64934 2007-03-10  Bruno Haible  <bruno@clisp.org>
64935
64936         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64937         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64938         first and the last.
64939
64940 2007-03-10  Bruno Haible  <bruno@clisp.org>
64941
64942         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64943
64944 2007-03-10  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64947         "make distcheck".
64948         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64949         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64950         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64951
64952 2007-03-10  Bruno Haible  <bruno@clisp.org>
64953
64954         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64955         variable.
64956         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64957         variable.
64958
64959 2007-03-09  Eric Blake  <ebb9@byu.net>
64960         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64961
64962         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64963         types are not being provided by gnulib.
64964         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64965         types are supported.
64966
64967 2007-03-10  Bruno Haible  <bruno@clisp.org>
64968
64969         * lib/stdio_.h (__attribute__): New macro.
64970         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64971         vsprintf): Specify __attribute__ __format__ for GCC.
64972         Suggested by Eric Blake.
64973
64974 2007-03-09  Bruno Haible  <bruno@clisp.org>
64975
64976         * modules/printf-posix-tests: New file.
64977         * tests/test-printf-posix.sh: New file.
64978         * tests/test-printf-posix.c: New file.
64979
64980         * modules/printf-posix: New file.
64981         * lib/printf.c: New file.
64982         * m4/printf-posix-rpl.m4: New file.
64983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64984         REPLACE_PRINTF.
64985         * lib/stdio_.h (printf): New declaration.
64986         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64987         ____strfmon____): New macros.
64988         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64989         REPLACE_PRINTF.
64990
64991 2007-03-09  Bruno Haible  <bruno@clisp.org>
64992
64993         * tests/test-vasnprintf-posix2.sh: New file.
64994         * tests/test-vasnprintf-posix2.c: New file.
64995         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64996         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64997         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64998
64999         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
65000         a locale dependent decimal point, rather than always '.'.
65001
65002 2007-03-09  Eric Blake  <ebb9@byu.net>
65003
65004         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
65005         spite of platforms like Tandem/NSK that define it to -1.
65006
65007 2007-03-08  Bruno Haible  <bruno@clisp.org>
65008
65009         * modules/vprintf-posix-tests: New file.
65010         * tests/test-vprintf-posix.sh: New file.
65011         * tests/test-vprintf-posix.c: New file.
65012         * tests/test-printf-posix.h: New file.
65013
65014         * modules/vprintf-posix: New file.
65015         * lib/vprintf.c: New file.
65016         * m4/vprintf-posix.m4: New file.
65017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
65018         REPLACE_VPRINTF.
65019         * lib/stdio_.h (vprintf): New declaration.
65020         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
65021         REPLACE_VPRINTF.
65022
65023 2007-03-08  Bruno Haible  <bruno@clisp.org>
65024
65025         * modules/fprintf-posix-tests: New file.
65026         * tests/test-fprintf-posix.sh: New file.
65027         * tests/test-fprintf-posix.c: New file.
65028
65029         * modules/fprintf-posix: New file.
65030         * lib/fprintf.c: New file.
65031         * m4/fprintf-posix.m4: New file.
65032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
65033         REPLACE_FPRINTF.
65034         * lib/stdio_.h (fprintf): New declaration.
65035         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
65036         REPLACE_FPRINTF.
65037
65038 2007-03-08  Bruno Haible  <bruno@clisp.org>
65039
65040         * modules/vfprintf-posix-tests: New file.
65041         * tests/test-vfprintf-posix.sh: New file.
65042         * tests/test-vfprintf-posix.c: New file.
65043         * tests/test-fprintf-posix.h: New file.
65044         * tests/test-fprintf-posix.out: New file.
65045
65046         * modules/vfprintf-posix: New file.
65047         * lib/vfprintf.c: New file.
65048         * m4/vfprintf-posix.m4: New file.
65049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
65050         REPLACE_VFPRINTF.
65051         * lib/stdio_.h (vfprintf): New declaration.
65052         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
65053         REPLACE_VFPRINTF.
65054
65055 2007-03-08  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
65058
65059 2007-03-08  Bruno Haible  <bruno@clisp.org>
65060
65061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
65062         instead of 'expr' invocations.
65063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65068         Suggested by Paul Eggert.
65069
65070 2007-03-08  Bruno Haible  <bruno@clisp.org>
65071
65072         * modules/fseterr-tests: New file.
65073         * tests/test-fseterr.c: New file.
65074
65075         * modules/fseterr: New file.
65076         * lib/fseterr.h: New file.
65077         * lib/fseterr.c: New file.
65078
65079 2007-03-08  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
65082         * lib/getopt_.h: Likewise.
65083         * lib/mbswidth.h: Likewise.
65084         * lib/setenv.h: Likewise.
65085         * lib/vasnprintf.h: Likewise.
65086         * lib/vasprintf.h: Likewise.
65087         * lib/verror.h: Likewise.
65088         * lib/xsetenv.h: Likewise.
65089         * lib/xvasprintf.h: Likewise.
65090
65091 2007-03-08  Jim Meyering  <jim@meyering.net>
65092
65093         * users.txt: Add parted.
65094
65095         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
65096
65097 2007-03-07  Bruno Haible  <bruno@clisp.org>
65098
65099         * m4/printf.m4: Make the shell script snippets copy&pastable.
65100
65101 2007-03-02  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/netinet_in_.h: New file.
65104         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
65105         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
65106         * modules/netinet_in (Files): Add lib/netinet_in_.h.
65107         (Depends-on): Add absolute-header.
65108         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
65109         into netinet/in.h.
65110
65111 2007-03-03  Bruno Haible  <bruno@clisp.org>
65112
65113         * lib/sys_select_.h: New file.
65114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
65115         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
65116         * modules/sys_select (Files): Add lib/sys_select_.h.
65117         (Depends-on): Add absolute-header.
65118         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
65119         into sys/select.h.
65120
65121 2007-03-02  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
65124         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
65125         values.
65126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
65127         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
65128         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
65129         * modules/sys_socket (Depends-on): Add absolute-header.
65130         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
65131         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
65132         (Include): Remove requirement of inclusion of <sys/types.h>.
65133
65134 2007-03-02  Bruno Haible  <bruno@clisp.org>
65135
65136         * lib/byteswap_.h (bswap_32): Fix formula.
65137
65138 2007-03-06  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/sprintf-posix-tests: New file.
65141         * tests/test-sprintf-posix.c: New file.
65142
65143         * modules/sprintf-posix: New file.
65144         * lib/sprintf.c: New file.
65145         * m4/sprintf-posix.m4: New file.
65146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
65147         REPLACE_SPRINTF.
65148         * lib/stdio_.h (sprintf): New declaration.
65149         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
65150         REPLACE_SPRINTF.
65151
65152 2007-03-06  Bruno Haible  <bruno@clisp.org>
65153
65154         * modules/vsprintf-posix-tests: New file.
65155         * tests/test-vsprintf-posix.c: New file.
65156         * tests/test-sprintf-posix.h: New file.
65157
65158         * modules/vsprintf-posix: New file.
65159         * lib/vsprintf.c: New file.
65160         * m4/vsprintf-posix.m4: New file.
65161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
65162         REPLACE_VSPRINTF.
65163         * lib/stdio_.h (vsprintf): New declaration.
65164         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
65165         REPLACE_VSPRINTF.
65166
65167 2007-03-06  Bruno Haible  <bruno@clisp.org>
65168
65169         * modules/vsnprintf (Depend-on): Remove minmax.
65170
65171 2007-03-06  Bruno Haible  <bruno@clisp.org>
65172
65173         * modules/snprintf-posix-tests: New file.
65174         * tests/test-snprintf-posix.c: New file.
65175
65176         * modules/snprintf-posix: New file.
65177         * m4/snprintf-posix.m4: New file.
65178         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
65179         gl_FUNC_SNPRINTF.
65180         (gl_FUNC_SNPRINTF): Invoke it.
65181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
65182         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
65183         is set.
65184         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
65185
65186 2007-03-06  Bruno Haible  <bruno@clisp.org>
65187
65188         * modules/vsnprintf-posix-tests: New file.
65189         * tests/test-vsnprintf-posix.c: New file.
65190         * tests/test-snprintf-posix.h: New file.
65191
65192         * modules/vsnprintf-posix: New file.
65193         * m4/vsnprintf-posix.m4: New file.
65194         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
65195         gl_FUNC_VSNPRINTF.
65196         (gl_FUNC_VSNPRINTF): Invoke it.
65197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
65198         * lib/stdio_.h (vsnprintf): Define as a replacement if
65199         REPLACE_VSNPRINTF is set.
65200         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
65201
65202 2007-03-06  Bruno Haible  <bruno@clisp.org>
65203
65204         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
65205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
65206
65207 2007-03-06  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
65210         (asinl): Declare also if HAVE_DECL_ASINL is set.
65211         (atanl): Declare also if HAVE_DECL_ATANL is set.
65212         (ceill): Declare also if HAVE_DECL_CEILL is set.
65213         (cosl): Declare also if HAVE_DECL_COSL is set.
65214         (expl): Declare also if HAVE_DECL_EXPL is set.
65215         (floorl): Declare also if HAVE_DECL_FLOORL is set.
65216         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
65217         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
65218         (logl): Declare also if HAVE_DECL_LOGL is set.
65219         (sinl): Declare also if HAVE_DECL_SINL is set.
65220         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
65221         (tanl): Declare also if HAVE_DECL_TANL is set.
65222         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65225         declaration of frexpl, ldexpl.
65226         * modules/printf-frexpl (Depends-on): Add math.
65227         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65228
65229 2007-03-05  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65232         frexpl and ldexpl are declared.
65233         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65234
65235 2007-03-05  Bruno Haible  <bruno@clisp.org>
65236
65237         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65238         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65239
65240 2007-03-05  Bruno Haible  <bruno@clisp.org>
65241
65242         * lib/stdio_.h: Include <stddef.h>.
65243
65244 2007-03-05  Bruno Haible  <bruno@clisp.org>
65245
65246         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65247
65248 2007-03-05  Bruno Haible  <bruno@clisp.org>
65249
65250         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65251         NetBSD 4, from Ralf Wildenhues.
65252
65253 2007-03-04  Bruno Haible  <bruno@clisp.org>
65254
65255         * lib/vasprintf.h: Update #if logic for the case when the functions
65256         exist but are overridden.
65257
65258 2007-03-04  Bruno Haible  <bruno@clisp.org>
65259
65260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65261         implementations: glibc-2.4 and MacOS X 10.3.
65262         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65263         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65264         * tests/test-vasprintf-posix.c (test_function): Likewise.
65265
65266 2007-03-04  Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/vasprintf-posix-tests: New file.
65269         * tests/test-vasprintf-posix.c: New file.
65270
65271         * modules/vasprintf-posix: New file.
65272         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65273         defined.
65274         * m4/vasprintf-posix.m4: New file.
65275         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65276         gl_FUNC_VASPRINTF.
65277         (gl_FUNC_VASPRINTF): Invoke it.
65278         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65279         here.
65280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65281
65282 2007-03-04  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65285         REPLACE_GETTIMEOFDAY.
65286         * modules/sys_time (Makefile.am): Likewise.
65287         * m4/sys_time_h.m4: Likewise.
65288         * m4/gettimeofday.m4: Likewise.
65289
65290 2007-03-04  Bruno Haible  <bruno@clisp.org>
65291
65292         * modules/vasnprintf-posix-tests: New file.
65293         * tests/test-vasnprintf-posix.c: New file.
65294
65295         * modules/vasnprintf-posix: New file.
65296         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65297         printf-frexpl.h.
65298         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65299         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65300         REPLACE_VASNPRINTF is defined.
65301         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65302         gl_FUNC_VASNPRINTF.
65303         (gl_FUNC_VASNPRINTF): Invoke it.
65304         * m4/vasnprintf-posix.m4: New file.
65305         * m4/printf.m4: New file.
65306
65307 2007-03-04  Bruno Haible  <bruno@clisp.org>
65308
65309         Compile progreloc.c only if --enable-relocatable is specified.
65310         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65311         if --enable-relocatable was specified.
65312         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65313         lib_SOURCES.
65314
65315 2007-03-04  Jim Meyering  <jim@meyering.net>
65316
65317         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65318         Use it consistently, rather than enumerating errno constants.
65319
65320 2007-03-04  Bruno Haible  <bruno@clisp.org>
65321
65322         * modules/xvasprintf-tests: New file.
65323         * tests/test-xvasprintf.c: New file.
65324
65325         * modules/vasprintf-tests: New file.
65326         * tests/test-vasprintf.c: New file.
65327
65328         * modules/vasnprintf-tests: New file.
65329         * tests/test-vasnprintf.c: New file.
65330
65331         * modules/vsnprintf-tests: New file.
65332         * tests/test-vsnprintf.c: New file.
65333
65334         * modules/snprintf-tests: New file.
65335         * tests/test-snprintf.c: New file.
65336
65337 2007-03-04  Bruno Haible  <bruno@clisp.org>
65338
65339         Compile relocatable.c only if --enable-relocatable is specified.
65340         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65341         gl_RELOCATABLE_LIBRARY.
65342         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65343         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65344         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65345         gl_RELOCATABLE_LIBRARY.
65346         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65347         (Makefile.am): Remove lib_SOURCES.
65348         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65349         gl_RELOCATABLE_LIBRARY.
65350         (Makefile.am): Remove lib_SOURCES.
65351         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65352         always.
65353         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65354         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65355
65356 2007-03-04  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/argmatch-tests: New file.
65359         * tests/test-argmatch.c: New file.
65360
65361         * tests/test-allocsa.c (main): Halve the number of loop runs.
65362
65363         * modules/alloca-opt-tests: New file.
65364         * tests/test-alloca-opt.c: New file.
65365
65366 2007-03-04  Jim Meyering  <jim@meyering.net>
65367
65368         Work around difference between Linux ACLs and Solaris 10 ZFS.
65369         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65370         for EINVAL.
65371
65372 2007-03-03  Bruno Haible  <bruno@clisp.org>
65373
65374         * modules/relocatable-prog (Depends-on): Add back progreloc's
65375         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65376
65377 2007-03-03  Bruno Haible  <bruno@clisp.org>
65378
65379         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65380         * modules/relocatable-lib: New file.
65381
65382 2007-03-03  Bruno Haible  <bruno@clisp.org>
65383
65384         * modules/relocatable-prog: Renamed from modules/relocatable.
65385         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65386
65387 2007-03-03  Bruno Haible  <bruno@clisp.org>
65388
65389         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65390         m4/relocatable-lib.m4.
65391         (Depends-on): Remove 'relocatable'.
65392         (configure.ac): Add gl_RELOCATABLE_NOP.
65393
65394 2007-03-03  Bruno Haible  <bruno@clisp.org>
65395
65396         * modules/relocatable-prog-wrapper: New file.
65397         * modules/relocatable (Depends-on): Add it. Remove all other
65398         dependencies except progname.
65399         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65400
65401         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65402         (gl_FUNC_STRERROR): Nop.
65403         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65404
65405         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65406         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65407
65408         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65409         (gl_FUNC_READLINK): Update.
65410
65411         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65412
65413 2007-03-03  Bruno Haible  <bruno@clisp.org>
65414
65415         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65416         * modules/xreadlink (Depends-on): Add unistd.
65417         * modules/xreadlink-with-size (Depends-on): Likewise.
65418
65419 2007-03-03  Bruno Haible  <bruno@clisp.org>
65420
65421         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65422         extracted from gt_FUNC_SETENV.
65423         (gt_FUNC_SETENV): Remove macro.
65424         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65425         remove gt_FUNC_SETENV.
65426
65427 2007-03-03  Bruno Haible  <bruno@clisp.org>
65428
65429         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65430         ENABLE_RELOCATABLE here.
65431         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65432
65433 2007-03-03  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65436         * tests/test-rbtreehash_list.c: Include progname.h.
65437         (main): Call set_program_name.
65438
65439         * modules/rbtree-oset-tests (Depends-on): Add progname.
65440         * tests/test-rbtree_oset.c: Include progname.h.
65441         (main): Call set_program_name.
65442
65443         * modules/rbtree-list-tests (Depends-on): Add progname.
65444         * tests/test-rbtree_list.c: Include progname.h.
65445         (main): Call set_program_name.
65446
65447         * modules/linked-list-tests (Depends-on): Add progname.
65448         * tests/test-linked_list.c: Include progname.h.
65449         (main): Call set_program_name.
65450
65451 2007-03-03  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65454         All uses of __restrict changed to _Restrict_.
65455         * lib/glob_.h (__restrict): Remove macro.
65456
65457 2007-03-02  Bruno Haible  <bruno@clisp.org>
65458
65459         * modules/gettext (configure.ac): Require gettext infrastructure
65460         from version 0.16.1.
65461
65462 2007-03-02  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/linkedhash-list-tests (Depends-on): Add progname.
65465         * tests/test-linkedhash_list.c: Include progname.h.
65466         (main): Call set_program_name.
65467
65468         * modules/carray-list-tests (Depends-on): Add progname.
65469         * tests/test-carray_list.c: Include progname.h.
65470         (main): Call set_program_name.
65471
65472         * modules/avltreehash-list-tests (Depends-on): Add progname.
65473         * tests/test-avltreehash_list.c: Include progname.h.
65474         (main): Call set_program_name.
65475
65476         * modules/avltree-oset-tests (Depends-on): Add progname.
65477         * tests/test-avltree_oset.c: Include progname.h.
65478         (main): Call set_program_name.
65479
65480         * modules/avltree-list-tests (Depends-on): Add progname.
65481         * tests/test-avltree_list.c: Include progname.h.
65482         (main): Call set_program_name.
65483
65484         * modules/array-oset-tests (Depends-on): Add progname.
65485         * tests/test-array_oset.c: Include progname.h.
65486         (main): Call set_program_name.
65487
65488         * modules/array-list-tests (Depends-on): Add progname.
65489         * tests/test-array_list.c: Include progname.h.
65490         (main): Call set_program_name.
65491
65492         * modules/argp-tests (Depends-on): Add progname.
65493         * tests/test-argp.c: Include argp.h first. Include progname.h.
65494         (main): Call set_program_name.
65495
65496 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * doc/gnulib-tool.texi (Initial import): Reword description of
65499         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65500         limited effect even if defined after the first system include.
65501
65502 2007-03-01  Bruno Haible  <bruno@clisp.org>
65503
65504         * build-aux/config.libpath: Update to libtool-1.5.22.
65505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65506
65507 2007-03-01  Bruno Haible  <bruno@clisp.org>
65508
65509         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65510         foo_CFLAGS.
65511         Reported by Ralf Wildenhues.
65512
65513 2007-03-01  Bruno Haible  <bruno@clisp.org>
65514
65515         * build-aux/install-reloc: Remove object files left over by some
65516         compilers.
65517         Reported by Ralf Wildenhues.
65518
65519 2007-03-01  Bruno Haible  <bruno@clisp.org>
65520
65521         * build-aux/install-reloc: Break long lines.
65522
65523 2007-03-01  Bruno Haible  <bruno@clisp.org>
65524
65525         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65526         Reported by Ralf Wildenhues.
65527
65528 2007-03-01  Bruno Haible  <bruno@clisp.org>
65529
65530         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65531         include ordering constraints.
65532
65533 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65537         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65538         as another example.
65539         * lib/time_.h: Fix misspelling.
65540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65541         Require gl_HEADER_TIME_H_DEFAULTS.
65542         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65543         * m4/time_r.m4 (gl_TIME_R): Likewise.
65544         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65545
65546 2007-03-01  Bruno Haible  <bruno@clisp.org>
65547
65548         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65549         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65550
65551 2007-03-01  Jim Meyering  <jim@meyering.net>
65552
65553         * modules/xreadlink (Maintainer): Add my name.
65554         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65555
65556 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65557             Bruno Haible  <bruno@clisp.org>
65558
65559         * build-aux/install-reloc: Compile also c-ctype.c.
65560         * build-aux/relocatable.sh.in: New file.
65561         * doc/relocatable.texi: New file.
65562         * doc/relocatable-maint.texi: New file.
65563         * doc/gnulib.texi: Include relocatable-maint.texi.
65564         * lib/progreloc.c: Include unistd.h unconditionally.
65565         * lib/relocwrapper.c: Include unistd.h unconditionally.
65566         Include c-ctype.h.
65567         (add_dotbin): Use c_tolower.
65568         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65569         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65570         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65571         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65572         to m4/relocatable-lib.m4.
65573         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65574         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65575         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65576         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65577         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65578         * modules/relocatable: New file.
65579         * modules/relocatable-lib: New file.
65580         * modules/relocatable-script: New file.
65581
65582 2007-02-28  Bruno Haible  <bruno@clisp.org>
65583
65584         Import --enable-relocatable infrastructure.
65585         * build-aux/config.libpath: New file, from GNU gettext.
65586         * build-aux/install-reloc: New file, from GNU gettext.
65587         * build-aux/reloc-ldflags: New file, from GNU gettext.
65588         * lib/relocatable.h: New file, from GNU gettext.
65589         * lib/relocatable.c: New file, from GNU gettext.
65590         * lib/relocwrapper.c: New file, from GNU gettext.
65591         * m4/relocatable.m4: New file, from GNU gettext.
65592
65593 2007-02-28  Bruno Haible  <bruno@clisp.org>
65594
65595         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65596
65597         * modules/xreadlink: New file, from GNU gettext with modifications.
65598         * lib/xreadlink.c: New file, from GNU gettext.
65599         * lib/xreadlink.h: Add comments.
65600         (xreadlink): New declaration.
65601
65602         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65603         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65604         lib/xreadlink-with-size.c.
65605         (configure.ac): Remove gl_XREADLINK invocation.
65606         (Makefile.am): Augment lib_SOURCES.
65607         * m4/xreadlink.m4: Remove file.
65608         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65609         (xreadlink_with_size): Renamed from xreadink.
65610         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65611         * modules/canonicalize (Depends-on): Replace xreadlink with
65612         xreadlink-with-size.
65613         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65614
65615 2007-02-25  Jim Meyering  <jim@meyering.net>
65616
65617         * build-aux/announce-gen: When complaining about excess arguments,
65618         list them.
65619
65620 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         * README: Document signed integer overflow situation more
65623         accurately.
65624
65625 2007-02-25  Bruno Haible  <bruno@clisp.org>
65626
65627         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65628         'a' or 'A' conversion.
65629
65630 2007-02-25  Bruno Haible  <bruno@clisp.org>
65631
65632         * modules/filename: Renamed from modules/pathname.
65633         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65634         lib/concatpath.c with lib/concat-filename.c.
65635         (Makefile.am): Update.
65636         (Include): Replace pathname.h with filename.h.
65637         * lib/filename.h: Renamed from lib/pathname.h.
65638         (concatenated_filename): Renamed from concatenated_pathname.
65639         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65640         (concatenated_filename): Renamed from concatenated_pathname.
65641         * lib/findprog.c: Include filename.h instead of pathname.h.
65642         (find_in_path): Update.
65643         * lib/javacomp.c: Include filename.h instead of pathname.h.
65644         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65645         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65646         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65647         is_oldgcj_14_13_usable, is_javac_usable): Update.
65648         * lib/javaexec.c: Include filename.h instead of pathname.h.
65649         (execute_java_class): Update.
65650         * modules/findprog: Update.
65651         * modules/javacomp: Update.
65652         * modules/javaexec: Update.
65653         * MODULES.html.sh (File system functions): Add 'filename', remove
65654         'pathname'.
65655
65656 2007-02-25  Bruno Haible  <bruno@clisp.org>
65657
65658         * modules/printf-frexpl-tests: New file.
65659         * tests/test-printf-frexpl.c: New file.
65660
65661         * modules/printf-frexpl: New file.
65662         * lib/printf-frexpl.h: New file.
65663         * lib/printf-frexpl.c: New file.
65664         * m4/printf-frexpl.m4: New file.
65665
65666 2007-02-25  Bruno Haible  <bruno@clisp.org>
65667
65668         * modules/printf-frexp-tests: New file.
65669         * tests/test-printf-frexp.c: New file.
65670
65671         * modules/printf-frexp: New file.
65672         * lib/printf-frexp.h: New file.
65673         * lib/printf-frexp.c: New file.
65674         * m4/printf-frexp.m4: New file.
65675
65676 2007-02-25  Bruno Haible  <bruno@clisp.org>
65677
65678         Assume automake >= 1.10 for the tests.
65679         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65680         * modules/arctwo-tests: Likewise.
65681         * modules/argp-tests: Likewise.
65682         * modules/avltree-list-tests: Likewise.
65683         * modules/avltree-oset-tests: Likewise.
65684         * modules/avltreehash-list-tests: Likewise.
65685         * modules/carray-list-tests: Likewise.
65686         * modules/crc-tests: Likewise.
65687         * modules/des-tests: Likewise.
65688         * modules/gc-arcfour-tests: Likewise.
65689         * modules/gc-arctwo-tests: Likewise.
65690         * modules/gc-des-tests: Likewise.
65691         * modules/gc-hmac-md5-tests: Likewise.
65692         * modules/gc-hmac-sha1-tests: Likewise.
65693         * modules/gc-md2-tests: Likewise.
65694         * modules/gc-md4-tests: Likewise.
65695         * modules/gc-md5-tests: Likewise.
65696         * modules/gc-pbkdf2-sha1-tests: Likewise.
65697         * modules/gc-rijndael-tests: Likewise.
65698         * modules/gc-sha1-tests: Likewise.
65699         * modules/gc-tests: Likewise.
65700         * modules/getaddrinfo-tests: Likewise.
65701         * modules/hmac-md5-tests: Likewise.
65702         * modules/hmac-sha1-tests: Likewise.
65703         * modules/linked-list-tests: Likewise.
65704         * modules/linkedhash-list-tests: Likewise.
65705         * modules/lock-tests: Likewise.
65706         * modules/md2-tests: Likewise.
65707         * modules/md4-tests: Likewise.
65708         * modules/md5-tests: Likewise.
65709         * modules/rbtree-list-tests: Likewise.
65710         * modules/rbtree-oset-tests: Likewise.
65711         * modules/rbtreehash-list-tests: Likewise.
65712         * modules/read-file-tests: Likewise.
65713         * modules/rijndael-tests: Likewise.
65714         * modules/stdint-tests: Likewise.
65715         * modules/tls-tests: Likewise.
65716
65717 2007-02-24  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65720         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65721         function; instead check whether isnan with a double argument links.
65722         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65723         function; instead check whether isnan with a 'long double' argument
65724         links.
65725         Reported by Eric Blake <ebb9@byu.net>.
65726
65727 2007-02-24  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65730         defined.
65731         * lib/isnanl.c: Remove all code. Just include isnan.c.
65732         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65733
65734 2007-02-25  Jim Meyering  <jim@meyering.net>
65735
65736         Avoid conflicting types for 'unsetenv' on FreeBSD.
65737         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65738         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65739         in stdlib.h.
65740
65741 2007-02-24  Bruno Haible  <bruno@clisp.org>
65742
65743         * modules/isnanl-nolibm-tests: New file.
65744         * tests/test-isnanl.c: New file.
65745
65746         * modules/isnanl-nolibm: New file.
65747         * lib/isnanl.h: New file.
65748         * lib/isnanl.c: New file.
65749         * m4/isnanl.m4: New file.
65750
65751 2007-02-24  Bruno Haible  <bruno@clisp.org>
65752
65753         * modules/isnan-nolibm-tests: New file.
65754         * tests/test-isnan.c: New file.
65755
65756         * modules/isnan-nolibm: New file.
65757         * lib/isnan.h: New file.
65758         * lib/isnan.c: New file.
65759         * m4/isnan.m4: New file.
65760
65761 2007-02-24  Bruno Haible  <bruno@clisp.org>
65762
65763         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65764         assume that an exponent fits in 20 bits.
65765
65766 2007-02-24  Jim Meyering  <jim@meyering.net>
65767
65768         * m4/regex.m4: Update the description of the configure-time option,
65769         --without-included-regex, to state accurately what the defaults are,
65770         and perhaps to give people an idea why using this option is risky.
65771
65772 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65775         loops on small arguments.  This attempts to avoid the problem
65776         Bruno Haible reported for AIX 4.3.2 in
65777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65778
65779 2007-02-23  Bruno Haible  <bruno@clisp.org>
65780
65781         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65782         Needed for help2man.
65783
65784 2007-02-23  Karl Berry  <karl@gnu.org>
65785
65786         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65787         exists, foo.h should be cvs-ignored, not committed.
65788
65789 2007-02-23  Eric Blake  <ebb9@byu.net>
65790
65791         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65792         * lib/stat-time.h (includes): Likewise.
65793         * lib/utimecmp.c (includes): Likewise.
65794         * lib/utimens.h (includes): Likewise.
65795         * lib/getdate.y (includes): Also include "timespec.h" for use
65796         internal to the module.
65797         * modules/utimens (Depends-on): Revert yesterday's patch.
65798         * modules/nanosleep (Depends-on): Add missing dependency.
65799
65800 2007-02-22  Bruno Haible  <bruno@clisp.org>
65801
65802         * lib/glob.c: Don't include getlogin_r.h.
65803
65804 2007-02-22  Jim Meyering  <jim@meyering.net>
65805
65806         * modules/utimens (Depends-on): Add timespec, required for
65807         utimens.h's inclusion of timespec.h.
65808
65809 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65812         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65813         Schwab in
65814         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65815         I'll try to think of a better way to fix the Solaris problem.
65816
65817         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65818         like glibc; on Solaris 10, it fails with errno == EINVAL.
65819         POSIX says the behavior is unspecified if the first argument is NULL,
65820         so play it safe and never pass NULL to the system getcwd.
65821
65822 2007-02-21  Jim Meyering  <jim@meyering.net>
65823
65824         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65825         of gettimeofday.  It would conflict with the one now always
65826         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65827         an IRIX 6.5 build failure.
65828
65829 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         Minor fixups to port to Solaris 10 with Sun C 5.8.
65832         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65833         * modules/getcwd (Depends-on): Add dirfd.
65834         * lib/putenv.c (putenv): #undef it.
65835         (rpl_putenv): New decl.
65836         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65837
65838 2007-02-20  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/stdio-tests: New file.
65841         * tests/test-stdio.c: New file.
65842
65843         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65844         (Depends-on): Add stdio.
65845         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65846         (Include): Use <stdio.h> instead of vsnprintf.h.
65847         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65848         HAVE_DECL_VSNPRINTF.
65849         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65850
65851         * modules/snprintf (Files): Remove lib/snprintf.h.
65852         (Depends-on): Add stdio.
65853         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65854         (Include): Use <stdio.h> instead of snprintf.h.
65855         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65856         HAVE_DECL_SNPRINTF.
65857         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65858         * lib/getaddrinfo.c: Likewise.
65859
65860         * modules/stdio: New file.
65861         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65862         * lib/snprintf.h: Remove file.
65863         * lib/vsnprintf.h: Remove file.
65864         * lib/.cppi-disable: Remove snprintf.h.
65865         * m4/stdio_h.m4: New file.
65866         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65867
65868 2007-02-20  Jim Meyering  <jim@meyering.net>
65869
65870         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65871         used by e.g., mingw.  From Bruno Haible.
65872
65873 2007-02-19  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65876         warnings.
65877         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65878
65879 2007-02-19  Bruno Haible  <bruno@clisp.org>
65880
65881         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65882         from mingw users.
65883
65884 2007-02-19  Bruno Haible  <bruno@clisp.org>
65885
65886         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65887         warnings.
65888         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65889
65890 2007-02-19  Jim Meyering  <jim@meyering.net>
65891
65892         Don't use FD after a successful "fdopendir (fd)".
65893         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65894         Reset it by calling dirfd on the just-obtained DIR*.
65895
65896         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65897         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65898
65899 2007-02-18  Bruno Haible  <bruno@clisp.org>
65900
65901         * lib/readlink.c: Include <unistd.h>.
65902         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65903         HAVE_READLINK.
65904         * modules/readlink (Depends-on): Add unistd.
65905         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65906         (Include): Add <unistd.h>.
65907
65908         * lib/getlogin_r.h: Remove file.
65909         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65910         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65911         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65912         HAVE_DECL_GETLOGIN_R.
65913         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65914         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65915         (Include): Use <unistd.h> instead of getlogin_r.h.
65916
65917         * lib/getcwd.h: Remove file.
65918         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65919         * lib/xgetcwd.c: Likewise.
65920         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65921         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65922         * modules/getcwd (Files): Remove lib/getcwd.h.
65923         (Depends-on): Add unistd.
65924         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65925         (Include): Use <unistd.h> instad of getcwd.h.
65926
65927         * lib/ftruncate.c: Include <unistd.h> first.
65928         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65929         Set HAVE_FTRUNCATE.
65930         * modules/ftruncate (Depends-on): Add unistd.
65931         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65932
65933         * lib/fchdir.c: Include <unistd.h> first.
65934         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65936         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65937         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65938         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65939
65940         * lib/dup2.c: Include <unistd.h> first.
65941         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65942         HAVE_DUP2.
65943         * modules/dup2 (Depends-on): Add unistd.
65944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65945
65946         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65947         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65948         REPLACE_CHOWN. Don't define chown as a macro here.
65949         * modules/chown (Depends-on): Add unistd.
65950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65951
65952         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65953         Add definition for GL_LINK_WARNING.
65954         (chown, dup2): New declarations.
65955         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65956         link warning.
65957         (ftruncate): New declaration.
65958         (getcwd): New declaration, taken from old getcwd.h.
65959         (getlogin_r): New declaration, taken from old getlogin_r.h.
65960         (readlink): New declaration.
65961         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65962         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65963         (gl_PREREQ_UNISTD): Remove macro.
65964         (gl_UNISTD_MODULE_INDICATOR): New macro.
65965         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65966         many new variables. Don't set UNISTD_H.
65967         * modules/unistd (Description): Change.
65968         (Depends-on): Add link-warning.
65969         (configure.ac): Update.
65970         (Makefile.am): Create unistd.h always. Substitute many new variables
65971         into it.
65972
65973 2007-02-18  Bruno Haible  <bruno@clisp.org>
65974
65975         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65976         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65977         HAVE_GETSUBOPT.
65978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65979         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65980         * lib/getsubopt.h: Remove file.
65981         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65982         (Depends-on): Add stdlib.
65983         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65984         (Includes): Use <stdlib.h> instead of getsubopt.h.
65985         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65986         Set HAVE_GETSUBOPT.
65987         * lib/getsubopt.c: Don't include getsubopt.h.
65988
65989 2007-02-18  Bruno Haible  <bruno@clisp.org>
65990
65991         * modules/fchdir (Depends-on): Add dup2.
65992
65993 2007-02-18  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/stdlib_.h: Handle glibc's special invocation convention
65996         specially.
65997
65998 2007-02-18  Bruno Haible  <bruno@clisp.org>
65999
66000         * modules/stdlib-tests: New file.
66001         * tests/test-stdlib.c: New file.
66002
66003         * modules/mkstemp (Files): Remove lib/mkstemp.h.
66004         (Depends-on): Add stdlib.
66005         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66006         (Includes): Use <stdlib.h> instead of mkstemp.h.
66007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66008         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
66009         * lib/mkstemp.c: Don't include mkstemp.h.
66010         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
66011         * lib/stdlib--.h: Don't include mkstemp.h.
66012
66013         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
66014         (Depends-on): Add stdlib.
66015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66016         (Includes): Use <stdlib.h> instead of mkdtemp.h.
66017         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66018         HAVE_MKDTEMP.
66019         * lib/mkdtemp.c: Don't include mkdtemp.h.
66020         * lib/clean-temp.c: Don't include mkdtemp.h.
66021
66022         * modules/exit (Files): Remove lib/exit.h.
66023         (Depends-on): Add stdlib.
66024         (Makefile.am): Remove lib_SOURCES.
66025         (Include): Use <stdlib.h> instead of exit.h.
66026         * lib/argmatch.c: Don't include exit.h.
66027         * lib/execute.c: Likewise.
66028         * lib/pagealign_alloc.c: Likewise.
66029         * lib/pipe.c: Likewise.
66030         * lib/wait-process.c: Likewise.
66031         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
66032         * lib/exitfail.c: Likewise.
66033         * lib/savewd.c: Likewise.
66034         * lib/xsetenv.c: Likewise.
66035
66036         * modules/stdlib: New file.
66037         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
66038         and extra comments about mkstemp().
66039         * lib/exit.h: Remove file.
66040         * lib/mkdtemp.h: Remove file.
66041         * lib/mkstemp.h: Remove file.
66042         * m4/stdlib_h.m4: New file.
66043         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
66044
66045 2007-02-18  Bruno Haible  <bruno@clisp.org>
66046
66047         * modules/math-tests: New file.
66048         * tests/test-math.c: New file.
66049
66050         * modules/math: New file.
66051         * modules/mathl (Files): Remove lib/mathl.h.
66052         (Depends-on): Add math.
66053         (Makefile.am): Don't mention mathl.h.
66054         (Include): Use <math.h> instead of mathl.h.
66055         * lib/math_.h: New file.
66056         * lib/mathl.h: Remove file.
66057         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
66058         mathl.h.
66059         * lib/asinl.c: Likewise.
66060         * lib/atanl.c: Likewise.
66061         * lib/ceill.c: Likewise.
66062         * lib/cosl.c: Likewise.
66063         * lib/expl.c: Likewise.
66064         * lib/floorl.c: Likewise.
66065         * lib/frexpl.c: Likewise.
66066         * lib/ldexpl.c: Likewise.
66067         * lib/logl.c: Likewise.
66068         * lib/sincosl.c: Likewise.
66069         * lib/sinl.c: Likewise.
66070         * lib/sqrtl.c: Likewise.
66071         * lib/tanl.c: Likewise.
66072         * lib/trigl.c: Likewise.
66073         * m4/math_h.m4: New file.
66074         * MODULES.html.sh (Mathematics): Add math.
66075
66076 2007-02-17  Bruno Haible  <bruno@clisp.org>
66077
66078         * modules/wctype-tests: New file.
66079         * tests/test-wctype.c: New file.
66080
66081         * modules/wchar-tests: New file.
66082         * tests/test-wchar.c: New file.
66083
66084         * modules/unistd-tests: New file.
66085         * tests/test-unistd.c: New file.
66086
66087         * modules/time-tests: New file.
66088         * tests/test-time.c: New file.
66089
66090         * modules/sysexits-tests: New file.
66091         * tests/test-sysexits.c: New file.
66092
66093         * modules/sys_time-tests: New file.
66094         * tests/test-sys_time.c: New file.
66095
66096         * modules/sys_stat-tests: New file.
66097         * tests/test-sys_stat.c: New file.
66098
66099         * modules/sys_socket-tests: New file.
66100         * tests/test-sys_socket.c: New file.
66101
66102         * modules/sys_select-tests: New file.
66103         * tests/test-sys_select.c: New file.
66104
66105         * modules/string-tests: New file.
66106         * tests/test-string.c: New file.
66107
66108         * modules/stdbool-tests: New file.
66109         * tests/test-stdbool.c: New file.
66110
66111         * modules/netinet_in-tests: New file.
66112         * tests/test-netinet_in.c: New file.
66113
66114         * modules/inttypes-tests: New file.
66115         * tests/test-inttypes.c: New file.
66116
66117         * modules/fcntl-tests: New file.
66118         * tests/test-fcntl.c: New file.
66119
66120         * modules/byteswap-tests: New file.
66121         * tests/test-byteswap.c: New file.
66122
66123         * modules/arpa_inet-tests: New file.
66124         * tests/test-arpa_inet.c: New file.
66125
66126 2007-02-17  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
66129         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
66130         if the corresponding module is not enabled. Emit link warnings if
66131         the function is used nevertheless.
66132         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
66133         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
66134         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
66135         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
66136         * modules/inttypes (Depends-on): Add link-warning.
66137         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66138         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
66139         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
66140         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
66141         * modules/imaxdiv (configure.ac): Likewise.
66142         * modules/strtoimax (configure.ac): Likewise.
66143         * modules/strtoumax (configure.ac): Likewise.
66144
66145 2007-02-17  Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
66148         gl_STRING_MODULE_INDICATOR_DEFAULTS.
66149         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
66150         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
66151
66152 2007-02-17  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/link-warning: New file.
66155         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
66156         * lib/string_.h (GL_LINK_WARNING): Remove definition.
66157         * modules/string (Depends-on): Add link-warning.
66158         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66159         string.h.
66160         * MODULES.html.sh (Support for building libraries and executables): Add
66161         link-warning.
66162
66163 2007-02-17  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
66166         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
66167         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
66168         long lines.
66169
66170 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
66171             Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/tmpfile: New file.
66174         * lib/tmpfile.c: New file.
66175         * m4/tmpfile.m4: New file.
66176         * MODULES.html.sh (func_all_modules): New section "Input/output".
66177
66178 2007-02-15  Bruno Haible  <bruno@clisp.org>
66179
66180         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
66181         (supports_delete_on_close): New function.
66182         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
66183
66184 2007-02-14  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/mbspcasecmp-tests: New file.
66187         * tests/test-mbspcasecmp.sh: New file.
66188         * tests/test-mbspcasecmp.c: New file.
66189
66190         New module mbspcasecmp.
66191         * modules/mbspcasecmp: New file.
66192         * lib/mbspcasecmp.c: New file.
66193         * lib/string_.h (strncasecmp): Change warning message.
66194         (mbspcasecmp): New declaration.
66195         * m4/mbspcasecmp.m4: New file.
66196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66197         GNULIB_MBSPCASECMP.
66198         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
66199         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
66200
66201 2007-02-14  Bruno Haible  <bruno@clisp.org>
66202
66203         * modules/mbsncasecmp-tests: New file.
66204         * tests/test-mbsncasecmp.sh: New file.
66205         * tests/test-mbsncasecmp.c: New file.
66206
66207         New module mbsncasecmp.
66208         * modules/mbsncasecmp: New file.
66209         * lib/mbsncasecmp.c: New file.
66210         * lib/string_.h (mbsncasecmp): New declaration.
66211         * m4/mbsncasecmp.m4: New file.
66212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66213         GNULIB_MBSNCASECMP.
66214         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
66215         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
66216
66217 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
66220         Verify that it doesn't overlap with our flags.
66221         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66222         do not have the desired effect in multibyte locales; instead, use
66223         mbscasecmp.
66224         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66225         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66226         we don't require GNU fnmatch ourselves (if our users require it, they
66227         should do so explicitly).
66228
66229         Fix regex code so it doesn't rely on strcasecmp.
66230         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66231         Otherwise, include gnulib's langinfo.h.
66232         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66233         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66234         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66235         * modules/regex (FILES): Remove m4/codeset.m4.
66236         (Depends-on): Add localcharset.  Remove strcase.
66237
66238 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66239
66240         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66241         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66242
66243 2007-02-13  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66247
66248 2007-02-12  Bruno Haible  <bruno@clisp.org>
66249
66250         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66251         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66252         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66253         time warning rather than a link error.
66254
66255 2007-02-12  Bruno Haible  <bruno@clisp.org>
66256
66257         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66258         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66260
66261 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66264         args, not 2.
66265
66266 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66267
66268         New module 'time', so that apps can include <time.h> as per
66269         POSIX and GNU instead of separate include files like time_r.h
66270         and timegm.h.  This implementation tries out a simpler approach
66271         for replacing decls in standard include files (as compared to
66272         the string module), somewhat as an experiment.
66273
66274         * config/srclist.txt: Comment out mktime.c for now.
66275         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66276         since it doesn't apply any more.  Use generic wording instead.
66277         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66278         'time'.
66279         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66280         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66281         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66282         Don't include <sys/types.h>; no longer needed since we assume C89.
66283         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66284         * lib/strftime.c: Likewise.
66285         * lib/time_r.c: Likewise.
66286         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66287         * lib/nanosleep.c: Include <time.h> first, to check interface.
66288         * lib/strptime.c: Likewise.
66289         * lib/time_r.c: Likewise.
66290         * lib/timegm.c: Likewise.
66291         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66292         needed.
66293         * lib/timegm.c: Don't include timegm.h; no longer needed.
66294         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66295         time.h now handles any problems in that area.
66296         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66297         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66298         that time.h defines struct timespec.
66299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66300         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66301         handles that.
66302         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66303         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66304         needed.  Set REPLACE_LOCALTIME.
66305         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66306         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66307         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66308         nanosleep; time_h.m4 now does that.  Don't require
66309         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66310         module handles this now.
66311         * modules/getdate (Depends-on): Remove timespec.  Add time.
66312         * modules/nanosleep (Depends-on): Likewise.
66313         * modules/stat-time (Depends-on): Likewise.
66314         * modules/nanosleep (Include): Include time.h, not timespec.h.
66315         * modules/strptime (Files): Remove lib/strptime.h.
66316         (Depends-on): Add extensions, time.
66317         (Include): Include time.h, not strptime.h.
66318         * modules/time_r (Files): Remove lib/time_r.h.
66319         (Depends-on): Add time.
66320         (Include): Include time.h, not time_r.h.
66321         * modules/timegm: Likewise.
66322         * modules/timespec (Description): Now does timespec-related decls
66323         of our own, instead of struct timespec itself.
66324         (Depends-on): Add time; remove extensions.
66325         (Maintainer): Add self.
66326         * modules/utimecmp (Depends-on): Add time; remove timespec.
66327         * modules/utimens (Depends-on): Likewise.
66328         * modules/xnanosleep (Depends-on): Likewise.
66329
66330 2007-02-11  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/c-strstr.c: Include allocsa.h.
66333         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66334         * lib/c-strcasestr.c: Include allocsa.h.
66335         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66336         * lib/strcasestr.c: Include allocsa.h.
66337         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66338         * lib/mbsstr.c: Include allocsa.h.
66339         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66340         allocsa/freesa instead of malloc/free.
66341         * lib/mbscasestr.c: Include allocsa.h.
66342         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66343         allocsa/freesa instead of malloc/free.
66344         * modules/c-strstr (Depends-on): Add allocsa.
66345         * modules/c-strcasestr (Depends-on): Likewise.
66346         * modules/strcasestr (Depends-on): Likewise.
66347         * modules/mbsstr (Depends-on): Likewise.
66348         * modules/mbscasestr (Depends-on): Likewise.
66349
66350 2007-02-11  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66353
66354         * modules/mbsspn-tests: New file.
66355         * tests/test-mbsspn.sh: New file.
66356         * tests/test-mbsspn.c: New file.
66357
66358 2007-02-11  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66361
66362         * modules/mbspbrk-tests: New file.
66363         * tests/test-mbspbrk.sh: New file.
66364         * tests/test-mbspbrk.c: New file.
66365
66366 2007-02-11  Bruno Haible  <bruno@clisp.org>
66367
66368         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66369         unneeded cast.
66370
66371         * modules/mbscspn-tests: New file.
66372         * tests/test-mbscspn.sh: New file.
66373         * tests/test-mbscspn.c: New file.
66374
66375 2007-02-11  Bruno Haible  <bruno@clisp.org>
66376
66377         * modules/mbscasecmp-tests: New file.
66378         * tests/test-mbscasecmp.sh: New file.
66379         * tests/test-mbscasecmp.c: New file.
66380
66381 2007-02-11  Bruno Haible  <bruno@clisp.org>
66382
66383         Ensure O(n) worst-case complexity of mbscasestr.
66384         * lib/mbscasestr.c: Include stdbool.h.
66385         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66386         functions.
66387         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66388         the bookkeeping indicates that it's worth it.
66389         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66390
66391         * modules/mbscasestr-tests: New file.
66392         * tests/test-mbscasestr1.c: New file.
66393         * tests/test-mbscasestr2.sh: New file.
66394         * tests/test-mbscasestr2.c: New file.
66395         * tests/test-mbscasestr3.sh: New file.
66396         * tests/test-mbscasestr3.c: New file.
66397         * tests/test-mbscasestr4.sh: New file.
66398         * tests/test-mbscasestr4.c: New file.
66399         * m4/locale-tr.m4: New file.
66400
66401 2007-02-11  Bruno Haible  <bruno@clisp.org>
66402
66403         Ensure O(n) worst-case complexity of mbsstr.
66404         * lib/mbsstr.c: Include stdbool.h.
66405         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66406         functions.
66407         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66408         bookkeeping indicates that it's worth it.
66409         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66410
66411         * modules/mbsstr-tests: New file.
66412         * tests/test-mbsstr1.c: New file.
66413         * tests/test-mbsstr2.sh: New file.
66414         * tests/test-mbsstr2.c: New file.
66415         * tests/test-mbsstr3.sh: New file.
66416         * tests/test-mbsstr3.c: New file.
66417         * m4/locale-fr.m4: New file.
66418
66419 2007-02-11  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/mbsrchr.c (mbsrchr): Fix bug.
66422
66423         * modules/mbsrchr-tests: New file.
66424         * tests/test-mbsrchr.sh: New file.
66425         * tests/test-mbsrchr.c: New file.
66426
66427 2007-02-11  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/mbschr.c (mbschr): Fix bug.
66430
66431         * modules/mbschr-tests: New file.
66432         * tests/test-mbschr.sh: New file.
66433         * tests/test-mbschr.c: New file.
66434         * m4/locale-zh.m4: New file.
66435
66436 2007-02-11  Bruno Haible  <bruno@clisp.org>
66437
66438         Support for copying multibyte string iterators.
66439         * lib/mbiter.h: Include <string.h>.
66440         (mbiter_multi_copy): New function.
66441         (mbi_copy): New macro.
66442         * lib/mbuiter.h: Include <string.h>.
66443         (mbuiter_multi_copy): New function.
66444         (mbui_copy): New macro.
66445
66446 2007-02-11  Bruno Haible  <bruno@clisp.org>
66447
66448         New module mbslen.
66449         * modules/mbslen: New file.
66450         * lib/mbslen.c: New file.
66451         * lib/string_.h (mbslen): New declaration.
66452         * m4/mbslen.m4: New file.
66453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66454         GNULIB_MBSLEN.
66455         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66456         * MODULES.html.sh (Internationalization functions): Add mbslen.
66457
66458 2007-02-11  Bruno Haible  <bruno@clisp.org>
66459
66460         Ensure O(n) worst-case complexity of strcasestr substitute.
66461         * lib/strcasestr.c: Include stdbool.h.
66462         (knuth_morris_pratt): New function.
66463         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66464         bookkeeping indicates that it's worth it.
66465         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66466
66467         * modules/strcasestr-tests: New file.
66468         * tests/test-strcasestr.c: New file.
66469
66470 2007-02-11  Bruno Haible  <bruno@clisp.org>
66471
66472         Ensure O(n) worst-case complexity of c_strcasestr.
66473         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66474         (knuth_morris_pratt): New function.
66475         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66476         the bookkeeping indicates that it's worth it.
66477         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66478
66479         * modules/c-strcasestr-tests: New file.
66480         * tests/test-c-strcasestr.c: New file.
66481
66482 2007-02-11  Bruno Haible  <bruno@clisp.org>
66483
66484         Ensure O(n) worst-case complexity of c_strstr.
66485         * lib/c-strstr.c: Include stdbool.h, string.h.
66486         (knuth_morris_pratt): New function.
66487         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66488         bookkeeping indicates that it's worth it.
66489         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66490
66491         * lib/c-strstr.c: Complete rewrite for maintainability.
66492
66493         * modules/c-strstr-tests: New file.
66494         * tests/test-c-strstr.c: New file.
66495
66496 2007-02-11  Bruno Haible  <bruno@clisp.org>
66497
66498         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66499         5.2.1 and earlier, whereby \055 was treated just like the range
66500         delimiter '-'.
66501         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66502
66503 2007-02-08  Bruno Haible  <bruno@clisp.org>
66504
66505         * modules/regex (Depends-on): Add stdbool.
66506         Reported by Dalibor Topic <robilad@kaffe.org>.
66507
66508 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66509
66510         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66511         Prefer returning from main to exiting from it.
66512         Remove unnecessary parens after sizeof.
66513
66514 2007-02-05  Bruno Haible  <bruno@clisp.org>
66515
66516         New module mbssep.
66517         * modules/mbssep: New file.
66518         * lib/mbssep.c: New file.
66519         * lib/string_.h (strsep): Add a conditional link warning.
66520         (mbssep): New declaration.
66521         * m4/mbssep.m4: New file.
66522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66523         GNULIB_MBSSEP.
66524         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66525         * MODULES.html.sh (Internationalization functions): Add mbssep.
66526
66527 2007-02-05  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66530         Optimize search in case of 1 delimiter.
66531
66532 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66533
66534         * lib/acl.h: Include sys/types.h before sys/acl.h.
66535
66536 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66537
66538         Merge upstream fix for glibc bugzilla #3957:
66539
66540         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66541
66542         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66543         bit for RE_HAT_LISTS_NOT_NEWLINE.
66544         (build_charclass_op): Remove bogus comment.
66545
66546 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66547
66548         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66549
66550 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66553         * lib/memmem.c [!defined _LIBC]: Include config.h.
66554
66555 2007-02-04  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66558         warning message.
66559
66560 2007-02-04  Bruno Haible  <bruno@clisp.org>
66561
66562         New module mbstok_r.
66563         * modules/mbstok_r: New file.
66564         * lib/mbstok_r.c: New file.
66565         * lib/string_.h (strtok_r): Change argument names to match the
66566         comments. Add a conditional link warning.
66567         (mbstok_r): New declaration.
66568         * m4/mbstok_r.m4: New file.
66569         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66570         GNULIB_MBSTOK_R.
66571         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66572         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66573
66574 2007-02-04  Bruno Haible  <bruno@clisp.org>
66575
66576         New module mbsspn.
66577         * modules/mbsspn: New file.
66578         * lib/mbsspn.c: New file.
66579         * lib/string_.h (strspn): Add a conditional link warning.
66580         (mbsspn): New declaration.
66581         * m4/mbsspn.m4: New file.
66582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66583         GNULIB_MBSSPN.
66584         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66585         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66586
66587 2007-02-04  Bruno Haible  <bruno@clisp.org>
66588
66589         New module mbspbrk.
66590         * modules/mbspbrk: New file.
66591         * lib/mbspbrk.c: New file.
66592         * lib/string_.h (strpbrk): Add a conditional link warning.
66593         (mbspbrk): New declaration.
66594         * m4/mbspbrk.m4: New file.
66595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66596         GNULIB_MBSPBRK.
66597         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66598         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66599
66600 2007-02-04  Bruno Haible  <bruno@clisp.org>
66601
66602         New module mbscspn.
66603         * modules/mbscspn: New file.
66604         * lib/mbscspn.c: New file.
66605         * lib/string_.h (strcspn): Add a conditional link warning.
66606         (mbscspn): New declaration.
66607         * m4/mbscspn.m4: New file.
66608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66609         GNULIB_MBSCSPN.
66610         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66611         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66612
66613 2007-02-04  Bruno Haible  <bruno@clisp.org>
66614
66615         New module mbscasestr, reduced goal of strcasestr.
66616         * modules/mbscasestr: New file.
66617         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66618         (mbscasestr): Renamed from strcasestr.
66619         * lib/strcasestr.c: Don't include mbuiter.h.
66620         (strcasestr): Remove support for multibyte locales.
66621         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66622         Change the conditional link warning.
66623         (mbscasestr): New declaration.
66624         * m4/mbscasestr.m4: New file.
66625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66626         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66627         REPLACE_STRCASESTR.
66628         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66630         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66631         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66632         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66633         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66634         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66635         (Depends-on): Remove mbuiter.
66636         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66637
66638 2007-02-04  Bruno Haible  <bruno@clisp.org>
66639
66640         Simplify handling of strncasecmp.
66641         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66642         the conditional link warning.
66643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66644         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66645         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66646         * modules/strcase (configure.ac): Don't invoke
66647         gl_STRING_MODULE_INDICATOR.
66648         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66649
66650 2007-02-04  Bruno Haible  <bruno@clisp.org>
66651
66652         New module mbscasecmp, reduced goal of strcasecmp.
66653         * modules/mbscasecmp: New file.
66654         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66655         (mbscasecmp): Renamed from strcasecmp.
66656         * lib/strcasecmp.c: Don't include mbuiter.h.
66657         (strcasecmp): Remove support for multibyte locales.
66658         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66659         Change the conditional link warning.
66660         (mbscasecmp): New declaration.
66661         * m4/mbscasecmp.m4: New file.
66662         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66663         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66664         REPLACE_STRCASECMP.
66665         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66667         GNULIB_MBSCASECMP.
66668         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66669         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66670         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66671         (Depends-on): Remove mbuiter.
66672         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66673
66674 2007-02-04  Bruno Haible  <bruno@clisp.org>
66675
66676         New module mbsstr. Remove module strstr.
66677         * modules/mbsstr: New file.
66678         * modules/strstr: Remove file.
66679         * lib/mbsstr.c: Renamed from lib/strstr.c.
66680         (mbsstr): Renamed from strstr.
66681         * lib/string_.h (strstr): Remove declaration. Change the conditional
66682         link warning.
66683         (mbsstr): New declaration.
66684         * m4/mbsstr.m4: New file.
66685         * m4/strstr.m4: Remove file.
66686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66687         REPLACE_STRSTR.
66688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66689         Don't initialize GNULIB_STRSTR.
66690         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66691         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66692         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66693         (Support for systems lacking ANSI C 89): Remove strstr.
66694
66695 2007-02-04  Bruno Haible  <bruno@clisp.org>
66696
66697         New module mbsrchr.
66698         * modules/mbsrchr: New file.
66699         * lib/mbsrchr.c: New file.
66700         * lib/string_.h (strrchr): Add a conditional link warning.
66701         (mbsrchr): New declaration.
66702         * m4/mbsrchr.m4: New file.
66703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66704         GNULIB_MBSRCHR.
66705         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66706         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66707
66708 2007-02-04  Bruno Haible  <bruno@clisp.org>
66709
66710         New module mbschr.
66711         * modules/mbschr: New file.
66712         * lib/mbschr.c: New file.
66713         * lib/string_.h (strchr): Add a conditional link warning.
66714         (mbschr): New declaration.
66715         * m4/mbschr.m4: New file.
66716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66717         GNULIB_MBSCHR.
66718         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66719         * MODULES.html.sh (Internationalization functions): Add mbschr.
66720
66721 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66724
66725         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66726
66727 2007-02-04  Bruno Haible  <bruno@clisp.org>
66728
66729         New module description section 'configure.ac-early'.
66730         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66731         (func_get_autoconf_early_snippet): New function.
66732         (func_import, func_create_testdir): Use it. Remove special cases for
66733         modules 'extensions' and 'lock'.
66734         * modules/extensions (configure.ac-early): Require
66735         gl_USE_SYSTEM_EXTENSIONS.
66736         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66737
66738 2007-02-04  Bruno Haible  <bruno@clisp.org>
66739
66740         Make use of gcj-4.3's -fsource and -ftarget option.
66741         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66742         and if so try the options -fsource and -ftarget.
66743         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66744         source_version, ftarget_option, target_version arguments.
66745         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66746         (is_envjavac_oldgcj_14_14_usable): Renamed from
66747         is_envjavac_gcj_14_14_usable.
66748         (is_envjavac_oldgcj_14_13_usable): Renamed from
66749         is_envjavac_gcj_14_13_usable.
66750         (is_gcj_present): Update.
66751         (is_gcj_43, is_gcj43_usable): New functions.
66752         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66753         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66754         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66755         try the options -fsource and -ftarget.
66756
66757 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66760         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66761         larger value.
66762
66763 2007-02-03  Jim Meyering  <jim@meyering.net>
66764
66765         Give tools a better chance to allocate space for very large buffers.
66766         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66767
66768         Make pwd and readlink work also when run with an unreadable parent dir
66769         on systems with openat support.
66770         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66771         provided getcwd function, even when we have openat support.
66772         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66773
66774 2007-02-02  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66777         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66778         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66779         portability problems if one of these functions is only used on specific
66780         platforms.
66781         Reported by Paul Eggert.
66782
66783 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66786         is causing more trouble than it's curing.
66787         * lib/regex_internal.h (__mempcpy): Remove.
66788         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66789         (and make the code a tad smaller to boot).
66790         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66791
66792 2007-02-02  Jim Meyering  <jim@meyering.net>
66793
66794         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66795         section, not in the Makefile.am: one.
66796
66797 2007-02-02  Eric Blake  <ebb9@byu.net>
66798
66799         * lib/strchrnul.c: Always include config.h first.
66800
66801         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66802         gnulib strstr is not necessary here.
66803
66804 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66805
66806         * m4/socklen.m4: Fix typo.
66807
66808 2007-02-02  Eric Blake  <ebb9@byu.net>
66809
66810         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66811         * modules/netinet_in (Makefile.am): Likewise.
66812
66813 2007-02-01  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/string_.h (GL_LINK_WARNING): New macro.
66816         (strcasecmp, strstr, strcasestr): If provided by the system,
66817         conditionally define as a macro that leads to a warning instead of to
66818         an error.
66819         (strncasecmp): Conditionally define as a macro that leads to a warning.
66820
66821 2007-02-01  Karl Berry  <karl@gnu.org>
66822
66823         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66824
66825 2007-02-01  Bruno Haible  <bruno@clisp.org>
66826
66827         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66828         renamings.
66829
66830 2007-02-01  Eric Blake  <ebb9@byu.net>
66831
66832         * modules/regex (Depends-on): Revert dependence on mempcpy.
66833         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66834         module's definition of mempcpy.
66835         Reported by Paul Eggert.
66836
66837 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66840         the symbol XYZ before redefining it.  This fixes a problem with
66841         programs that don't use XYZ, when compiled on systems that define
66842         XYZ to something else.
66843
66844 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66845
66846         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66847         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66848         writeable to group or other and (2) is intended to have a special
66849         mode bit that is set or cleared.  In such a case, the directory
66850         should be neither group- nor other-writeable until the special
66851         mode bits are right.
66852
66853 2007-01-31  Eric Blake  <ebb9@byu.net>
66854
66855         * modules/mountlist (Depends-on): Add strstr.
66856
66857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66858         bug.
66859         * modules/string (Makefile.am): Remove redundant replacement.
66860         * modules/regex (Depends-on): Add mempcpy.
66861
66862 2007-01-31  Bruno Haible  <bruno@clisp.org>
66863
66864         New module description field 'Link'.
66865         * gnulib-tool (func_usage): Document --extract-link-directive.
66866         (sed_extract_prog): Recognize 'Link' directive.
66867         (func_get_link_directive): New function.
66868         (func_import): Show summary of link directives.
66869         Handle --extract-link-directive option.
66870         * modules/acl (Link): New section.
66871         * modules/clock-time (Link): New section.
66872         * modules/euidaccess (Link): New section.
66873         * modules/gettext (Link): New section.
66874         * modules/iconv (Link): New section.
66875         * modules/lock (Link): New section.
66876         * modules/nanosleep (Link): New section.
66877         * modules/readline (Link): New section.
66878
66879 2007-01-27  Bruno Haible  <bruno@clisp.org>
66880
66881         Enforce the use of gnulib modules for unportable <string.h> functions.
66882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66883         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66884         (gl_HEADER_STRING_H_BODY): Require it.
66885         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66886         the symbol XYZ to one that gives a link error.
66887         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66888         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66889         * modules/mempcpy (configure.ac): Likewise.
66890         * modules/memrchr (configure.ac): Likewise.
66891         * modules/stpcpy (configure.ac): Likewise.
66892         * modules/stpncpy (configure.ac): Likewise.
66893         * modules/strcase (configure.ac): Likewise.
66894         * modules/strcasestr (configure.ac): Likewise.
66895         * modules/strchrnul (configure.ac): Likewise.
66896         * modules/strdup (configure.ac): Likewise.
66897         * modules/strndup (configure.ac): Likewise.
66898         * modules/strnlen (configure.ac): Likewise.
66899         * modules/strpbrk (configure.ac): Likewise.
66900         * modules/strsep (configure.ac): Likewise.
66901         * modules/strstr (configure.ac): Likewise.
66902         * modules/strtok_r (configure.ac): Likewise.
66903
66904 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66905
66906         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66907
66908 2007-01-30  Jim Meyering  <jim@meyering.net>
66909
66910         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66911
66912 2007-01-29  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66915         * lib/execute.c: Likewise.
66916         * lib/pipe.c: Likewise.
66917         * lib/printf-args.h: Likewise.
66918         * lib/printf-args.c: Likewise.
66919         * lib/printf-parse.c: Likewise.
66920         * lib/vasnprintf.c: Likewise.
66921
66922 2007-01-29  Eric Blake  <ebb9@byu.net>
66923
66924         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66925         declaration.
66926
66927 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66928
66929         * lib/strptime.h (strptime): Use 'restrict' for args where
66930         POSIX requires this.
66931         * lib/strptime.c (strptime): Likewise.
66932         Change license notice from LGPL to GPL, since gnulib-tool will
66933         change this as needed.
66934         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66935         defined.
66936         Include "strptime.h" first, to check interface.
66937         Do not #undef _LIBC and _NL_CURRENT.
66938         Do not include <stdlib.h>; no longer needed.
66939         Include "time_r.h" and declare ptime_locale_status
66940         only if _LIBC is not defined.
66941         (__P): Remove unused macro.
66942         (match_string): Bring back glibc version, but use it only if _LIBC
66943         is defined.
66944         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66945         Remove unnecessary assertion and abort() call.
66946         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66947         * m4/strptime.m4: Fix serial number comment.
66948         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66949         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66950         (Depends-on): Add time_r.
66951
66952 2007-01-29  Bruno Haible  <bruno@clisp.org>
66953
66954         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66955         strptime.
66956         * modules/strptime (Depends-on): Add stdbool.
66957         * lib/strptime.h: Include <time.h> always. Add comments.
66958
66959 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66960
66961         * modules/strptime: New file.
66962         * lib/strptime.h: New file.
66963         * lib/strptime.c: New file.
66964         * m4/strptime.m4: New file.
66965
66966 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * MODULES.html.sh: New module mpsort.
66969         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66970
66971         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66972         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66974         All uses changed.
66975         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66976         All uses changed.
66977         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66978         to _Restrict_.
66979         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66980         the parameter matches the prototype.
66981
66982 2007-01-28  Jim Meyering  <jim@meyering.net>
66983
66984         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66985         sys/time.h here, reverting that part of the previous patch:
66986         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66987
66988 2007-01-28  Bruno Haible  <bruno@clisp.org>
66989
66990         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66991         value of $(SYS_TIME_H).
66992         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66993         remove it conditionally, too. [added by Jim Meyering]
66994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66996         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66997         GETTIMEOFDAY_REPLACEMENT to 1.
66998
66999 2007-01-28  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
67002         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
67003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
67004         Set UNISTD_H instead of UNISTD_H2.
67005         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
67006
67007 2007-01-28  Bruno Haible  <bruno@clisp.org>
67008
67009         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
67010         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
67011
67012 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67013
67014         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
67015         (func_create_testdir): Ensure C locale for `grep' and `tr'
67016         character ranges.
67017         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
67018         ACLOCAL_AMFLAGS parsing state machine.
67019
67020 2007-01-27  Bruno Haible  <bruno@clisp.org>
67021
67022         * modules/unistr/base: Update.
67023
67024 2007-01-27  Bruno Haible  <bruno@clisp.org>
67025
67026         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
67027         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
67028         * modules/unistr/u32-mbtouc-unsafe: Renamed from
67029         modules/unistr/u32-mbtouc.
67030         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
67031         * lib/unistr.h: Update.
67032         * lib/linebreak.c: Update.
67033         * modules/unistr/u32-mbtouc: Renamed from
67034         modules/unistr/u32-mbtouc-safe.
67035         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
67036         * lib/unistr.h: Update.
67037         * lib/unistr/u32-to-u8.c: Update.
67038         * lib/unistr/u32-to-u16.c: Update.
67039
67040 2007-01-27  Bruno Haible  <bruno@clisp.org>
67041
67042         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
67043         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
67044         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
67045         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
67046         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
67047         * modules/unistr/u16-mbtouc-unsafe: Renamed from
67048         modules/unistr/u16-mbtouc.
67049         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
67050         * lib/unistr.h: Update.
67051         * lib/linebreak.c: Update.
67052         * modules/linebreak: Update.
67053         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
67054         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
67055         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
67056         * modules/unistr/u16-mbtouc: Renamed from
67057         modules/unistr/u16-mbtouc-safe.
67058         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
67059         * lib/unistr.h: Update.
67060         * lib/unistr/u16-to-u8.c: Update.
67061         * modules/unistr/u16-to-u8: Update.
67062         * lib/unistr/u16-to-u32.c: Update.
67063         * modules/unistr/u16-to-u32: Update.
67064
67065 2007-01-27  Bruno Haible  <bruno@clisp.org>
67066
67067         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
67068         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
67069         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
67070         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
67071         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
67072         * modules/unistr/u8-mbtouc-unsafe: Renamed from
67073         modules/unistr/u8-mbtouc.
67074         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
67075         * lib/unistr.h: Update.
67076         * lib/striconveh.c: Update.
67077         * modules/striconveh: Update.
67078         * lib/linebreak.c: Update.
67079         * modules/linebreak: Update.
67080         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
67081         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
67082         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
67083         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
67084         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
67085         * lib/unistr.h: Update.
67086         * lib/striconveh.c: Update.
67087         * modules/striconveh: Update.
67088         * lib/unistr/u8-to-u16.c: Update.
67089         * modules/unistr/u8-to-u16: Update.
67090         * lib/unistr/u8-to-u32.c: Update.
67091         * modules/unistr/u8-to-u32: Update.
67092
67093 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67094
67095         Sync from Libtool.
67096         * lib/argz.c: Do not include strings.h nor memory.h, include
67097         string.h unconditionally.  Patch by Simon Josefsson.
67098
67099 2007-01-27  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
67102         from gl_HEADER_STRING_H_BODY.
67103         (gl_HEADER_STRING_H_BODY): Require it.
67104         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
67105         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67106         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67107         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67109         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
67110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
67111         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67112         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
67113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67115         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
67116         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
67118         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67119
67120 2007-01-27  Bruno Haible  <bruno@clisp.org>
67121
67122         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
67123         check_PROGRAMS into noinst_PROGRAMS.
67124         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
67125         check_PROGRAMS in this case.
67126         (func_import): Set for_test to false.
67127         (func_create_testdir): Set for_test to true.
67128
67129 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67130             Bruno Haible  <bruno@clisp.org>
67131
67132         * modules/strcasestr (Files): Remove lib/strcasestr.h.
67133         (Depends-on): Add string.
67134         (Includes): Use <string.h> instead of strcasestr.h.
67135         * modules/string (Makefile.am): Also substitute the value of
67136         REPLACE_STRCASESTR.
67137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
67138         assume strcasestr is declared in <string.h> not <strings.h>. Also
67139         set REPLACE_STRCASESTR.
67140         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
67141         REPLACE_STRCASESTR.
67142         * lib/strcasestr.h: Remove file.
67143         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
67144         * lib/string_.h (strcasestr): New declaration.
67145
67146 2007-01-27  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/string_.h: Use 'extern'.
67149
67150 2007-01-27  Jim Meyering  <jim@meyering.net>
67151
67152         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
67153         of set-but-not-used local, "q".
67154
67155         * lib/mempcpy.c: Include <config.h> before <string.h>.
67156         This fixes a compilation error on HP-UX, due to the system's
67157         "restrict"-using mempcpy prototype.
67158
67159 2007-01-26  Bruno Haible  <bruno@clisp.org>
67160
67161         Small optimization.
67162         * lib/javacomp.c: Include c-strstr.h.
67163          (is_envjavac_gcj): Use c_strstr instead of strstr.
67164         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
67165
67166 2007-01-26  Bruno Haible  <bruno@clisp.org>
67167
67168         * MODULES.html.sh (Unicode string functions): Add the new modules.
67169
67170         * modules/uniconv/u32-strconv-to-locale: New file.
67171         * lib/uniconv/u32-strconv-to-locale.c: New file.
67172
67173         * modules/uniconv/u16-strconv-to-locale: New file.
67174         * lib/uniconv/u16-strconv-to-locale.c: New file.
67175
67176         * modules/uniconv/u8-strconv-to-locale: New file.
67177         * lib/uniconv/u8-strconv-to-locale.c: New file.
67178
67179         * modules/uniconv/u32-strconv-from-locale: New file.
67180         * lib/uniconv/u32-strconv-from-locale.c: New file.
67181
67182         * modules/uniconv/u16-strconv-from-locale: New file.
67183         * lib/uniconv/u16-strconv-from-locale.c: New file.
67184
67185         * modules/uniconv/u8-strconv-from-locale: New file.
67186         * lib/uniconv/u8-strconv-from-locale.c: New file.
67187
67188         * modules/uniconv/u32-strconv-to-enc: New file.
67189         * lib/uniconv/u32-strconv-to-enc.c: New file.
67190         * modules/uniconv/u32-strconv-to-enc-tests: New file.
67191         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
67192
67193         * modules/uniconv/u16-strconv-to-enc: New file.
67194         * lib/uniconv/u16-strconv-to-enc.c: New file.
67195         * lib/uniconv/u-strconv-to-enc.h: New file.
67196         * modules/uniconv/u16-strconv-to-enc-tests: New file.
67197         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
67198
67199         * modules/uniconv/u8-strconv-to-enc: New file.
67200         * lib/uniconv/u8-strconv-to-enc.c: New file.
67201         * modules/uniconv/u8-strconv-to-enc-tests: New file.
67202         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
67203
67204         * modules/uniconv/u32-strconv-from-enc: New file.
67205         * lib/uniconv/u32-strconv-from-enc.c: New file.
67206         * modules/uniconv/u32-strconv-from-enc-tests: New file.
67207         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
67208
67209         * modules/uniconv/u16-strconv-from-enc: New file.
67210         * lib/uniconv/u16-strconv-from-enc.c: New file.
67211         * modules/uniconv/u16-strconv-from-enc-tests: New file.
67212         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
67213
67214         * modules/uniconv/u8-strconv-from-enc: New file.
67215         * lib/uniconv/u8-strconv-from-enc.c: New file.
67216         * lib/uniconv/u-strconv-from-enc.h: New file.
67217         * modules/uniconv/u8-strconv-from-enc-tests: New file.
67218         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
67219
67220         * modules/uniconv/u32-conv-from-enc: New file.
67221         * lib/uniconv/u32-conv-from-enc.c: New file.
67222         * modules/uniconv/u32-conv-from-enc-tests: New file.
67223         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67224
67225         * modules/uniconv/u16-conv-from-enc: New file.
67226         * lib/uniconv/u16-conv-from-enc.c: New file.
67227         * lib/uniconv/u-conv-from-enc.h: New file.
67228         * modules/uniconv/u16-conv-from-enc-tests: New file.
67229         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67230
67231         * modules/uniconv/u8-conv-from-enc: New file.
67232         * lib/uniconv/u8-conv-from-enc.c: New file.
67233         * modules/uniconv/u8-conv-from-enc-tests: New file.
67234         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67235
67236         * modules/uniconv/base: New file.
67237         * lib/uniconv.h: New file.
67238
67239 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         * doc/gnulib-tool.texi (Initial import): Update to match current
67242         behavior with strdup module.
67243         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67244         * lib/memmem.h: Remove; all uses removed.  This is now done
67245         by <string.h>.
67246         * lib/mempcpy.h: Likewise.
67247         * lib/memrchr.h: Likewise.
67248         * lib/stpcpy.h: Likewise.
67249         * lib/stpncpy.h: Likewise.
67250         * lib/strcase.h: Likewise.
67251         * lib/strchrnul.h: Likewise.
67252         * lib/strdup.h: Likewise.
67253         * lib/strndup.h: Likewise.
67254         * lib/strnlen.h: Likewise.
67255         * lib/strpbrk.h: Likewise.
67256         * lib/strsep.h: Likewise.
67257         * lib/strstr.h: Likewise.
67258         * lib/strtok_r.h: Likewise.
67259         * lib/string_.h: New file.
67260         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67261         Rely on <string.h> instead.
67262         * lib/canon-host.c: Likewise.
67263         * lib/chdir-long.c: Likewise.
67264         * lib/concatpath.c: Likewise.
67265         * lib/exclude.c: Likewise.
67266         * lib/fchdir.c: Likewise.
67267         * lib/getaddrinfo.c: Likewise.
67268         * lib/getcwd.c: Likewise.
67269         * lib/getsubopt.c: Likewise.
67270         * lib/glob.c: Likewise.
67271         * lib/hard-locale.c: Likewise.
67272         * lib/iconvme.c: Likewise.
67273         * lib/javacomp.c: Likewise.
67274         * lib/mempcpy.c: Likewise.
67275         * lib/memrchr.c: Likewise.
67276         * lib/regex_internal.h: Likewise.
67277         * lib/stpncpy.c: Likewise.
67278         * lib/strcasecmp.c: Likewise.
67279         * lib/strchrnul.c: Likewise.
67280         * lib/strdup.c: Likewise.
67281         * lib/striconv.c: Likewise.
67282         * lib/striconveh.c: Likewise.
67283         * lib/striconveha.c: Likewise.
67284         * lib/strncasecmp.c: Likewise.
67285         * lib/strndup.c: Likewise.
67286         * lib/strnlen.c: Likewise.
67287         * lib/strsep.c: Likewise.
67288         * lib/strstr.c: Likewise.
67289         * lib/strtok_r.c: Likewise.
67290         * lib/userspec.c: Likewise.
67291         * lib/w32spawn.h: Likewise.
67292         * lib/xstrndup.c: Likewise.
67293         * lib/mountlist.c (strstr): Remove decl.
67294         * m4/string_h.m4: New file.
67295         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67296         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67297         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67298         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67299         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67300         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67301         Set REPLACE_STRCASECMP if necessary.
67302         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67303         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67304         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67305         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67306         HAVE_DECL_STRDUP if necessary.
67307         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67308         since gl_FUNC_STRNDUP does that now.
67309         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67310         Check for decl here...
67311         (gl_PREREQ_STRNLEN): ... not here.
67312         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67313         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67314         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67316         necessary.
67317         * modules/string: New file.
67318         * modules/memmem (Files): Remove special-purpose include file.
67319         (Depends-on): Add string.
67320         (Include): Include <string.h>, not the removed file.
67321         * modules/mempcpy: Likewise.
67322         * modules/memrchr: Likewise.
67323         * modules/stpcpy: Likewise.
67324         * modules/stpncpy: Likewise.
67325         * modules/strcase: Likewise.
67326         * modules/strchrnul: Likewise.
67327         * modules/strdup: Likewise.
67328         * modules/strndup: Likewise.
67329         * modules/strnlen: Likewise.
67330         * modules/strpbrk: Likewise.
67331         * modules/strsep: Likewise.
67332         * modules/strstr: Likewise.
67333         * modules/strtok_r: Likewise.
67334         * tests/test-dirname.c: Don't include "strdup.h", since
67335         <string.h> now suffices.
67336         * tests/test-memmem.c: Don't include "memmem.h", since
67337         <string.h> now suffices.
67338
67339 2007-01-25  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67342         *resultp is 0.
67343
67344         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67345         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67346         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67347         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67348
67349         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67350         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67351         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67352         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67353         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67354         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67355
67356 2007-01-24  Bruno Haible  <bruno@clisp.org>
67357
67358         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67359         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67360         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67361         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67362         gl_FUNC_FTS_CORE.
67363         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67364         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67365         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67366         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67367         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67368         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67369         gl_FUNC_FCHOWNAT.
67370         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67371         gl_FUNC_STRFTIME.
67372         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67373         Reported by Ralf Wildenhues.
67374
67375 2007-01-24  Bruno Haible  <bruno@clisp.org>
67376
67377         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67378         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67379         gl_GETADDRINFO.
67380         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67381         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67382         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67383
67384 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67387         Don't use 'exit'; just return from 'main'.
67388         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67389
67390         * lib/fnmatch_.h: Readjust white space and comments to match
67391         glibc, to avoid spurious diffs.
67392
67393 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67396         2004-12-01 change by Jakub Jelinek, since this code won't compile
67397         if !LIBC.  Problem reported by Bob Proulx.
67398
67399 2007-01-23  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/striconveh.c: Include c-strcaseeq.h.
67402         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67403         * modules/striconveh (Depends-on): Add c-strcaseeq.
67404
67405 2007-01-23  Bruno Haible  <bruno@clisp.org>
67406
67407         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67408
67409         * modules/c-strcaseeq: New file.
67410         * lib/c-strcaseeq.h: New file.
67411
67412         * modules/streq: New file.
67413         * lib/streq.h: New file.
67414
67415 2007-01-23  Bruno Haible  <bruno@clisp.org>
67416
67417         * modules/striconveha-tests: New file.
67418         * tests/test-striconveha.c: New file.
67419
67420         * lib/striconveha.h: Include <stdbool.h>.
67421         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67422         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67423         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67424         (mem_iconveha): New function.
67425         (str_iconveha_notranslit): Renamed from str_iconveha.
67426         (str_iconveha): New function.
67427         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67428         c-strcase.
67429
67430 2007-01-23  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67433         encodings without forgiving before trying any encoding with handler.
67434         (str_iconveha): Try all encodings without forgiving before trying any
67435         encoding with handler.
67436
67437 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         Import the following changes from libc.
67440
67441         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67442
67443         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67444
67445         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67446
67447         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67448         normal_bracket label.
67449
67450         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67451
67452         [BZ #361]
67453         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67454         to normal_bracket after fetching the next character.
67455
67456 2007-01-22  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67459         argument.
67460         * lib/striconveh.c (iconv_carefully_1): New function.
67461         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67462         argument.
67463         (str_cd_iconveh): Update.
67464         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67465         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67466         * tests/test-striconveh.c (MAGIC): New macro.
67467         (new_offsets): New function.
67468         (main): Test call with and without offsets.
67469
67470 2007-01-22  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67473         * modules/sys_select (Makefile.am): Likewise.
67474         * modules/sys_socket (Makefile.am): Likewise.
67475         * modules/sys_time (Makefile.am): Likewise.
67476
67477 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * modules/gettimeofday (License): Change from GPL to LGPL, since
67480         gettimeofday is a library function.
67481
67482 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67483
67484         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67485
67486 2007-01-21  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67489
67490 2007-01-21  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/striconveha: New file.
67493         * lib/striconveha.h: New file.
67494         * lib/striconveha.c: New file.
67495         * MODULES.html.sh (Internationalization functions): Add striconveha.
67496         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67497         string.
67498         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67499
67500 2007-01-21  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67503         * lib/striconveh.c (str_iconveh): Likewise.
67504
67505 2007-01-21  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/striconveh.h (mem_iconveh): New declaration.
67508         * lib/striconveh.c (mem_iconveh): New function.
67509         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67510
67511 2007-01-21  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67514
67515         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67516         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67517         original result buffer.
67518         (str_cd_iconveh): Update.
67519         * tests/test-striconveh.c (main): Update.
67520
67521         * lib/striconv.h (mem_cd_iconv): Change specification.
67522         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67523         result buffer.
67524         (str_cd_iconv): Update.
67525         * tests/test-striconv.c (main): Update.
67526
67527 2007-01-21  Bruno Haible  <bruno@clisp.org>
67528
67529         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67530
67531 2007-01-20  Jim Meyering  <jim@meyering.net>
67532
67533         * lib/userspec.c (parse_with_separator): If a user or group string
67534         starts with "+", skip the corresponding name-to-ID look-up, since
67535         such a look-up must fail: user and group names may not include "+".
67536
67537 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67540         since we now assume the sys_time module.
67541         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67542         check for sys/time.h; no longer needed.
67543         * modules/poll (Depends-on): Depend on sys_time.
67544
67545 2007-01-18  Bruno Haible  <bruno@clisp.org>
67546
67547         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67548         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67549
67550         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67551         gettimeofday.
67552
67553         * tests/test-gettimeofday.c: Include <time.h>.
67554         (dummy): Remove variable.
67555
67556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67557         gl_HEADER_SYS_TIME_H.
67558         (gl_HEADER_SYS_TIME_H): New macro.
67559
67560         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67561         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67563         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67564         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67565         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67566         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67567         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67568         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67569         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67570         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67571
67572         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67573         last change; it caused a compilation error when cross-compiling to
67574         Cygwin.
67575
67576 2007-01-18  Jim Meyering  <jim@meyering.net>
67577
67578         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67579         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67580         than the race-prone "test -d sys || mkdir sys".
67581         (configure.ac): Use AC_PROG_MKDIR_P.
67582         * modules/sys_select: Likewise.
67583         * modules/sys_socket: Likewise.
67584         * modules/sys_time: Likewise.
67585
67586 2007-01-18  Eric Blake  <ebb9@byu.net>
67587
67588         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67589         replace gettimeofday.
67590         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67591         name, to avoid infinite recursion.
67592
67593 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67596         module sys_time.
67597         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67598         assume timespec.h defines struct timeval.
67599         * lib/settime.c: Likewise.
67600         * lib/utimens.c: Likewise.
67601         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67602         since we now assume the gettimeofday module.
67603         * lib/tempname.c (__gen_tempname): Likewise.
67604         * lib/gettimeofday.h: Remove.
67605         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67606         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67607         Include <time.h>, for 'time()'.
67608         (localtime_buffer_addr): Also use this workaround if
67609         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67610         to simplify the uses.  All uses changed.
67611         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67612         that #undef is inside {}, and 'const' follows type name consistently.
67613         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67614         (gettimeofday): Do not use the maximum possible value for
67615         tv->tv_usec, since that might break usages other than ls.c.
67616         Instead, we'll leave ls.c alone.  This undoes today's patch
67617         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67618         we've never observed the problem but might as well keep the
67619         canary.
67620         * lib/nanosleep.c: Include timespec.h first, for interface check.
67621         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67622         now assume the sys_time module.
67623         * lib/tempname.c: Likewise.
67624         * lib/timespec.h: Likewise.
67625         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67626         needed.
67627         * lib/strftime.c: Likewise.
67628         * lib/timespec.h: Likewise.
67629         * lib/posixtm.c: Include posixtm.h first, for interface check.
67630         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67631         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67632         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67633         * lib/sys_time_.h: New file.
67634         * lib/timespec.h (struct timespec): Use long int, not long.
67635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67636         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67637         Remove obsolescent call to AC_HEADER_TIME.
67638         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67640         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67641         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67642         Likewise.
67643         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67644         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67645         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67646         into the sys_time module.  Check for gettimeofday just once.
67647         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67648         for gettimeofday signature to just check the signature.  Merely
67649         compile it, since linking doesn't test signature.  Improve test for
67650         whether gettimeofday.o is actually needed.
67651         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67652         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67653         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67654         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67655         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67656         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67657         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67658         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67659         than worrying about sys/time.h.
67660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67661         Don't bother worrying about TIME_WITH_SYS_TIME.
67662         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67663         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67664         * m4/sys_time_h.m4: New file.
67665         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67666         Don't include sys/time.h.  Return from main rather than exiting.
67667         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67668         all uses changed.
67669         * modules/gethrxtime (Depends-on): Add sys_time.
67670         * modules/gettime (Depends-on): Likewise.
67671         * modules/gettimeofday (Depends-on): Likewise.
67672         * modules/nanosleep (Depends-on): Likewise.
67673         * modules/settime (Depends-on): Likewise.
67674         * modules/tempname (Depends-on): Likewise.
67675         * modules/utimens (Depends-on): Likewise.
67676         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67677         (Include): Change back to <sys/time.h>.
67678         (Maintainer): Add self.
67679         * modules/sys_time: New file.
67680         * modules/tempname (Depends-on): Add gettimeofday.
67681         * tests/test-gettimeofday.c: Include <sys/time.h>
67682         rather than gettimeofday.h.
67683
67684 2007-01-17  Bruno Haible  <bruno@clisp.org>
67685
67686         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67687         the license default to GPL.
67688         (func_create_testdir): Don't complain if a module is LGPL and its
67689         tests module depends on GPLed modules.
67690
67691 2007-01-17  Bruno Haible  <bruno@clisp.org>
67692
67693         * lib/gettimeofday.c (gettimeofday): Add code for the case
67694         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67695         maximum possible value for tv->tv_usec, rather than the minimum one.
67696
67697 2005-10-08  Martin Lambers  <marlam@marlam.de>
67698 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67699 2007-01-16  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67702         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67703         gl_FUNC_GETTIMEOFDAY.
67704         (Include): Add gettimeofday.h.
67705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67706         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67707         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67708         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67709         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67710         * lib/gettimeofday.h: New file.
67711         * lib/gettimeofday.c: Include <sys/timeb.h>.
67712         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67713         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67714         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67715         fall back on time().
67716
67717         * tests/test-gettimeofday.c: New file.
67718         * modules/gettimeofday-tests: New file.
67719
67720 2007-01-16  Eric Blake  <ebb9@byu.net>
67721
67722         * modules/fnmatch (Depends-on): Depend on wchar.
67723         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67724         * m4/fnmatch.m4: Likewise.
67725         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67726         * m4/mbchar.m4: Likewise.
67727         * modules/mbswidth (Depends-on): Depend on wchar.
67728         * lib/mbswidth.c: Assume <wchar.h>.
67729         * m4/mbswidth.m4: Likewise.
67730         * modules/quotearg (Depends-on): Depend on wchar.
67731         * lib/quotearg.c: Assume <wchar.h>.
67732         * m4/quotearg.m4: Likewise.
67733         * modules/regex (Depends-on): Depend on wchar.
67734         * lib/regex_internal.h: Assume <wchar.h>.
67735         * m4/regex.m4: Likewise.
67736         * modules/stdint (Depends-on): Depend on wchar.
67737         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67738         * m4/stdint.m4: Likewise.
67739         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67740         * modules/strftime (Depends-on): Depend on wchar.
67741         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67742         * modules/strtol (Depends-on): Depend on wchar.
67743         * lib/strtol.c: Assume <wchar.h>.
67744         * modules/wcwidth (Depends-on): Depend on wchar.
67745         * lib/wcwidth.h: Assume <wchar.h>.
67746         * m4/wcwidth.m4: Likewise.
67747
67748 2007-01-16  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/csharpexec-script: New, created from...
67751         * modules/csharpexec: ... this.
67752
67753 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67754
67755         * modules/javaexec-script: New, created from...
67756         * modules/javaexec: ... this.
67757
67758 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67759
67760         * modules/poll (Dependencies): Add sys_select.
67761
67762 2007-01-15  Jim Meyering  <jim@meyering.net>
67763
67764         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67765         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67766         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67767         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67768
67769 2007-01-15  Bruno Haible  <bruno@clisp.org>
67770
67771         * modules/striconveh: New file.
67772         * lib/striconveh.h: New file.
67773         * lib/striconveh.c: New file.
67774         * MODULES.html.sh (Internationalization functions): Add striconveh.
67775
67776         * modules/striconveh-tests: New file.
67777         * tests/test-striconveh.c: New file.
67778
67779 2007-01-15  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67782         not from GNU libiconv or GNU libc.
67783
67784 2007-01-15  Bruno Haible  <bruno@clisp.org>
67785
67786         * doc/gnulib-intro.texi (Copyright): Explain the different license
67787         terms for module descriptions, autoconf macros, tests, documentation.
67788
67789 2007-01-14  Bruno Haible  <bruno@clisp.org>
67790
67791         * modules/striconv-tests: New file.
67792         * tests/test-striconv.c: New file.
67793
67794 2007-01-14  Bruno Haible  <bruno@clisp.org>
67795
67796         * modules/iconv-tests: New file.
67797         * tests/test-iconv.c: New file.
67798
67799 2007-01-14  Bruno Haible  <bruno@clisp.org>
67800
67801         * gnulib-tool (func_get_license): For test modules, use the license of
67802         the main module.
67803
67804 2007-01-14  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67807         if iconv is found to exist.
67808
67809 2007-01-14  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/c-ctype-tests: New file.
67812         * tests/test-c-ctype.c: New file.
67813
67814 2007-01-14  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/binary-io-tests: New file.
67817         * tests/test-binary-io.sh: New file.
67818         * tests/test-binary-io.c: New file.
67819
67820 2007-01-14  Bruno Haible  <bruno@clisp.org>
67821
67822         * modules/array-oset-tests: New file.
67823         * tests/test-array_oset.c: New file.
67824
67825 2007-01-14  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/array-list-tests: New file.
67828         * tests/test-array_list.c: New file.
67829
67830 2007-01-14  Bruno Haible  <bruno@clisp.org>
67831
67832         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67833         and make.
67834         Reported by Simon Josefsson in
67835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67836
67837 2007-01-14  Bruno Haible  <bruno@clisp.org>
67838
67839         * modules/allocsa-tests: New file.
67840         * tests/test-allocsa.c: New file.
67841
67842 2007-01-14  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/fchdir (Depends-on): Add absolute-header.
67845         * modules/unistd (Depends-on): Likewise.
67846
67847 2006-12-30  Bruno Haible  <bruno@clisp.org>
67848
67849         * modules/fchdir: New file.
67850         * modules/unistd (Files): Add lib/unistd_.h.
67851         (Makefile.am): Generate unistd.h from unistd_.h.
67852         * lib/fchdir.c: New file.
67853         * lib/dirent_.h: New file.
67854         * lib/unistd_.h: New file.
67855         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67856         * m4/fchdir.m4: New file.
67857         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67858         (gl_HEADER_UNISTD): Invoke it.
67859         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67860         function.
67861         * lib/backupfile.c (opendir, closedir): Undefine.
67862         * lib/chown.c (open, close): Undefine.
67863         * lib/clean-temp.c (open, close): Undefine.
67864         * lib/copy-file.c (open, close): Undefine.
67865         * lib/execute.c (open, close): Undefine.
67866         * lib/fsusage.c (open, close): Undefine.
67867         * lib/gc-gnulib.c (open, close): Undefine.
67868         * lib/getcwd.c (opendir, closedir): Undefine.
67869         * lib/glob.c (opendir, closedir): Undefine.
67870         * lib/javacomp.c (open, close): Undefine.
67871         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67872         * lib/openat-proc.c (open, close): Undefine.
67873         * lib/pagealign_alloc.c (open, close): Undefine.
67874         * lib/pipe.c (open, close): Undefine.
67875         * lib/progreloc.c (open, close): Undefine.
67876         * lib/savedir.c (opendir, closedir): Undefine.
67877         * lib/utime.c (open, close): Undefine.
67878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67879
67880 2007-01-10  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67883
67884 2007-01-12  Eric Blake  <ebb9@byu.net>
67885
67886         Provide a robust <wchar.h>.  Further simplifications are now
67887         possible in other modules, but not included here.
67888         * modules/wchar: New module.
67889         * m4/wchar.m4: New file.
67890         * lib/wchar_.h: Likewise.
67891         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67892         of the new module.
67893         * MODULES.html.sh (Extended multibyte and wide character utilities):
67894         New section.
67895
67896 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67899         to a reasonable default for memory allocation.
67900         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67901         file system that reports garbage st_size values for symlinks.
67902         Problem reported by Liyang Hu.
67903
67904 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67905
67906         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67907         Emacs .#* auto-save files).
67908
67909 2007-01-11  Bruno Haible  <bruno@clisp.org>
67910
67911         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67912         directory.
67913
67914 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         Use @...@ consistently in lib/wctype_.h.
67917         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67918         on it being set to 1 or 0.
67919         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67920         go back to AC_SUBSTing it.
67921         * modules/wctype (Makefile.am): Undo previous change.
67922
67923 2007-01-10  Eric Blake  <ebb9@byu.net>
67924
67925         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67926         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67927         * modules/wctype (Makefile.am): Likewise.
67928         Reported by Chris McGuire.
67929
67930 2007-01-10  Jim Meyering  <jim@meyering.net>
67931
67932         fts.c: a small readability/maintainability improvement
67933         * lib/fts.c (fts_read): Make this code slightly more readable and
67934         maintainable by hoisting the "sp->fts_cur = p" assignments to
67935         immediately follow the statements that set P.  Derived from
67936         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67937
67938 2007-01-10  Eric Blake  <ebb9@byu.net>
67939
67940         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67941         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67943         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67944         Reported by Chris McGuire.
67945
67946 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67947
67948         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67949         in sed script.
67950
67951 2007-01-09  Bruno Haible  <bruno@clisp.org>
67952
67953         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67954         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67955         variables.
67956         (func_module): Use them.
67957
67958 2007-01-09  Bruno Haible  <bruno@clisp.org>
67959
67960         * modules/unistr/base: New file.
67961         * lib/unistr.h: New file.
67962
67963         * modules/unistr/u8-to-u16: New file.
67964         * lib/unistr/u8-to-u16.c: New file.
67965
67966         * modules/unistr/u8-to-u32: New file.
67967         * lib/unistr/u8-to-u32.c: New file.
67968
67969         * modules/unistr/u16-to-u8: New file.
67970         * lib/unistr/u16-to-u8.c: New file.
67971
67972         * modules/unistr/u16-to-u32: New file.
67973         * lib/unistr/u16-to-u32.c: New file.
67974
67975         * modules/unistr/u32-to-u8: New file.
67976         * lib/unistr/u32-to-u8.c: New file.
67977
67978         * modules/unistr/u32-to-u16: New file.
67979         * lib/unistr/u32-to-u16.c: New file.
67980
67981         * modules/unistr/u8-check: New file.
67982         * modules/unistr/u16-check: New file.
67983         * modules/unistr/u32-check: New file.
67984         * lib/unistr/u8-check.c: New file.
67985         * lib/unistr/u16-check.c: New file.
67986         * lib/unistr/u32-check.c: New file.
67987
67988         * modules/unistr/u8-chr: New file.
67989         * modules/unistr/u16-chr: New file.
67990         * modules/unistr/u32-chr: New file.
67991         * lib/unistr/u8-chr.c: New file.
67992         * lib/unistr/u16-chr.c: New file.
67993         * lib/unistr/u32-chr.c: New file.
67994
67995         * modules/unistr/u8-cmp: New file.
67996         * modules/unistr/u16-cmp: New file.
67997         * modules/unistr/u32-cmp: New file.
67998         * lib/unistr/u8-cmp.c: New file.
67999         * lib/unistr/u16-cmp.c: New file.
68000         * lib/unistr/u32-cmp.c: New file.
68001
68002         * modules/unistr/u8-cpy: New file.
68003         * modules/unistr/u16-cpy: New file.
68004         * modules/unistr/u32-cpy: New file.
68005         * lib/unistr/u8-cpy.c: New file.
68006         * lib/unistr/u16-cpy.c: New file.
68007         * lib/unistr/u32-cpy.c: New file.
68008         * lib/unistr/u-cpy.h: New file.
68009
68010         * modules/unistr/u8-cpy-alloc: New file.
68011         * modules/unistr/u16-cpy-alloc: New file.
68012         * modules/unistr/u32-cpy-alloc: New file.
68013         * lib/unistr/u8-cpy-alloc.c: New file.
68014         * lib/unistr/u16-cpy-alloc.c: New file.
68015         * lib/unistr/u32-cpy-alloc.c: New file.
68016         * lib/unistr/u-cpy-alloc.h: New file.
68017
68018         * modules/unistr/u8-endswith: New file.
68019         * modules/unistr/u16-endswith: New file.
68020         * modules/unistr/u32-endswith: New file.
68021         * lib/unistr/u8-endswith.c: New file.
68022         * lib/unistr/u16-endswith.c: New file.
68023         * lib/unistr/u32-endswith.c: New file.
68024         * lib/unistr/u-endswith.h: New file.
68025
68026         * modules/unistr/u8-mblen: New file.
68027         * modules/unistr/u16-mblen: New file.
68028         * modules/unistr/u32-mblen: New file.
68029         * lib/unistr/u8-mblen.c: New file.
68030         * lib/unistr/u16-mblen.c: New file.
68031         * lib/unistr/u32-mblen.c: New file.
68032
68033         * modules/unistr/u8-mbtouc: New file.
68034         * modules/unistr/u16-mbtouc: New file.
68035         * modules/unistr/u32-mbtouc: New file.
68036         * lib/unistr/u8-mbtouc.c: New file.
68037         * lib/unistr/u16-mbtouc.c: New file.
68038         * lib/unistr/u32-mbtouc.c: New file.
68039
68040         * modules/unistr/u8-mbtouc-safe: New file.
68041         * modules/unistr/u16-mbtouc-safe: New file.
68042         * modules/unistr/u32-mbtouc-safe: New file.
68043         * lib/unistr/u8-mbtouc-safe.c: New file.
68044         * lib/unistr/u16-mbtouc-safe.c: New file.
68045         * lib/unistr/u32-mbtouc-safe.c: New file.
68046
68047         * modules/unistr/u8-move: New file.
68048         * modules/unistr/u16-move: New file.
68049         * modules/unistr/u32-move: New file.
68050         * lib/unistr/u8-move.c: New file.
68051         * lib/unistr/u16-move.c: New file.
68052         * lib/unistr/u32-move.c: New file.
68053         * lib/unistr/u-move.h: New file.
68054
68055         * modules/unistr/u8-next: New file.
68056         * modules/unistr/u16-next: New file.
68057         * modules/unistr/u32-next: New file.
68058         * lib/unistr/u8-next.c: New file.
68059         * lib/unistr/u16-next.c: New file.
68060         * lib/unistr/u32-next.c: New file.
68061
68062         * modules/unistr/u8-prev: New file.
68063         * modules/unistr/u16-prev: New file.
68064         * modules/unistr/u32-prev: New file.
68065         * lib/unistr/u8-prev.c: New file.
68066         * lib/unistr/u16-prev.c: New file.
68067         * lib/unistr/u32-prev.c: New file.
68068
68069         * modules/unistr/u8-set: New file.
68070         * modules/unistr/u16-set: New file.
68071         * modules/unistr/u32-set: New file.
68072         * lib/unistr/u8-set.c: New file.
68073         * lib/unistr/u16-set.c: New file.
68074         * lib/unistr/u32-set.c: New file.
68075         * lib/unistr/u-set.h: New file.
68076
68077         * modules/unistr/u8-startswith: New file.
68078         * modules/unistr/u16-startswith: New file.
68079         * modules/unistr/u32-startswith: New file.
68080         * lib/unistr/u8-startswith.c: New file.
68081         * lib/unistr/u16-startswith.c: New file.
68082         * lib/unistr/u32-startswith.c: New file.
68083         * lib/unistr/u-startswith.h: New file.
68084
68085         * modules/unistr/u8-stpcpy: New file.
68086         * modules/unistr/u16-stpcpy: New file.
68087         * modules/unistr/u32-stpcpy: New file.
68088         * lib/unistr/u8-stpcpy.c: New file.
68089         * lib/unistr/u16-stpcpy.c: New file.
68090         * lib/unistr/u32-stpcpy.c: New file.
68091         * lib/unistr/u-stpcpy.h: New file.
68092
68093         * modules/unistr/u8-stpncpy: New file.
68094         * modules/unistr/u16-stpncpy: New file.
68095         * modules/unistr/u32-stpncpy: New file.
68096         * lib/unistr/u8-stpncpy.c: New file.
68097         * lib/unistr/u16-stpncpy.c: New file.
68098         * lib/unistr/u32-stpncpy.c: New file.
68099         * lib/unistr/u-stpncpy.h: New file.
68100
68101         * modules/unistr/u8-strcat: New file.
68102         * modules/unistr/u16-strcat: New file.
68103         * modules/unistr/u32-strcat: New file.
68104         * lib/unistr/u8-strcat.c: New file.
68105         * lib/unistr/u16-strcat.c: New file.
68106         * lib/unistr/u32-strcat.c: New file.
68107         * lib/unistr/u-strcat.h: New file.
68108
68109         * modules/unistr/u8-strchr: New file.
68110         * modules/unistr/u16-strchr: New file.
68111         * modules/unistr/u32-strchr: New file.
68112         * lib/unistr/u8-strchr.c: New file.
68113         * lib/unistr/u16-strchr.c: New file.
68114         * lib/unistr/u32-strchr.c: New file.
68115
68116         * modules/unistr/u8-strcmp: New file.
68117         * modules/unistr/u16-strcmp: New file.
68118         * modules/unistr/u32-strcmp: New file.
68119         * lib/unistr/u8-strcmp.c: New file.
68120         * lib/unistr/u16-strcmp.c: New file.
68121         * lib/unistr/u32-strcmp.c: New file.
68122
68123         * modules/unistr/u8-strcpy: New file.
68124         * modules/unistr/u16-strcpy: New file.
68125         * modules/unistr/u32-strcpy: New file.
68126         * lib/unistr/u8-strcpy.c: New file.
68127         * lib/unistr/u16-strcpy.c: New file.
68128         * lib/unistr/u32-strcpy.c: New file.
68129         * lib/unistr/u-strcpy.h: New file.
68130
68131         * modules/unistr/u8-strcspn: New file.
68132         * modules/unistr/u16-strcspn: New file.
68133         * modules/unistr/u32-strcspn: New file.
68134         * lib/unistr/u8-strcspn.c: New file.
68135         * lib/unistr/u16-strcspn.c: New file.
68136         * lib/unistr/u32-strcspn.c: New file.
68137         * lib/unistr/u-strcspn.h: New file.
68138
68139         * modules/unistr/u8-strdup: New file.
68140         * modules/unistr/u16-strdup: New file.
68141         * modules/unistr/u32-strdup: New file.
68142         * lib/unistr/u8-strdup.c: New file.
68143         * lib/unistr/u16-strdup.c: New file.
68144         * lib/unistr/u32-strdup.c: New file.
68145         * lib/unistr/u-strdup.h: New file.
68146
68147         * modules/unistr/u8-strlen: New file.
68148         * modules/unistr/u16-strlen: New file.
68149         * modules/unistr/u32-strlen: New file.
68150         * lib/unistr/u8-strlen.c: New file.
68151         * lib/unistr/u16-strlen.c: New file.
68152         * lib/unistr/u32-strlen.c: New file.
68153         * lib/unistr/u-strlen.h: New file.
68154
68155         * modules/unistr/u8-strmblen: New file.
68156         * modules/unistr/u16-strmblen: New file.
68157         * modules/unistr/u32-strmblen: New file.
68158         * lib/unistr/u8-strmblen.c: New file.
68159         * lib/unistr/u16-strmblen.c: New file.
68160         * lib/unistr/u32-strmblen.c: New file.
68161
68162         * modules/unistr/u8-strmbtouc: New file.
68163         * modules/unistr/u16-strmbtouc: New file.
68164         * modules/unistr/u32-strmbtouc: New file.
68165         * lib/unistr/u8-strmbtouc.c: New file.
68166         * lib/unistr/u16-strmbtouc.c: New file.
68167         * lib/unistr/u32-strmbtouc.c: New file.
68168
68169         * modules/unistr/u8-strncat: New file.
68170         * modules/unistr/u16-strncat: New file.
68171         * modules/unistr/u32-strncat: New file.
68172         * lib/unistr/u8-strncat.c: New file.
68173         * lib/unistr/u16-strncat.c: New file.
68174         * lib/unistr/u32-strncat.c: New file.
68175         * lib/unistr/u-strncat.h: New file.
68176
68177         * modules/unistr/u8-strncmp: New file.
68178         * modules/unistr/u16-strncmp: New file.
68179         * modules/unistr/u32-strncmp: New file.
68180         * lib/unistr/u8-strncmp.c: New file.
68181         * lib/unistr/u16-strncmp.c: New file.
68182         * lib/unistr/u32-strncmp.c: New file.
68183
68184         * modules/unistr/u8-strncpy: New file.
68185         * modules/unistr/u16-strncpy: New file.
68186         * modules/unistr/u32-strncpy: New file.
68187         * lib/unistr/u8-strncpy.c: New file.
68188         * lib/unistr/u16-strncpy.c: New file.
68189         * lib/unistr/u32-strncpy.c: New file.
68190         * lib/unistr/u-strncpy.h: New file.
68191
68192         * modules/unistr/u8-strnlen: New file.
68193         * modules/unistr/u16-strnlen: New file.
68194         * modules/unistr/u32-strnlen: New file.
68195         * lib/unistr/u8-strnlen.c: New file.
68196         * lib/unistr/u16-strnlen.c: New file.
68197         * lib/unistr/u32-strnlen.c: New file.
68198         * lib/unistr/u-strnlen.h: New file.
68199
68200         * modules/unistr/u8-strpbrk: New file.
68201         * modules/unistr/u16-strpbrk: New file.
68202         * modules/unistr/u32-strpbrk: New file.
68203         * lib/unistr/u8-strpbrk.c: New file.
68204         * lib/unistr/u16-strpbrk.c: New file.
68205         * lib/unistr/u32-strpbrk.c: New file.
68206         * lib/unistr/u-strpbrk.h: New file.
68207
68208         * modules/unistr/u8-strrchr: New file.
68209         * modules/unistr/u16-strrchr: New file.
68210         * modules/unistr/u32-strrchr: New file.
68211         * lib/unistr/u8-strrchr.c: New file.
68212         * lib/unistr/u16-strrchr.c: New file.
68213         * lib/unistr/u32-strrchr.c: New file.
68214
68215         * modules/unistr/u8-strspn: New file.
68216         * modules/unistr/u16-strspn: New file.
68217         * modules/unistr/u32-strspn: New file.
68218         * lib/unistr/u8-strspn.c: New file.
68219         * lib/unistr/u16-strspn.c: New file.
68220         * lib/unistr/u32-strspn.c: New file.
68221         * lib/unistr/u-strspn.h: New file.
68222
68223         * modules/unistr/u8-strstr: New file.
68224         * modules/unistr/u16-strstr: New file.
68225         * modules/unistr/u32-strstr: New file.
68226         * lib/unistr/u8-strstr.c: New file.
68227         * lib/unistr/u16-strstr.c: New file.
68228         * lib/unistr/u32-strstr.c: New file.
68229         * lib/unistr/u-strstr.h: New file.
68230
68231         * modules/unistr/u8-strtok: New file.
68232         * modules/unistr/u16-strtok: New file.
68233         * modules/unistr/u32-strtok: New file.
68234         * lib/unistr/u8-strtok.c: New file.
68235         * lib/unistr/u16-strtok.c: New file.
68236         * lib/unistr/u32-strtok.c: New file.
68237         * lib/unistr/u-strtok.h: New file.
68238
68239         * modules/unistr/u8-uctomb: New file.
68240         * modules/unistr/u16-uctomb: New file.
68241         * modules/unistr/u32-uctomb: New file.
68242         * lib/unistr/u8-uctomb.c: New file.
68243         * lib/unistr/u16-uctomb.c: New file.
68244         * lib/unistr/u32-uctomb.c: New file.
68245
68246         * MODULES.html.sh (Unicode string functions): Add the new modules.
68247
68248 2007-01-08  Bruno Haible  <bruno@clisp.org>
68249
68250         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68251         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68252         subdirectories.
68253
68254 2007-01-08  Karl Berry  <karl@gnu.org>
68255
68256         * doc/error.texi: mention that main() fns must set program_name
68257         when progname is used.
68258
68259 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68262         WCTYPE_H is empty, for the benefit of builds from non-distclean
68263         directories.  Problem reported by Eric Blake in
68264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68265
68266 2007-01-08  Bruno Haible  <bruno@clisp.org>
68267
68268         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68269         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68270         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68271         PROVIDE_CANONICALIZE_FILENAME_MODE.
68272         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68273
68274 2007-01-08  Bruno Haible  <bruno@clisp.org>
68275
68276         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68277         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68278         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68279         * lib/fts.c: Likewise.
68280         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68281
68282 2006-12-25  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/utf8-ucs4-safe: New file.
68285         * lib/utf8-ucs4-safe.h: New file.
68286         * lib/unistr/utf8-ucs4-safe.c: New file.
68287
68288         * modules/utf16-ucs4-safe: New file.
68289         * lib/utf16-ucs4-safe.h: New file.
68290         * lib/unistr/utf16-ucs4-safe.c: New file.
68291
68292         * MODULES.html.sh (Unicode string functions): Add the new modules.
68293
68294 2007-01-08  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68297         (Depends-on): Add unitypes.
68298         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68299         (u8_mbtouc_aux): Move out to separate file.
68300         (u8_mbtouc): Use ucs4_t, uint8_t types.
68301         * lib/unistr/utf8-ucs4.c: New file.
68302
68303         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68304         (Depends-on): Add unitypes.
68305         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68306         (u16_mbtouc_aux): Move out to separate file.
68307         (u16_mbtouc): Use ucs4_t, uint16_t types.
68308         * lib/unistr/utf16-ucs4.c: New file.
68309
68310         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68311         (Depends-on): Add unitypes.
68312         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68313         (u8_uctomb_aux): Move out to separate file.
68314         (u8_uctomb): Use ucs4_t, uint8_t types.
68315         * lib/unistr/ucs4-utf8.c: New file.
68316
68317         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68318         (Depends-on): Add unitypes.
68319         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68320         (u16_uctomb_aux): Move out to separate file.
68321         (u16_uctomb): Use ucs4_t, uint16_t types.
68322         * lib/unistr/ucs4-utf16.c: New file.
68323
68324 2006-12-25  Bruno Haible  <bruno@clisp.org>
68325
68326         * modules/unitypes: New file.
68327         * lib/unitypes.h: New file.
68328         * MODULES.html.sh (func_all_modules): New section "Unicode string
68329         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68330         this section. Add unitypes.
68331
68332 2007-01-08  Bruno Haible  <bruno@clisp.org>
68333
68334         Avoid variable names that conflict with those from libtool.
68335         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68336         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68337         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68338         library_names_spec to acl_library_names_spec, hardcode_* to
68339         acl_hardcode_*.
68340         Reported by Ralf Wildenhues.
68341
68342 2007-01-08  Bruno Haible  <bruno@clisp.org>
68343
68344         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68345         definition.
68346         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68347         definition.
68348         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68349         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68350         definition.
68351         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68352         definition.
68353         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68354         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68355         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68356         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68357         definition.
68358         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68359         definition.
68360         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68361         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68362         GC_USE_<algorithm>.
68363         * lib/gc-libgcrypt.c: Likewise.
68364         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68365         * modules/gc-arctwo (configure.ac): Likewise.
68366         * modules/gc-des (configure.ac): Likewise.
68367         * modules/gc-hmac-md5 (configure.ac): Likewise.
68368         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68369         * modules/gc-md2 (configure.ac): Likewise.
68370         * modules/gc-md4 (configure.ac): Likewise.
68371         * modules/gc-md5 (configure.ac): Likewise.
68372         * modules/gc-random (configure.ac): Likewise.
68373         * modules/gc-rijndael (configure.ac): Likewise.
68374         * modules/gc-sha1 (configure.ac): Likewise.
68375
68376 2007-01-08  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68379         macro definition.
68380         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68381         definition.
68382         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68383         definition.
68384         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68385         * modules/fcntl-safer (configure.ac): Likewise.
68386         * modules/fopen-safer (configure.ac): Likewise.
68387         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68388         GNULIB_FWRITEERROR macro definition.
68389
68390 2007-01-08  Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/gnulib-common.m4: New file.
68393         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68394         (func_get_filelist): Add m4/gnulib-common.m4.
68395
68396 2007-01-08  Bruno Haible  <bruno@clisp.org>
68397
68398         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68399         command.
68400
68401 2007-01-08  Jim Meyering  <jim@meyering.net>
68402
68403         Use a more robust test for a "can't happen" condition.
68404         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68405         narrowed the st_size value.  Presuming the "can't happen" condition
68406         is true, that narrowing could conceivably convert an invalid st_size
68407         value into a valid one.  Instead, use a change based on Matthew
68408         Woehlke's original patch.
68409
68410         Slight readability improvement: use an assert-like macro
68411         in place of literal "abort ()" uses.
68412         * lib/fts.c (fts_assert): Define.
68413         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68414         Use this macro instead of a bare 'abort'.
68415
68416 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68419         simply work around them.
68420         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68421         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68422         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68423         declaring.
68424         Don't bother to define as macros, since the standard doesn't require it.
68425         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68426         longer worry about IRIX 5.3.
68427         (HAVE_WCTYPE_CTMP_BUG): Remove.
68428
68429 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68432         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68433         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68434         Problems reported by Georg Schwarz for IRIX 5.3.
68435
68436         * gnulib-tool (autoconf_minversion): Take the maximum version number
68437         found, not the minimum.  Problem reported by James Youngman.
68438
68439 2007-01-03  Karl Berry  <karl@gnu.org>
68440
68441         * doc/error.texi: new file, explaining interaction with progname.
68442         * doc/gnulib.texi: include it.  Update copyright.
68443
68444 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68445
68446         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68447         AC_CANONICAL_HOST, to improve autobuild outputs.
68448
68449 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68450             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68451
68452         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68453         sockets, server sockets, and other file descriptors.  Count errors
68454         to compute the return value.  Reorder the code a bit to be easier
68455         to follow.  Don't set event bits that were not requested (except
68456         POLLERR and POLLHUP).
68457
68458 2007-01-01  Bruno Haible  <bruno@clisp.org>
68459
68460         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68461
68462 2007-01-03  Jim Meyering  <jim@meyering.net>
68463
68464         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68465
68466 2007-01-02  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/settime (Include): Require timespec.h.
68469         * modules/nanosleep (Include): Likewise.
68470
68471 2007-01-01  Bruno Haible  <bruno@clisp.org>
68472
68473         * gnulib-tool (func_emit_copyright_notice): Bump year.
68474         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68475
68476 2007-01-01  Bruno Haible  <bruno@clisp.org>
68477
68478         Improve support for OpenBSD.
68479         * build-aux/config.rpath (libname_spec): Export.
68480         (library_names_spec): New variable. Export.
68481         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68482         library_names_spec from the config.rpath output. Locate shared library
68483         through the name pattern in library_names_spec.
68484
68485 2007-01-01  Eric Blake  <ebb9@byu.net>
68486
68487         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68488
68489 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68492         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68493         assume the C locale, and avoid an "eval" that could cause trouble.
68494         Problem with SORT reported by Bob Proulx.
68495
68496         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68497         Define.  Trivial patch from Henning Nielsen Lund, originally
68498         sent to bug-grep@gnu.org today.
68499
68500 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68503         struct stat.  Problem reported by Henning Nielsen Lund.
68504         * lib/acl.c: Include acl.h first, to check interface.  Don't
68505         bother to include sys/types.h and sys/stat.h again.
68506
68507 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         Import the following change from libc; problem reported by
68510         Sven Verdoolaege.
68511
68512         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68513
68514         [BZ #1373]
68515         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68516
68517 2006-12-28  Jim Meyering  <jim@meyering.net>
68518
68519         * build-aux/announce-gen: Do not assume that the package
68520         builds any of tar.gz, tar.bz2, and .xdelta files.
68521         Suggestion from Simon Josefsson.
68522
68523 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68524
68525         * modules/announce-gen: New file.
68526
68527 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68530         handles its gotchas now.
68531         * lib/mbswidth.c: Likewise.
68532         * lib/wcwidth.h: Likewise.
68533         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68534         and iswcntrl; the wctype module does this stuff now.
68535         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68537         * modules/mbchar (Depends-on): Add wctype.
68538         * modules/mbswidth (Depends-on): Likewise.
68539         * modules/wcwidth (Depends-on): Likewise.
68540
68541 2006-12-27  Eric Blake  <ebb9@byu.net>
68542
68543         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68544         module uses more than what <wctype.h> is required to provide.
68545
68546 2006-12-26  Eric Blake  <ebb9@byu.net>
68547
68548         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68549
68550 2006-12-26  Eric Blake  <ebb9@byu.net>
68551
68552         * modules/absolute-header: New module.
68553         * modules/fcntl (Depends-on): Depend on it.
68554         * modules/inttypes (Depends-on): Likewise.
68555         * modules/stdint (Depends-on): Likewise.
68556         * modules/sys_stat (Depends-on): Likewise.
68557         * modules/wctype (Depends-on): Likewise.
68558         * MODULES.html.sh (Support for building libraries and
68559         executables): Document it.
68560
68561 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         * gnulib-tool (SED): Remove, undoing previous change.
68564         The problem was that it broke coreutils on Solaris, because
68565         "sed --posix" leaked into a makefile.
68566         (sed): New alias, if 'alias' and GNU sed.
68567
68568 2006-12-24  Jim Meyering  <jim@meyering.net>
68569
68570         Work around an fchownat bug in glibc-2.4:
68571         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68572         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68573         in spite of the -P option.
68574         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68575         New macros.
68576         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68577         * modules/openat (Files): Add lib/fchownat.c.
68578         * lib/openat.c (fchownat): Don't define here.  Move to...
68579         * lib/fchownat.c: ...this new file.
68580
68581 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         Fix bug reported by Bruno Haible in
68584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68585         where quotearg.c didn't compile on Mac OS X 10.2 because it
68586         lacks <wchar.h> and wint_t.
68587         * lib/wctype_.h (__wctype_wint_t): New type.
68588         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68589         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68590         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68591         Arg is now of type __wctype_wint_t, not wint_t.
68592         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68593         substitute HAVE_WINT_T.
68594         * modules/wctype (Files): Add m4/wint_t.m4.
68595         (wctype.h): Substitute HAVE_WINT_T.
68596
68597 2006-12-23  Bruno Haible  <bruno@clisp.org>
68598
68599         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68600
68601 2006-12-23  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68604         S_ISLNK.
68605         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68606         mingw.
68607
68608 2006-12-22  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/copy-file.c: Include acl.h.
68611         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68612         Close the file descriptors only after being done with copy_acl.
68613         * modules/copy-file (Depends-on): Add acl.
68614
68615 2006-12-22  Bruno Haible  <bruno@clisp.org>
68616
68617         * gnulib-tool (SED): New variable.
68618         Use $SED instead of sed everywhere.
68619
68620 2006-12-22  Bruno Haible  <bruno@clisp.org>
68621
68622         * modules/no-c++: New file.
68623         * m4/no-c++.m4: New file.
68624         * MODULES.html.sh (Support for building libraries and executables):
68625         Add no-c++.
68626
68627 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68630         Include <limits.h>, and use its INT_MAX to rewrite the
68631         j loop so that it does not overflow 'int'.  Problem reported by
68632         Ralf Wildenhues in
68633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68634         Play it safe by shifting left by 1 rather than multiplying by 2,
68635         as GCC is less likely to optimize this away when the value
68636         is signed (when it assumes overflow leads to undefined behavior).
68637         Also, don't assume time_t uses two's complement.
68638
68639 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * MODULES.html.sh: New module wctype.
68642         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68643         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68644         <wctype.h>, since the new wctype module should fix this.
68645         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68646         the wctype module should arrange for it.
68647         * lib/regex_internal.h: Likewise.
68648         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68649         since the wctype module should handle this now.
68650         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68651         * modules/fnmatch (Depends-on): Add wctype.
68652         * modules/quotearg (Depends-on): Likewise.
68653         * modules/regex (Depends-on): Likewise.
68654
68655 2006-12-19  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68658         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68659
68660 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68661
68662         * modules/savewd (Depends-on): Fix dependency on fcntl.
68663
68664 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68667         conforms to C99, rather than relying on the user's environment
68668         setting of STDINT_H.
68669
68670 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68671         and Eric Blake  <ebb9@byu.net>
68672
68673         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68674         This is more consistent with the other defines here.
68675         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68676         Port to z/OS.  Problem reported by Paul Gilmartin.
68677         Change local vars to use gl_ prefix rather than ac_.
68678         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68679         with other defines.
68680         * modules/double-slash-root: New module.
68681         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68682         (Depends-on): Add double-slash-root.
68683         * MODULES.html.sh (File system functions): Mention new module.
68684
68685 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68688         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68689         This is for the benefit of gzip, which doesn't do i18n.
68690
68691 2006-12-12  Jim Meyering  <jim@meyering.net>
68692
68693         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68694         Reported by Andreas Schwab <schwab@suse.de>.
68695
68696 2006-12-12  Bruno Haible  <bruno@clisp.org>
68697
68698         Merge these changes.
68699         2006-09-05  Bruno Haible  <bruno@clisp.org>
68700         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68701         iconv_alloc succeeded.
68702         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68703         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68704         test for " && dest " at the end - dest is always != NULL there. Call
68705         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68706         with 2xNULL arguments, also to flush the state storage. Handle the
68707         IRIX iconv behaviour. Realloc the final result, to throw away unused
68708         memory.
68709
68710 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68713         and fchmodat unconditionally, since glibc 2.4 has them.
68714         Problem reported by Arkadiusz Miskiewicz.
68715
68716 2006-12-10  Bruno Haible  <bruno@clisp.org>
68717
68718         * gnulib-tool (func_import): Show the include files only for those
68719         modules that are copied and specified.
68720         Reported by Karl Berry.
68721
68722 2006-12-08  Jim Meyering  <jim@meyering.net>
68723
68724         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68725         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68726
68727         * build-aux/announce-gen: Add two new options, both optional:
68728         --bootstrap-tools=TOOL_LIST
68729               a comma-separated list of tools, e.g.,
68730               autoconf,automake,bison,gnulib
68731         --gnulib-snapshot-date=DATE
68732               if gnulib is in the bootstrap tool list,
68733               then report this as the snapshot date.
68734               If not specified, use the current date/time.
68735               If you specify a date here, be sure it's UTC.
68736
68737 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68738
68739         * tests/test-argp-2.sh: Fix test to match actual output.
68740         (func_compare): Fix sed script to be portable.
68741
68742 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68745         workaround for this case.  It is not autoconfigured now; offhand
68746         it's hard to see how to autoconfigure it.
68747
68748 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68751         a directory that is about to be chowned.  Such a directory's
68752         initial file permissions should permit the owner only and this
68753         should not be changed until after the chown, since the group and
68754         other bits would be incorrect if they granted permission before
68755         the chown.
68756
68757         Fix porting problem for iswctype reported by Georg Schwarz in:
68758         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68759         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68760         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68762         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68763
68764 2006-12-03  Jim Meyering  <jim@meyering.net>
68765
68766         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68767         p->fts_statp may not yet be defined.
68768         (fts_read): Instead, set it in the caller, once p->fts_statp is
68769         sure to be defined, and corresponds to a top-level directory.
68770         This bug made du -x fail.  Here's the coreutils test case:
68771         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68772         Reported by Mike Frysinger.
68773
68774 2006-12-01  Jim Meyering  <jim@meyering.net>
68775
68776         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68777         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68778         Reported by Simon Josefsson.
68779
68780 2006-11-30  Jim Meyering  <jim@meyering.net>
68781
68782         * m4/warning.m4: Use the all-permissive copyright notice
68783         recommended by RMS (rather than LGPL).
68784         * m4/vararrays.m4: Likewise.
68785         * m4/flexmember.m4: Likewise.
68786
68787 2006-11-29  Bruno Haible  <bruno@clisp.org>
68788
68789         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68790         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68791         using +=.
68792         Reported by Simon Josefsson <simon@josefsson.org>.
68793
68794 2006-11-28  James Youngman <jay@gnu.org>
68795
68796         * README: Advise users that they might find the bug-gnulib@gnu.org
68797         and autotools-announce@gnu.org mailing lists useful.
68798
68799 2006-11-28  Bruno Haible  <bruno@clisp.org>
68800
68801         * m4/ptrdiff_max.m4: Remove file.
68802
68803 2006-11-21  Bruno Haible  <bruno@clisp.org>
68804
68805         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68806         _AC_COMPUTE_INT.
68807         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68808         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68809         _AC_COMPUTE_INT.
68810         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68811         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68812         _AC_COMPUTE_INT.
68813         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68814
68815 2006-11-28  Jim Meyering  <jim@meyering.net>
68816
68817         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68818         warning from "gcc -Wshadow" about shadowing the builtin.
68819
68820 2006-11-27  Bruno Haible  <bruno@clisp.org>
68821
68822         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68823         _AC_COMPUTE_INT.
68824         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68825
68826 2006-11-27  Bruno Haible  <bruno@clisp.org>
68827             Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68830
68831 2006-11-26  Bruno Haible  <bruno@clisp.org>
68832
68833         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68834         noinst_LTLIBRARIES.
68835
68836 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68837             Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68840         if compiling with "gcc -ansi".
68841
68842 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Fix some incompatibilities with gcc -ansi -pedantic.
68845         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68846         if compiling pedantically with GCC, unless it's C99 or later.
68847         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68848         it mishandles gcc -ansi -pedantic as well.
68849         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68850         if gcc -pedantic.
68851         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68852         initializers for struct if -pedantic, unless it's C99 or later.
68853
68854 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68855
68856         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68857         Don't close an fd more than once. Identical atimes indicate
68858         success, not failure.
68859
68860 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68861
68862         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68863
68864 2006-11-23  Jim Meyering  <jim@meyering.net>
68865
68866         * build-aux/announce-gen: New file.  From coreutils.
68867
68868 2006-11-22  Jim Meyering  <jim@meyering.net>
68869
68870         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68871         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68872         (fts_read): Use a temporary to narrow the overused st_size member
68873         before using it in a switch statement.  Reported by Matthew Woehlke.
68874
68875         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68876         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68877
68878 2006-11-20  Bruno Haible  <bruno@clisp.org>
68879
68880         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68881         changequote instead of pairs of brackets.
68882         Reported by Andreas Schwab <schwab@suse.de>.
68883
68884 2006-11-21  Jim Meyering  <jim@meyering.net>
68885
68886         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68887         so as to remain compatible with older compilers.
68888         Patch from Michael Deutschmann.
68889
68890 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * MODULES.html.sh (File system functions): Add openat.
68893
68894         * lib/openat.h (rpl_fstatat): New macro, if
68895         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68896         (fstatat): Define to rpl_fstatat under the same conditions,
68897         unless COMPILING_FSTATAT.
68898         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68899         seems to have the bug.
68900         * lib/fstatat.c: New file.
68901         * modules/openat (Files): Add it.
68902
68903 2006-11-20  Bruno Haible  <bruno@clisp.org>
68904
68905         * Makefile: New file.
68906
68907 2006-11-20  Jim Meyering  <jim@meyering.net>
68908
68909         The beginnings of syntax-related checks for gnulib.
68910         * lib/Makefile: New file.
68911         * lib/t-idcache: New script.  Ensure that the two halves of
68912         idcache.c stay in sync.
68913
68914         * lib/idcache.c: Adjust comments in user- and group- portions to
68915         be more accurate, and to be consistent with one another.
68916
68917 2006-11-20  Jim Meyering  <jim@meyering.net>
68918
68919         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68920         continue using the flexible array member (thus, this module performs
68921         half as many malloc calls), with the addition that...
68922         (getgroup, getuser): Consistently record a non-match via an empty
68923         "name" string, and map an empty string match to a NULL return value.
68924         * modules/idcache (Depends-on): Re-add flexmember.
68925
68926         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68927         (getuidbyname, getgroup, getgidbyname): Likewise.
68928
68929         Use cleaner syntax: NULL rather than 0.
68930         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68931
68932 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68935         It mishandled the case where the group was missing.
68936         Problem reported by Greg Schafer.
68937         * modules/idcache: Likewise.
68938
68939 2006-11-18  Jim Meyering  <jim@meyering.net>
68940
68941         * check-module (%exempt_header): Add exception for some
68942         conditionally-included headers.
68943
68944         * modules/i-ring (Depends-on): Add verify.
68945         (License): Change to LGPL.
68946
68947 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68950         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68951         and inttostr.h.  Use snprintf rather than uinttostr, so that
68952         LGPLed code doesn't depend on GPLed.
68953
68954 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * modules/inline (License): Change from GPL to LGPL.
68957
68958 2006-11-17  Jim Meyering  <jim@meyering.net>
68959
68960         * modules/d-type (License): Switch to LGPL.
68961
68962 2006-11-15  Bruno Haible  <bruno@clisp.org>
68963
68964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68965
68966 2006-11-15  Eric Blake  <ebb9@byu.net>
68967
68968         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68969         the module dependency.
68970
68971 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68972             Bruno Haible  <bruno@clisp.org>
68973
68974         * gnulib-tool (func_create_testdir): Add license consistency check.
68975
68976 2006-11-15  Eric Blake  <ebb9@byu.net>
68977
68978         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68979         random "(cached)" in configure output.
68980
68981 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68982
68983         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68984         test for conforming inttypes.h is both announced and cached.
68985
68986         * MODULES.html.sh (seen_modules, seen_files): New variables.
68987         (func_module): Rewrite to use a few less gnulib-tool and sed
68988         invocations.  Avoid a couple of quadratic algorithms for ...
68989         (missed_modules, missed_files): ... these, with ...
68990         (func_append, func_tmpdir): ... these new functions, from
68991         gnulib-tool.  Analogously, install traps for cleanup.
68992
68993         * tests/test-gc.c (main): Remove unused variables.
68994         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68995
68996 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * modules/inttostr (License): Change to LGPL.
68999
69000 2006-11-14  Eric Blake  <ebb9@byu.net>
69001
69002         * modules/tempname (License): Change to LGPL.
69003
69004 2006-11-14  Eric Blake  <ebb9@byu.net>
69005
69006         * doc/functions.texi (Function Portability): *printf functions on
69007         Cygwin now understand all POSIX size specifiers.
69008
69009 2006-11-14  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/c-ctype (License): Change to LGPL.
69012
69013 2006-11-12  Bruno Haible  <bruno@clisp.org>
69014
69015         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
69016         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
69017         for GNOME libraries, for which the include files are installed in
69018         subdirectories of $prefix/include.
69019
69020 2006-11-12  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/lib-link.m4: Require at least autoconf-2.54.
69023         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
69024         name to underscores for the --with option.
69025
69026 2006-11-13  Bruno Haible  <bruno@clisp.org>
69027
69028         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
69029         the tests directory.
69030         Reported by Ralf Wildenhues.
69031
69032 2006-11-13  Bruno Haible  <bruno@clisp.org>
69033
69034         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
69035         (func_emit_initmacro_end): Undo the override here.
69036         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
69037         Works around the famous automake error in coreutils.
69038
69039 2006-11-13  Eric Blake  <ebb9@byu.net>
69040
69041         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
69042         element, not its node.
69043
69044 2006-11-12  Bruno Haible  <bruno@clisp.org>
69045
69046         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
69047         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
69048
69049 2006-11-12  Bruno Haible  <bruno@clisp.org>
69050
69051         * gnulib-tool: New option --local-symlink.
69052         (func_usage): Document it.
69053         (lsymbolic): New variable.
69054         (func_import, func_create_testdir): If --symlink was not specified,
69055         test whether --local-symlink was specified and the file comes from
69056         the local_gnulib_dir.
69057
69058 2006-11-12  Bruno Haible  <bruno@clisp.org>
69059
69060         * gnulib-tool (func_ln): New function.
69061         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
69062
69063 2006-11-12  Bruno Haible  <bruno@clisp.org>
69064
69065         Finish support for source files in subdirectories.
69066         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
69067         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
69068         AUTOMAKE_OPTIONS.
69069         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
69070
69071 2006-11-12  Bruno Haible  <bruno@clisp.org>
69072
69073         * gnulib-tool (func_get_automake_snippet): Synthesize also an
69074         EXTRA_lib_SOURCES augmentation.
69075         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
69076
69077 2006-11-12  Jim Meyering  <jim@meyering.net>
69078
69079         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
69080         file descriptors.  This also averts a failure on systems with
69081         native openat support when a traversed directory lacks "x" access.
69082         * lib/fts_.h: Include "i-ring.h"
69083         (struct FTS) [fts_fd_ring]: New member.
69084         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
69085         (FCHDIR): Add parentheses.
69086         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
69087         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
69088         When descending, rather than simply closing the previous
69089         fts_cwd_fd value, push that file descriptor onto the ring.
69090         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
69091         (fts_open): Initialize the new fd_ring member.
69092         (fts_close): Clear the ring.
69093         (fts_safe_changedir): When possible, use our new fd_ring to skip
69094         the diropen and fstat and dev/ino comparison that would normally
69095         accompany a virtual `chdir ("..")'.
69096
69097         * modules/fts (Depends-on): Add i-ring.
69098         * modules/i-ring: New module.
69099         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
69100         * m4/i-ring.m4: New file.
69101
69102 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69103
69104         * gnulib-tool (func_create_testdir): Fix replacement of
69105         `build-aux' in configure.ac.  Run autotools in gltests
69106         subdirectory.
69107         (func_create_testdir, func_create_megatestdir, test): There is
69108         no need for '--force' in most autotool invocations in a new
69109         tree.  Actually fail the whole test if any of the tools, or the
69110         configure or make stages fail.
69111
69112         Sync from Automake.
69113         * build-aux/gnupload: Revert last change.  Add pointer to upload
69114         instructions of the GNU Maintenance Instructions.
69115         Suggestion by Karl Berry.
69116
69117 2006-11-10  Jim Meyering  <jim@meyering.net>
69118
69119         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
69120
69121 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
69124         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
69125         (bind_textdomain_codeset) [! ENABLE_NLS]:
69126         Evaluate all the arguments.  That way, callers get compatible behavior
69127         if the arguments have side effects.  Also, it avoids some GCC
69128         diagnostics in some cases; Joel E. Denny reported problems when Bison
69129         was configured with --enable-gcc-warnigs.
69130
69131 2006-11-10  Jim Meyering  <jim@meyering.net>
69132
69133         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
69134         relevant options in CFLAGS (like -O, -fno-inline) are taken into
69135         account.
69136
69137 2006-11-10  Jim Meyering  <jim@meyering.net>
69138
69139         * modules/inline: New file/module.
69140         * modules/xalloc (Files): Remove m4/inline.m4.
69141         (Depends-on): Add inline, instead.
69142         * modules/oset: Likewise.
69143         * modules/list: Likewise.
69144
69145 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
69148         Problem reported by Matthew Woehlke.
69149
69150 2006-11-09  Bruno Haible  <bruno@clisp.org>
69151
69152         * lib/tempname.c (gen_tempname): Remove variant that invokes
69153         __gen_tempname.
69154         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
69155         __gen_tempname.
69156
69157 2006-11-08  Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
69160         to 'yes' instead of 'cross-compiling'.
69161
69162 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * lib/quotearg.h (quotearg_free): New decl.
69165         * lib/quotearg.c (quotearg_free): New function.
69166         (slot0, nslots, slotvec0, slotvec):
69167         Now file-scope so that quotearg_free can get at them.
69168
69169 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69170
69171         Sync from Automake.
69172         * build-aux/gnupload: Add missing 'gnu' to example URL.
69173         Report by Karl Berry.
69174
69175 2006-11-08  Bruno Haible  <bruno@clisp.org>
69176
69177         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
69178         Suggested by Paul Eggert.
69179
69180 2006-11-08  Jim Meyering  <jim@meyering.net>
69181
69182         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
69183         It's already included if !_LIBC.
69184         (fts_safe_changedir): Add a comment.
69185
69186 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69187
69188         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
69189         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
69190         Matthew Woehlke.
69191
69192         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
69193         definitions up, to avoid colliding with change below.
69194         (static_inline) [HAVE_INLINE]: New macro.
69195         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
69196         Provide extern decls when !HAVE_INLINE.  Do not define unless
69197         static_inline is defined, either by us or by xmalloc.c.  Use
69198         static_inline rather than static inline.
69199         (XCALLOC): Optimize sizeof(T) = 1 case.
69200         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
69201
69202 2006-11-07  Bruno Haible  <bruno@clisp.org>
69203
69204         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
69205         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
69206         AC_C_INLINE.
69207         * modules/xalloc (Files): Add m4/inline.m4.
69208
69209 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69210
69211         * README: Fix typo.
69212         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
69213         (Miscellanous Notes): ...from this.
69214
69215 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69218         Mention that offsetof should be used instead of sizeof.
69219         From Bruno Haible.
69220
69221 2006-11-07  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69224
69225 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69228         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69229         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69230         (gl_tree_add_before, gl_tree_add_after):
69231         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69232         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69233         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69234         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69235         (gl_linked_add_after, gl_linked_add_at): Likewise.
69236         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69237         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69238         (gl_tree_add_before, gl_tree_add_after): Likewise.
69239         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69240         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69241         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69242
69243 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69244
69245         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69246
69247 2006-11-06  Bruno Haible  <bruno@clisp.org>
69248
69249         * m4/inline.m4: New file.
69250         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69251         * modules/list (Files): Add m4/inline.m4.
69252         * modules/oset (Files): Likewise.
69253
69254 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69255
69256         * lib/idcache.c: Include <stddef.h>, for offsetof.
69257         (struct userid.name): Change from char * to a flexible array member.
69258         All uses changed.
69259         * modules/idcache (Depends-on): Add flexmember.
69260
69261         * MODULES.html.sh (Core language properties): New module flexmember.
69262         * modules/flexmember, m4/flexmember.m4: New files.
69263
69264         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69265         inline functions that are identical with the old xnmalloc_inline,
69266         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69267         that we can avoid some unnecessary integer multiplications and
69268         divisions in the common case where the element size is known at
69269         compile time.
69270         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69271         needed.
69272         (xnboundedmalloc): Remove.
69273         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69274         arguments, for consistency with rest of this header.
69275         (xcharalloc): Rewrite using XNMALLOC.
69276         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69277         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69278         versions have been moved to lib/xalloc.h and renamed to be the
69279         non-*_inline versions.
69280         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69281         and xnrealloc functions, since those functions are now inline and
69282         now call us.
69283         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69284         renaming described above.
69285         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69286         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69287         captures the dependency in AC_C_INLINE.
69288
69289         New module canonicalize-lgpl, proposed by Charles Wilson in
69290         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69291         with a few small changes afterwards.
69292         * MODULES.html.sh (File system functions): New module
69293         canonicalize-lgpl.
69294         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69295         and canonicalize_file_name.
69296         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69297         * modules/canonicalize-lgpl: New files.
69298
69299 2006-11-05  Bruno Haible  <bruno@clisp.org>
69300
69301         * gnulib-tool (func_import, func_create_testdir): Create directories
69302         also for files in subdirectories of lib/.
69303
69304 2006-11-05  Bruno Haible  <bruno@clisp.org>
69305
69306         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69307         ANSI C compliant.
69308
69309 2006-11-03  Bruno Haible  <bruno@clisp.org>
69310
69311         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69312         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69313         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69314         (xnboundedmalloc): New inline function.
69315         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69316         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69317         xmalloc.
69318         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69319         xmalloc.
69320         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69321         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69322         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69323         xmalloc.
69324         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69325         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69326         xmalloc.
69327         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69328         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69329         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69330         xmalloc.
69331         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69332         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69333         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69334         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69335         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69336         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69337         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69338
69339 2006-11-03  Bruno Haible  <bruno@clisp.org>
69340
69341         * lib/c-ctype.h [C++]: Define functions without name mangling.
69342         * lib/fwriteerror.h [C++]: Likewise.
69343         * lib/gcd.h [C++]: Likewise.
69344         * lib/linebreak.h [C++]: Likewise.
69345
69346 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69349         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69350         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69352         Check for functions and headers just once.
69353         Check for declaration of canonicalize_file_name.
69354         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69355
69356 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69357
69358         * gnulib-tool (func_import): Fix typo in actioncmd.
69359
69360 2006-11-02  Bruno Haible  <bruno@clisp.org>
69361
69362         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69363         newline sequence in the Makefile.am snippet as a space, like "make"
69364         does.
69365         Reported by Roger Persson <perrog@gmail.com>.
69366
69367 2006-11-01  Bruno Haible  <bruno@clisp.org>
69368
69369         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69370         already declared in <string.h>.
69371         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69372
69373 2006-11-01  Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69376         * lib/strcase.h: Include <string.h>.
69377         (strcasecmp): Define to rpl_strcasecmp here.
69378
69379 2006-11-01  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69382
69383 2006-11-01  Eric Blake  <ebb9@byu.net>
69384
69385         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69386
69387         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69388
69389 2006-10-29  Bruno Haible  <bruno@clisp.org>
69390
69391         Make it compile in C++ mode.
69392         * lib/full-write.c (full_rw): Add a cast.
69393
69394 2006-11-01  Bruno Haible  <bruno@clisp.org>
69395
69396         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69397         be POSIX compliant.
69398         Reported by Roger Persson <perrog@gmail.com>.
69399
69400 2006-11-01  Eric Blake  <ebb9@byu.net>
69401
69402         * lib/getopt_.h: Fix comments.
69403
69404 2006-10-31  Eric Blake  <ebb9@byu.net>
69405
69406         * modules/tmpdir (Depends-on): Add sys_stat.
69407         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69408         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69409         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69410         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69411         tempname.
69412
69413 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         Avoid some C++ diagnostics reported by Bruno Haible.
69416         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69417         xmalloc.
69418         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69419         (struct slotvec): Move to top level.
69420         (quotearg_n_options): Rewrite to avoid xmalloc.
69421         * lib/xalloc.h (xcharalloc): New function.
69422         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69423         [defined __cplusplus]: Add function template that provides result
69424         type propagation.  This part of the change is from Bruno Haible.
69425
69426 2006-10-29  Bruno Haible  <bruno@clisp.org>
69427
69428         Make it compile in C++ mode.
69429         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69430         * lib/strnlen1.c (strnlen1): Cast memchr result.
69431         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69432         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69433         (create_temp_dir): Rename local variable 'template'.
69434         (compile_csharp_using_sscli): Add cast.
69435         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69436         * lib/findprog.c (find_in_path): Likewise.
69437         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69438         * lib/wait-process.c (register_slave_subprocess): Likewise.
69439
69440 2006-10-22  Bruno Haible  <bruno@clisp.org>
69441
69442         * modules/tsearch: New file.
69443         * lib/tsearch.h: New file.
69444         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69445         * m4/tsearch.m4: New file.
69446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69447
69448 2006-10-29  Eric Blake  <ebb9@byu.net>
69449
69450         * lib/arcfour.c: Assume config.h.
69451         * lib/arctwo.c: Likewise.
69452         * lib/base64.c: Likewise.
69453         * lib/check-version.c: Likewise.
69454         * lib/crc.c: Likewise.
69455         * lib/des.c: Likewise.
69456         * lib/gc-gnulib.c: Likewise.
69457         * lib/gc-libgcrypt.c: Likewise.
69458         * lib/gc-pbkdf2-sha1.c: Likewise.
69459         * lib/getaddrinfo.c: Likewise.
69460         * lib/getdelim.c: Likewise.
69461         * lib/getline.c: Likewise.
69462         * lib/hmac-md5.c: Likewise.
69463         * lib/hmac-sha1.c: Likewise.
69464         * lib/iconvme.c: Likewise.
69465         * lib/md2.c: Likewise.
69466         * lib/md4.c: Likewise.
69467         * lib/memxor.c: Likewise.
69468         * lib/read-file.c: Likewise.
69469         * lib/readline.c: Likewise.
69470         * lib/rijndael-alg-fst.c: Likewise.
69471         * lib/rijndael-api-fst.c: Likewise.
69472         * lib/xgetdomainname.c: Likewise.
69473
69474 2006-10-28  Eric Blake  <ebb9@byu.net>
69475
69476         * lib/xstrndup.c: Assume config.h.
69477
69478 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69481         stat-macros.h is now for our own macros, whereas stat_h is for
69482         macros in the <sys/stat.h> name space.
69483         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69484         (STAT_MACROS_H): Remove.
69485         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69486         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69487         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69488         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69489         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69490         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69491         Move these macros to ...
69492         * lib/stat_.h: here.  Don't include stat-macros.h.
69493         * lib/canonicalize.c: Don't include stat-macros.h.
69494         * lib/chown.c: Likewise.
69495         * lib/euidaccess.c: Likewise.
69496         * lib/file-type.c: Likewise.
69497         * lib/filemode.c: Likewise.
69498         * lib/glob.c: Likewise.
69499         * lib/isapipe.c: Likewise.
69500         * lib/lchown.c: Likewise.
69501         * lib/lstat.c: Likewise.
69502         * lib/mkdir-p.c: Likewise.
69503         * lib/rmdir.c: Likewise.
69504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69506         unless mkdir isn't declared, to speed up 'configure'.
69507         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69508         would define all the S_* symbols.
69509         * modules/canonicalize (Depends-on):
69510         Depend on sys_stat, not stat-macros.
69511         * modules/chown: Likewise.
69512         * modules/euidaccess: Likewise.
69513         * modules/filemode: Likewise.
69514         * modules/file-type: Likewise.
69515         * modules/glob: Likewise.
69516         * modules/isapipe: Likewise.
69517         * modules/lchown: Likewise.
69518         * modules/lstat: Likewise.
69519         * modules/mkancesdirs: Likewise.
69520         * modules/rmdir: Likewise.
69521         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69522         * modules/modechange: Likewise.
69523         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69524         (configure.ac): Remove gl_STAT_MACROS.
69525         * modules/sys_stat (Depends-on): Remove stat-macros.
69526
69527 2006-10-27  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/signed.m4: Remove file.
69530         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69531         invocation.
69532         * modules/vasnprintf (Files): Remove m4/signed.m4.
69533
69534 2006-10-27  Bruno Haible  <bruno@clisp.org>
69535
69536         Update to GNU gettext 0.16.
69537         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69538         m4/inttypes-h.m4, m4/signed.m4.
69539         * m4/gettext.m4: Update to GNU gettext 0.16.
69540         * m4/intl.m4: New file, from GNU gettext.
69541         * m4/intldir.m4: New file, from GNU gettext.
69542         * config/srclist.txt: Update
69543
69544 2006-10-27  Eric Blake  <ebb9@byu.net>
69545
69546         * MODULES.html.sh: Document tempname.
69547         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69548         dependencies.
69549         (Files): Move lib/tempname.c...
69550         * modules/tempname: ...to this new module.
69551         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69552         (gl_PREREQ_TEMPNAME): Move...
69553         * m4/tempname.m4: ...to this new file.
69554         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69555         * modules/sys_stat (Depends-on): Add stat-macros.
69556         * lib/stat_.h (includes): Pick up stat macros.
69557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69558         if stat macros are broken.
69559         * lib/tempname.c (includes): No need to include "stat-macros.h".
69560         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69561         (direxists, __path_search) [!_LIBC]: Don't compile these in
69562         gnulib; the tmpdir module covers that.
69563         * lib/tempname.h: New file.
69564
69565 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * COPYING: Explain how gnulib-tool converts licence headers.
69568         Almost all wording by Eric Blake.
69569
69570 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * lib/mbchar.h (is_basic_table): Make read-only.
69573         * lib/mbchar.c (is_basic_table): Likewise.
69574         Reported by John Darrington.
69575
69576 2006-10-25  Bruno Haible  <bruno@clisp.org>
69577
69578         * lib/progname.h (set_program_name): Undefine before defining.
69579
69580 2006-10-25  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69583         false for non-gcc C++ compilers.
69584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69585
69586 2006-10-24  Bruno Haible  <bruno@clisp.org>
69587
69588         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69589         iconv implementations like Irix iconv.
69590
69591 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * modules/vararrays: New file.
69594         * m4/vararrays.m4: New file, taken from diffutils.
69595         * MODULES.html.sh: New module vararrays.
69596
69597 2006-10-24  Karl Berry  <karl@gnu.org>
69598
69599         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69600         Don't call GNU Unix.
69601
69602 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69603
69604         * users.txt: Add Libtool.
69605
69606         Sync from Libtool:
69607
69608         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69611         to gnulib's policy of including config.h unconditionally.
69612
69613 2006-10-24  Bruno Haible  <bruno@clisp.org>
69614
69615         * modules/wcwidth (Files): Add m4/wint_t.m4.
69616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69617         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69618
69619 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69622         to pacify GCC with some -W flags enabled.  Problem reported by
69623         Bruno Haible.
69624
69625 2006-10-24  Jim Meyering  <jim@meyering.net>
69626
69627         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69628         Reported by Karl Berry.
69629
69630 2006-10-23  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69633
69634 2006-10-24  Bruno Haible  <bruno@clisp.org>
69635
69636         * lib/gl_list.h: Use C comment style, not C++ comment style.
69637
69638 2006-10-23  Eric Blake  <ebb9@byu.net>
69639
69640         * lib/getaddrinfo.c (includes): Add missing include.
69641
69642 2006-10-23  Bruno Haible  <bruno@clisp.org>
69643             Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         Ability to rename obstack_free.
69646         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69647         obstack_free.
69648         (obstack_free): Invoke the __obstack_free macro.
69649         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69650
69651 2006-10-23  Bruno Haible  <bruno@clisp.org>
69652             Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69655         __argc, __argv from the declaration. (They are defined as macros on
69656         mingw.)
69657
69658 2006-10-22  Bruno Haible  <bruno@clisp.org>
69659
69660         * doc/gnulib-intro.texi: New file.
69661         * doc/gnulib.texi: Include it.
69662
69663 2006-10-21  Bruno Haible  <bruno@clisp.org>
69664
69665         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69666         "Introduction", "Miscellanous Notes", "Particular Modules".
69667
69668 2006-10-21  Bruno Haible  <bruno@clisp.org>
69669
69670         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69671         Change mostlyclean-local rule to avoid sh syntax error from bash
69672         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69673
69674 2006-10-23  Jim Meyering  <jim@meyering.net>
69675
69676         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69677         in place of snprintf.
69678
69679         * modules/inttostr (Files): Add lib/uinttostr.c.
69680         * lib/uinttostr.c (inttostr): New file/function.
69681         * lib/inttostr.h (uinttostr): Declare.
69682         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69683         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69684         Add uinttostr.
69685         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69686
69687 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69688
69689         * lib/canonicalize.c (ELOOP): Define if not already defined.
69690         Problem reported by Bruno Haible in
69691         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69692
69693 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69696         Problem reported by Perry Smith and Ville Laurikari.
69697
69698         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69699         uses.
69700
69701 2006-10-19  Bruno Haible  <bruno@clisp.org>
69702
69703         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69704         for mingw.
69705
69706 2006-10-19  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69709         Needed for mingw.
69710
69711 2006-10-19  Bruno Haible  <bruno@clisp.org>
69712
69713         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69714
69715 2006-10-19  Bruno Haible  <bruno@clisp.org>
69716
69717         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69718         it.
69719
69720 2006-10-19  Bruno Haible  <bruno@clisp.org>
69721
69722         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69723         invocation.
69724
69725 2006-10-19  Bruno Haible  <bruno@clisp.org>
69726
69727         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69728         mountlist by default.
69729
69730 2006-10-16  Bruno Haible  <bruno@clisp.org>
69731
69732         * lib/c-strstr.c: Include c-strstr.h.
69733
69734 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69735
69736         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69737         in a slash.
69738
69739 2006-10-18  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/lock.h [C++]: Wrap definitions in extern "C".
69742
69743 2006-10-18  Bruno Haible  <bruno@clisp.org>
69744
69745         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69746         gl_LIBOBJS list.
69747
69748 2006-10-18  Bruno Haible  <bruno@clisp.org>
69749
69750         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69751
69752 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/xstrtol.h: Include gettext.h.
69755         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69756         Problem reported by Eric Blake.
69757         * modules/xstrtol (Depends-on): Add gettext-h.
69758
69759 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69760
69761         * lib/strftime.c (advance): New macro.
69762         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69763         incomplete type, so you can't add 0 to it.  Problem and patch
69764         reported by Eelco Dolstra for dietlibc.
69765
69766 2006-10-18  Jim Meyering  <jim@meyering.net>
69767
69768         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69769         type for a local, and rename it: s/up/user_proc/.
69770
69771 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69772
69773         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69774         READ_UTMP_USER_PROCESS.
69775         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69776
69777 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69780         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69781
69782 2006-10-17  Eric Blake  <ebb9@byu.net>
69783
69784         * lib/sigprocmask.c (sigprocmask): Fix typo.
69785
69786         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69787
69788         * modules/clean-temp (Makefile.am): Don't add to make output...
69789         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69790         config.h.
69791
69792 2006-10-17  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69795         differently if DEFAULT_TEXT_DOMAIN is set.
69796
69797 2006-10-16  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/clean-temp.c: Include fwriteerror.h.
69800
69801 2006-10-16  Bruno Haible  <bruno@clisp.org>
69802
69803         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69804
69805 2006-10-16  Bruno Haible  <bruno@clisp.org>
69806
69807         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69808         * lib/sigprocmask.h: Include <sys/types.h>.
69809         (sigset_t): Use the system's definition if present.
69810
69811 2006-10-17  Eric Blake  <ebb9@byu.net>
69812
69813         * lib/xvasprintf.c (includes): Assume config.h.
69814         * lib/xasprintf.c (includes): Likewise.
69815
69816 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69819         at least as wide as intmax_t.
69820
69821 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69822
69823         (Imported from Automake.)
69824         * build-aux/gnupload: Update to version 1.1 of directive file.
69825
69826 2006-10-16  Eric Blake  <ebb9@byu.net>
69827
69828         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69829         match Automake 1.10a.
69830
69831 2006-10-14  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/sigprocmask: New file.
69834         * lib/sigprocmask.h: New file.
69835         * lib/sigprocmask.c: New file.
69836         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69837         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69838         request sigprocmask.o.
69839         (gl_PREREQ_SIGPROCMASK): New macro.
69840         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69841         (Depends-on): Add sigprocmask.
69842         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69843         gt_SIGNALBLOCKING. Test for 'raise' only once.
69844         * lib/fatal-signal.c: Include sigprocmask.h.
69845         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69846         unblock_fatal_signals): Define always.
69847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69848         sigprocmask.
69849
69850 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         Sync from Automake.
69853         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69854         which incorrectly sets the mode of an existing destination
69855         directory.  In some cases the unpatched install-sh could do the
69856         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69857         system.  We hope this is rare in practice, but it's clearly worth
69858         fixing.  Problem reported by Alex Unleashed in
69859         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69860         Also, don't bother to check for -m bugs unless we're using -m;
69861         suggested by Stepan Kasal.
69862
69863 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69864
69865         Sync from Automake.
69866         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69867         `-c' flag, so they appear at the same position as in %FASTDEP%
69868         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69869         which ignores unknown options only after the first non-option.
69870         Bug report against M4 by Nelson H. F. Beebe.
69871
69872 2006-10-13  Jim Meyering  <jim@meyering.net>
69873
69874         Fix a bug in yesterday's change.
69875         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69876         p->fts_statp->st_dev would be used uninitialized.
69877         Ensures that we always call fts_stat on the very first entry.
69878         Miklos Szeredi reported that find -xdev stopped working.
69879
69880 2006-10-12  Bruno Haible  <bruno@clisp.org>
69881
69882         * gnulib-tool (func_get_automake_snippet): Append an automatically
69883         computed EXTRA_DIST augmentation.
69884         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69885         * modules/alloca-opt (Makefile.am): Likewise.
69886         * modules/allocsa (Makefile.am): Likewise.
69887         * modules/arcfour (Makefile.am): Likewise.
69888         * modules/arctwo (Makefile.am): Likewise.
69889         * modules/argmatch (Makefile.am): Likewise.
69890         * modules/argz (Makefile.am): Likewise.
69891         * modules/atexit (Makefile.am): Likewise.
69892         * modules/backupfile (Makefile.am): Likewise.
69893         * modules/byteswap (Makefile.am): Likewise.
69894         * modules/c-strtod (Makefile.am): Likewise.
69895         * modules/c-strtold (Makefile.am): Likewise.
69896         * modules/calloc (Makefile.am): Likewise.
69897         * modules/canon-host (Makefile.am): Likewise.
69898         * modules/canonicalize (Makefile.am): Likewise.
69899         * modules/chdir-long (Makefile.am): Likewise.
69900         * modules/chdir-safer (Makefile.am): Likewise.
69901         * modules/check-version (Makefile.am): Likewise.
69902         * modules/chown (Makefile.am): Likewise.
69903         * modules/cloexec (Makefile.am): Likewise.
69904         * modules/close-stream (Makefile.am): Likewise.
69905         * modules/closeout (Makefile.am): Likewise.
69906         * modules/crc (Makefile.am): Likewise.
69907         * modules/csharpexec (Makefile.am): Likewise.
69908         * modules/cycle-check (Makefile.am): Likewise.
69909         * modules/des (Makefile.am): Likewise.
69910         * modules/dev-ino (Makefile.am): Likewise.
69911         * modules/dirfd (Makefile.am): Likewise.
69912         * modules/dirname (Makefile.am): Likewise.
69913         * modules/dup2 (Makefile.am): Likewise.
69914         * modules/eealloc (Makefile.am): Likewise.
69915         * modules/error (Makefile.am): Likewise.
69916         * modules/euidaccess (Makefile.am): Likewise.
69917         * modules/exclude (Makefile.am): Likewise.
69918         * modules/exitfail (Makefile.am): Likewise.
69919         * modules/fcntl-safer (Makefile.am): Likewise.
69920         * modules/fcntl (Makefile.am): Likewise.
69921         * modules/file-type (Makefile.am): Likewise.
69922         * modules/fileblocks (Makefile.am): Likewise.
69923         * modules/filemode (Makefile.am): Likewise.
69924         * modules/filenamecat (Makefile.am): Likewise.
69925         * modules/fnmatch (Makefile.am): Likewise.
69926         * modules/fopen-safer (Makefile.am): Likewise.
69927         * modules/fpending (Makefile.am): Likewise.
69928         * modules/fprintftime (Makefile.am): Likewise.
69929         * modules/free (Makefile.am): Likewise.
69930         * modules/fsusage (Makefile.am): Likewise.
69931         * modules/ftruncate (Makefile.am): Likewise.
69932         * modules/fts (Makefile.am): Likewise.
69933         * modules/gc-arcfour (Makefile.am): Likewise.
69934         * modules/gc-des (Makefile.am): Likewise.
69935         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69936         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69937         * modules/gc-md4 (Makefile.am): Likewise.
69938         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69939         * modules/gc-sha1 (Makefile.am): Likewise.
69940         * modules/gc (Makefile.am): Likewise.
69941         * modules/getaddrinfo (Makefile.am): Likewise.
69942         * modules/getcwd (Makefile.am): Likewise.
69943         * modules/getdelim (Makefile.am): Likewise.
69944         * modules/getdomainname (Makefile.am): Likewise.
69945         * modules/getgroups (Makefile.am): Likewise.
69946         * modules/gethostname (Makefile.am): Likewise.
69947         * modules/gethrxtime (Makefile.am): Likewise.
69948         * modules/getline (Makefile.am): Likewise.
69949         * modules/getloadavg (Makefile.am): Likewise.
69950         * modules/getlogin_r (Makefile.am): Likewise.
69951         * modules/getndelim2 (Makefile.am): Likewise.
69952         * modules/getopt (Makefile.am): Likewise.
69953         * modules/getpagesize (Makefile.am): Likewise.
69954         * modules/getpass-gnu (Makefile.am): Likewise.
69955         * modules/getpass (Makefile.am): Likewise.
69956         * modules/getsubopt (Makefile.am): Likewise.
69957         * modules/gettime (Makefile.am): Likewise.
69958         * modules/gettimeofday (Makefile.am): Likewise.
69959         * modules/getugroups (Makefile.am): Likewise.
69960         * modules/getusershell (Makefile.am): Likewise.
69961         * modules/glob (Makefile.am): Likewise.
69962         * modules/group-member (Makefile.am): Likewise.
69963         * modules/hard-locale (Makefile.am): Likewise.
69964         * modules/hash (Makefile.am): Likewise.
69965         * modules/hmac-md5 (Makefile.am): Likewise.
69966         * modules/hmac-sha1 (Makefile.am): Likewise.
69967         * modules/human (Makefile.am): Likewise.
69968         * modules/idcache (Makefile.am): Likewise.
69969         * modules/imaxabs (Makefile.am): Likewise.
69970         * modules/imaxdiv (Makefile.am): Likewise.
69971         * modules/inet_ntop (Makefile.am): Likewise.
69972         * modules/inet_pton (Makefile.am): Likewise.
69973         * modules/intprops (Makefile.am): Likewise.
69974         * modules/inttostr (Makefile.am): Likewise.
69975         * modules/inttypes (Makefile.am): Likewise.
69976         * modules/isapipe (Makefile.am): Likewise.
69977         * modules/javaversion (Makefile.am): Likewise.
69978         * modules/lchmod (Makefile.am): Likewise.
69979         * modules/lchown (Makefile.am): Likewise.
69980         * modules/localcharset (Makefile.am): Likewise.
69981         * modules/long-options (Makefile.am): Likewise.
69982         * modules/lstat (Makefile.am): Likewise.
69983         * modules/malloc (Makefile.am): Likewise.
69984         * modules/mathl (Makefile.am): Likewise.
69985         * modules/mbchar (Makefile.am): Likewise.
69986         * modules/md2 (Makefile.am): Likewise.
69987         * modules/md4 (Makefile.am): Likewise.
69988         * modules/md5 (Makefile.am): Likewise.
69989         * modules/memcasecmp (Makefile.am): Likewise.
69990         * modules/memchr (Makefile.am): Likewise.
69991         * modules/memcmp (Makefile.am): Likewise.
69992         * modules/memcoll (Makefile.am): Likewise.
69993         * modules/memcpy (Makefile.am): Likewise.
69994         * modules/memmem (Makefile.am): Likewise.
69995         * modules/memmove (Makefile.am): Likewise.
69996         * modules/mempcpy (Makefile.am): Likewise.
69997         * modules/memrchr (Makefile.am): Likewise.
69998         * modules/memset (Makefile.am): Likewise.
69999         * modules/memxor (Makefile.am): Likewise.
70000         * modules/mkancesdirs (Makefile.am): Likewise.
70001         * modules/mkdir-p (Makefile.am): Likewise.
70002         * modules/mkdir (Makefile.am): Likewise.
70003         * modules/mkdtemp (Makefile.am): Likewise.
70004         * modules/mkstemp (Makefile.am): Likewise.
70005         * modules/mktime (Makefile.am): Likewise.
70006         * modules/modechange (Makefile.am): Likewise.
70007         * modules/mountlist (Makefile.am): Likewise.
70008         * modules/nanosleep (Makefile.am): Likewise.
70009         * modules/obstack (Makefile.am): Likewise.
70010         * modules/openat (Makefile.am): Likewise.
70011         * modules/pagealign_alloc (Makefile.am): Likewise.
70012         * modules/pathmax (Makefile.am): Likewise.
70013         * modules/physmem (Makefile.am): Likewise.
70014         * modules/poll (Makefile.am): Likewise.
70015         * modules/posixtm (Makefile.am): Likewise.
70016         * modules/posixver (Makefile.am): Likewise.
70017         * modules/putenv (Makefile.am): Likewise.
70018         * modules/quote (Makefile.am): Likewise.
70019         * modules/quotearg (Makefile.am): Likewise.
70020         * modules/raise (Makefile.am): Likewise.
70021         * modules/read-file (Makefile.am): Likewise.
70022         * modules/readline (Makefile.am): Likewise.
70023         * modules/readlink (Makefile.am): Likewise.
70024         * modules/readtokens (Makefile.am): Likewise.
70025         * modules/readutmp (Makefile.am): Likewise.
70026         * modules/realloc (Makefile.am): Likewise.
70027         * modules/regex (Makefile.am): Likewise.
70028         * modules/rename-dest-slash (Makefile.am): Likewise.
70029         * modules/rename (Makefile.am): Likewise.
70030         * modules/rijndael (Makefile.am): Likewise.
70031         * modules/rmdir (Makefile.am): Likewise.
70032         * modules/rpmatch (Makefile.am): Likewise.
70033         * modules/safe-read (Makefile.am): Likewise.
70034         * modules/safe-write (Makefile.am): Likewise.
70035         * modules/same-inode (Makefile.am): Likewise.
70036         * modules/same (Makefile.am): Likewise.
70037         * modules/save-cwd (Makefile.am): Likewise.
70038         * modules/savedir (Makefile.am): Likewise.
70039         * modules/setenv (Makefile.am): Likewise.
70040         * modules/settime (Makefile.am): Likewise.
70041         * modules/sha1 (Makefile.am): Likewise.
70042         * modules/sig2str (Makefile.am): Likewise.
70043         * modules/snprintf (Makefile.am): Likewise.
70044         * modules/stat-macros (Makefile.am): Likewise.
70045         * modules/stat-time (Makefile.am): Likewise.
70046         * modules/stdbool (Makefile.am): Likewise.
70047         * modules/stdint (Makefile.am): Likewise.
70048         * modules/stdlib-safer (Makefile.am): Likewise.
70049         * modules/stpcpy (Makefile.am): Likewise.
70050         * modules/stpncpy (Makefile.am): Likewise.
70051         * modules/strcase (Makefile.am): Likewise.
70052         * modules/strcasestr (Makefile.am): Likewise.
70053         * modules/strchrnul (Makefile.am): Likewise.
70054         * modules/strcspn (Makefile.am): Likewise.
70055         * modules/strdup (Makefile.am): Likewise.
70056         * modules/strerror (Makefile.am): Likewise.
70057         * modules/strftime (Makefile.am): Likewise.
70058         * modules/strndup (Makefile.am): Likewise.
70059         * modules/strnlen (Makefile.am): Likewise.
70060         * modules/strpbrk (Makefile.am): Likewise.
70061         * modules/strsep (Makefile.am): Likewise.
70062         * modules/strstr (Makefile.am): Likewise.
70063         * modules/strtod (Makefile.am): Likewise.
70064         * modules/strtoimax (Makefile.am): Likewise.
70065         * modules/strtok_r (Makefile.am): Likewise.
70066         * modules/strtol (Makefile.am): Likewise.
70067         * modules/strtoll (Makefile.am): Likewise.
70068         * modules/strtoul (Makefile.am): Likewise.
70069         * modules/strtoull (Makefile.am): Likewise.
70070         * modules/strtoumax (Makefile.am): Likewise.
70071         * modules/strverscmp (Makefile.am): Likewise.
70072         * modules/sys_socket (Makefile.am): Likewise.
70073         * modules/sys_stat (Makefile.am): Likewise.
70074         * modules/sysexits (Makefile.am): Likewise.
70075         * modules/time_r (Makefile.am): Likewise.
70076         * modules/timegm (Makefile.am): Likewise.
70077         * modules/timespec (Makefile.am): Likewise.
70078         * modules/tmpfile-safer (Makefile.am): Likewise.
70079         * modules/trim (Makefile.am): Likewise.
70080         * modules/unistd-safer (Makefile.am): Likewise.
70081         * modules/unlinkdir (Makefile.am): Likewise.
70082         * modules/unlocked-io (Makefile.am): Likewise.
70083         * modules/userspec (Makefile.am): Likewise.
70084         * modules/utime (Makefile.am): Likewise.
70085         * modules/utimecmp (Makefile.am): Likewise.
70086         * modules/utimens (Makefile.am): Likewise.
70087         * modules/vasnprintf (Makefile.am): Likewise.
70088         * modules/vasprintf (Makefile.am): Likewise.
70089         * modules/vsnprintf (Makefile.am): Likewise.
70090         * modules/xalloc (Makefile.am): Likewise.
70091         * modules/xgetcwd (Makefile.am): Likewise.
70092         * modules/xnanosleep (Makefile.am): Likewise.
70093         * modules/xreadlink (Makefile.am): Likewise.
70094         * modules/xstrtod (Makefile.am): Likewise.
70095         * modules/xstrtol (Makefile.am): Likewise.
70096         * modules/xstrtold (Makefile.am): Likewise.
70097         * modules/yesno (Makefile.am): Likewise.
70098         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
70099
70100 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * modules/error (Makefile.am): Distribute files through
70103         EXTRA_DIST, not lib_SOURCES.
70104
70105 2006-10-12  Eric Blake  <ebb9@byu.net>
70106
70107         * modules/error (Makefile.am): Distribute files in /lib.
70108         * modules/obstack (Makefile.am): Likewise.
70109
70110 2006-10-12  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/acl (Makefile.am): Distribute all files in lib/ through
70113         EXTRA_DIST.
70114         * modules/arcfour (Makefile.am): Likewise.
70115         * modules/arctwo (Makefile.am): Likewise.
70116         * modules/argmatch (Makefile.am): Likewise.
70117         * modules/argz (Makefile.am): Likewise.
70118         * modules/atexit (Makefile.am): Likewise.
70119         * modules/backupfile (Makefile.am): Likewise.
70120         * modules/c-strtod (Makefile.am): Likewise.
70121         * modules/c-strtold (Makefile.am): Likewise.
70122         * modules/calloc (Makefile.am): Likewise.
70123         * modules/canon-host (Makefile.am): Likewise.
70124         * modules/canonicalize (Makefile.am): Likewise.
70125         * modules/chdir-long (Makefile.am): Likewise.
70126         * modules/chdir-safer (Makefile.am): Likewise.
70127         * modules/check-version (Makefile.am): Likewise.
70128         * modules/chown (Makefile.am): Likewise.
70129         * modules/cloexec (Makefile.am): Likewise.
70130         * modules/close-stream (Makefile.am): Likewise.
70131         * modules/closeout (Makefile.am): Likewise.
70132         * modules/crc (Makefile.am): Likewise.
70133         * modules/cycle-check (Makefile.am): Likewise.
70134         * modules/des (Makefile.am): Likewise.
70135         * modules/dirfd (Makefile.am): Likewise.
70136         * modules/dirname (Makefile.am): Likewise.
70137         * modules/dup2 (Makefile.am): Likewise.
70138         * modules/euidaccess (Makefile.am): Likewise.
70139         * modules/exclude (Makefile.am): Likewise.
70140         * modules/exitfail (Makefile.am): Likewise.
70141         * modules/fcntl-safer (Makefile.am): Likewise.
70142         * modules/file-type (Makefile.am): Likewise.
70143         * modules/fileblocks (Makefile.am): Likewise.
70144         * modules/filemode (Makefile.am): Likewise.
70145         * modules/filenamecat (Makefile.am): Likewise.
70146         * modules/fnmatch (Makefile.am): Likewise.
70147         * modules/fopen-safer (Makefile.am): Likewise.
70148         * modules/fpending (Makefile.am): Likewise.
70149         * modules/fprintftime (Makefile.am): Likewise.
70150         * modules/free (Makefile.am): Likewise.
70151         * modules/fsusage (Makefile.am): Likewise.
70152         * modules/ftruncate (Makefile.am): Likewise.
70153         * modules/fts (Makefile.am): Likewise.
70154         * modules/gc (Makefile.am): Likewise.
70155         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70156         * modules/getaddrinfo (Makefile.am): Likewise.
70157         * modules/getcwd (Makefile.am): Likewise.
70158         * modules/getdelim (Makefile.am): Likewise.
70159         * modules/getdomainname (Makefile.am): Likewise.
70160         * modules/getgroups (Makefile.am): Likewise.
70161         * modules/gethostname (Makefile.am): Likewise.
70162         * modules/gethrxtime (Makefile.am): Likewise.
70163         * modules/getline (Makefile.am): Likewise.
70164         * modules/getloadavg (Makefile.am): Likewise.
70165         * modules/getlogin_r (Makefile.am): Likewise.
70166         * modules/getopt (Makefile.am): Likewise.
70167         * modules/getpass (Makefile.am): Likewise.
70168         * modules/getpass-gnu (Makefile.am): Likewise.
70169         * modules/getsubopt (Makefile.am): Likewise.
70170         * modules/gettime (Makefile.am): Likewise.
70171         * modules/gettimeofday (Makefile.am): Likewise.
70172         * modules/getugroups (Makefile.am): Likewise.
70173         * modules/getusershell (Makefile.am): Likewise.
70174         * modules/glob (Makefile.am): Likewise.
70175         * modules/group-member (Makefile.am): Likewise.
70176         * modules/hard-locale (Makefile.am): Likewise.
70177         * modules/hash (Makefile.am): Likewise.
70178         * modules/hmac-md5 (Makefile.am): Likewise.
70179         * modules/hmac-sha1 (Makefile.am): Likewise.
70180         * modules/human (Makefile.am): Likewise.
70181         * modules/idcache (Makefile.am): Likewise.
70182         * modules/imaxabs (Makefile.am): Likewise.
70183         * modules/imaxdiv (Makefile.am): Likewise.
70184         * modules/inet_ntop (Makefile.am): Likewise.
70185         * modules/inet_pton (Makefile.am): Likewise.
70186         * modules/inttostr (Makefile.am): Likewise.
70187         * modules/isapipe (Makefile.am): Likewise.
70188         * modules/lchown (Makefile.am): Likewise.
70189         * modules/long-options (Makefile.am): Likewise.
70190         * modules/lstat (Makefile.am): Likewise.
70191         * modules/malloc (Makefile.am): Likewise.
70192         * modules/mathl (Makefile.am): Likewise.
70193         * modules/mbchar (Makefile.am): Likewise.
70194         * modules/md2 (Makefile.am): Likewise.
70195         * modules/md4 (Makefile.am): Likewise.
70196         * modules/md5 (Makefile.am): Likewise.
70197         * modules/memcasecmp (Makefile.am): Likewise.
70198         * modules/memchr (Makefile.am): Likewise.
70199         * modules/memcmp (Makefile.am): Likewise.
70200         * modules/memcoll (Makefile.am): Likewise.
70201         * modules/memcpy (Makefile.am): Likewise.
70202         * modules/memmem (Makefile.am): Likewise.
70203         * modules/memmove (Makefile.am): Likewise.
70204         * modules/mempcpy (Makefile.am): Likewise.
70205         * modules/memrchr (Makefile.am): Likewise.
70206         * modules/memset (Makefile.am): Likewise.
70207         * modules/memxor (Makefile.am): Likewise.
70208         * modules/mkancesdirs (Makefile.am): Likewise.
70209         * modules/mkdir (Makefile.am): Likewise.
70210         * modules/mkdir-p (Makefile.am): Likewise.
70211         * modules/mkdtemp (Makefile.am): Likewise.
70212         * modules/mkstemp (Makefile.am): Likewise.
70213         * modules/mktime (Makefile.am): Likewise.
70214         * modules/modechange (Makefile.am): Likewise.
70215         * modules/mountlist (Makefile.am): Likewise.
70216         * modules/nanosleep (Makefile.am): Likewise.
70217         * modules/openat (Makefile.am): Likewise.
70218         * modules/pagealign_alloc (Makefile.am): Likewise.
70219         * modules/physmem (Makefile.am): Likewise.
70220         * modules/poll (Makefile.am): Likewise.
70221         * modules/posixtm (Makefile.am): Likewise.
70222         * modules/posixver (Makefile.am): Likewise.
70223         * modules/putenv (Makefile.am): Likewise.
70224         * modules/quote (Makefile.am): Likewise.
70225         * modules/quotearg (Makefile.am): Likewise.
70226         * modules/raise (Makefile.am): Likewise.
70227         * modules/read-file (Makefile.am): Likewise.
70228         * modules/readline (Makefile.am): Likewise.
70229         * modules/readlink (Makefile.am): Likewise.
70230         * modules/readtokens (Makefile.am): Likewise.
70231         * modules/readutmp (Makefile.am): Likewise.
70232         * modules/realloc (Makefile.am): Likewise.
70233         * modules/regex (Makefile.am): Likewise.
70234         * modules/rename (Makefile.am): Likewise.
70235         * modules/rename-dest-slash (Makefile.am): Likewise.
70236         * modules/rijndael (Makefile.am): Likewise.
70237         * modules/rmdir (Makefile.am): Likewise.
70238         * modules/rpmatch (Makefile.am): Likewise.
70239         * modules/safe-read (Makefile.am): Likewise.
70240         * modules/safe-write (Makefile.am): Likewise.
70241         * modules/same (Makefile.am): Likewise.
70242         * modules/save-cwd (Makefile.am): Likewise.
70243         * modules/savedir (Makefile.am): Likewise.
70244         * modules/setenv (Makefile.am): Likewise.
70245         * modules/settime (Makefile.am): Likewise.
70246         * modules/sha1 (Makefile.am): Likewise.
70247         * modules/sig2str (Makefile.am): Likewise.
70248         * modules/snprintf (Makefile.am): Likewise.
70249         * modules/stdlib-safer (Makefile.am): Likewise.
70250         * modules/stpcpy (Makefile.am): Likewise.
70251         * modules/stpncpy (Makefile.am): Likewise.
70252         * modules/strcase (Makefile.am): Likewise.
70253         * modules/strcasestr (Makefile.am): Likewise.
70254         * modules/strchrnul (Makefile.am): Likewise.
70255         * modules/strcspn (Makefile.am): Likewise.
70256         * modules/strdup (Makefile.am): Likewise.
70257         * modules/strerror (Makefile.am): Likewise.
70258         * modules/strftime (Makefile.am): Likewise.
70259         * modules/strndup (Makefile.am): Likewise.
70260         * modules/strnlen (Makefile.am): Likewise.
70261         * modules/strpbrk (Makefile.am): Likewise.
70262         * modules/strsep (Makefile.am): Likewise.
70263         * modules/strstr (Makefile.am): Likewise.
70264         * modules/strtod (Makefile.am): Likewise.
70265         * modules/strtoimax (Makefile.am): Likewise.
70266         * modules/strtok_r (Makefile.am): Likewise.
70267         * modules/strtol (Makefile.am): Likewise.
70268         * modules/strtoll (Makefile.am): Likewise.
70269         * modules/strtoul (Makefile.am): Likewise.
70270         * modules/strtoull (Makefile.am): Likewise.
70271         * modules/strtoumax (Makefile.am): Likewise.
70272         * modules/strverscmp (Makefile.am): Likewise.
70273         * modules/time_r (Makefile.am): Likewise.
70274         * modules/timegm (Makefile.am): Likewise.
70275         * modules/tmpfile-safer (Makefile.am): Likewise.
70276         * modules/unistd-safer (Makefile.am): Likewise.
70277         * modules/unlinkdir (Makefile.am): Likewise.
70278         * modules/userspec (Makefile.am): Likewise.
70279         * modules/utime (Makefile.am): Likewise.
70280         * modules/utimecmp (Makefile.am): Likewise.
70281         * modules/utimens (Makefile.am): Likewise.
70282         * modules/vasnprintf (Makefile.am): Likewise.
70283         * modules/vasprintf (Makefile.am): Likewise.
70284         * modules/vsnprintf (Makefile.am): Likewise.
70285         * modules/xalloc (Makefile.am): Likewise.
70286         * modules/xgetcwd (Makefile.am): Likewise.
70287         * modules/xnanosleep (Makefile.am): Likewise.
70288         * modules/xreadlink (Makefile.am): Likewise.
70289         * modules/xstrtod (Makefile.am): Likewise.
70290         * modules/xstrtol (Makefile.am): Likewise.
70291         * modules/xstrtold (Makefile.am): Likewise.
70292         * modules/yesno (Makefile.am): Likewise.
70293
70294 2006-10-12  Jim Meyering  <jim@meyering.net>
70295
70296         * m4/getloadavg.m4: Revert the change below.
70297
70298         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70299         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70300         fail with a symlink, which is what coreutils' ./bootstrap now
70301         creates by default.
70302
70303 2006-10-12  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70306         mingw.
70307         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70308         MSVC and mingw explicitly.
70309
70310 2006-10-11  Simon Josefsson  <jas@extundo.com>
70311             Bruno Haible  <bruno@clisp.org>
70312
70313         Add support for multiple gnulib-tool invocations in the scope of a
70314         single configure.ac file.
70315         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70316         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70317         with the same contents as the _LIBADD variable.
70318         (func_emit_initmacro_start, func_emit_initmacro_end,
70319         func_emit_initmacro_done): New functions.
70320         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70321         gl_LIBOBJS and gl_LTLIBOBJS.
70322
70323 2006-10-11  Bruno Haible  <bruno@clisp.org>
70324
70325         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70326         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70327         autoreconf. Instead, invoke autopoint explicitly but move back the
70328         *.m4 files from gnulib.
70329
70330 2006-10-11  Bruno Haible  <bruno@clisp.org>
70331
70332         * gnulib-tool (func_usage): Make module names after --create-testdir
70333         optional.
70334         (func_create_testdir): If no module was specified, use nearly all
70335         modules.
70336
70337 2006-10-12  Jim Meyering  <jim@meyering.net>
70338
70339         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70340         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70341         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70342         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70343         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70344         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70345         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70346         (fts_set_stat_required): New function.
70347         (fts_open): Defer the calls to fts_stat, if possible or requested.
70348         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70349         into fts_stat itself.
70350         (fts_read): Perform any required (deferred) fts_stat call.
70351         (fts_build): Likewise, for the directory we're about to open and read.
70352         In the readdir loop, carefully decide whether each entry will require
70353         an eventual call to fts_stat, using dirent.d_type info if available.
70354         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70355         a command line argument into this function.  Update all callers.
70356         Map a return value of FTS_DOT to FTS_D for a command line argument.
70357         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70358         Thanks to Miklos Szeredi for his tenacity and for the initial
70359         bug report about "find" failing on a FUSE-based file system.
70360
70361         * lib/fts.c (fts_open): Use consistent indentation.
70362
70363 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70364
70365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70366         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70367         reported by Jim Meyering.  All uses of cache variables renamed
70368         to match Autoconf's.
70369         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70370         the other one.
70371
70372         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70373         Fix misspelling in diagnostic.
70374
70375 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70378         defined.  Problem reported by Matthew Woehlke.
70379
70380         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70381         Add support for Tandem NonStop R series.
70382         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70383         Use new macro.
70384
70385         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70386         (has_trailing_slash): Omit size arg; all callers changed.
70387         Omit 'inline', since it doesn't help performance and we'd
70388         need to configure it.
70389         Don't count //, ///, etc. as having a trailing slash.
70390         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70391         (rpl_rename_dest_slash): On failure, use rename's errno rather
70392         than (in some cases) an incorrect or junk errno.
70393         Simplify code by removing need to compute length; this does
70394         cause it to make two passes instead of one over the file name,
70395         but it's worth it.
70396
70397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70398         change, since Autoconf's version may no longer be appropriate now
70399         that we are using CVS Autoconf's version.  Add support for Tandem.
70400
70401 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70402             Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70405         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70406         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70407         gl_AC_TYPE_LONG_LONG.
70408
70409         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70410         instead of HAVE_LONG_LONG.
70411         * lib/printf-args.c (printf_fetchargs): Likewise.
70412         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70413         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70414         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70415         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70416         gl_AC_TYPE_LONG_LONG.
70417
70418 2006-10-11  Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/longlong.m4: Add comments.
70421         * m4/ulonglong.m4: Likewise.
70422
70423 2006-10-10  Bruno Haible  <bruno@clisp.org>
70424
70425         Make it possible to #define stpcpy, strdup to aliases.
70426         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70427         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70428
70429 2006-10-10  Bruno Haible  <bruno@clisp.org>
70430
70431         Make it possible to #define gcd to an alias.
70432         * lib/gcd.c: Include config.h.
70433
70434 2006-10-10  Bruno Haible  <bruno@clisp.org>
70435
70436         Make it possible to #define c_isascii to an alias.
70437         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70438         defined. Undefine the macros before defining them, to avoid gcc
70439         warnings.
70440         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70441         define NO_C_CTYPE_MACROS early.
70442
70443 2006-10-10  Bruno Haible  <bruno@clisp.org>
70444
70445         Make it possible to #define set_program_name to an alias.
70446         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70447         ENABLE_RELOCATABLE early.
70448
70449 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70452         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70453         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70454         More generally, don't assume that 64-bit signed int is available
70455         if unsigned int is, and vice versa.
70456         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70457         unsigned symbols, not on their signed counterparts.
70458         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70459         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70460         (UINT64_C, UINTMAX_C):
70461         Likewise.
70462         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70463         unsigned counterparts.
70464         (Have_long_long, Unsigned): New macros.
70465         (Int): Renamed from INT.
70466         (strtoimax): Use the new macros.
70467         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70468         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70469         * modules/inttypes (inttypes.h): Substitute
70470         HAVE_UNSIGNED_LONG_LONG_INT.
70471         * modules/stdint (stdint.h): Likewise.
70472         (Files): Add m4/ulonglong.m4.
70473
70474 2006-10-10  Bruno Haible  <bruno@clisp.org>
70475
70476         Fix a gcc -Wshadow warning.
70477         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70478         to 'bucket'.
70479         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70480         gl_linked_indexof_from_to): Likewise.
70481         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70482         Likewise.
70483         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70484         Likewise.
70485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70486         Reported by Eric Blake.
70487
70488 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70491         for NetBSD.  Problem reported by Bruno Haible.
70492
70493 2006-10-09  Jim Meyering  <jim@meyering.net>
70494
70495         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70496         Patch from Bruno Haible.
70497
70498 2006-10-09  Jim Meyering  <jim@meyering.net>
70499
70500         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70501         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70502         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70503
70504 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         Don't include <config.h> twice; this doesn't work in some cases,
70507         e.g., when config.h has "#define intmax_t long long int" and
70508         we include <config.h>, <inttypes.h>, <config.h> in that order.
70509         Problem reported by Matthew Woehlke in:
70510         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70511         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70512         * lib/fts-cycle.c: Don't include config.h.
70513         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70514         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70515         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70516         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70517         inttypes.h.
70518         * lib/xstrtoumax.c: Likewise.
70519         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70520         __strtol and the like, so that this module is more like its siblings.
70521         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70522         Remove; no longer needed now that we assume gnulib inttypes.h.
70523
70524 2006-10-08  Bruno Haible  <bruno@clisp.org>
70525
70526         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70527         option.
70528
70529 2006-10-07  Jim Meyering  <jim@meyering.net>
70530
70531         * modules/inttypes (inttypes.h): Revert what seems to have been
70532         an inadvertent part of today's change: use "|", not "/" in the
70533         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70534
70535 2006-10-07  Bruno Haible  <bruno@clisp.org>
70536
70537         * modules/sublist: New file.
70538
70539 2006-10-07  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70542         * modules/argz (argz.h): Likewise.
70543         * modules/arpa_inet (arpa/inet.h): Likewise.
70544         * modules/byteswap (byteswap.h): Likewise.
70545         * modules/configmake (configmake.h): Likewise.
70546         * modules/fcntl (fcntl.h): Likewise.
70547         * modules/fnmatch (fnmatch.h): Likewise.
70548         * modules/getopt (getopt.h): Likewise.
70549         * modules/glob (glob.h): Likewise.
70550         * modules/inttypes (inttypes.h): Likewise.
70551         * modules/netinet_in (netinet/in.h): Likewise.
70552         * modules/poll (poll.h): Likewise.
70553         * modules/stdbool (stdbool.h): Likewise.
70554         * modules/stdint (stdint.h): Likewise.
70555         * modules/sys_select (sys/select.h): Likewise.
70556         * modules/sys_socket (sys/socket.h): Likewise.
70557         * modules/sys_stat (sys/stat.h): Likewise.
70558         * modules/sysexits (sysexits.h): Likewise.
70559         * modules/unistd (unistd.h): Likewise.
70560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70561         Add a "DO NOT EDIT" comment to the generated file.
70562         (func_import): Likewise for gnulib-comp.m4.
70563
70564 2006-10-07  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/gl_sublist.h: New file.
70567         * lib/gl_sublist.c: New file.
70568
70569 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70570
70571         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70572         name (relative to the original working directory) and the file
70573         name component (relative to the temporary working directory).  All
70574         callers changed.
70575         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70576         * lib/mkdir-p.c (make_dir_parents): Likewise.
70577         * lib/mkdir-p.h (make_dir_parents): Likewise.
70578
70579 2006-10-06  Eric Blake  <ebb9@byu.net>
70580
70581         Define several macros for use by the clean-temp module.
70582         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70583         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70585
70586         * lib/clean-temp.h (close_stream_temp): New declaration.
70587         * lib/clean-temp.c (includes): Pull in headers according to what
70588         other modules are in use.
70589         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70590
70591 2006-10-06  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70594         instead of fopen, fwriteerror.
70595
70596 2006-10-06  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70599         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70600         int.
70601         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70602         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70603         Return an error indicator.
70604         Suggested by Eric Blake.
70605
70606 2006-10-06  Bruno Haible  <bruno@clisp.org>
70607
70608         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70609         Reported by Eric Blake.
70610
70611 2006-10-06  Bruno Haible  <bruno@clisp.org>
70612
70613         * modules/closeout (Description): Mention stderr too.
70614
70615 2006-10-06  Bruno Haible  <bruno@clisp.org>
70616         and Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * lib/closeout.c (close_stdout): Also close stderr.
70619         * lib/closeout.h: Update comment.
70620
70621 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70624         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70625         * lib/dirchownmod.c: Include lchown.h.
70626         * lib/lchown.c: Don't include files that lchown.h now includes.
70627         Don't declare chown, since lchown.h now does that.
70628         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70629         (lchown): Define to rpl_chown if lchown is declared but
70630         does not exist.  Declare using a prototype if lchown is not
70631         declared.  Add a copyright notice.
70632         * lib/mkstemp.h: Include <unistd.h>.
70633         * lib/openat.c: Include lchown.h.
70634
70635         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70636         we now test for that separately.
70637         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70638         rather than O_NOFOLLOW, when testing whether it's possible to
70639         avoid a race condition reliably.
70640         * lib/savewd.c (savewd_chdir): Likewise.
70641
70642         Remove macros that are no longer needed now that stdint.h is
70643         reliable.
70644         * lib/fsusage.c (UINTMAX_MAX): Remove.
70645         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70646         * lib/utimecmp.c (SIZE_MAX): Remove.
70647
70648         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70649
70650         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70651         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70652         O_NOATIME works.
70653
70654 2006-10-05  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/gl_list.h (gl_sortedlist_search_from_to,
70657         gl_sortedlist_indexof_from_to): New declarations.
70658         (gl_list_implementation): New fields sortedlist_search_from_to,
70659         sortedlist_indexof_from_to.
70660         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70661         inline functions.
70662         * lib/gl_list.c (gl_sortedlist_search_from_to,
70663         gl_sortedlist_indexof_from_to): New functions.
70664         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70665         function.
70666         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70667         (gl_array_sortedlist_search_from_to): New function.
70668         (gl_array_list_implementation): Update.
70669         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70670         function.
70671         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70672         (gl_carray_sortedlist_search_from_to): New function.
70673         (gl_carray_list_implementation): Update.
70674         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70675         gl_linked_sortedlist_indexof_from_to): New functions.
70676         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70677         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70678         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70679         gl_tree_sortedlist_indexof_from_to): New functions.
70680         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70681         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70682         Update.
70683         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70684         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70685         Update.
70686
70687 2006-10-05  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70690         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70691         (struct gl_list_implementation): Add fields search_from_to,
70692         indexof_from_to. Remove fields search, indexof.
70693         (gl_list_search): Use the search_from_to method.
70694         (gl_list_search_from, gl_list_search_from_to): New functions.
70695         (gl_list_indexof): Use the indexof_from_to method.
70696         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70697         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70698         (gl_list_search_from, gl_list_search_from_to): New functions.
70699         (gl_list_indexof): Use the indexof_from_to method.
70700         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70701         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70702         gl_array_indexof. Add start_index, end_index arguments.
70703         (gl_array_search_from_to): Renamed from gl_array_search. Add
70704         start_index, end_index arguments.
70705         (gl_array_remove, gl_array_list_implementation): Update.
70706         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70707         gl_carray_indexof. Add start_index, end_index arguments.
70708         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70709         start_index, end_index arguments.
70710         (gl_carray_remove, gl_carray_list_implementation): Update.
70711         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70712         gl_linked_search. Add start_index, end_index arguments.
70713         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70714         start_index, end_index arguments.
70715         (gl_linked_remove): Update.
70716         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70717         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70718         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70719         field to 'size_t'.
70720         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70721         gl_tree_search. Add start_index, end_index arguments.
70722         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70723         start_index, end_index arguments.
70724         (gl_tree_remove): Update.
70725         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70727         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70728         function.
70729         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70730         gl_tree_search. Add start_index, end_index arguments.
70731         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70732         start_index, end_index arguments.
70733         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70734         Update.
70735         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70736
70737 2006-10-05  Bruno Haible  <bruno@clisp.org>
70738
70739         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70740
70741         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70742         fwriteerror_temp): New declarations.
70743         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70744         (descriptors): New variable.
70745         (cleanup): First, close the descriptors.
70746         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70747         fclose_temp, fwriteerror_temp): New functions.
70748
70749 2006-10-04  Jim Meyering  <jim@meyering.net>
70750
70751         * lib/fts.c (fts_open): Tiny comment change.
70752
70753 2006-10-04  Bruno Haible  <bruno@clisp.org>
70754
70755         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70756         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70757         gl_LOCK_BODY.
70758         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70759         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70760         gl_LOCK_EARLY_BODY.
70761         (gl_LOCK): Require gl_LOCK_BODY.
70762
70763 2006-10-04  Bruno Haible  <bruno@clisp.org>
70764
70765         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70766         (gl_oset_search_atleast): New declaration.
70767         (struct gl_oset_implementation): Add field 'search_atleast'.
70768         (gl_oset_search_atleast): New inline function.
70769         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70770         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70771         (gl_array_oset_implementation): Update.
70772         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70773         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70774         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70775
70776 2006-10-04  Bruno Haible  <bruno@clisp.org>
70777
70778         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70779
70780 2006-10-03  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70783         from gl_avltreehash_list_implementation.
70784
70785 2006-10-03  Bruno Haible  <bruno@clisp.org>
70786
70787         * lib/gl_oset.c (gl_oset_add): Fix return type.
70788
70789 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70790
70791         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70792
70793 2006-10-02  Eric Blake  <ebb9@byu.net>
70794
70795         * modules/strnlen (Depends-on): Add extensions.
70796
70797 2006-10-02  Eric Blake  <ebb9@byu.net>
70798
70799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70800         definition in 2.60+.
70801
70802 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70803
70804         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70805         checks.
70806
70807 2006-10-02  Bruno Haible  <bruno@clisp.org>
70808
70809         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70810         to the AUTOMAKE_OPTIONS.
70811         Reported by Jim Meyering.
70812
70813 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70814
70815         Work around bug in Solaris 10 /proc file system:
70816         /proc/self/fd/NNN/.. isn't the parent directory of
70817         the directory whose file descriptor is NNN.  This needs to
70818         be worked around at run time, not compile time, since a
70819         program might be built on Solaris 8, where things work, and
70820         run on Solaris 10.
70821         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70822         to use the following interface instead:
70823         (OPENAT_BUFFER_SIZE): New macro.
70824         (openat_proc_name): New function.
70825         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70826         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70827         Likewise.
70828         * lib/openat-proc.c: New file.
70829         * modules/openat (Files): Add lib/openat-proc.c.
70830         (Depends-on): Add same-inode, stdbool.
70831         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70832
70833 2006-09-29  Bruno Haible  <bruno@clisp.org>
70834
70835         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70836         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70837         argument. Set stdout_closed before testing for ferror, not after.
70838         (fwriteerror, fwriteerror_no_ebadf): New functions.
70839
70840 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70841
70842         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70843
70844 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70845
70846         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70847         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70848
70849 2006-09-28  Jim Meyering  <jim@meyering.net>
70850
70851         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70852         Include <unistd.h>.
70853
70854 2006-09-28  Bruno Haible  <bruno@clisp.org>
70855
70856         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70857         * modules/linkedhash-list (Depends-on): Likewise.
70858         * modules/rbtreehash-list (Depends-on): Likewise.
70859
70860 2006-09-28  Bruno Haible  <bruno@clisp.org>
70861
70862         * lib/strndup.h: Simplify the redefinition of strndup.
70863         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70865
70866 2006-09-28  Bruno Haible  <bruno@clisp.org>
70867
70868         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70869         * lib/gl_linkedhash_list.c: Likewise.
70870         * lib/gl_rbtreehash_list.c: Likewise.
70871
70872 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70875         getaddrinfo.
70876
70877         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70878         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70879         it causes <stdio_ext.h> to cause a compile-time error.
70880         Problem reported by Nelson H. F. Beebe.
70881         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70882         of HAVE_DECL___PENDING.
70883
70884         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70886         declaration.
70887
70888 2006-09-27  Jim Meyering  <jim@meyering.net>
70889
70890         This file could end up with a definition for a function
70891         named __strndup, rather than rpl_strndup on a system with
70892         incomplete weak_alias support.
70893         * lib/strndup.c (strndup): Rename from __strndup.
70894         Remove #defines that used to map __strndup to strndup.
70895         Don't use K&R prototypes.
70896         Remove LIBC-related code, since this file is not sync'd with glibc.
70897         * lib/strndup.h: Revamp, accordingly.
70898         * m4/strndup.m4: Modernize.
70899
70900 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * modules/savewd (Depends-on): Add 'raise'.
70903         * lib/savewd.c: Include <signal.h>, for 'raise'.
70904
70905 2006-09-26  Jim Meyering  <jim@meyering.net>
70906
70907         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70908         when we detect Darwin 8.7.0's acl_get_file bug.
70909         Rearrange to perform the new (below) run-test while $LIBS
70910         contains any acl-related library.  Set USE_ACL at the end.
70911         (gl_ACL_GET_FILE): New function.
70912
70913 2006-09-26  Eric Blake  <ebb9@byu.net>
70914
70915         * lib/verror.c: Include <config.h> unconditionally.
70916
70917 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * modules/clock-time (Maintainer): Add self.
70920         * modules/getlogin_r (Depends-on): Add extensions.
70921
70922 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70923
70924         * modules/clock-time: New module.
70925         * modules/nanosleep (Depends-on): Add clock-time.
70926         * modules/gethrxtime (Depends-on): Likewise.
70927         * modules/gettime (Depends-on): Likewise.
70928         * modules/settime (Depends-on): Likewise.
70929
70930         * modules/fts-lgpl: Depend on openat.
70931         * modules/mkancesdirs: Depend on savewd.
70932         * modules/mkdir-p: Likewise.
70933
70934 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70935
70936         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70937
70938         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70939         `gl_have_arbitrary_file_name_length_limit' to
70940         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70941         actually works between configure runs.
70942
70943 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70944             Bruno Haible  <bruno@clisp.org>
70945
70946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70947
70948 2006-09-25  Jim Meyering  <jim@meyering.net>
70949
70950         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70951         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70952
70953 2006-09-25  Eric Blake  <ebb9@byu.net>
70954
70955         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70956         exec's in 2006-09-18 patch when shuffling fds.
70957
70958 2006-09-25  Bruno Haible  <bruno@clisp.org>
70959
70960         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70961         Reported by Jim Meyering.
70962
70963 2006-09-24  Jim Meyering  <jim@meyering.net>
70964
70965         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70966         compare a pointer against a literal "0".  That caused failures with
70967         at least HP-UX's hpcc.
70968
70969 2006-09-22  Simon Josefsson  <jas@extundo.com>
70970
70971         * modules/gc-sha1:
70972         * modules/gc-md4:
70973         * modules/gc-hmac-sha1:
70974         * modules/gc-hmac-md5:
70975         * modules/gc-des:
70976         * modules/gc-arcfour: Distribute more files.
70977
70978 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70979
70980         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70981         (gl_linked_iterator_from_to): Initialize struct completely.
70982         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70983         (gl_tree_iterator_from_to): Likewise
70984         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70985         * lib/gl_array_list.c [lint] (gl_array_iterator)
70986         (gl_array_iterator_from_to): Likewise.
70987         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70988         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70989         (gl_carray_iterator_from_to): Likewise.
70990
70991         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70992         * lib/md4.c (md4_process_block): Remove unused variable.
70993         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70994         parentheses for clarity.
70995
70996 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70997
70998         * modules/bison-i18n (Depends-on): Add gettext.
70999
71000 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71001
71002         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
71003         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
71004         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
71005         also add missing comma that caused broken test.
71006         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
71007         stdlib.h, for `abort'.
71008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
71009         variables.
71010         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
71011         include unistd.h if present, for `rmdir'.
71012         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
71013         variables.
71014         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
71015         in the process include standard headers for prototypes.
71016         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
71017         gets declared on GNU/Linux.
71018         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
71019         unistd.h, for `rmdir'.
71020         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
71021
71022         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
71023         always true.
71024         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
71025
71026         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
71027
71028 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71029
71030         * gnulib-tool (func_version): Create output all at once.  This
71031         may help avoid triggering unnecessary SIGPIPEs, and at any
71032         rate it doesn't hurt.
71033
71034 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71035             Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
71038         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71039         * m4/signed.m4 (bh_C_SIGNED): Likewise.
71040
71041         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
71042         (gl_FUNC_VASPRINTF): Invoke it.
71043
71044 2006-09-22  Bruno Haible  <bruno@clisp.org>
71045
71046         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
71047         getloadavg.c as first argument.
71048
71049 2006-09-22  Bruno Haible  <bruno@clisp.org>
71050
71051         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
71052         at the beginning of the gl_INIT macro.
71053         * modules/getloadavg (configure.ac): Pass $gl_source_base to
71054         gl_GETLOADAVG.
71055
71056 2006-09-22  Bruno Haible  <bruno@clisp.org>
71057
71058         * gnulib-tool (func_create_megatestdir): Don't include the config-h
71059         module.
71060         Suggested by Ralf Wildenhues.
71061
71062 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         Import this patch from libc:
71065
71066         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
71067
71068         * lib/regex_internal.c (re_string_reconstruct): Handle
71069         offset < pstr->valid_raw_len && pstr->offsets_needed case.
71070         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
71071         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
71072         re_string_context_at.
71073
71074         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
71075         now requires it.
71076         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
71077         gl_REGEX now does it for us.
71078         (gl_REGEX): Add test taken from
71079         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
71080
71081         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
71082         Check that large offsets work.  Modernize Autoconf usages.
71083         Prefer "yes" to mean a good thing rather than a bad.
71084         Don't put "#define mkstemp" in config.h, as this might interfere
71085         with standard system headers that "#define mkstemp mkstemp64".
71086
71087         * modules/mkstemp (Depends-on): Add extensions, so that
71088         mkstemp is visible on some platforms.
71089         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
71090         (Include): Change to "mkstemp.h" from <stdlib.h>.
71091         (Files): Add mkstemp.h.
71092
71093         * lib/mkstemp.h: New file, since some standard headers
71094         #define mkstemp.
71095         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
71096         Include "mkstemp.h".
71097         Make the _LIBC code resemble glibc original more,
71098         e.g., use K&R style.
71099         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
71100         (mkstemp): Remove, since mkstemp.h does this for us.
71101         * lib/stdlib--.h: Include mkstemp.h.
71102
71103         Import this patch from libc:
71104
71105         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71106
71107         * lib/tempname.c (__gen_tempname): Change attempts_min
71108         into a macro.  Use preprocessor to decide how to initialize
71109         attempts [Coverity CID 67].
71110
71111 2006-09-20  Bruno Haible  <bruno@clisp.org>
71112
71113         * lib/mkdtemp.c: Import from libc.
71114         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71115                 * sysdeps/posix/tempname.c (__gen_tempname): Change
71116                 attempts_min into a macro.  Use preprocessor to decide how to
71117                 initialize attempts [Coverity CID 67].
71118         2001-11-27  Paul Eggert  <eggert@twinsun.com>
71119                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
71120                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
71121
71122 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71123
71124         * gnulib-tool (func_exit): New function, to allow to pass the
71125         exit status portably through the trap.  Use everywhere.
71126         (--help, --version): Signal a write error.
71127         (trap): catch SIGPIPE, for write errors.
71128         Exit at the end of the trap, with the correct exit status.
71129
71130 2006-09-19  Karl Berry  <karl@gnu.org>
71131
71132         * doc/gnulib.texi: note about the license texinfo files.
71133
71134 2006-09-19  Eric Blake  <ebb9@byu.net>
71135
71136         * gnulib-tool: Avoid space-tab.
71137
71138 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
71141         that prevented coreutils 6.1 from building.  Problem reported
71142         by Petter Reinholdtsen.
71143
71144 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * gnulib-tool (avoidlist): Fix typo that broke options like
71147         --avoid=lock that are used by coreutils bootstrap.
71148
71149 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
71150
71151         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
71152         more systematically.
71153
71154 2006-09-18  Jim Meyering  <jim@meyering.net>
71155
71156         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
71157
71158 2006-09-18  Bruno Haible  <bruno@clisp.org>
71159
71160         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
71161
71162 2006-09-18  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
71165         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
71166         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
71167         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
71168         * m4/gettext.m4: Require autoconf >= 2.52.
71169         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
71170         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
71171         of gl_cv_header_inttypes_h.
71172
71173 2006-09-18  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/javaversion.c: Include configmake.h.
71176
71177 2006-09-18  Bruno Haible  <bruno@clisp.org>
71178
71179         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
71180         avoid that the while loops be executed in a subshell.
71181
71182 2006-09-18  Bruno Haible  <bruno@clisp.org>
71183
71184         * MODULES.html.sh (func_module): Break long lines.
71185         Suggested by Bruce Korb <bkorb@gnu.org>.
71186
71187 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71188
71189         Speed up by a factor of 1.12.
71190         * gnulib-tool (nl): New variable.
71191         (func_import): Rewrite include directive extraction to only read each
71192         directive once.
71193
71194 2006-09-17  Bruno Haible  <bruno@clisp.org>
71195
71196         * modules/javaversion (Makefile.am): Remove DEFS setting.
71197         (Depends-on): Add configmake, for PKGDATADIR definition.
71198
71199 2006-09-17  Bruno Haible  <bruno@clisp.org>
71200
71201         * gnulib-tool (func_create_testdir): Rewrite all files at once.
71202
71203 2006-09-17  Bruno Haible  <bruno@clisp.org>
71204
71205         * gnulib-tool (func_append): New function, stolen from libtool.m4.
71206         (func_modules_transitive_closure, func_modules_add_dummy,
71207         func_modules_to_filelist, func_import, func_create_testdir,
71208         func_create_megatestdir, ...): Use it wherever possible.
71209         Suggested by Ralf Wildenhues.
71210
71211 2006-09-16  Karl Berry  <karl@gnu.org>
71212
71213         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
71214         to avoid sectioning errors.
71215         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
71216         [ifinfo]: blank line after @center-ed titles.
71217         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
71218         Spell FSF address consistently with others.
71219         (These changes approved by rms.)
71220
71221 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71222
71223         Speed up by a factor of 1.61.
71224         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71225         already checked module names again.
71226
71227 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71228
71229         Speed up by a factor of 1.13.
71230         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71231         for new_files, and the input to func_add_or_update.
71232
71233 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71234
71235         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71236         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71237
71238 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * modules/mkancesdirs (Depends-on): Add fcntl.
71241         * modules/savewd: New file.
71242         * MODULES.html.sh (File system functions): Add savewd.
71243
71244         * modules/configmake (Makefile.am): Add support for the
71245         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71246
71247 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * m4/savewd.m4: New file.
71250
71251 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71254         (dirchownmod): New arg FD.  All callers changed.
71255         Use FD rather than opening the directory ourself, as opening is
71256         now the caller's responsibility.
71257         * lib/dirchownmod.h: Likewise.
71258         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71259         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71260         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71261         (test_dir): Remove.
71262         (mkancesdirs): Return length of prefix of FILE that has already
71263         been made, or -2 if there is a child doing the work.  Redo
71264         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71265         ".", and treat ".." specially since it might stray back into
71266         already-created areas.  Use a subprocess if necessary.  New arg
71267         WD; all users changed.  MAKE_DIR function should now return 1
71268         if it creates a directory that is not readable.  Return -2 if
71269         a child process is spun off.
71270         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71271         Adjust signature to match code.
71272         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71273         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71274         all users changed.
71275         * lib/savewd.c, lib/savewd.h: New files.
71276
71277 2006-09-15  Jim Meyering  <jim@meyering.net>
71278
71279         * modules/rename-dest-slash: New module.
71280         * MODULES.html.sh (posix_compat): Add it here.
71281
71282         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71283
71284 2006-09-15  Jim Meyering  <jim@meyering.net>
71285
71286         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71287         file.
71288
71289         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71290
71291 2006-09-15  Jim Meyering  <jim@meyering.net>
71292
71293         * lib/rename-dest-slash.c (has_trailing_slash): Use
71294         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71295         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71296         test before testing whether SRC is a directory.
71297         Suggestions from Bruno Haible.
71298
71299         Avoid a warning about an unused variable.
71300         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71301         into the #ifdef block where it's used.
71302
71303         * lib/rename-dest-slash.c: New file.
71304
71305 2006-09-14  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/allocsa.c: Include <config.h> unconditionally.
71308         * lib/asnprintf.c: Likewise.
71309         * lib/asprintf.c: Likewise.
71310         * lib/c-strcasecmp.c: Likewise.
71311         * lib/c-strcasestr.c: Likewise.
71312         * lib/c-strncasecmp.c: Likewise.
71313         * lib/c-strstr.c: Likewise.
71314         * lib/classpath.c: Likewise.
71315         * lib/clean-temp.c: Likewise.
71316         * lib/concatpath.c: Likewise.
71317         * lib/copy-file.c: Likewise.
71318         * lib/csharpcomp.c: Likewise.
71319         * lib/csharpexec.c: Likewise.
71320         * lib/execute.c: Likewise.
71321         * lib/fatal-signal.c: Likewise.
71322         * lib/findprog.c: Likewise.
71323         * lib/fwriteerror.c: Likewise.
71324         * lib/gl_array_list.c: Likewise.
71325         * lib/gl_array_oset.c: Likewise.
71326         * lib/gl_avltree_list.c: Likewise.
71327         * lib/gl_avltree_oset.c: Likewise.
71328         * lib/gl_avltreehash_list.c: Likewise.
71329         * lib/gl_carray_list.c: Likewise.
71330         * lib/gl_linked_list.c: Likewise.
71331         * lib/gl_linkedhash_list.c: Likewise.
71332         * lib/gl_list.c: Likewise.
71333         * lib/gl_oset.c: Likewise.
71334         * lib/gl_rbtree_list.c: Likewise.
71335         * lib/gl_rbtree_oset.c: Likewise.
71336         * lib/gl_rbtreehash_list.c: Likewise.
71337         * lib/imaxabs.c: Likewise.
71338         * lib/imaxdiv.c: Likewise.
71339         * lib/javacomp.c: Likewise.
71340         * lib/javaexec.c: Likewise.
71341         * lib/javaversion.c: Likewise.
71342         * lib/linebreak.c: Likewise.
71343         * lib/localcharset.c: Likewise.
71344         * lib/lock.c: Likewise.
71345         * lib/mbchar.c: Likewise.
71346         * lib/mbswidth.c: Likewise.
71347         * lib/mkdtemp.c: Likewise.
71348         * lib/pipe.c: Likewise.
71349         * lib/printf-args.c: Likewise.
71350         * lib/printf-parse.c: Likewise.
71351         * lib/progname.c: Likewise.
71352         * lib/progreloc.c: Likewise.
71353         * lib/readlink.c: Likewise.
71354         * lib/sh-quote.c: Likewise.
71355         * lib/stpcpy.c: Likewise.
71356         * lib/stpncpy.c: Likewise.
71357         * lib/strcasecmp.c: Likewise.
71358         * lib/strcasestr.c: Likewise.
71359         * lib/strcspn.c: Likewise.
71360         * lib/striconv.c: Likewise.
71361         * lib/strncasecmp.c: Likewise.
71362         * lib/strnlen1.c: Likewise.
71363         * lib/strstr.c: Likewise.
71364         * lib/strtok_r.c: Likewise.
71365         * lib/tls.c: Likewise.
71366         * lib/tmpdir.c: Likewise.
71367         * lib/unicodeio.c: Likewise.
71368         * lib/unsetenv.c: Likewise.
71369         * lib/vasnprintf.c: Likewise.
71370         * lib/vasprintf.c: Likewise.
71371         * lib/wait-process.c: Likewise.
71372         * lib/xallocsa.c: Likewise.
71373         * lib/xsetenv.c: Likewise.
71374         * lib/xstriconv.c: Likewise.
71375
71376 2006-09-13  Simon Josefsson  <jas@extundo.com>
71377
71378         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71379         that internally, suggested by Ralf Wildenhues
71380         <Ralf.Wildenhues@gmx.de>.
71381
71382 2006-09-13  Simon Josefsson  <jas@extundo.com>
71383
71384         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71385         @LIBOBJS@.
71386         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71387
71388 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71389
71390         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71391         longer worry about uses that don't define HAVE_CONFIG_H.
71392         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71393         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71394         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71395         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71396         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71397         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71398         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71399         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71400         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71401         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71402         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71403         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71404         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71405         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71406         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71407         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71408         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71409         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71410         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71411         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71412         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71413         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71414         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71415         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71416         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71417         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71418         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71419         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71420         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71421         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71422         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71423         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71424         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71425         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71426         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71427         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71428         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71429         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71430         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71431         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71432         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71433         Likewise.
71434
71435 2006-09-13  Eric Blake  <ebb9@byu.net>
71436
71437         * lib/getopt.c: Fix typo in last commit.
71438
71439 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71440
71441         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71442         dgettext.
71443
71444 2006-09-12  Jim Meyering  <jim@meyering.net>
71445
71446         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71447         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71448         Reported by Nelson H. F. Beebe.
71449
71450 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71451
71452         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71453         program_invocation_name and program_invocation_short_name are
71454         initialized.
71455         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71456         and program_invocation_short_name to argp.h, so they are visible
71457         to user programs.
71458         * lib/argp.h: Likewise
71459
71460 2006-09-10  Bruno Haible  <bruno@clisp.org>
71461
71462         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71463         m4/inttypes_h.m4, m4/uintmax_t.m4.
71464
71465 2006-09-10  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71468         gl_AC_TYPE_UINTMAX_T.
71469
71470 2006-09-10  Bruno Haible  <bruno@clisp.org>
71471
71472         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71473
71474 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71475
71476         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71477         convention.  Text proposed by Bruno Haible.
71478         (struct argp_option): Document the use of N_() wrappers.
71479
71480         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71481         '\v', and translate the two parts separately, instead of feeding
71482         the whole string to gettext.  This allows to exclude
71483         '\v' from the strings visible to the translator by writing doc
71484         strings as N_("..") "\v" N_("..").
71485
71486 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * config/srclist.txt: Undo latest change; the bug was fixed.
71489
71490 2006-09-09  Bruno Haible  <bruno@clisp.org>
71491
71492         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71493         assignments if building a library without libtool.
71494         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71495         in func_emit_lib_Makefile_am.
71496         (func_import): When building a static library libfoo.a, arrange to
71497         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71498         (func_create_testdir): Likewise.
71499         * modules/gc (configure.ac, Makefile.am): If building statically,
71500         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71501         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71502         * modules/striconv (configure.ac, Makefile.am): Likewise.
71503         Based on a suggestion by Ralf Wildenhues.
71504
71505 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71508         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71509         Also:
71510
71511         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71512         Add year_2050_test to catch glibc bug 2821
71513         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71514
71515         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71516         Prefer #ifdef to #if.
71517
71518         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71519         Return from 'main' instead of calling 'exit'.
71520
71521 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71524         returned the maximum time_t value rather than (time_t) -1.
71525         Problem originally reported by William Bardwell
71526         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71527
71528         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71529         Moved to here ...
71530         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71531         ... from here.
71532
71533 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71536         2821 is fixed.
71537
71538 2006-09-08  Jim Meyering  <jim@meyering.net>
71539
71540         Don't make generated files read-only.  That would bother too many
71541         people.  However, do retain the ability to work when targets are
71542         read-only: remove the destination and temporary files before writing
71543         them (when generated via sed or echo), or by using the -f option for
71544         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71545         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71546         * modules/byteswap, modules/configmake, modules/fcntl:
71547         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71548         * modules/localcharset, modules/netinet_in, modules/poll:
71549         * modules/stdbool, modules/stdint, modules/sys_select:
71550         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71551
71552 2006-09-08  Jim Meyering  <jim@meyering.net>
71553
71554         Avoid new build failure on FreeBSD 6.0.
71555         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71556         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71557         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71558
71559 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71560
71561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71562
71563 2006-09-07  Jim Meyering  <jim@meyering.net>
71564
71565         Fix global typo in last change: use chmod u-w, not chmod u-x.
71566         Spotted by Paul Eggert and Bruce Korb.
71567         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71568         * modules/byteswap, modules/configmake, modules/fcntl:
71569         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71570         * modules/localcharset, modules/netinet_in, modules/poll:
71571         * modules/stdbool, modules/stdint, modules/sys_select:
71572         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71573
71574 2006-09-06  Jim Meyering  <jim@meyering.net>
71575
71576         Make generated files be read-only.
71577         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71578         Ensure that each generated file is now read-only.
71579         * modules/argz: Likewise.
71580         * modules/arpa_inet: Likewise.
71581         * modules/byteswap: Likewise.
71582         * modules/configmake: Likewise.
71583         * modules/fcntl: Likewise.
71584         * modules/fnmatch: Likewise.
71585         * modules/getopt: Likewise.
71586         * modules/glob: Likewise.
71587         * modules/inttypes: Likewise.
71588         * modules/netinet_in: Likewise.
71589         * modules/poll: Likewise.
71590         * modules/stdbool: Likewise.
71591         * modules/stdint: Likewise.
71592         * modules/sys_select: Likewise.
71593         * modules/sys_socket: Likewise.
71594         * modules/sys_stat: Likewise.
71595         * modules/sysexits: Likewise.
71596         * modules/localcharset: Same as above, but continue using temporary
71597         file named "t-$@" (why different?) rather than the "$@-t" used
71598         everywhere else.
71599
71600         * modules/sysexits (Makefile.am): Replace literal occurrences
71601         of "sysexit.h" more readable, and more consistent, "$@".
71602
71603 2006-09-06  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/striconv: New file.
71606         * modules/xstriconv: New file.
71607         * MODULES.html.sh (Internationalization functions): Add striconv,
71608         xstriconv.
71609
71610 2006-09-06  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71613         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71614         not using libtool correctly.
71615
71616 2006-09-06  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/striconv.h: New file.
71619         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71620         iconvstring.c.
71621         * lib/xstriconv.h: New file.
71622         * lib/xstriconv.c: New file.
71623
71624 2006-09-06  Bruno Haible  <bruno@clisp.org>
71625
71626         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71627         lib_..._LDFLAGS.
71628
71629 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71630
71631         * lib/argz_.h: Sync from Libtool.
71632
71633         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71634                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71635
71636         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71637
71638 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71639
71640         * modules/trim: New file.
71641
71642 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71643
71644         * lib/trim.h: New file.
71645         * lib/trim.c: New file.
71646
71647 2006-09-05  Bruno Haible  <bruno@clisp.org>
71648
71649         * MODULES.html.sh (String handling): Add trim.
71650
71651 2006-09-04  Karl Berry  <karl@gnu.org>
71652
71653         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71654         until next release.
71655
71656 2006-09-03  Bruno Haible  <bruno@clisp.org>
71657
71658         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71659         correctly.
71660
71661 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71664         not gl_GETLOADAVG.  Omit unneeded semicolons.
71665         Problems reported by Ralf Wildenhues in
71666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71667         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71668         at the end, which is the usual gnulib style.
71669
71670         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71671         of doing all the work ourselves.
71672         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71673         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71674
71675 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71678         Problem reported by Ralf Wildenhues in
71679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71680
71681         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71682         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71683
71684 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71687         yesterday's patch by changing test -n to test -z.
71688
71689 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71692         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71693         the former is now obsolescent.
71694
71695         * modules/chdir-long (Depends-on): Add fcntl.
71696
71697 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71700         obsolescent, and programs should use gnulib instead.
71701         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71702         but with prefixes changed.
71703
71704 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71707         or stdbool.h, because they might not exist while configuring.
71708
71709         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71710         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71711         does that for us.
71712         (O_DIRECTORY): Remove.
71713
71714 2006-08-31  Eric Blake  <ebb9@byu.net>
71715
71716         * gnulib-tool: Don't let emacs change spaces to TAB.
71717
71718 2006-08-31  Bruno Haible  <bruno@clisp.org>
71719
71720         * gnulib-tool: When calling func_import more than once, do it in a
71721         subshell.
71722         Reported by Eric Blake <ebb9@byu.net>.
71723
71724 2006-08-31  Bruno Haible  <bruno@clisp.org>
71725
71726         * gnulib-tool (nl): Remove variable.
71727         (sed_transform_lib_file): Use more robust test for config-h module.
71728         (func_import): Fix typo in 2006-08-25 patch.
71729
71730 2006-08-31  Bruno Haible  <bruno@clisp.org>
71731
71732         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71733         specified, augment Makefile.am variables instead of assigning them.
71734
71735 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         Work around a bug in both the Linux and SunOS 64-bit kernels:
71738         nanosleep mishandles sleeps for longer than 2**31 seconds.
71739         Problem reported by Frank v Waveren in
71740         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71742         Check for nanosleep bug.
71743         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71744
71745 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         Work around a bug in both the Linux and SunOS 64-bit kernels:
71748         nanosleep mishandles sleeps for longer than 2**31 seconds.
71749         Problem reported by Frank v Waveren in
71750         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71751         * lib/nanosleep.c (BILLION): New constant.
71752         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71753         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71754         implementation.
71755
71756 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * modules/nanosleep (Depends-on): Add gettime.
71759
71760 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71761         and Simon Josefsson  <jas@extundo.com>
71762         and Oskar Liljeblad  <oskar@osk.mine.nu>
71763
71764         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71765         * gnulib-tool (func_import): New license type 'unmodifiable license
71766         text'.
71767         * modules/fdl: Use it.  Longer description.
71768         * module/gpl, module/lgpl: New files.
71769
71770 2006-08-30  Jim Meyering  <jim@meyering.net>
71771
71772         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71773         shadowing the parameter.
71774
71775 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71776
71777         Sync from Libtool:
71778
71779         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71780
71781         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71782         sharing with gnulib.  Report by Eric Blake.
71783
71784 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         * modules/isapipe: New file.
71787         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71788
71789 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * modules/configmake (Makefile.am): Add a comment, and omit
71792         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71793         by Bruno Haible.
71794
71795 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * m4/isapipe.m4: New file.
71798
71799 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * lib/isapipe.c, lib/isapipe.h: New files.
71802
71803 2006-08-29  Jim Meyering  <jim@meyering.net>
71804
71805         * modules/configmake (Makefile.am): Make configmake.h depend on
71806         Makefile.  Otherwise, a stale configmake.h could hang around.
71807
71808 2006-08-29  Eric Blake  <ebb9@byu.net>
71809
71810         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71811         resolution of upstream bug 3044.
71812
71813 2006-08-29  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/localcharset (Depends-on): Add configmake.
71816         (Makefile.am): Remove setting of LIBDIR through DEFS.
71817
71818 2006-08-29  Bruno Haible  <bruno@clisp.org>
71819
71820         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71821         defined.
71822
71823 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * modules/fcntl: New file.
71826         * modules/chdir-safer (Depends-on): Add fcntl.
71827         * modules/fts: Likewise.
71828         * modules/mkdir-p: Likewise.
71829
71830         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71831         This undoes the most recent change, since we're now addressing the
71832         problem in a different way.
71833
71834         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71835         into output, since the output might be called Makefile.am even
71836         if $makefile_name is something different.
71837         (func_import): Use $makefile_am rather than
71838         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71839         empty.
71840
71841         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71842
71843 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71846         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71847         recent change to stdint.m4, since we're now addressing the problem in a
71848         different way.
71849
71850 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * m4/fcntl_h.m4: New file.
71853
71854 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * lib/fcntl_.h: New file.
71857         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71858         the fcntl module.
71859         * lib/dirchownmod.c: Likewise.
71860         * lib/fts.c: Likewise.
71861
71862         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71863         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71864         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71865         just before including <inttypes.h>, to avoid circular inclusion.
71866
71867 2006-08-28  Jim Meyering  <jim@meyering.net>
71868
71869         * doc/visibility.texi: Actually read and correct the grammar of the
71870         sentence affected by yesterday's change.
71871
71872 2006-08-28  Eric Blake  <ebb9@byu.net>
71873
71874         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71875         needs wrapper.
71876
71877 2006-08-28  Eric Blake  <ebb9@byu.net>
71878
71879         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71880
71881 2006-08-28  Eric Blake  <ebb9@byu.net>
71882
71883         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71884
71885 2006-08-28  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/c-strstr: New file, from GNU gettext.
71888         * MODULES.html.sh (String handling): Add c-strstr.
71889
71890 2006-08-28  Bruno Haible  <bruno@clisp.org>
71891
71892         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71893         macros.
71894         Reported by Eric Blake.
71895
71896 2006-08-28  Bruno Haible  <bruno@clisp.org>
71897
71898         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71899         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71900         * lib/vasprintf.c: Include errno.h, limits.h.
71901         (EOVERFLOW): New fallback definition.
71902         (vasprintf): Test here whether the string length is > INT_MAX.
71903         * lib/vsnprintf.c: Include errno.h, limits.h.
71904         (EOVERFLOW): New fallback definition.
71905         (vsnprintf): Fix bug when generated string was too long for the buffer.
71906         Test here whether the string length is > INT_MAX.
71907
71908 2006-08-28  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/inttypes_.h (SCNX*): Remove definitions.
71911         Reported by Eric Blake.
71912
71913 2006-08-28  Bruno Haible  <bruno@clisp.org>
71914
71915         * lib/c-strstr.h: New file, from GNU gettext.
71916         * lib/c-strstr.c: New file, from GNU gettext.
71917
71918 2006-08-28  Bruno Haible  <bruno@clisp.org>
71919
71920         * gnulib-tool: Reorder some statements.
71921
71922 2006-08-28  Bruno Haible  <bruno@clisp.org>
71923
71924         * gnulib-tool: New option --makefile-name.
71925         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71926         $makefile_name.
71927         (func_import): Write $makefile_name to the cache file, and read it from
71928         there unless explicitly specified. Use $makefile_name as file name
71929         instead of Makefile.am. Adjust the recommendations accordingly.
71930
71931 2006-08-28  Bruno Haible  <bruno@clisp.org>
71932
71933         * gnulib-tool (func_verify_module): Check against misapplying patch.
71934
71935 2006-08-28  Bruno Haible  <bruno@clisp.org>
71936
71937         * gnulib-tool (func_relativize, func_relconcat): New functions.
71938         Give an error if --local-dir is given with --update.
71939         Remove trailing slashes from $local_gnulib_dir.
71940         (func_import): Store the relativized $local_gnulib_dir in
71941         gnulib-cache.m4, and read it from there if not specified explicitly.
71942
71943 2006-08-28  Bruno Haible  <bruno@clisp.org>
71944
71945         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71946         is the current directory. Respect also $local_gnulib_dir.
71947
71948 2006-08-28  Bruno Haible  <bruno@clisp.org>
71949             Simon Josefsson  <jas@extundo.com>
71950
71951         BeOS portability.
71952         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71953
71954 2006-08-27  Jim Meyering  <jim@meyering.net>
71955
71956         * doc/visibility.texi: Remove duplicate word: "pointer".
71957
71958 2006-08-26  Bruno Haible  <bruno@clisp.org>
71959
71960         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71961         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71962         (Makefile.am): Create inttypes.h from inttypes_.h.
71963         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71964
71965         * modules/imaxabs: New file.
71966
71967         * modules/imaxdiv: New file.
71968
71969 2006-08-26  Bruno Haible  <bruno@clisp.org>
71970
71971         * m4/inttypes.m4: New file.
71972         * m4/_inttypes_h.m4: Remove file.
71973         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71974         PRI_MACROS_BROKEN.
71975         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71976
71977         * m4/imaxabs.m4: New file.
71978
71979         * m4/imaxdiv.m4: New file.
71980
71981 2006-08-26  Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/inttypes_.h: New file.
71984         * lib/inttypes.h: Remove file.
71985         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71986
71987         * lib/imaxabs.c: New file.
71988
71989         * lib/imaxdiv.c: New file.
71990
71991 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         New config-h module, so that "make" output needn't be cluttered
71994         by -DHAVE_CONFIG_H.
71995         * MODULES.html.sh (Support for building libraries and executables):
71996         Add config-h.
71997         * modules/config-h: New file.
71998         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71999         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
72000         the config-h module is used.
72001
72002         New configmake module, so that "make" output needn't be cluttered
72003         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
72004         * MODULES.html.sh (Support for building libraries and executables):
72005         Add configmake.
72006         * modules/configmake: New file.
72007
72008 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * m4/config-h.m4: New file.
72011
72012 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * config/srclist.txt: Add elisp-comp.
72015
72016 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * MODULES.html.sh (Support for building libraries and executables):
72019         Add elisp-comp.
72020         * build-aux/elisp-comp: New file.
72021         * modules/elisp-comp: New file.
72022
72023 2006-08-24  Bruno Haible  <bruno@clisp.org>
72024
72025         * gnulib-tool (func_create_testdir): Use non-default values of
72026         sourcebase and m4base.
72027
72028 2006-08-24  Bruno Haible  <bruno@clisp.org>
72029
72030         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
72031         HTML structure.
72032
72033 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * modules/openat (Depends-on): Add lchown.
72036
72037 2006-08-23  Bruno Haible  <bruno@clisp.org>
72038
72039         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
72040         of gl_LOCK_EARLY instead of gl_LOCK.
72041
72042 2006-08-23  Bruno Haible  <bruno@clisp.org>
72043
72044         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
72045         on OSF/1 to no.
72046         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
72047
72048 2006-08-23  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
72051         as unusable.
72052
72053         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
72054         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
72055         (gl_LOCK): New macro.
72056
72057 2006-08-22  Simon Josefsson  <jas@extundo.com>
72058
72059         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
72060         to md5 module.
72061
72062 2006-08-22  Simon Josefsson  <jas@extundo.com>
72063
72064         * MODULES.html.sh: Add "Support for maintaining and release
72065         projects".
72066
72067         * build-aux/gnupload: New file, from coreutils.
72068
72069 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         Avoid the need for AC_LIBSOURCES in m4 macros.
72072         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
72073         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
72074         * modules/check-version (EXTRA_DIST): Add check-version.h.
72075         * modules/crc (EXTRA_DIST): Add crc.h.
72076         * modules/des (EXTRA_DIST): Add des.h.
72077         * modules/gc (EXTRA_DIST): Add gc.h.
72078         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
72079         * modules/getline (EXTRA_DIST): Add getline.h.
72080         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
72081         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
72082         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
72083         * modules/md2 (EXTRA_DIST): Add md2.h.
72084         * modules/md4 (EXTRA_DIST): Add md4.h.
72085         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
72086         * modules/read-file (EXTRA_DIST): Add read-file.h.
72087         * modules/readline (EXTRA_DIST): Add readline.h.
72088         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
72089         rijndael-api-fst.h.
72090
72091 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * m4/rijndael.m4 (gl_ARCFOUR):
72094         * m4/arctwo.m4 (gl_ARCTWO):
72095         * m4/check-version.m4 (gl_CHECK_VERSION):
72096         * m4/crc.m4 (gl_CRC):
72097         * m4/des.m4 (gl_DES):
72098         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
72099         * m4/gc.m4 (gl_GC):
72100         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
72101         * m4/getline.m4 (gl_FUNC_GETLINE):
72102         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
72103         * m4/hmac-md5.m4 (gl_HMAC_MD5):
72104         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
72105         * m4/md2.m4 (gl_MD2):
72106         * m4/md4.m4 (gl_MD4):
72107         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
72108         * m4/read-file.m4 (gl_FUNC_READ_FILE):
72109         * m4/readline.m4 (gl_FUNC_READLINE):
72110         * m4/rijndael.m4 (gl_RIJNDAEL):
72111         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72112         to get the necessary .h files and whatnot.
72113
72114 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
72117         gnulib rather than the other way around.
72118         * config/srclistvars.sh (COREUTILS): Remove.
72119
72120 2006-08-22  Jim Meyering  <jim@meyering.net>
72121
72122         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
72123
72124         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
72125
72126 2006-08-22  Eric Blake  <ebb9@byu.net>
72127
72128         * modules/regexprops-generic: New file.
72129         * MODULES.html.sh (Support for building documentation): List it.
72130
72131 2006-08-22  Eric Blake  <ebb9@byu.net>
72132
72133         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
72134         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
72136         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
72137
72138 2006-08-22  Bruno Haible  <bruno@clisp.org>
72139
72140         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
72141         and lib_LTLIBRARIES like the other lib_* variables.
72142
72143 2006-08-22  Bruno Haible  <bruno@clisp.org>
72144
72145         * build-aux/x-to-1.in: New file, from GNU gettext.
72146
72147 2006-08-22  Bruno Haible  <bruno@clisp.org>
72148
72149         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
72150         <utmpx.h> exists.
72151
72152 2006-08-22  Bruno Haible  <bruno@clisp.org>
72153
72154         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
72155         <utmpx.h> exists.
72156
72157 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         BeOS portability.
72160         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
72161         exist.
72162         Problem reported by Bruno Haible.
72163
72164 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         Avoid the need for AC_LIBSOURCES in m4 macros.
72167         * modules/acl (EXTRA_DIST): Add acl.h.
72168         * modules/argmatch (Files): Add m4/argmatch.m4.
72169         (configure.ac): Add gl_ARGMATCH.
72170         (EXTRA_DIST): Renamed from lib_SOURCES, for
72171         consistency with the other modules.  Remove argmatch.c.
72172         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
72173         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
72174         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
72175         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
72176         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
72177         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
72178         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
72179         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
72180         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
72181         * modules/closeout (EXTRA_DIST): Add closeout.h.
72182         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
72183         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
72184         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
72185         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
72186         dirname.h; remove basename.c and stripslash.c.
72187         * modules/exclude (EXTRA_DIST): Add exclude.h.
72188         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
72189         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
72190         * modules/file-type (EXTRA_DIST): Add file-type.h.
72191         * modules/filemode (EXTRA_DIST): Add filemode.h.
72192         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
72193         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72194         * modules/fpending (EXTRA_DIST): Add __fpending.h.
72195         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
72196         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
72197         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
72198         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
72199         * modules/getdate (EXTRA_DIST): Add getdate.c.
72200         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
72201         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
72202         * modules/getpass (EXTRA_DIST): Add getpass.h.
72203         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
72204         * modules/group-member (EXTRA_DIST): Add group-member.h.
72205         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
72206         * modules/hash (EXTRA_DIST): Add hash.h.
72207         * modules/human (EXTRA_DIST): Add human.h.
72208         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
72209         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
72210         * modules/lchown (EXTRA_DIST): Add lchown.h.
72211         * modules/long-options (EXTRA_DIST): Add long-options.h.
72212         * modules/lstat (EXTRA_DIST): Add lstat.h.
72213         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
72214         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
72215         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
72216         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
72217         * modules/memxor (EXTRA_DIST): Add memxor.h.
72218         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
72219         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
72220         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
72221         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72222         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72223         * modules/physmem (EXTRA_DIST): Add physmem.h.
72224         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72225         * modules/posixver (EXTRA_DIST): Add posixver.h.
72226         * modules/quote (EXTRA_DIST): Add quote.h.
72227         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72228         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72229         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72230         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72231         regex_internal.h regexec.c.
72232         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72233         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72234         * modules/same (EXTRA_DIST): Add same.h.
72235         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72236         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72237         * modules/savedir (EXTRA_DIST): Add savedir.h.
72238         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72239         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72240         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72241         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72242         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72243         * modules/strdup (EXTRA_DIST): Add strdup.h.
72244         * modules/strftime (EXTRA_DIST): Add strftime.h.
72245         * modules/strndup (EXTRA_DIST): Add strndup.h.
72246         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72247         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72248         * modules/time_r (EXTRA_DIST): Add time_r.h.
72249         * modules/timespec (EXTRA_DIST): Add timespec.h.
72250         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72251         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72252         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72253         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72254         * modules/userspec (EXTRA_DIST): Add userspec.h.
72255         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72256         * modules/utimens (EXTRA_DIST): Add utimens.h.
72257         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72258         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72259         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72260         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72261         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72262         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72263         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72264         * modules/yesno (EXTRA_DIST): Add yesno.h.
72265
72266 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72269
72270         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72271         * m4/dev-ino.m4, same-inode.m4: Remove.
72272
72273         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72274         * m4/acl.m4 (AC_FUNC_ACL):
72275         * m4/backupfile.m4 (gl_BACKUPFILE):
72276         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72277         * m4/canon-host.m4 (gl_CANON_HOST):
72278         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72279         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72280         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72281         * m4/cloexec.m4 (gl_CLOEXEC):
72282         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72283         * m4/closeout.m4 (gl_CLOSEOUT):
72284         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72285         * m4/dirname.m4 (gl_DIRNAME):
72286         * m4/exclude.m4 (gl_EXCLUDE):
72287         * m4/exitfail.m4 (gl_EXITFAIL):
72288         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72289         * m4/file-type.m4 (gl_FILE_TYPE):
72290         * m4/filemode.m4 (gl_FILEMODE):
72291         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72292         * m4/fpending.m4 (gl_FUNC_FPENDING):
72293         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72294         * m4/fts.m4 (gl_FUNC_FTS):
72295         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72296         * m4/getdate.m4 (gl_GETDATE):
72297         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72298         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72299         * m4/getpass.m4 (gl_FUNC_GETPASS):
72300         * m4/gettime.m4 (gl_GETTIME):
72301         * m4/getugroups.m4 (gl_GETUGROUPS):
72302         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72303         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72304         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72305         * m4/hash.m4 (gl_HASH):
72306         * m4/idcache.m4 (gl_IDCACHE):
72307         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72308         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72309         * m4/long-options.m4 (gl_LONG_OPTIONS):
72310         * m4/lstat.m4 (gl_FUNC_LSTAT):
72311         * m4/md5.m4 (gl_MD5):
72312         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72313         * m4/memcoll.m4 (gl_MEMCOLL):
72314         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72315         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72316         * m4/memxor.m4 (gl_MEMXOR):
72317         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72318         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72319         * m4/modechange.m4 (gl_MODECHANGE):
72320         * m4/mountlist.m4 (gl_MOUNTLIST):
72321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72322         * m4/openat.m4 (gl_FUNC_OPENAT):
72323         * m4/pathmax.m4 (gl_PATHMAX):
72324         * m4/physmem.m4 (gl_PHYSMEM):
72325         * m4/posixtm.m4 (gl_POSIXTM):
72326         * m4/posixver.m4 (gl_POSIXVER):
72327         * m4/quote.m4 (gl_QUOTE):
72328         * m4/quotearg.m4 (gl_QUOTEARG):
72329         * m4/readtokens.m4 (gl_READTOKENS):
72330         * m4/readutmp.m4 (gl_READUTMP):
72331         * m4/regex.m4 (gl_REGEX):
72332         * m4/safe-read.m4 (gl_SAFE_READ):
72333         * m4/safe-write.m4 (gl_SAFE_WRITE):
72334         * m4/same.m4 (gl_SAME):
72335         * m4/save-cwd.m4 (gl_SAVE_CWD):
72336         * m4/savedir.m4 (gl_SAVEDIR):
72337         * m4/settime.m4 (gl_SETTIME):
72338         * m4/sha1.m4 (gl_SHA1):
72339         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72340         * m4/stat-macros.m4 (gl_STAT_MACROS):
72341         * m4/stat-time.m4 (gl_STAT_TIME):
72342         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72343         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72344         * m4/strdup.m4 (gl_FUNC_STRDUP):
72345         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72346         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72347         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72348         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72349         * m4/time_r.m4 (gl_TIME_R):
72350         * m4/timespec.m4 (gl_TIMESPEC):
72351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72352         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72353         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72354         * m4/userspec.m4 (gl_USERSPEC):
72355         * m4/utimecmp.m4 (gl_UTIMECMP):
72356         * m4/utimens.m4 (gl_UTIMENS):
72357         * m4/xalloc.m4 (gl_XALLOC):
72358         * m4/xgetcwd.m4 (gl_XGETCWD):
72359         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72360         * m4/xreadlink.m4 (gl_XREADLINK):
72361         * m4/xstrtod.m4 (gl_XSTRTOD):
72362         * m4/yesno.m4 (gl_YESNO):
72363         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72364         to get the necessary .h files and whatnot.
72365
72366 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72367             Bruno Haible  <bruno@clisp.org>
72368
72369         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72370         /bin/sh understanding of '!' conditional negation.
72371
72372 2006-08-21  Jim Meyering  <jim@meyering.net>
72373
72374         * modules/openat (Depends-on): Really alphabetize.
72375
72376         * modules/acl (Depends-on): Add error and quote.
72377
72378         * check-module (find_included_lib_files): Add at-func.c to the
72379         ok-to-include-more-than-once white list.
72380
72381         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72382
72383 2006-08-21  Bruno Haible  <bruno@clisp.org>
72384
72385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72386         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72387         Reported by Martin Lambers <marlam@marlam.de>.
72388
72389 2006-08-21  Bruno Haible  <bruno@clisp.org>
72390
72391         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72392         specify an installation location, don't emit a noinst_LIBRARIES or
72393         noinst_LTLIBRARIES assignment.
72394
72395 2006-08-21  Bruno Haible  <bruno@clisp.org>
72396
72397         BeOS portability.
72398         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72399         BeOS has mbrtowc() but no <wctype.h>.
72400
72401 2006-08-21  Bruno Haible  <bruno@clisp.org>
72402
72403         BeOS portability.
72404         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72405         exist.
72406
72407 2006-08-21  Bruno Haible  <bruno@clisp.org>
72408
72409         BeOS portability.
72410         * lib/mbchar.h: Include <wctype.h> only if it exists.
72411
72412 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         Remove files that are no longer needed by their respective modules.
72415         * m4/obstack.m4: Remove.
72416         * m4/strerror_r.m4: Remove.
72417         * m4/uint32_t.m4: Remove.
72418         * m4/uintptr_t.m4: Remove.
72419         * m4/ullong_max.m4: Remove.
72420         * m4/xstrtoimax.m4: Remove.
72421         * m4/xstrtoumax.m4: Remove.
72422
72423         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72424         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72425         dependencies now capture this.
72426
72427         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72428         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72429         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72430         * m4/human.m4 (gl_HUMAN): Likewise.
72431         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72432         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72433
72434         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72435
72436         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72437         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72438         stdint.
72439         * m4/human.m4 (gl_HUMAN): Likewise.
72440         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72441         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72442         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72443         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72444         * m4/xstrtol (gl_XSTRTOL): Likewise.
72445
72446         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72447         AC_TYPE_LONG_LONG_INT.
72448         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72449         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72450         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72451         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72452
72453         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72454         on stdbool.
72455
72456         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72457         (gl_PREREQ_XSTRTOUL): Remove.
72458
72459         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72460
72461         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72462         mode.
72463
72464 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         Add and change modules to make it easier for coreutils to use
72467         gnulib-tool.
72468         * modules/backupfile (Files): Remove m4/d-ino.m4.
72469         (Depends-on): Add d-ino.
72470         * modules/cycle-check (Depends-on): Add stdint.
72471         (lib_SOURCES): Add cycle-check.h.
72472         * modules/d-ino: New module.
72473         * modules/d-type: New module.
72474         * modules/error (Files): Remove m4/strerror_r.m4.
72475         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72476         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72477         m4/inttypes_h.m4, m4/uintmax_t.m4.
72478         (Depends-on): Add stdint.
72479         (lib_SOURCES): Add fsusage.h.
72480         * modules/getcwd (Files): Remove d-ino.m4.
72481         (Depends-on): Add d-ino.
72482         * modules/getndelim2 (Depends-on): Add stdint.
72483         * modules/glob (Files): Remove m4/d-type.m4.
72484         (Depends-on): Add d-type.
72485         * modules/host-os: New module.
72486         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72487         m4/inttypes_h.m4, m4/uintmax_t.m4.
72488         * Depends-on: Add stdint.
72489         (lib_SOURCES): Add human.h.
72490         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72491         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72492         m4/uintmax_t.m4, m4/ulonglong.m4.
72493         (Depends-on): Add stdint.
72494         (EXTRA_DIST): Add inttostr.h.
72495         * modules/lchmod: New module.
72496         * modules/link-follow: New module.
72497         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72498         (Depends-on): Add lchmod.
72499         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72500         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72501         (Depends-on): Add stdint.
72502         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72503         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72504         (Depends-on): Add stdint.
72505         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72506         * modules/perl: New module.
72507         * modules/regex (Depends-on): Add stdint.
72508         * modules/rmdir-errno: New module.
72509         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72510         m4/intmax_t.m4.
72511         (Depends-on): Add stdint.
72512         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72513         m4/uintmax_t.m4.
72514         (Depends-on): Add stdint.
72515         * modules/unlink-busy: New module.
72516         * modules/utimecmp (Depends-on): Add stdint.
72517         * modules/uptime: New module.
72518         * modules/winsz-ioctl: New module.
72519         * modules/winsz-termios: New module.
72520         * modules/xnanosleep (Depends-on): Add nanosleep.
72521         * modules/ullong_max: Remove.
72522         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72523         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72524         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72525         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72526         (Depends-on): Add inttypes.
72527         (lib_SOURCES): Add xstrtol.h.
72528         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72529         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72530         * MODULES.html.sh: Move 'assert' into the assert section.
72531         Move 'dummy' into the linking section.
72532         Remove ullong_max.
72533         Add section for compatibility checks for POSIX:2001 functions,
72534         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72535         winsz-ioctl, and winsz-termios into it.
72536         Add lchmod.
72537         Add top-level Misc section and put host-os, perl, and uptime
72538         into it.
72539
72540 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72543         now assume the stdint module.  Do not include inttypes.h.
72544         * lib/fsusage.h: Likewise.
72545         * lib/getndelim2.c: Likewise.
72546         * lib/human.h: Likewise.
72547         * lib/inttostr.h: Likewise.
72548         * lib/obstack.c: Likewise.
72549         * lib/regex_internal.h: Likewise.
72550         * lib/tempname.c: Likewise.
72551         * lib/utimecmp.c: Likewise.
72552         * lib/xstrtol.h: Likewise.
72553
72554         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72555
72556         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72557         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72558         * lib/xtime.h: Likewise.
72559
72560 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * modules/openat (Files): Add lib/fchmodat.c.
72563         Fixes problem reported by Jay Youngman.
72564
72565 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72568         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72569
72570 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72571             Bruno Haible  <bruno@clisp.org>
72572
72573         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72574         and is a script that invokes bison. Tighten the code. Add comments.
72575
72576 2006-08-18  Jim Meyering  <jim@meyering.net>
72577
72578         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72579         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72580         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72581         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72582
72583 2006-08-18  Bruno Haible  <bruno@clisp.org>
72584
72585         * modules/bison-i18n: New file.
72586         * MODULES.html.sh (Internationalization functions): Add it.
72587
72588 2006-08-18  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72591         sys/statvfs.h. When getmntinfo was found, check its declaration and
72592         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72593
72594 2006-08-18  Bruno Haible  <bruno@clisp.org>
72595
72596         * m4/bison-i18n.m4: New file, from bison.
72597
72598 2006-08-18  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72601         (ME_DUMMY): Treat "kernfs" as a dummy.
72602         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72603
72604 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         Update from coreutils.
72607
72608         2006-08-15  Jim Meyering  <jim@meyering.net>
72609
72610         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72611
72612         2006-01-17  Jim Meyering  <jim@meyering.net>
72613
72614         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72615
72616         2006-01-11  Jim Meyering  <jim@meyering.net>
72617
72618         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72619         Check for the lchmod function.
72620
72621 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         Update from coreutils.
72624
72625         * lib/__fpending.h: Add copyright notice.
72626         * lib/fprintftime.h: Likewise.
72627         * lib/savedir.c: Use (C) in copyright notice.
72628         * lib/savedir.h: Likewise.
72629
72630         2006-08-15  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72633         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72634         in support of the EXPECTED_ERRNO macro.
72635         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72636         definitions.  Instead, define the appropriate symbols and include
72637         "at-func.c".
72638         * lib/mkdirat.c (mkdirat): Likewise.
72639         * lib/fchmodat.c (fchmodat): Likewise.
72640         (ENOSYS): Remove definition.
72641         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72642         it.  Don't include "unistd--.h" -- it wasn't ever used.
72643
72644         2006-01-17  Jim Meyering  <jim@meyering.net>
72645
72646         Rewrite fts.c not to change the current working directory,
72647         by using openat, fstatat, fdopendir, etc..
72648
72649         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72650         (HAVE_OPENAT_SUPPORT): Define.
72651         [_LIBC] (fchdir): Don't undef or define; no longer used.
72652         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72653         Now, this `function' always succeeds, and consumes its file descriptor
72654         parameter -- so callers must not close such FDs.  Update callers.
72655         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72656         (diropen): Add parameter, SP.  Adjust all callers.
72657         Implement using diropen_fd, rather than open.
72658         (fts_open): Initialize new member, fts_cwd_fd.
72659         Remove fts_rft-setting code.
72660         (fts_close): Close fts_cwd_fd, if necessary.
72661         (__opendir2): Define in terms of opendir or opendirat,
72662         depending on whether the FST_NOCHDIR flag is set.
72663         (fts_build): Since fts_safe_changedir consumes its FD, and since
72664         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72665         and close the dup'd file descriptor upon failure.
72666         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72667         (fts_safe_changedir): Tweak semantics to reflect that this function
72668         now calls cwd_advance_fd and hence consumes its FD argument.
72669         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72670         [struct FTS] (fts_rft): Remove now-unused member.
72671         [struct FTS] (fts_cycle.state): Improve comment.
72672
72673         * lib/openat.c (openat_needs_fchdir): New function.
72674         * lib/openat.h (openat_needs_fchdir): Declare it.
72675
72676 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72679         Problem and fix reported by Pádraig Brady in
72680         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72681
72682 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72683
72684         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72685
72686 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * lib/memcoll.c (memcoll): Optimize for the common case where the
72689         arguments are bytewise equal.
72690
72691 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * doc/regexprops-generic.texi: Add a copyright notice.
72694
72695 2006-08-15  Bruno Haible  <bruno@clisp.org>
72696
72697         * modules/tmpdir (License): Change to LGPL.
72698
72699 2006-08-15  Bruno Haible  <bruno@clisp.org>
72700
72701         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72702         module.
72703
72704 2006-08-14  Simon Josefsson  <jas@extundo.com>
72705
72706         * config/srclist.txt: Add gnupload.
72707
72708 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         Change copyright notice from LGPL 2 to GPL 2, since that's the
72711         standard form used in the gnulib repository.
72712         * tests/test-lock.c: Likewise.
72713         * tests/test-stdint.c: Likewise.
72714         * tests/test-tls.c: Likewise.
72715
72716         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72717         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72718         Add copyright notice.
72719
72720         * check-module: Add copyright notice.  Output a copyright
72721         notice if "--version" is specified.
72722         * modules/COPYING: New file.
72723         * tests/test-getaddrinfo.c: Add copyright notice.
72724         * tests/test-verify.c: Likewise.
72725
72726 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         Change copyright notice from LGPL 2 to GPL 2, since that's the
72729         standard form used in the gnulib repository.
72730         * lib/lock.c: LGPL -> GPL.
72731         * lib/lock.h: Likewise.
72732         * lib/strnlen1.c: Likewise.
72733         * lib/strnlen1.h: Likewise.
72734         * lib/tls.c: Likewise.
72735         * lib/tls.h: Likewise.
72736         * lib/tmpdir.c: Likewise.
72737
72738         * lib/TODO: Remove; this belongs only in coreutils.
72739
72740 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         Add copyright notices to long-enough files that lack them, since
72743         otherwise the files aren't clearly free.  Use the same notice that
72744         getdate.texi already uses.
72745         * doc/alloca-opt.texi: Add copyright notice.
72746         * doc/alloca.texi: Likewise.
72747         * doc/ctime.texi: Likewise.
72748         * doc/functions.texi: Likewise.
72749         * doc/gcd.texi: Likewise.
72750         * doc/gnulib-tool.texi: Likewise.
72751         * doc/inet_ntoa.texi: Likewise.
72752         * doc/visibility.texi: Likewise.
72753
72754         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72755         * doc/quote.texi: Add copyright notice.
72756
72757         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72758         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72759         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72760         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72761         is now obsolete, and give a pointer to the Sun list.
72762         Add copyright notice.
72763
72764 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * config/srclistvars.sh: Add copyright notice.
72767
72768 2006-08-14  Eric Blake  <ebb9@byu.net>
72769
72770         Import the following change from libc:
72771
72772         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72773
72774         Upstream bug 2997.
72775         * lib/misc/error.c: Add space between program name and message if file
72776         name is missing.
72777
72778 2006-08-12  Karl Berry  <karl@gnu.org>
72779
72780         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72781         remove, these originate in gnulib now.
72782
72783 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72784
72785         * doc/Makefile (standards.info standards.html standards.dvi):
72786         Also depend on make-stds.texi.
72787
72788 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72791         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72792
72793         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72794         in wchar_t.  Problem reported by Eric Blake.
72795
72796         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72797         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72798         Also, help the compiler to keep LEN in a register.
72799
72800 2006-08-11  Eric Blake  <ebb9@byu.net>
72801
72802         * users.txt: Sort.  Add tar.
72803
72804 2006-08-11  Bruno Haible  <bruno@clisp.org>
72805
72806         * users.txt: New file.
72807
72808 2006-08-11  Bruno Haible  <bruno@clisp.org>
72809
72810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72811         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72812
72813 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72814
72815         * modules/snprintf (Depends-on): Remove minmax.
72816         (Maintainer): Add self and Bruno.
72817
72818 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72821         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72822         (EOVERFLOW): Define if the system does not.
72823         Do not include "minmax.h"; it wasn't used.
72824         (snprintf): Don't assume size_t promotes to an unsigned type.
72825         Fix bug when generated string was too long for the buffer: the
72826         buffer's contents are supposed to be the initial prefix of the
72827         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72828         exceeds INT_MAX; do the check ourselves.
72829
72830         Import the following changes from libc:
72831
72832         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72833
72834         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72835         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72836         set wc to the byte which couldn't be converted.
72837         (re_string_reconstruct): Don't clear valid_raw_len before calling
72838         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72839         tip_context using re_string_context_at.
72840
72841         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72842
72843         * lib/posix/regex.h: g++ still cannot handled [restrict].
72844
72845         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72846
72847         * lib/posix/regex.h: Remove special handling for VMS.
72848
72849 2006-08-10  Jim Meyering  <jim@meyering.net>
72850
72851         * modules/same-inode: New module.
72852         * modules/dev-ino: New module.
72853         * modules/cycle-check: Depend on these modules, rather than simply
72854         including their .h files.
72855         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72856         required via m4/cycle-check.m4.
72857         * modules/same: Depend on new same-inode module, rather than
72858         including same-inode.h.
72859         * modules/chdir-safer: New file.
72860
72861         * modules/chown (Depends-on): Add stat-macros.
72862
72863 2006-08-10  Jim Meyering  <jim@meyering.net>
72864
72865         * m4/cycle-check.m4: New file.
72866         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72867         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72868
72869 2006-08-10  Eric Blake  <ebb9@byu.net>
72870
72871         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72872         in from original proposal.
72873
72874 2006-08-10  Eric Blake  <ebb9@byu.net>
72875         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72876
72877         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72878         namespace.
72879
72880 2006-08-10  Bruno Haible  <bruno@clisp.org>
72881
72882         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72883         as well.
72884
72885 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         Sync from coreutils.
72888
72889         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72890
72891         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72892         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72893
72894 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * modules/restrict: Remove; no longer needed now that we assume
72897         Autoconf 2.59 or later.
72898         * MODULES.html.sh: Remove 'restrict'.
72899         * modules/argp (Depends-on): Remove 'restrict'.
72900         * modules/base64 (Depends-on): Likewise.
72901         * modules/gc (Depends-on): Likewise.
72902         * modules/getaddrinfo (Depends-on): Likewise.
72903         * modules/glob (Depends-on): Likewise.
72904         * modules/inet_ntop (Depends-on): Likewise.
72905         * modules/inet_pton (Depends-on): Likewise.
72906         * modules/memxor (Depends-on): Likewise.
72907         * modules/regex (Depends-on): Likewise.
72908         * modules/strtok_r (Depends-on): Likewise.
72909         * modules/time_r (Depends-on): Likewise.
72910
72911 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72914         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72915         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72916         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72917         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72918         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72919         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72920         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72921
72922         Merge from coreutils.
72923         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72924         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72925         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72926         * m4/time_r.m4 (gl_TIME_R): Likewise.
72927
72928 2006-08-09  Karl Berry  <karl@gnu.org>
72929
72930         * config/srclist.txt: no more gettext-tools, per Bruno.
72931
72932 2006-08-08  Eric Blake  <ebb9@byu.net>
72933
72934         * modules/verror: New module.
72935         * MODULES.html.sh: Document it.
72936
72937 2006-08-08  Eric Blake  <ebb9@byu.net>
72938
72939         * lib/verror.h, lib/verror.c: New files.
72940
72941 2006-08-08  Eric Blake  <ebb9@byu.net>
72942
72943         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72944         verror_at_line output complies with GNU Coding Standards even when
72945         file is NULL.
72946
72947 2006-08-07  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72950         versions of AIX.
72951         Reported by Ralf Wildenhues.
72952
72953 2006-08-07  Bruno Haible  <bruno@clisp.org>
72954
72955         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72956         in an AC_DEFUN. Needed so that the autoconf snippets can use
72957         AC_REQUIRE.
72958
72959 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72960
72961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72962         Initialize pkgdata_DATA.
72963         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72964         overriding it.
72965
72966 2006-08-06  Eric Blake  <ebb9@byu.net>
72967
72968         * lib/error.h: Fold in some upstream changes from glibc.
72969         * lib/error.c: Likewise.
72970
72971 2006-08-04  Bruno Haible  <bruno@clisp.org>
72972
72973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72974         Make the mostlyclean-local rule depend on mostlyclean-generic.
72975         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72976
72977 2006-07-31  Bruno Haible  <bruno@clisp.org>
72978
72979         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72980         <stdlib.h>, <string.h>.
72981
72982 2006-07-30  Bruno Haible  <bruno@clisp.org>
72983
72984         * modules/readlink (License): Change to LGPL.
72985
72986 2006-07-30  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72989         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72990         set PKGDATADIR to point to it.
72991
72992 2006-07-30  Bruno Haible  <bruno@clisp.org>
72993
72994         * modules/csharpexec (configure.ac): Comment out macro invocation.
72995         * modules/javaexec (configure.ac): Likewise.
72996         * modules/javacomp-script (configure.ac): Likewise.
72997
72998         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72999
73000 2006-07-30  Bruno Haible  <bruno@clisp.org>
73001
73002         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
73003         linked-list.
73004
73005 2006-07-30  Bruno Haible  <bruno@clisp.org>
73006
73007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
73008
73009 2006-07-30  Bruno Haible  <bruno@clisp.org>
73010
73011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73012         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
73013         get removed.
73014
73015 2006-07-29  Bruno Haible  <bruno@clisp.org>
73016
73017         Make it possible for gnulib-tool to work with locally modified or
73018         augmented gnulib repositories.
73019         * gnulib-tool (func_usage): Document --local-dir option.
73020         (local_gnulib_dir): New variable.
73021         Handle --local-dir option.
73022         (func_lookup_file): New function.
73023         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
73024         (func_get_description, func_get_filelist, func_get_description,
73025         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
73026         func_get_automake_snippet, func_get_include_directive,
73027         func_get_license, func_get_maintainer): Use func_lookup_file.
73028         (func_import, func_create_testdir): Use func_lookup_file.
73029
73030 2006-07-29  Bruno Haible  <bruno@clisp.org>
73031
73032         * modules/setenv (Depends-on): Add unistd.
73033
73034 2006-07-29  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
73037
73038 2006-07-29  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
73041
73042 2006-07-29  Bruno Haible  <bruno@clisp.org>
73043
73044         * gnulib-tool (import, update): If there is no Makefile.am, look at
73045         aclocal.m4, instead of bailing out.
73046
73047 2006-07-29  Bruno Haible  <bruno@clisp.org>
73048
73049         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
73050         Categorize the options by when they are useful.
73051
73052 2006-07-29  Bruno Haible  <bruno@clisp.org>
73053
73054         * gnulib-tool (func_usage): Document option --no-libtool.
73055         Handle option --no-libtool.
73056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
73057         for changed semantics of $libtool variable.
73058         (func_import): Likewise. If libtool is not used, show this through
73059         an option --no-libtool.
73060         (func_create_testdir): Update.
73061
73062 2006-07-29  Bruno Haible  <bruno@clisp.org>
73063
73064         * gnulib-tool (func_import): Extend error message about missing
73065         --doc-base.
73066
73067 2006-07-29  Bruno Haible  <bruno@clisp.org>
73068
73069         * gnulib-tool (func_import): Don't create the $docbase directory if
73070         there is no file to store there.
73071
73072 2006-07-29  Bruno Haible  <bruno@clisp.org>
73073
73074         * gnulib-tool (autoconf_minversion): If a --dir option is given and
73075         relevant, look for configure.ac there, not in the current directory.
73076         Also use a simple search for AC_PREREQ, not "autoconf --trace".
73077
73078 2006-07-29  Bruno Haible  <bruno@clisp.org>
73079
73080         * gnulib-tool (SORT): New variable.
73081         (func_usage): Undocument --assume-autoconf option.
73082         Remove --assume-autoconf option handling.
73083         (autoconf_minversion): Determine from the contents of configure.ac.
73084         (func_import): Remove autoconf_minversion handling.
73085         Suggested by Eric Blake.
73086
73087 2006-07-29  Bruno Haible  <bruno@clisp.org>
73088
73089         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
73090
73091 2006-07-29  Bruno Haible  <bruno@clisp.org>
73092
73093         * config/srclist.txt (*setenv.[ch]): Remove rules.
73094
73095 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73096
73097         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
73098
73099 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73100
73101         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
73102         arpa/inet.h.
73103
73104 2006-07-28  Simon Josefsson  <jas@extundo.com>
73105
73106         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
73107         * modules/inet_pton (Depends-on): Likewise.
73108
73109 2006-07-28  Simon Josefsson  <jas@extundo.com>
73110
73111         * m4/netinet_in_h.m4: New file.
73112
73113 2006-07-28  Simon Josefsson  <jas@extundo.com>
73114
73115         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
73116         #include's.
73117
73118 2006-07-28  Simon Josefsson  <jas@extundo.com>
73119
73120         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
73121         #include's.
73122
73123 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
73126         setgid on directories only if they set these bits.
73127         * lib/modechange.h: Remove obsolete comment about masks.
73128
73129 2006-07-28  Eric Blake  <ebb9@byu.net>
73130
73131         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
73132         macro expansion.
73133
73134 2006-07-28  Bruno Haible  <bruno@clisp.org>
73135
73136         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
73137
73138 2006-07-28  Bruno Haible  <bruno@clisp.org>
73139
73140         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
73141
73142 2006-07-28  Bruno Haible  <bruno@clisp.org>
73143
73144         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73145         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73146         Define fallbacks.
73147         Avoids link error on FreeBSD 4.x.
73148         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73149
73150         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
73151         encoding.
73152         * lib/mbswidth.c (iswcntrl): Likewise.
73153
73154 2006-07-27  Bruno Haible  <bruno@clisp.org>
73155
73156         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
73157         test.
73158
73159 2006-07-27  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
73162         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
73163         defined.
73164
73165 2006-07-26  Eric Blake  <ebb9@byu.net>
73166
73167         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
73168
73169 2006-07-26  Eric Blake  <ebb9@byu.net>
73170
73171         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
73172         like mingw that lack mkstemp.
73173         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
73174         avoid compilation warning on mingw.
73175
73176 2006-07-26  Bruno Haible  <bruno@clisp.org>
73177
73178         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
73179         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
73180         INT_FAST*_MIN, INTPTR_MIN.
73181
73182 2006-07-25  Bruno Haible  <bruno@clisp.org>
73183
73184         * modules/version-etc (Depends-on): Add stdarg.
73185
73186 2006-07-25  Bruno Haible  <bruno@clisp.org>
73187
73188         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
73189         complex commands.
73190
73191 2006-07-25  Bruno Haible  <bruno@clisp.org>
73192
73193         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
73194         defined in <stdarg.h> or config.h.
73195
73196 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
73199         (gl_STDIO_SAFER): Remove.
73200
73201 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * MODULES.html.sh (File stream based Input/Output):
73204         Add fopen-safer, tmpfile-safer; remove stdio-safer.
73205         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
73206         * modules/fopen-safer, modules/tmpfile-safer: New files.
73207         * modules/stdio-safer: Remove.
73208
73209 2006-07-24  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/tmpdir: New file.
73212         * MODULES.html.sh (File system functions): Add it.
73213
73214 2006-07-24  Bruno Haible  <bruno@clisp.org>
73215
73216         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
73217         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
73218
73219 2006-07-24  Bruno Haible  <bruno@clisp.org>
73220
73221         * modules/clean-temp: New file.
73222
73223 2006-07-24  Bruno Haible  <bruno@clisp.org>
73224
73225         * m4/tmpdir.m4: New file, from GNU gettext.
73226
73227 2006-07-24  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/tmpdir.h: New file, from GNU gettext.
73230         * lib/tmpdir.c: New file, from GNU gettext.
73231
73232 2006-07-24  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/clean-temp.h: New file, from GNU gettext.
73235         * lib/clean-temp.c: New file, from GNU gettext.
73236
73237 2006-07-23  Eric Blake  <ebb9@byu.net>
73238
73239         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73240         (Depends-on): Add binary-io.
73241
73242 2006-07-23  Eric Blake  <ebb9@byu.net>
73243
73244         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73245
73246 2006-07-23  Eric Blake  <ebb9@byu.net>
73247
73248         * lib/tmpfile-safer.c: New file.
73249         * lib/stdio-safer.h (fopen_safer): Add prototype.
73250         * lib/stdio--.h (tmpfile): Make safer.
73251
73252 2006-07-23  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73255         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73256         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73257         gl_linked_remove_at): Use it.
73258
73259 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73260         and Simon Josefsson <jas@extundo.com>
73261
73262         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73263
73264         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73265
73266 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * modules/close-stream: New file.
73269         * modules/closeout (Description): Make it clear that it exits
73270         with a diagnostic on error.
73271         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73272         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73273
73274 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * m4/close-stream.m4: New file.
73277
73278 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * lib/close-stream.c, lib/close-stream.h: New files.
73281
73282 2006-07-22  Bruno Haible  <bruno@clisp.org>
73283
73284         Merge from GNU gettext 0.15.
73285
73286         2006-05-01  Bruno Haible  <bruno@clisp.org>
73287
73288                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73289
73290         2006-07-22  Bruno Haible  <bruno@clisp.org>
73291
73292                 * modules/javaversion: New file.
73293                 * MODULES.html.sh (Java): Add javaversion.
73294
73295         2006-03-12  Bruno Haible  <bruno@clisp.org>
73296
73297                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73298
73299         2005-12-04  Bruno Haible  <bruno@clisp.org>
73300
73301                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73302                 (untested).
73303
73304         2006-06-21  Bruno Haible  <bruno@clisp.org>
73305
73306                 Avoid warnings from recent versions of mcs.
73307                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73308                 -o, -L, -r any more. Use options documented since mcs-1.0
73309                 instead. Similarly for -g.
73310
73311         2005-12-04  Bruno Haible  <bruno@clisp.org>
73312
73313                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73314                 .resources, not .resource.
73315
73316         2005-07-09  Bruno Haible  <bruno@clisp.org>
73317
73318                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73319                 add a .dll suffix.
73320                 Reported by Mark Junker <mjscod@gmx.de>.
73321
73322         2006-07-22  Bruno Haible  <bruno@clisp.org>
73323
73324                 * modules/gettext: Upgrade to gettext-0.15.
73325                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73326                 m4/visibility.m4.
73327                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73328
73329 2006-07-22  Bruno Haible  <bruno@clisp.org>
73330
73331         Merge from GNU gettext 0.15.
73332
73333         2006-03-25  Bruno Haible  <bruno@clisp.org>
73334
73335                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73336
73337         2006-07-21  Bruno Haible  <bruno@clisp.org>
73338
73339                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73340                 "1.1".
73341
73342         2006-05-09  Bruno Haible  <bruno@clisp.org>
73343
73344                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73345                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73346                 for the conftestver execution.
73347
73348         2006-05-01  Bruno Haible  <bruno@clisp.org>
73349
73350                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73351                 optional target-version argument. Verify that the compiler
73352                 groks source of the specified source-version, or add -source
73353                 option as necessary. Verify that the compiler produces
73354                 bytecode in the specified target-version, or add -target and
73355                 -source options as necessary. Make the result of the test
73356                 available as variable CONF_JAVAC. Also log error output in
73357                 config.log.
73358
73359         2006-03-11  Bruno Haible  <bruno@clisp.org>
73360
73361                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73362
73363         2006-05-09  Bruno Haible  <bruno@clisp.org>
73364
73365                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73366                 CLASSPATH_SEPARATOR to a semicolon.
73367
73368         2006-03-12  Bruno Haible  <bruno@clisp.org>
73369
73370                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73371                 available as variable CONF_JAVA, for subsequent autoconf
73372                 tests. Also log error output in config.log.
73373
73374         2006-07-19  Bruno Haible  <bruno@clisp.org>
73375
73376                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73377                 that getline works on glibc2 systems. Needed to avoid trouble
73378                 in relocatable.c.
73379                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73380
73381         2005-12-04  Bruno Haible  <bruno@clisp.org>
73382
73383                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73384                 launcher (untested).
73385
73386         2005-12-04  Bruno Haible  <bruno@clisp.org>
73387
73388                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73389
73390         2006-07-22  Bruno Haible  <bruno@clisp.org>
73391
73392                 * gettext.m4: Update from GNU gettext-0.15.
73393                 * nls.m4: Likewise.
73394                 * po.m4: Likewise.
73395                 * inttypes-pri.m4: Likewise.
73396                 * inttypes-h.m4: Renamed from inttypes.m4.
73397                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73398
73399 2006-07-22  Bruno Haible  <bruno@clisp.org>
73400
73401         Merge from GNU gettext 0.15.
73402
73403         2005-07-05  Bruno Haible  <bruno@clisp.org>
73404
73405                 * printf-args.c (printf_fetchargs): Work around broken
73406                 definition of wint_t on mingw.
73407
73408         2005-02-12  Bruno Haible  <bruno@clisp.org>
73409
73410                 * xallocsa.h: Add extern "C" for C++.
73411
73412         2006-05-17  Bruno Haible  <bruno@clisp.org>
73413
73414                 Cygwin portability.
73415                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73416
73417         2006-04-30  Bruno Haible  <bruno@clisp.org>
73418
73419                 * progreloc.c: Include <mach-o/dyld.h> if available.
73420                 (find_executable): Use _NSGetExecutablePath when possible.
73421
73422         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73423
73424                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73425                 function.
73426
73427         2005-12-29  Bruno Haible  <bruno@clisp.org>
73428
73429                 * progreloc.c (set_program_name_and_installdir): Fix
73430                 compilation error.
73431
73432         2005-12-04  Bruno Haible  <bruno@clisp.org>
73433
73434                 Cygwin portability.
73435                 * progreloc.c: Include <windows.h> also on Cygwin.
73436                 (find_executable): Add support for Cygwin.
73437                 (set_program_name_and_installdir): Handle also platforms with
73438                 nonempty EXEEXT.
73439
73440         2006-07-11  Bruno Haible  <bruno@clisp.org>
73441
73442                 * javacomp.c: Fix a comment.
73443                 Reported by Jim Meyering.
73444
73445         2006-04-30  Bruno Haible  <bruno@clisp.org>
73446
73447                 * javacomp.h (compile_java_class): Add source_version,
73448                 target_version arguments.
73449                 * javacomp.c: Rewritten to choose only a compiler that
73450                 respects the specified source_version and target_version.
73451
73452         2006-06-27  Bruno Haible  <bruno@clisp.org>
73453
73454                 Assume correct S_ISDIR macro.
73455                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73456
73457         2006-07-22  Bruno Haible  <bruno@clisp.org>
73458
73459                 * javaversion.h: New file, from GNU gettext.
73460                 * javaversion.c: New file, from GNU gettext.
73461                 * javaversion.java: New file, from GNU gettext.
73462                 * javaversion.class: New file, from GNU gettext.
73463
73464         2006-05-17  Bruno Haible  <bruno@clisp.org>
73465
73466                 Cygwin portability.
73467                 * javaexec.c (execute_java_class): Test for jview program
73468                 also on Cygwin.
73469
73470         2006-04-09  Bruno Haible  <bruno@clisp.org>
73471
73472                 * fatal-signal.c: Don't include string.h.
73473                 (at_fatal_signal): Use a copying loop instead of memcpy.
73474
73475         2005-12-04  Bruno Haible  <bruno@clisp.org>
73476
73477                 * csharpexec.c: Add support for 'clix' launcher (untested).
73478                 (execute_csharp_using_sscli): New function.
73479                 (execute_csharp_program): Call it.
73480
73481         2006-06-21  Bruno Haible  <bruno@clisp.org>
73482
73483                 Avoid warnings from recent versions of mcs.
73484                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73485                 -o, -L, -r any more. Use options documented since mcs-1.0
73486                 instead. Similarly for -g.
73487
73488         2005-07-09  Bruno Haible  <bruno@clisp.org>
73489
73490                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73491                 add a .dll suffix.
73492                 Reported by Mark Junker <mjscod@gmx.de>.
73493
73494         2006-06-17  Bruno Haible  <bruno@clisp.org>
73495
73496                 * config.charset: Update for NetBSD 3.0.
73497
73498         2006-05-17  Bruno Haible  <bruno@clisp.org>
73499
73500                 Cygwin portability.
73501                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73502
73503         2006-05-16  Bruno Haible  <bruno@clisp.org>
73504
73505                 * localcharset.c [CYGWIN]: Include <windows.h>.
73506                 (get_charset_aliases): For Cygwin, return the same CPxxx
73507                 aliases list as under WIN32.
73508                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73509                 the environment variables. Fall back to GetACP().
73510
73511         2006-04-05  Bruno Haible  <bruno@clisp.org>
73512
73513                 * config.charset: Update Juan Manuel Guerrero's address.
73514
73515         2005-02-12  Bruno Haible  <bruno@clisp.org>
73516
73517                 * allocsa.h: Add extern "C" for C++.
73518
73519         2005-02-10  Bruno Haible  <bruno@clisp.org>
73520
73521                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73522                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73523
73524         2006-07-22  Bruno Haible  <bruno@clisp.org>
73525
73526                 * gettext.h: Update to GNU gettext-0.15.
73527
73528 2006-07-22  Bruno Haible  <bruno@clisp.org>
73529
73530         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73531         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73532         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73533
73534 2006-07-21  Eric Blake  <ebb9@byu.net>
73535
73536         * modules/stdlib-safer: New file.
73537         * MODULES.html.sh (File stream based Input/Output): Add
73538         stdlib-safer.
73539
73540 2006-07-21  Eric Blake  <ebb9@byu.net>
73541
73542         * lib/stdlib-safer.h: New file from coreutils, required by
73543         stdlib--.h.
73544
73545 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73548
73549 2006-07-20  Bruno Haible  <bruno@clisp.org>
73550
73551         * gnulib-tool: Recognize new option --assume-autoconf.
73552         (autoconf_minversion): New variable.
73553         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73554
73555 2006-07-20  Bruno Haible  <bruno@clisp.org>
73556
73557         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73558
73559 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73560
73561         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73562         Reindent and repaginate.
73563
73564 2006-07-19  Derek Price  <derek@ximbiot.com>
73565
73566         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73567         Correct grammar.
73568
73569 2006-07-17  Bruno Haible  <bruno@clisp.org>
73570
73571         * modules/list: New file.
73572         * modules/array-list: New file.
73573         * modules/carray-list, modules/carray-list-tests: New files.
73574         * modules/linked-list, modules/linked-list-tests: New files.
73575         * modules/avltree-list, modules/avltree-list-tests: New files.
73576         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73577         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73578         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73579         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73580         * modules/oset: New file.
73581         * modules/array-oset: New file.
73582         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73583         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73584         * tests/test-carray_list.c: New file.
73585         * tests/test-linked_list.c: New file.
73586         * tests/test-avltree_list.c: New file.
73587         * tests/test-rbtree_list.c: New file.
73588         * tests/test-linkedhash_list.c: New file.
73589         * tests/test-avltreehash_list.c: New file.
73590         * tests/test-rbtreehash_list.c: New file.
73591         * tests/test-avltree_oset.c: New file.
73592         * tests/test-rbtree_oset.c: New file.
73593         * MODULES.html.sh (Container data structures): New section.
73594
73595 2006-07-17  Bruno Haible  <bruno@clisp.org>
73596
73597         * m4/gl_list.m4: New file.
73598
73599 2006-07-17  Bruno Haible  <bruno@clisp.org>
73600
73601         * lib/gl_list.h: New file.
73602         * lib/gl_list.c: New file.
73603         * lib/gl_array_list.h: New file.
73604         * lib/gl_array_list.c: New file.
73605         * lib/gl_carray_list.h: New file.
73606         * lib/gl_carray_list.c: New file.
73607         * lib/gl_linked_list.h: New file.
73608         * lib/gl_linked_list.c: New file.
73609         * lib/gl_anylinked_list1.h: New file.
73610         * lib/gl_anylinked_list2.h: New file.
73611         * lib/gl_avltree_list.h: New file.
73612         * lib/gl_avltree_list.c: New file.
73613         * lib/gl_anyavltree_list1.h: New file.
73614         * lib/gl_anyavltree_list2.h: New file.
73615         * lib/gl_rbtree_list.h: New file.
73616         * lib/gl_rbtree_list.c: New file.
73617         * lib/gl_anyrbtree_list1.h: New file.
73618         * lib/gl_anyrbtree_list2.h: New file.
73619         * lib/gl_anytree_list1.h: New file.
73620         * lib/gl_anytree_list2.h: New file.
73621         * lib/gl_linkedhash_list.h: New file.
73622         * lib/gl_linkedhash_list.c: New file.
73623         * lib/gl_anyhash_list1.h: New file.
73624         * lib/gl_anyhash_list2.h: New file.
73625         * lib/gl_avltreehash_list.h: New file.
73626         * lib/gl_avltreehash_list.c: New file.
73627         * lib/gl_rbtreehash_list.h: New file.
73628         * lib/gl_rbtreehash_list.c: New file.
73629         * lib/gl_anytreehash_list1.h: New file.
73630         * lib/gl_anytreehash_list2.h: New file.
73631
73632         * lib/gl_oset.h: New file.
73633         * lib/gl_oset.c: New file.
73634         * lib/gl_array_oset.h: New file.
73635         * lib/gl_array_oset.c: New file.
73636         * lib/gl_avltree_oset.h: New file.
73637         * lib/gl_avltree_oset.c: New file.
73638         * lib/gl_rbtree_oset.h: New file.
73639         * lib/gl_rbtree_oset.c: New file.
73640         * lib/gl_anytree_oset.h: New file.
73641
73642 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * m4/mkancesdirs.m4: New file.
73645         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73646         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73647         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73648         it.
73649
73650 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73651
73652         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73653         * lib/mkancesdirs.h: New files.
73654         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73655         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73656         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73657         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73658         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73659         callers changed.  Revamp internals significantly, by not
73660         attempting to create directories that are temporarily more
73661         permissive than the final results.  Do not attempt to use
73662         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73663         This removes some race conditions, fixes some bugs, and simplifies
73664         things.  Use new dirchownmod function to do owner and mode changes.
73665         * lib/mkdir-p.h: Likewise.
73666         * lib/modechange.c (octal_to_mode): New function.
73667         (struct mode_change): New member mentioned.
73668         (make_node_op_equals): New arg mentioned.  All callers changed.
73669         (mode_compile): Keep track of which mode bits the user has explicitly
73670         mentioned.
73671         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73672         New arg PMODE_BITS, to keep track of which mode bits the user
73673         mentioned; it treats S_ISUID and S_ISGID speciall.
73674         All callers changed.
73675         * lib/modechange.h: Likewise.
73676
73677 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73678
73679         * MODULES.html.sh: Add mkancestors.
73680         * modules/mkancesdirs: New module.
73681         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73682         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73683         The chdir-safer and afs files are now orphans; I'll remove them
73684         unless someone speaks up.
73685         Add lib/dirchownmod.c, lib/dirchownmod.h.
73686         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73687         Add lchown, mkancesdirs.
73688         (Maintainer): Add self.
73689
73690 2006-07-15  Karl Berry  <karl@gnu.org>
73691
73692         * gnulib-tool: help message wording/arrangement.
73693
73694 2006-07-14  Simon Josefsson  <jas@extundo.com>
73695
73696         * doc/gnulib.texi (Libtool and Windows): New section.
73697
73698 2006-07-12  Simon Josefsson  <jas@extundo.com>
73699
73700         * modules/gendocs (License): Fix license, approved by Karl.
73701
73702 2006-07-12  Eric Blake  <ebb9@byu.net>
73703
73704         * MODULES.html.sh: Add gendocs.
73705
73706 2006-07-11  Eric Blake  <ebb9@byu.net>
73707
73708         * modules/fdl: New module, to install doc/fdl.texi.
73709         * MODULES.html.sh: Add new section for documentation modules.
73710         * gnulib-tool: Avoid space-tab.
73711         (--doc-base): New option, to manage files from doc.
73712
73713 2006-07-11  Eric Blake  <ebb9@byu.net>
73714
73715         * m4/absolute-header.m4: Fix comments to match recent change.
73716
73717 2006-07-11  Eric Blake  <ebb9@byu.net>
73718
73719         * gnulib-tool: List --doc-base before --tests-base.
73720
73721 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73722
73723         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73724
73725 2006-07-11  Bruno Haible  <bruno@clisp.org>
73726
73727         * README: Mention where to put documentation.
73728
73729 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73730
73731         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73732
73733 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73736         to stdint.m4.
73737
73738 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73739
73740         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73741         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73742         "no/such/file/stdint.h" when there is no such file, so that
73743         the resulting C code can be parsed by dodgy compilers.
73744         Problems reported by Bob Proulx.
73745
73746 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73747
73748         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73749         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73750         macros into the GNU _D_EXACT_NAMLEN.
73751         * lib/savedir.c:  Likewise.
73752         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73753
73754 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73755         and Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73758         * m4/savedir.m4:
73759         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73760         macros into the GNU _D_EXACT_NAMLEN.
73761
73762 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73765         around the absolute name, to work around a problem with the HP-UX
73766         11.23 native C compiler, reported by Bob Proulx.
73767
73768 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * doc/maintain.texi, make-stds.texi: Sync from
73771         <http://savannah.gnu.org/projects/gnustandards>.
73772
73773 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73776
73777 2006-07-09  Jim Meyering  <jim@meyering.net>
73778
73779         * m4/glob.m4: Remove a doubled word in a comment.
73780
73781 2006-07-09  Jim Meyering  <jim@meyering.net>
73782
73783         * lib/argp-pv.c: Remove a doubled word in a comment.
73784         * lib/check-version.c (check_version): Likewise.
73785         * lib/javacomp.c (compile_java_class): Likewise.
73786
73787 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73790         for the benefit of people using Autoconf 2.60.  If you want to
73791         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73792         (or m4/onceonly.m4, if pre-2.57) manually.
73793
73794 2006-07-08  Jim Meyering  <jim@meyering.net>
73795
73796         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73797         comment.
73798         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73799         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73800         comment.
73801
73802 2006-07-08  Jim Meyering  <jim@meyering.net>
73803
73804         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73805
73806 2006-07-07  Simon Josefsson  <jas@extundo.com>
73807
73808         * tests/test-crc.c: Change expected crc value, the test vector
73809         were probably computed using the old broken crc.c?
73810
73811 2006-07-06  Simon Josefsson  <jas@extundo.com>
73812
73813         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73814         now the canonical place for the M4 file).
73815
73816         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73817         from the sys_socket dependency now.
73818
73819         * modules/inet_pton (Files): Ditto.
73820
73821         * modules/inet_ntop (Files): Ditto.
73822
73823 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73824
73825         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73826         not gl_PREREQ_GETUSERSHELL.
73827
73828 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73829
73830         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73831         with only one argument, for Autoconf 2.60.
73832         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73833         expand to nothing, so add a shell command to avoid syntax error.
73834         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73835
73836 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73837
73838         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73839
73840 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73843         no longer needed.  Check for isblank decl.
73844         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73845         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73846         of existence.
73847
73848 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * lib/getloadavg.c: Use __VMS, not VMS.
73851         * lib/getopt.c: Likewise.
73852         * lib/getpagesize.h: Likewise.
73853         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73854         and probably does not work.
73855
73856 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * lib/.cppi-disable: Add wcwidth.
73859         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73860         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73861         (ISGRAPH): Remove.  All uses changed to isgraph.
73862         (FOLD) [!defined _LIBC]: Remove special case.
73863         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73864         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73865         HAVE_ISBLANK.
73866         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73867         case.
73868
73869 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73870
73871         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73872         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73873         brackets.  Other minor changes to suppress some compiler
73874         warnings.
73875
73876 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73877         and Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73880         of invoking obsolescent AC_HEADER_DIRENT macro.
73881         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73882         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73883         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73884         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73885         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73886         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73887         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73888         * m4/readdir.m4: Remove; no longer needed.
73889
73890 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73891         and Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73894         Don't worry about this obsolete case any more.
73895         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73896         directories.
73897         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73898         worry about this obsolete case any more.
73899         * lib/fts.c: Likewise.
73900         * lib/getcwd.c: Likewise.
73901         * lib/glob.h: Likewise.
73902         * lib/savedir.c: Likewise.
73903
73904 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73907         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73908         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73909         needed.
73910         All uses removed.
73911         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73912         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73913         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73914         needed.
73915         * m4/getdate.m4 (gl_GETDATE): Likewise.
73916         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73917         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73918         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73919         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73920         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73921         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73922         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73923         needed.
73924
73925 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * lib/memcasecmp.c: Include <limits.h>.
73928         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73929         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73930         Don't assume isdigit succeeds only on '0' through '9'.
73931
73932 2006-07-05  Eric Blake  <ebb9@byu.net>
73933
73934         * modules/getaddrinfo (Depends-on): Add snprintf.
73935
73936 2006-07-05  Eric Blake  <ebb9@byu.net>
73937
73938         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73939         to avoid 'header present but could not be compiled' on cygwin.
73940
73941 2006-07-05  Eric Blake  <ebb9@byu.net>
73942
73943         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73944         missing from netdb.h.
73945         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73946
73947 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73948
73949         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73950         no longer needed.
73951         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73952         * m4/getdate.m4 (gl_GETDATE): Likewise.
73953         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73954         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73955         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73956         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73957         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73958
73959 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73960
73961         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73962         All uses of is_space replaced by isspace.
73963         * lib/exit.h: Don't talk about STDC_HEADERS.
73964         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73965         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73966         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73967         replaced by isprint etc.
73968         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73969         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73970         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73971         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73972         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73973         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73974
73975 2006-07-05  Bruno Haible  <bruno@clisp.org>
73976
73977         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73978         the function exists, before testing against AIX.
73979         Reported by Martin Lambers <marlam@marlam.de>.
73980
73981 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73984         From Mark D. Baushke.
73985
73986 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73989         to the absolute name, not just one, to bypass Sun C 5.8's
73990         "warning: #include of /usr/include/... may be non-portable".
73991
73992 2006-07-04  Eric Blake  <ebb9@byu.net>
73993
73994         * modules/dirname-tests: New test module.
73995         * tests/test-dirname.c: New file, replacing dirname.c
73996         TEST_DIRNAME section that was recently deleted.
73997
73998 2006-07-04  Bruno Haible  <bruno@clisp.org>
73999
74000         Assume ANSI C header files and <ctype.h> functions.
74001         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
74002         (mbsnwidth): Use isprint, iscntrl instead.
74003
74004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         Merge from coreutils.
74007         * MODULES.html.sh: Add xstrtold.
74008         * modules/xstrtold: New file.
74009         * modules/cycle-check (Files): Add lib/same-inode.h.
74010         * modules/dirname (Files): Add m4/double-slash-root.m4.
74011         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
74012         * modules/mkdir-p (Files): Add lib/same-inode.h.
74013         * modules/same (Files): Add lib/same-inode.h.
74014
74015 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         * m4/absolute-header.m4: Renamed from full-header-path.m4.
74018         This is to keep the terminology clean; POSIX talks about
74019         "absolute pathnames", not "full pathnames", but the GNU
74020         Coding Standards say to use "path" for something else;
74021         so use "absolute" to keep both sides happy.
74022         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
74023         Set gl_absolute_header, not gl_full_header_path.
74024         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
74025         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
74026         All uses changed.
74027
74028         Merge from coreutils.
74029
74030         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
74033         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
74034         want to require the building of c-strtod.o.
74035         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
74036         needs -lm directly.
74037         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
74038
74039         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
74042         --as-needed option if available.  Problem reported by Albert Chin in
74043         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
74044         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
74045         cc merely issues a bunch of annoying warnings for --as-needed
74046         (this problem was reported by Bob Proulx).  Also, try linking with
74047         -lm to detect a bug in binutils 2.16 (this problem was reported
74048         by Ralf Wildenhues).
74049
74050         2006-06-18  Jim Meyering  <jim@meyering.net>
74051
74052         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
74053         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
74054         macro.
74055         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
74056         also check for glibc-2.4's abort-inducing bug.
74057
74058         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
74059         Low-probability clean-up should be to use rmdir to get rid of
74060         the just-created directory, not unlink.
74061
74062         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
74063         configure fail, and request a bug report to inform us about it.
74064         Add a comment that, barring reports to the contrary, in 2007 we'll
74065         assume ftruncate is universally available.
74066
74067         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
74070
74071         2006-03-12  Jim Meyering  <jim@meyering.net>
74072
74073         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
74074         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
74075         * m4/same.m4 (gl_SAME): Likewise.
74076         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
74077
74078         2006-03-11  Eric Blake  <ebb9@byu.net>
74079
74080         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
74081         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
74082         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
74083         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
74084
74085 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
74088         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
74089         reported by Mark D. Baushke, one in
74090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
74091
74092         Merge from coreutils.
74093
74094         * lib/.cppi-disable: Add stdint_.h.
74095         * lib/.cvsignore: Add stdint.h.
74096
74097         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
74100         both double and long double versions.
74101         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
74102         * lib/xstrtold.c: New file.
74103         * lib/xstrtod.h (xstrtold): New decl.
74104
74105         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * lib/filemode.c (setst): Remove.
74108         (strmode): Rewrite to avoid setst.  This makes the code shorter,
74109         (arguably) clearer, and the generated code is a bit smaller on my
74110         Debian GNU/Linux stable x86 host.
74111
74112         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * lib/filemode.c: Include "filemode.h" first, to test the interface.
74115         Assume that filemode.h includes sys/types.h and sys/stat.h.
74116         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
74117         (ftypelet): Reorder to put common cases first, for efficiency.
74118         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
74119         to do 'M'.
74120         (strmode): Renamed from mode_string, and now stores 12 bytes instead
74121         of 10, for compatibility with FreeBSD.  All callers changed.
74122         (filemodestring): Now stores 12 bytes instead of 10, and sets file
74123         types that can't be deduced solely from st_mode.  First arg is now a
74124         const pointer.
74125         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
74126         (strmode): Renamed from mode_string.
74127         (filemodestring): New decl.
74128         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
74129         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
74130         needed.
74131         (S_ISPORT, S_ISWHT): New macros, if not already defined.
74132
74133         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
74136         fsusage.h now does that.  Include fsusage.h first, to test interface.
74137         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
74138         at most one method (the old code could have generated decls that
74139         didn't conform to C89, not that this was ever exercised).
74140         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
74141
74142         2006-03-19  Jim Meyering  <jim@meyering.net>
74143
74144         Work even in a chroot where d_ino values for entries in "/"
74145         don't match the stat.st_ino values for the same names.
74146         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
74147         number, iterate through all entries again, using lstat instead.
74148         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
74149         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
74150
74151         * lib/getcwd.c (__getcwd): Clarify a comment.
74152         Use memcpy in place of a call to strcpy.
74153
74154         2006-03-12  Jim Meyering  <jim@meyering.net>
74155
74156         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
74157         matches that of the current directory (which we're about to chdir ".."
74158         out of), then save the dev-ino of the parent, instead.
74159
74160         * lib/same-inode.h (SAME_INODE): New file/macro.
74161         * lib/chdir-safer.c (SAME_INODE): Remove definition.
74162         Include "same-inode.h", instead.
74163         * lib/same.c: Likewise.
74164         * lib/cycle-check.h: Include "same-inode.h".
74165         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
74166         * lib/cycle-check.c (SAME_INODE): Remove definition.
74167         * lib/root-dev-ino.h: Include "same-inode.h".
74168
74169         2006-03-11  Eric Blake  <ebb9@byu.net>
74170
74171         * lib/same.c (same_name): s/base_name/last_component/
74172         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
74173         * lib/filenamecat.c (file_name_concat): Likewise.
74174
74175         2006-03-11  Eric Blake  <ebb9@byu.net>,
74176                     Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
74179         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
74180         drive prefix.
74181         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
74182         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
74183         (last_component): New method.
74184         * lib/dirname.c (dir_len): Determine when drive letters need a
74185         subsequent slash.  Preserve // when it is special.
74186         (dir_name): Don't append dot when drive letter is absolute.
74187         [TEST_DIRNAME]: Move into a full-blown gnulib test.
74188         * lib/basename.c (base_name): New semantics - malloc the result.
74189         Preserve // when it is special.  Preserve relative files that look
74190         like drive letters.
74191         (base_len): Preserve // when it is special.
74192         (last_component): New method, similar to old base_name semantics.
74193         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
74194         base_name.  Strip redundant slashes from ///.
74195
74196 2006-07-03  Jim Meyering  <jim@meyering.net>
74197
74198         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
74199         macro is used before the first cycle_check call.
74200
74201 2006-07-03  Eric Blake  <ebb9@byu.net>
74202
74203         * modules/dirname (Depends-on): Add xstrndup.
74204
74205 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
74208         test cases, so that config.log is a bit easier to follow.
74209
74210 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
74213         both are 64 bits, since this seems to be the tradition, and this
74214         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
74215         we ever run into a host that prefers long long to long in this
74216         case, we'll need another configure-time test.  Problem reported by
74217         Jim Meyering.
74218
74219 2006-07-02  Eric Blake  <ebb9@byu.net>
74220
74221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74222
74223 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * modules/inttypes (Depends-on): No longer depends on stdint.
74226         * modules/stdint (Description): Say more about assumptions.
74227         Say that the fast types might differ.  Say macros are used.
74228         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74229         (Makefile.am): Revise list of substituted symbols to match
74230         new stdint.m4.
74231         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74232         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74233         * tests/test-stdint.c (verify_same_types)
74234         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74235         the code conforms to C99/C89.
74236         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74237         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74238
74239 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74242         but fix a bug, by requiring at least 64 bits.
74243         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74244         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74245         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74246         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74247
74248         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74249         changes.  Make 2.59 a prerequisite.  Check and substitute for
74250         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74251         inttypes.h.  Do not use special include files; just use the
74252         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74253         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74254         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74255         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74256         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74257         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74258         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74259         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74260         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74261         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74262         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74263         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74264         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74265         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74266         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74267         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74268         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74269         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74270         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74271         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74272         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74273         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74274         not check for things that C99 does not require, e.g., int8_t.  If
74275         a test isn't needed unless <stdint.h> isn't working, and is
74276         unlikely to be needed for any other reason, then don't do it
74277         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74278         size_t, since we assume C89 freestanding at least.  Do not check
74279         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74280         the right thing even if the types are not defined.  Instead use:
74281         (gl_STDINT_TYPE_PROPERTIES): New macro.
74282         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74283         testing whether <sys/types.h> clashes, as Autoconf does this for
74284         us now.  All uses removed.
74285         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74286         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74287         (gl_CHECK_TYPE_SAME):
74288         Remove; no longer needed.
74289         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74290         exists, since we'll return 0 anyway in that case.
74291         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74292
74293 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74294
74295         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74296         possible collision with system files.
74297         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74298         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74299         WCHAR_MIN and WCHAR_MAX in this case.
74300         (<stddef.h>): Do not include; no longer needed.
74301         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74302         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74303         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74304         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74305         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74306         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74307         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74308         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74309         !defined(__c99))]: Include in this case too, since it's harmless
74310         now.
74311         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74312         dangerous to do so.
74313         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74314         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74315         (_STDINT_MIN, _STDINT_MAX): New macros.
74316         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74317         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74318         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74319         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74320         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74321         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74322         macros, not typedefs; this simplifies things quite a bit.
74323         Use long int for all types narrower than int64_t.
74324         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74325         Define in terms of long long int or int64_t or long int,
74326         not int64_t or int32_t.  This saves some compile-time testing.
74327         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74328         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74329         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74330         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74331         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74332         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74333         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74334         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74335         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74336         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74337         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74338         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74339         undef any previous version and define our own version, for
74340         simplicity and consistency with the new macros for types.
74341         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74342         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74343         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74344         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74345         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74346         @WINT_T_SUFFIX@ to keep things simple here.
74347         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74348         Simplify by assuming typical 8/16/32/64 host, since we're
74349         already doing that elsewhere anyway.
74350         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74351         and assume long long int is 64 bits if available.  This
74352         speeds up 'configure'.
74353
74354 2006-07-01  Eric Blake  <ebb9@byu.net>
74355
74356         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74357         Reported by Andreas Buening.
74358
74359 2006-07-01  Eric Blake  <ebb9@byu.net>
74360
74361         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74362
74363 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74364
74365         * lib/getaddrinfo.c: fixed typo
74366
74367 2006-06-29  Jim Meyering  <jim@meyering.net>
74368
74369         * modules/strftime (Maintainer): Add my name, since with the
74370         FPRINTFTIME changes strftime.c has forked from glibc.
74371
74372 2006-06-29  Eric Blake  <ebb9@byu.net>
74373
74374         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74375
74376 2006-06-29  Eric Blake  <ebb9@byu.net>
74377
74378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74379
74380 2006-06-29  Eric Blake  <ebb9@byu.net>
74381
74382         * lib/stat_.h: New file.
74383
74384 2006-06-29  Eric Blake  <ebb9@byu.net>
74385
74386         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74387         unused static function.
74388
74389 2006-06-29  Eric Blake  <ebb9@byu.net>
74390
74391         * doc/functions.texi (Function Portability): Document missing lstat
74392         on mingw.
74393
74394 2006-06-29  Eric Blake  <ebb9@byu.net>
74395
74396         * MODULES.html.sh: Add sys_stat.
74397         * modules/sys_stat: New module.
74398         * modules/mkstemp (Depends-on): Add sys_stat.
74399
74400 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74401
74402         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74403
74404 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74405
74406         * m4/c-bs-a.m4: Removed.
74407
74408 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74409
74410         * lib/strftime.c: Assume strftime() exists.
74411
74412 2006-06-29  Derek Price  <derek@ximbiot.com>
74413
74414         * modules/c-bs-a: Removed - \a is C89.
74415         * MODULES.html.sh: Remove c-bs-a.
74416
74417 2006-06-29  Bruno Haible  <bruno@clisp.org>
74418
74419         * modules/wcwidth (License): Change to LGPL.
74420
74421 2006-06-28  Simon Josefsson  <jas@extundo.com>
74422
74423         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74424         on _WIN32.
74425
74426         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74427         getnameinfo.
74428
74429 2006-06-28  Simon Josefsson  <jas@extundo.com>
74430
74431         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74432
74433 2006-06-28  Simon Josefsson  <jas@extundo.com>
74434
74435         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74436         functions there.  It will succeed on Windows XP, but on Windows
74437         2000 and (presumably) earlier, it will fail, and use the internal
74438         re-implementation.
74439         (use_win32_p): New function.
74440         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74441         Support AI_NUMERICSERV to disable getservbyname.
74442         (getnameinfo): New function, only supports
74443         NI_NUMERICHOST|NI_NUMERICSERV for now.
74444
74445         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74446         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74447         getnameinfo.
74448
74449 2006-06-28  Eric Blake  <ebb9@byu.net>
74450
74451         * modules/wcwidth: New file.
74452         * modules/mbchar (Depends-on): Add wcwidth.
74453         * modules/mbswidth (Depends-on): Add wcwidth.
74454         * MODULES.html.sh: Add wcwidth.
74455
74456 2006-06-28  Eric Blake  <ebb9@byu.net>
74457
74458         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74460
74461 2006-06-28  Eric Blake  <ebb9@byu.net>
74462
74463         * lib/xvasprintf.h: Fix comments.
74464
74465 2006-06-28  Eric Blake  <ebb9@byu.net>
74466
74467         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74468         * lib/mbswidth.c (wcwidth): Move from here...
74469         * lib/wcwidth.h: ...to this new file.
74470
74471 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74472
74473         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74474
74475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74476         it's obsolete.
74477         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74478
74479 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74480
74481         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74482         Autoconf 2.60 says this stuff was obsolete.
74483
74484 2006-06-28  Bruno Haible  <bruno@clisp.org>
74485
74486         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74487
74488 2006-06-28  Bruno Haible  <bruno@clisp.org>
74489
74490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74491         gt_TYPE_WCHAR_T.
74492
74493 2006-06-28  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74496         declaration for wcwidth.
74497         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74498
74499 2006-06-28  Bruno Haible  <bruno@clisp.org>
74500
74501         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74502         (mkdir): Define using _mkdir.
74503
74504 2006-06-28  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/getaddrinfo.h: Fix POSIX URL.
74507         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74508         _WIN32.
74509         (use_win32_p): Make static.
74510         (getaddrinfo): Reject service name if it is empty or does not consist
74511         solely of decimal digits, or if its value is > 65535.
74512         (getnameinfo): Remove useless casts.
74513
74514 2006-06-27  Simon Josefsson  <jas@extundo.com>
74515
74516         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74517         Eggert and Martin Lambers.
74518
74519 2006-06-27  Simon Josefsson  <jas@extundo.com>
74520
74521         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74522         Eggert and Martin Lambers.
74523
74524 2006-06-27  Bruno Haible  <bruno@clisp.org>
74525
74526         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74527         result to 0, not to empty.
74528         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74529
74530 2006-06-27  Bruno Haible  <bruno@clisp.org>
74531
74532         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74533
74534 2006-06-26  Simon Josefsson  <jas@extundo.com>
74535
74536         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74537         present.
74538
74539 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74542         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74544
74545 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74546
74547         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74548
74549 2006-06-26  Bruno Haible  <bruno@clisp.org>
74550
74551         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74552
74553 2006-06-26  Bruno Haible  <bruno@clisp.org>
74554
74555         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74556
74557 2006-06-26  Bruno Haible  <bruno@clisp.org>
74558
74559         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74560         SGI C compiler in pre-C99 mode.
74561         Suggested by Mark D. Baushke and Larry Jones.
74562
74563 2006-06-26  Bruno Haible  <bruno@clisp.org>
74564
74565         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74566         WCHAR_MAX.
74567         Reported by Mark D. Baushke and Larry Jones.
74568
74569 2006-06-26  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74572         in pre-C99 mode.
74573         Suggested by Mark D. Baushke and Larry Jones.
74574
74575 2006-06-23  Simon Josefsson  <jas@extundo.com>
74576             Bruno Haible  <bruno@clisp.org>
74577
74578         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74579         Emit mostlyclean-local rule.
74580         (func_emit_tests_Makefile_am): Likewise.
74581         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74582
74583 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74584
74585         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74586
74587 2006-06-23  Bruno Haible  <bruno@clisp.org>
74588
74589         * tests/test-stdint.c: Update to match ISO C 99 Technical
74590         Corrigendum 1.
74591
74592 2006-06-23  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74595
74596 2006-06-23  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/stdint_.h: Treat IRIX like OpenBSD.
74599
74600 2006-06-23  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74603         ISO C 99 Technical Corrigendum 1.
74604
74605 2006-06-22  Simon Josefsson  <jas@extundo.com>
74606
74607         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74608         MinGW.
74609
74610 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74611
74612         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74613         needed.  Some compiler complained about some of them.  Problem reported
74614         by Larry Jones in
74615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74616
74617 2006-06-21  Simon Josefsson  <jas@extundo.com>
74618
74619         * tests/test-getaddrinfo.c: New file.
74620
74621         * modules/getaddrinfo-tests: New file.
74622
74623         * MODULES.html.sh: Add inet_pton.
74624
74625         * modules/inet_pton: New file.
74626
74627 2006-06-21  Simon Josefsson  <jas@extundo.com>
74628
74629         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74630         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74631         of using the (limited) gnulib implementation on Windows XP.
74632
74633         * m4/inet_pton.m4: New file.
74634
74635 2006-06-21  Simon Josefsson  <jas@extundo.com>
74636
74637         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74638         variable.
74639
74640         * lib/socket_.h: Don't define WINVER.
74641
74642         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74643         slightly modified to work in gnulib.
74644
74645 2006-06-21  Simon Josefsson  <jas@extundo.com>
74646
74647         * doc/gnulib.texi (Windows sockets): Add.
74648
74649 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * lib/read-file.c (fread_file): Start with buffer allocation of
74652         0 bytes rather than 1 byte; this simplifies the code.
74653         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74654         code to free buffer and save/restore errno.
74655         (internal_read_file): Remove unused local.
74656
74657 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74660         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74661         Problem reported by Denis Excoffier in
74662         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74663
74664 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74665
74666         * modules/sys_socket, modules/socklen: Include sys/types since
74667         FreeBSD 4.x's sys/socket.h needs it.
74668
74669 2006-06-19  Simon Josefsson  <jas@extundo.com>
74670
74671         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74672
74673 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74676
74677 2006-06-19  Bruno Haible  <bruno@clisp.org>
74678
74679         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74680         and FULL_PATH_INTTYPES_H in angle brackets.
74681         Reported by Mark D. Baushke <mdb@gnu.org>.
74682
74683 2006-06-17  Eric Blake  <ebb9@byu.net>
74684
74685         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74686         errno.
74687
74688 2006-06-17  Bruno Haible  <bruno@clisp.org>
74689
74690         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74691         <sys/inttypes.h>.
74692
74693 2006-06-17  Bruno Haible  <bruno@clisp.org>
74694
74695         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74696         whether errno is declared. Assume <errno.h> declares errno.
74697
74698 2006-06-17  Bruno Haible  <bruno@clisp.org>
74699
74700         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74701
74702 2006-06-17  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74705         problem on Solaris 2.5.1.
74706
74707 2006-06-16  Eric Blake  <ebb9@byu.net>
74708
74709         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74710         * lib/unicodeio.c [!defined errno]: Likewise.
74711         * lib/strtol.c [!defined errno]: Likewise.
74712         * lib/strtod.c [!defined errno]: Likewise.
74713
74714 2006-06-15  Eric Blake  <ebb9@byu.net>
74715
74716         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74717
74718 2006-06-15  Eric Blake  <ebb9@byu.net>
74719
74720         * config/srclist.txt (ssize_t.m4): Lose sync.
74721
74722 2006-06-15  Bruno Haible  <bruno@clisp.org>
74723
74724         * modules/stdint (Files): Include m4/full-header-path.m4,
74725         m4/size_max.m4, m4/wchar_t.m4.
74726         (Makefile.am): Many more substitutions.
74727         * modules/stdint-tests: New file.
74728         * tests/test-stdint.c: New file.
74729
74730 2006-06-15  Bruno Haible  <bruno@clisp.org>
74731
74732         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74733         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74734         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74735         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74736         gl_CHECK_TYPE_SAME): New macros.
74737
74738 2006-06-15  Bruno Haible  <bruno@clisp.org>
74739
74740         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74741
74742 2006-06-15  Bruno Haible  <bruno@clisp.org>
74743
74744         * lib/stdint_.h: Rewritten to be fully auto-configured.
74745         Fixes bug on HP-UX/IA64.
74746
74747 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * lib/getdate.y (__attribute__): Don't define if already defined.
74750         Problem reported by Larry Jones.
74751         * lib/utimens.c (__attribute__): Likewise.
74752
74753 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74756         reported by Andreas Schwab.
74757
74758 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74759             Bruno Haible  <bruno@clisp.org>
74760
74761         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74762         check for the declaration of strnlen and a run test that exposes the
74763         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74764         rpl_strndup.
74765
74766 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74767             Bruno Haible  <bruno@clisp.org>
74768
74769         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74770
74771 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74772
74773         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74774         compile test, for Tru64 4.0D.
74775
74776 2006-05-28  Karl Berry  <karl@gnu.org>
74777
74778         * config/srclist.txt (printf-args.c): lose sync.
74779
74780 2006-05-26  Martin Lambers  <marlam@marlam.de>
74781
74782         * lib/getpass.c: Updates the test for the native W32 API, and adds
74783         missing includes, thus fixing compilation warnings.
74784
74785 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74786
74787         * lib/exclude.c (exclude_fnmatch): New function.
74788         (excluded_file_name): Call exclude_fnmatch.
74789         * lib/exclude.h (excluded_file_name): New prototype
74790
74791 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/tempname.c (small_open, large_open): New macros.
74794         (__open, __open64) [!_LIBC]: Remove.
74795         (__gen_tempname): Use small_open and large_open instead of __open
74796         and __open64.  This fixes a portability bug on HP-UX 11.11i
74797         reported by Simon Wing-Tang in
74798         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74799
74800 2006-05-24  Bruno Haible  <bruno@clisp.org>
74801
74802         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74803         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74804         Reported by Thorsten Maerz <torte@netztorte.de> via
74805         Aaron Stone <aaron@serendipity.cx>.
74806
74807 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74810         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74811         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74812         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74813         not really conditional on the cache.
74814         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74815
74816 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74819         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74820         (my_usleep): Don't mishandle maximum value.
74821
74822 2006-05-19  Jim Meyering  <jim@meyering.net>
74823
74824         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74825
74826 2006-05-17  Bruno Haible  <bruno@clisp.org>
74827
74828         Cygwin portability.
74829         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74830
74831 2006-05-17  Bruno Haible  <bruno@clisp.org>
74832
74833         * lib/stdint_.h: Fix recognition of Cygwin.
74834
74835 2006-05-15  Bruno Haible  <bruno@clisp.org>
74836
74837         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74838         on libtool patch by Ralf Wildenhues.
74839
74840 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74843         test for C99 conformance; (bool) 0.5 is an integer constant
74844         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74845         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74846
74847 2006-05-11  Simon Josefsson  <jas@extundo.com>
74848
74849         * m4/xvasprintf.m4: Fix obvious typo.
74850
74851 2006-05-11  Jim Meyering  <jim@meyering.net>
74852
74853         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74854         James Lemley.
74855
74856 2006-05-10  Simon Josefsson  <jas@extundo.com>
74857
74858         * lib/md4.c: Typo fix, update copyright years.
74859         (K1, K2): Don't use L because it turn computations into 64-bit on
74860         64-bit platforms.
74861
74862 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74865         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74866         unwanted sign propagation, e.g., on hosts with 64-bit int.
74867         There still are some problems with reeelly weird theoretical hosts
74868         (e.g., 33-bit int) but it's not worth worrying about now.
74869         * lib/sha1.c (rol): Likewise.
74870         (K1, K2, K3, K4): Remove unnecessary L suffix.
74871
74872 2006-05-10  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/des.c: Cast to avoid warnings.
74875
74876 2006-05-09  Bruno Haible  <bruno@clisp.org>
74877
74878         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74879         (Depends-on): Depend also on xsize, stdarg.
74880         (configure.ac): Add gl_XVASPRINTF.
74881
74882 2006-05-09  Bruno Haible  <bruno@clisp.org>
74883
74884         * m4/xvasprintf.m4: New file.
74885
74886 2006-05-09  Bruno Haible  <bruno@clisp.org>
74887
74888         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74889         (EOVERFLOW): Define fallback value.
74890         (xstrcat): New function.
74891         (xvasprintf): Recognize the special case of a string concatenation.
74892
74893 2006-05-08  Eric Blake  <ebb9@byu.net>
74894
74895         * gnulib-tool (func_version): Base copyright year on CVS date.
74896         (func_emit_copyright_notice): New function.
74897         (func_emit_lib_Makefile_am): Use it.
74898         (func_emit_tests_Makefile_am): Likewise.
74899         (func_import): Likewise.
74900
74901 2006-05-08  Bruno Haible  <bruno@clisp.org>
74902
74903         * modules/stdarg: New file.
74904         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74905
74906 2006-05-08  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/stdarg.m4: New file, from GNU gettext.
74909
74910 2006-05-08  Bruno Haible  <bruno@clisp.org>
74911
74912         * config/srclist.txt (build-aux/config.rpath): different from latest
74913         release.
74914
74915 2006-05-08  Bruno Haible  <bruno@clisp.org>
74916
74917         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74918
74919 2006-05-05  Jim Meyering  <jim@meyering.net>
74920
74921         * m4/warning.m4: New file, derived from bison's file by the same name.
74922
74923 2006-05-03  Bruno Haible  <bruno@clisp.org>
74924
74925         * lib/stdint_.h: Shorter URL.
74926         * lib/inttypes.h: Likewise.
74927
74928 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74931
74932 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * lib/verify.h: Document the internals better.  Most of this change
74935         was written by Bruno Haible.
74936
74937 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * doc/verify.texi: New file, partly based on a proposal by
74940         Bruno Haible.
74941
74942 2006-05-02  Bruno Haible  <bruno@clisp.org>
74943
74944         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74945         test from here...
74946         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74947
74948 2006-04-29  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74951         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74952
74953 2006-04-29  Bruno Haible  <bruno@clisp.org>
74954
74955         * gnulib-tool: Make --update option actually work.
74956
74957 2006-04-29  Bruno Haible  <bruno@clisp.org>
74958
74959         * doc/gcd.texi: New file.
74960         * doc/gnulib.texi: Include it.
74961
74962 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/getdate.y (get_date): When adding relative date, start with the
74965         initial time, not with the result of the first mktime call.
74966
74967 2006-04-25  Bruno Haible  <bruno@clisp.org>
74968
74969         * gnulib-tool (func_import): Output the include directives in three
74970         blocks, sorted separately.
74971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74972
74973 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74976         to define main with arguments, for C++.  Reported by Eric Blake.
74977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74978         Prefer 'int main ()' to 'int main (void)', for C++.
74979         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74981         for 'main', for C99 and C++.
74982
74983 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74986         Don't assume that exit status -1 is valid.
74987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74988         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74989         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74990         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74991         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74992         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74993         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74994         functions can be used without declaring them, or that you can
74995         exit with status -1.
74996         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74997
74998 2006-04-24  Karl Berry  <karl@gnu.org>
74999
75000         * config/srclist.txt (longdouble.m4): sync lost.
75001
75002 2006-04-24  Eric Blake  <ebb9@byu.net>
75003
75004         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
75005
75006 2006-04-24  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
75009         poll() implementation in AIX.
75010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75011
75012 2006-04-24  Bruno Haible  <bruno@clisp.org>
75013
75014         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
75015         assigned exactly once.
75016
75017 2006-04-23  Claudio Fontana  <claudio@gnu.org>
75018             Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
75021         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
75022         for AM_CPPFLAGS.
75023
75024 2006-04-23  Bruno Haible  <bruno@clisp.org>
75025
75026         * modules/copy-file: Depend on unistd.
75027         * modules/execute: Likewise.
75028         * modules/fatal-signal: Likewise.
75029         * modules/findprog: Likewise.
75030         * modules/mkdtemp : Likewise.
75031         * modules/pipe: Likewise.
75032         * modules/wait-process: Likewise.
75033
75034 2006-04-23  Bruno Haible  <bruno@clisp.org>
75035
75036         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
75037         condition was already detected.
75038         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75039
75040 2006-04-23  Bruno Haible  <bruno@clisp.org>
75041
75042         * lib/copy-file.c: Include <unistd.h> unconditionally.
75043         * lib/execute.c: Likewise.
75044         * lib/fatal-signal.c: Likewise.
75045         * lib/findprog.c: Likewise.
75046         * lib/mkdtemp.c: Likewise.
75047         * lib/pipe.h: Likewise.
75048         * lib/pipe.c: Likewise.
75049         * lib/wait-process.h: Likewise.
75050
75051 2006-04-23  Bruno Haible  <bruno@clisp.org>
75052
75053         * gnulib-tool (func_usage): Fix --import description. Document
75054         --update.
75055         (func_import): Create temporary file in a temporary directory, if
75056         --dry-run is specified. Silence errors from 'grep' when there are no
75057         m4 files in $m4dir.
75058         (func_create_testdir): Silence errors from 'grep' when there are no
75059         m4 files in $m4dir.
75060         Reported by Karl Berry <karl@freefriends.org>.
75061
75062 2006-04-20  Bruno Haible  <bruno@clisp.org>
75063
75064         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
75065         one argument, so that the code will be portable to Autoconf 2.60.
75066         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
75067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75068         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
75069
75070 2006-04-19  Derek Price  <derek@ximbiot.com>
75071             Eric Blake  <ebb9@byu.net>
75072
75073         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
75074         rather than "/full/path.h".  Update comment to match.  Shorten &
75075         generalize m4_translit call via AS_TR_CPP.
75076
75077 2006-04-19  Derek Price  <derek@ximbiot.com>
75078             Eric Blake  <ebb9@byu.net>
75079
75080         * lib/inttypes.h: Correct grammar in comment.
75081
75082 2006-04-18  Derek Price  <derek@ximbiot.com>
75083             Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * modules/inttypes: New file.
75086         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
75087
75088 2006-04-18  Derek Price  <derek@ximbiot.com>
75089             Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
75092         New files.
75093
75094 2006-04-18  Derek Price  <derek@ximbiot.com>
75095             Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * lib/inttypes.h: New file.
75098         * lib/strtoimax.c: Assume <inttypes.h>.
75099
75100 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
75101
75102         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
75103         isn't mounted.  Problem reported by Kir Kolyshkin.
75104
75105 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
75108         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
75109         Derek R. Price.
75110         * lib/regex.h (RE_DUP_MAX): Update comment to match current
75111         implementation.
75112
75113 2006-04-12  Eric Blake  <ebb9@byu.net>
75114
75115         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
75116         is now done automatically by the corresponding Autoconf macro.
75117
75118 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
75121         time_r.h.
75122
75123 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         Merge regex changes from libc, removing some of our
75126         POSIX-conformance changes that were rejected and redoing them in a
75127         less-intrusive way.
75128
75129         * lib/regcomp.c (re_compile_internal, init_dfa):
75130         Length arg is now size_t, not Idx.  All uses changed.
75131         (peek_token): Forward decl now says internal_function.
75132         (__re_error_msgid, __re_error_msgid_idx):
75133         Now static rather than extern with attribute_hidden.
75134         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
75135         For some reason libc prefers K&R style defns for external functions.
75136         (regerror) [!defined _LIBC]: Likewise.
75137         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
75138         (seek_collating_symbol_entry, lookup_collation_sequence_value):
75139         (build_range_exp, build_collating_symbol):
75140         Use K&R-style defn.
75141         (re_compile_fastmap): Use '\0' to memset, not 0.
75142         (utf8_sb_map): Make the calculations more obvious.
75143         (init_dfa, parse_bracket_exp, build_charclass_op):
75144         Call calloc and cast result, as glibc does.
75145         (init_word_char, fetch_token, peek_token, peek_token_bracket):
75146         (build_range_exp, build_collating_symbol):
75147         Now internal functions.
75148
75149         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
75150
75151         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
75152         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
75153         Don't depend on VMS; depend on __VMS instead, for POSIX
75154         namespace cleanness.
75155         (regoff_t): Define to ssize_t, not long int.
75156
75157         Remove the REG_ macros named below.  Instead, make the old names
75158         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
75159         __USE_GNU_REGEX.
75160         (REG_BACKSLASH_ESCAPE_IN_LISTS):
75161         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
75162         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
75163         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
75164         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
75165         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
75166         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
75167         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
75168         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
75169         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
75170         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
75171         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
75172         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
75173         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
75174         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
75175         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
75176         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
75177         (REG_NREGS):
75178         Remove.  All uses replaced by the old RE_* names.
75179         (RE_BACKSLASH_ESCAPE_IN_LISTS):
75180         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
75181         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
75182         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
75183         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
75184         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
75185         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
75186         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
75187         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
75188         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
75189         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
75190         Don't bother having these macros be independent of each others'
75191         values, since they no longer exist in the POSIX name space.
75192
75193         Rename the following member names back to their old names,
75194         unless !__USE_GNU_REGEX.  All uses changed back.
75195         (buffer): Renamed from re_buffer.
75196         (allocated): Renamed from re_allocated.
75197         (used): Renamed from re_used.
75198         (syntax): Renamed from re_syntax.
75199         (fastmap): Renamed from re_fastmap.
75200         (translate): Renamed from re_translate.
75201         (can_be_null): Renamed from re_can_be_null.
75202         (regs_allocated): Renamed from re_regs_allocated.
75203         (fastmap_accurate): Renamed from re_fastmap_accurate.
75204         (no_sub): Renamed from re_no_sub.
75205         (not_bol): Renamed from re_not_bol.
75206         (not_eol): Renamed from re_not_eol.
75207         (newline_anchor): Renamed from re_newline_anchor.
75208         (num_regs): Renamed from rm_num_regs.
75209         (start): Renamed from rm_start.
75210         (end): Renamed from rm_end.
75211
75212         (free_state): Move up a bit.
75213
75214         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
75215         #define to be empty.
75216         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
75217         when that is what is intended.
75218         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
75219         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
75220         (MAX): New macro.
75221         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75222         All uses changed back to re_malloc, etc.  It's now the caller's
75223         responsibility to check for overflow; all callers changed.
75224         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75225         (re_x2nrealloc): Remove.
75226         (free_state): Remove decl.
75227
75228         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75229         (re_set_registers, re_exec):
75230         Use K&R-style defn.
75231
75232         2006-01-31  Roland McGrath  <roland@redhat.com>
75233
75234         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75235         Reported by Mike Frysinger <vapier@gentoo.org>.
75236
75237         2006-01-15  Andreas Jaeger  <aj@suse.de>
75238
75239         [BZ #1950]
75240         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75241         build_wcs_upper_buffer change.
75242         (build_wcs_upper_buffer): Change return type.
75243
75244         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75245
75246         * lib/regex_internal.h: Include <stdint.h> if available.
75247
75248         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75249
75250         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75251
75252         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75253
75254         * lib/regcomp.c: Adjust for changed secondary hash function.
75255
75256         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75257
75258         * lib/regex.h: Pretty printing.
75259         Clean up namespace a bit.
75260
75261         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75262
75263         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75264         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75265
75266         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75267                     Ulrich Drepper  <drepper@redhat.com>
75268
75269         [BZ #1302]
75270         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75271         changed.
75272         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75273
75274         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75275
75276         [BZ #281]
75277         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75278         * lib/regcomp.c: Remove unnecessary uses of
75279         unsigned RE_TRANSLATE_TYPE.
75280         * lib/regex_internal.h: Likewise.
75281         * lib/regex_internal.c: Likewise.
75282         * lib/regexec.c: Likewise.
75283         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75284
75285         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75286
75287         * lib/regexec.c (find_recover_state): Remove unnecessary
75288         initialization.
75289         (transit_state_bkref): Make DFA a const pointer.
75290         (get_subexp): Likewise.
75291         (check_arrival): Likewise.
75292         (update_cur_sifted_state): Likewise.
75293         (re_search_internal): Likewise.
75294         (prune_impossible_nodes): Likewise.
75295         (acquire_init_state_context): Likewise.
75296         (proceed_next_node): Likewise.
75297         (set_regs): Likewise.
75298         (free_fail_stack_return): Likewise.
75299         (check_arrival_expand_ecl): Mark DFA parameter as const.
75300         (check_arrival_expand_ecl_sub): Likewise.
75301         (check_subexp_limits): Likewise.
75302         (sub_epsilon_src_nodes):  Likewise.
75303         (add_epsilon_src_nodes):  Likewise.
75304         (merge_state_array): Likewise.
75305         (update_regs): Likewise.
75306         (build_trtable): Likewise.
75307         (sift_states_backward): Mark MCTX parameter as const.
75308         (build_sifted_states): Likewise.
75309         (update_cur_sifted_state): Likewise.
75310         (sift_states_mkref): Likewise.
75311         (check_arrival_expand_ecl): Mark eclosure as const.
75312         (check_dst_limits_calc_pos_1): Likewise.
75313         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75314         pointer.
75315
75316         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75317
75318         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75319         (transit_state_sb): Likewise.
75320         (transit_state_mb): Likewise.
75321         (sift_states_iter_mb): Likewise.
75322         (check_arrival_add_next_nodes): Likewise.
75323         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75324         [_LIBC] (re_search_2_stub): Use mempcpy.
75325
75326         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75327         mbrtowc for very simple UTF-8 case.
75328
75329         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75330         a pointer-to-const.
75331         (re_acquire_state_context): Likewise.
75332         * lib/regex_internal.h: Adjust prototypes.
75333
75334         * lib/regex.c: Prevent using C++ compilers.
75335
75336         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75337         (re_acquire_state_context): Likewise.
75338
75339 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75340
75341         * modules/regex (Depends-on): Add ssize_t.
75342
75343 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75346         translation table.
75347
75348 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75351
75352 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75353             Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75356         <sys/types.h> and <inttypes.h>.
75357
75358 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75359
75360         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75361         `__error_t_defined', so argp.h will not typedef the former.
75362
75363 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75366         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75367         glibc names.  Even if glibc is changed to conform to POSIX, the
75368         traditional names will be available anyway, since regex depends on
75369         the extensions module.  Also, fix a longstanding typo in the
75370         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75371         reported by Emanuele Giaquinta.  Also, change sense of cached
75372         variable, so that the message makes sense.
75373
75374 2006-03-24  Simon Josefsson  <jas@extundo.com>
75375
75376         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75377         including some doc fixes.
75378         (base64_encode_alloc): Fix +1 bug on allocation failures.
75379
75380 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75381
75382         * lib/base64.c (base64_encode): Do not read past end of array with
75383         unsanitized input on systems with CHAR_BIT > 8.
75384
75385 2006-03-24  Eric Blake  <ebb9@byu.net>
75386
75387         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75388
75389 2006-03-22  Karl Berry  <karl@gnu.org>
75390
75391         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75392         * config/srclistvars.sh (COREUTILS): new var.
75393
75394 2006-03-17  Jim Meyering  <jim@meyering.net>
75395
75396         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75397         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75398
75399 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75402         no longer needs it.  Instead, check that regoff_t is as least
75403         as wide as ptrdiff_t.
75404
75405         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75406         so that our regex.h stays compatible with the installed regex.
75407         This is helpful for installers who configure --without-included-regex.
75408         Problem reported by Emanuele Giaquinta.
75409
75410 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75411
75412         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75413         Typedef to long int, not to off_, as POSIX will likely change
75414         in that direction.
75415
75416 2006-03-15  Eric Blake  <ebb9@byu.net>
75417
75418         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75419
75420 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75421
75422         * lib/argp-help.c (validate_uparams): Fix typo
75423         * lib/argp-parse.c (argp_default_options): Consistently begin help
75424         messages with a lowercase letter.
75425
75426 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75429         overrun buffers and shouldn't be used (much as gets shouldn't be
75430         used).
75431         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75432
75433 2006-03-08  Simon Josefsson  <jas@extundo.com>
75434
75435         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75436         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75437
75438 2006-03-08  Simon Josefsson  <jas@extundo.com>
75439
75440         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75441         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75442
75443 2006-03-08  Simon Josefsson  <jas@extundo.com>
75444
75445         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75446         signal that configure disabled the device.
75447
75448 2006-03-08  Simon Josefsson  <jas@extundo.com>
75449
75450         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75451         languages.
75452
75453 2006-03-07  Simon Josefsson  <jas@extundo.com>
75454
75455         * modules/getopt (Depends-on): Add unistd.
75456
75457         * modules/unistd: New file.
75458
75459 2006-03-07  Simon Josefsson  <jas@extundo.com>
75460
75461         * modules/gc-random: New file.
75462
75463 2006-03-07  Simon Josefsson  <jas@extundo.com>
75464
75465         * m4/unistd_h.m4: New file.
75466
75467 2006-03-07  Simon Josefsson  <jas@extundo.com>
75468
75469         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75470         test to be side-effect free by storing the result in the cache
75471         variable gl_cv_lib_readline, and moving the assignment of
75472         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75473         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75474
75475 2006-03-07  Simon Josefsson  <jas@extundo.com>
75476
75477         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75478         error on missing devices (the functions will return an error).
75479
75480         * m4/gc.m4: Move random stuff to gc-random.m4
75481
75482 2006-03-07  Simon Josefsson  <jas@extundo.com>
75483
75484         * lib/unistd_.h: New file.
75485
75486 2006-03-07  Simon Josefsson  <jas@extundo.com>
75487
75488         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75489
75490 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75493         Problem reported by Juan Manuel Guerrero.
75494
75495 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75498         the unistd module.
75499         * lib/getlogin_r.c: Likewise.
75500         * lib/getlogin_r.h: Likewise.
75501         * lib/glob.c: Likewise.
75502         * lib/pagealign_alloc.c: Likewise.
75503         * lib/unistd_.h: Remove; no longer needed.
75504
75505 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75508         Add unistd.
75509         * modules/c-stack (Depends-on): Add unistd.
75510         * modules/getlogin_r: Likewise.
75511         * modules/glob: Likewise.
75512         * modules/pagealign_alloc: Likewise.
75513         * modules/unistd (Files): Remove lib/unistd_.h.
75514         (EXTRA_DIST): Remove.
75515         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75516         need unistd_.h.
75517         (MOSTLYCLEANFILES): Remove unistd.h-t.
75518
75519 2006-03-03  Simon Josefsson  <jas@extundo.com>
75520
75521         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75522
75523 2006-03-03  Simon Josefsson  <jas@extundo.com>
75524
75525         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75526         libidn and bison.
75527
75528 2006-03-03  Simon Josefsson  <jas@extundo.com>
75529
75530         * build-aux/maint.mk: Add indent target.
75531
75532 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75533
75534         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75535         our replacement poll.h in any case, to avoid a differing
75536         declaration from a system header.  Seen on AIX.
75537
75538 2006-03-01  Simon Josefsson  <jas@extundo.com>
75539
75540         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75541         <kasal@ucw.cz>.
75542
75543 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75544
75545         * modules/gettime (Depends-on): Add extensions module.
75546         * modules/nanosleep (Depends-on): Likewise.
75547         * modules/settime (Depends-on): Likewise.
75548
75549 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75550
75551         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75552         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75553         pedantically.
75554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75555         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75556
75557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75558         not "==".  Reported by Ralf Wildenhues.
75559
75560 2006-03-01  Karl Berry  <karl@gnu.org>
75561
75562         * doc/Copyright/request-*: new files, synced from gnuorg.
75563
75564 2006-03-01  Karl Berry  <karl@gnu.org>
75565
75566         * config/srclist.txt (Copyright/*): new entries.
75567
75568 2006-02-28  Simon Josefsson  <jas@extundo.com>
75569
75570         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75571
75572 2006-02-27  Simon Josefsson  <jas@extundo.com>
75573
75574         * lib/base64.h: Indent #define's.  From Jim Meyering
75575         <jim@meyering.net>.
75576
75577 2006-02-27  Jim Meyering  <jim@meyering.net>
75578
75579         Revert the change of 2006-02-24, so these files can continue
75580         to be sync'd from gettext.
75581         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75582         of `config.h'.
75583
75584 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * modules/intprops: New file.
75587         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75588         Add intprops.
75589         * modules/getloadavg (Files): Remove lib/intprops.h.
75590         (Depends-on): Add intprops.
75591         * modules/human: Likewise.
75592         * modules/inttostr: Likewise.
75593         * modules/openat: Likewise.
75594         * modules/sig2str: Likewise.
75595         * modules/userspec: Likewise.
75596         * modules/utimecmp: Likewise.
75597         * modules/xnanosleep: Likewise.
75598         * modules/xstrtol: Likewise.
75599
75600 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75601
75602         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75603         * modules/lock-tests (TESTS): Use $(EXEEXT).
75604         * modules/tls-tests: Likewise.
75605         * modules/argp-tests: Likewise.
75606         (check_PROGRAMS): New var, replacing...
75607         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75608
75609 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75610
75611         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75612         `config.h'.
75613
75614 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75617
75618 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75619
75620         Sync from coreutils.
75621         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75622         gl_CHDIR_SAFER.
75623
75624 2006-02-22  Jim Meyering  <jim@meyering.net>
75625
75626         Sync from coreutils.
75627         * m4/chdir-safer.m4: New file.
75628
75629 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75632         AT_FDCWD exceeds INT_MAX.
75633         * lib/openat.h (AT_FDCWD): Likewise.
75634
75635 2006-02-17  Eric Blake  <address@hidden>
75636
75637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75638
75639 2006-02-16  Simon Josefsson  <jas@extundo.com>
75640
75641         * modules/getaddrinfo (Depends-on): Add sys_socket.
75642
75643 2006-02-15  Simon Josefsson  <jas@extundo.com>
75644
75645         * build-aux/maint.mk: Add dsyntax-check rule.
75646
75647 2006-02-15  Eric Blake  <ebb9@byu.net>
75648
75649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75650         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75651         'present but cannot compile' warnings on cygwin.
75652         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75653         use ws2tcpip.h if sys/socket.h works.
75654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75655         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75656
75657 2006-02-14  Simon Josefsson  <jas@extundo.com>
75658
75659         * modules/maintainer-makefile (Files): Rename.
75660
75661         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75662         and (the local) Makefile.cfg to maint-cfg.mk.
75663
75664         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75665         to the latter.
75666
75667         * modules/maintainer-makefile: New module.
75668
75669         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75670         severaly stripped to make it possible to build it up from scratch
75671         with reliable tests.
75672
75673         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75674         fixes to permit overriding the default actions when configure and
75675         makefile are not available.
75676
75677 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         Sync from coreutils.
75680         * modules/lstat (Depends-on): Don't depend on xalloc.
75681         (License): Change from GPL to LGPL, since this is now simply a
75682         replacement for a libc function.
75683
75684 2006-02-14  Jim Meyering  <jim@meyering.net>
75685
75686         Sync from coreutils.
75687
75688         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75689         failure on deficient systems, and simplify gnulib lgpl dependencies.
75690         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75691         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75692
75693         * lib/xalloc-die.c: Remove unused definition of N_.
75694
75695 2006-02-14  Jim Meyering  <jim@meyering.net>
75696
75697         Sync from coreutils.
75698         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75699         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75700         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75701         double-quote uses of that variable, to accommodate the rare case in
75702         which getmntent is available in none of the libraries checked.  This
75703         happens at least on FreeBSD 5.0.
75704
75705 2006-02-13  Simon Josefsson  <jas@extundo.com>
75706
75707         * gnulib-tool (Usage): Fix --import, from
75708         karl@freefriends.org (Karl Berry).
75709
75710 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75711
75712         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75713
75714 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75715
75716         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75717         "autoupdate" on 2005-12-12.
75718
75719 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75720
75721         * modules/closeout (Depends-on): Remove atexit.
75722
75723 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75726         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75727
75728 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75729
75730         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75731         __EXTENSIONS__ if this causes compilation to fail.  Problem
75732         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75733         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75734
75735 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75736
75737         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75738         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75740         All uses changed.
75741
75742 2006-01-26  Simon Josefsson  <jas@extundo.com>
75743
75744         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75745         prototype is visible on mingw32.
75746
75747         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75748         for mingw32.
75749
75750         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75751         mingw32).
75752
75753 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75756         attempt to open for write; this always fails, at least on POSIX
75757         hosts.  This reinstates the 2006-01-09 change, which was
75758         inadvertently removed.
75759
75760 2006-01-26  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75763         Reported by Paul Eggert.
75764
75765 2006-01-26  Bruno Haible  <bruno@clisp.org>
75766             Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/stdbool_.h (_Bool)
75769         [(! (defined __cplusplus || defined __BEOS__)
75770           && !defined __GNUC__
75771           && !(defined __HP_cc || defined __xlc__
75772                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75773                || defined __sgi))]:
75774         #define to signed char in these cases too; this simplifies
75775         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75776         etc., separately) and makes it more conservative.
75777
75778 2006-01-25  Simon Josefsson  <jas@extundo.com>
75779
75780         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75781         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75782         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75783
75784 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75785
75786         * lib/argp-namefrob.h: Bugfix. Remove stray #
75787
75788 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75791         so that we test the test.
75792         Check for yet another HP-UX cc bug involving *bool |= bool.
75793
75794 2006-01-25  Karl Berry  <karl@gnu.org>
75795
75796         * config/srclist.txt (vasnprintf.c): sync lost.
75797
75798 2006-01-25  Jim Meyering  <jim@meyering.net>
75799
75800         Sync from the stable (b5) branch of coreutils:
75801
75802         * lib/fts.c (fts_children): Don't let close() clobber errno from
75803         failed fchdir().
75804
75805         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75806         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75807         a dangling symlink.  That can also happen at least for ELOOP.
75808         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75809         FYI, this bug predates the inclusion of fts.c in coreutils.
75810
75811         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75812         in their own block, so pre-c99 compilers don't object.
75813
75814         Avoid the double-free (first in fts_read, second in fts_close) that
75815         would occur when an `active' directory is made inaccessible (e.g.,
75816         via chmod a-x) during a traversal.
75817         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75818         before returning.  Reproduce this failure by
75819         mkdir -p a/b; cd a; chmod a-x . b
75820         Reported by Stavros Passas.
75821
75822 2006-01-25  Jim Meyering  <jim@meyering.net>
75823
75824         * lib/fileblocks.c: Remove more useless parentheses.
75825         * lib/readutmp.h: Likewise.
75826
75827 2006-01-25  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75830         warnings.
75831         Reported by Paul Eggert.
75832
75833 2006-01-25  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75836         rid of a trap command. For Solaris sh.
75837         Reported by Mark D. Baushke <mdb@gnu.org>.
75838
75839 2006-01-24  Simon Josefsson  <jas@extundo.com>
75840
75841         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75842         Bruno.
75843
75844 2006-01-24  Karl Berry  <karl@gnu.org>
75845
75846         * config/srclist.txt (argp-namefrob.h): sync lost.
75847
75848 2006-01-24  Jim Meyering  <jim@meyering.net>
75849
75850         * modules/openat (Files): Add lib/intprops.h.
75851         From Mark D. Baushke.
75852
75853 2006-01-24  Jim Meyering  <jim@meyering.net>
75854
75855         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75856         Reported by Mark D. Baushke.
75857
75858 2006-01-24  Jim Meyering  <jim@meyering.net>
75859
75860         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75861
75862 2006-01-24  Bruno Haible  <bruno@clisp.org>
75863
75864         * modules/strnlen (Maintainer): Change from glibc to all.
75865
75866 2006-01-24  Bruno Haible  <bruno@clisp.org>
75867
75868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75869         Patch by Paul Eggert.
75870
75871 2006-01-24  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75874         already has it.
75875         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75876         2005-11-26.
75877
75878         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75879         'signed char' to avoid problems with the built-in _Bool type.
75880         Reported by Paul Eggert on 2005-11-26.
75881
75882 2006-01-24  Bruno Haible  <bruno@clisp.org>
75883
75884         * gnulib-tool (func_import): Avoid constructing complicated sed
75885         expressions inside backquote.
75886         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75887
75888 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75889
75890         These changes imported from libc.
75891         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75892         test and two separate function calls.
75893         * lib/strndup.c (__strndup): Add libc_hidden_def.
75894
75895 2006-01-23  Simon Josefsson  <jas@extundo.com>
75896
75897         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75898         Remove the test_*_SOURCES variable: automake infers it by default.
75899         * modules/tls-tests: Likewise.
75900
75901 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         Work around porting bugs reported by Dieter in
75904         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75905         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75906         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75907         Include "getopt.h" first, to check interface.
75908         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75909         !HAVE_DECL_GETENV.
75910         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75911         (__strndup): Revert to K&R-style function dfns, the glibc style.
75912         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75913         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75914         Include strnlen.h first, to get prototype properly.
75915         (strnlen): Renamed from __strnlen.
75916         Remove weak alias.
75917
75918 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75921
75922 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * config/srclist.txt: Adjust to reflect glibc reorganization.
75925         This affects only comments.
75926
75927 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75928
75929          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75930          Reported by Bruce Korb <bkorb@gnu.org>.
75931
75932 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75935         to pacify gcc -Wswitch-default.
75936
75937 2006-01-22  Bruno Haible  <bruno@clisp.org>
75938
75939         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75940         temporary buffer for sprintf, take into account the precision also
75941         for 'd', 'i', 'u', 'o', 'x', 'X'.
75942
75943 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75944
75945         * modules/argp-tests: New module
75946         * tests/test-argp.c: New file
75947         * tests/test-argp-2.sh: New file
75948
75949 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75950
75951         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75952         (__argp_base_name): Removed
75953         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75954         typo.
75955         (__argp_base_name): Provide macro definition or extern declaration
75956         depending on the configuration
75957
75958 2006-01-20  Simon Josefsson  <jas@extundo.com>
75959
75960         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75961
75962 2006-01-20  Simon Josefsson  <jas@extundo.com>
75963
75964         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75965
75966 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75969         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75970         Suggested by Bruno Haible.
75971
75972 2006-01-20  Karl Berry  <karl@gnu.org>
75973
75974         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75975         until changes propagate, I guess.
75976
75977 2006-01-19  Simon Josefsson  <jas@extundo.com>
75978
75979         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75980
75981 2006-01-19  Simon Josefsson  <jas@extundo.com>
75982
75983         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75984
75985 2006-01-19  Simon Josefsson  <jas@extundo.com>
75986
75987         * gnulib-tool: Set check_PROGRAMS.
75988
75989         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75990         modules/des-tests, modules/gc-arcfour-tests,
75991         modules/gc-arctwo-tests, modules/gc-des-tests,
75992         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75993         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75994         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75995         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75996         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75997         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75998         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75999         test_*_SOURCES.
76000
76001 2006-01-18  Simon Josefsson  <jas@extundo.com>
76002
76003         * modules/socklen (Depends-on): Depend on sys_socket.
76004
76005 2006-01-18  Simon Josefsson  <jas@extundo.com>
76006
76007         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76008         modules/des-tests, modules/gc-arcfour-tests,
76009         modules/gc-arctwo-tests, modules/gc-des-tests,
76010         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76011         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76012         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76013         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76014         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76015         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
76016         $(EXEEXT) to automake TESTS variable, for mingw32.
76017
76018 2006-01-17  Simon Josefsson  <jas@extundo.com>
76019
76020         * modules/socklen (Include): Need sys/socket.h.
76021
76022 2006-01-17  Bruno Haible  <bruno@clisp.org>
76023
76024         * modules/ssize_t (Include): Add <sys/types.h>.
76025
76026 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
76027
76028         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
76029         it's not portable and it doesn't work with cross-compiles.
76030         Problem reported by Bruno Haible.  Fix missing-$ typo in
76031         'test "gl_cv_ignore_unused_libraries" ...' that prevented
76032         -zignore from being used with Sun's C compiler.
76033
76034 2006-01-12  Simon Josefsson  <jas@extundo.com>
76035
76036         * lib/base64.c: Fix warning, reported by Bruno Haible
76037         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
76038
76039 2006-01-12  Bruno Haible  <bruno@clisp.org>
76040
76041         * modules/ldd: New file.
76042         * build-aux/ldd.sh.in: New file.
76043         * MODULES.html.sh (Support for building libraries and executables): Add
76044         ldd.
76045
76046 2006-01-12  Bruno Haible  <bruno@clisp.org>
76047
76048         * m4/ldd.m4: New file.
76049
76050 2006-01-12  Bruno Haible  <bruno@clisp.org>
76051
76052         * gnulib-tool (func_import, func_create_testdir): Don't go into an
76053         endless loop while replacing $auxdir with build-aux.
76054
76055 2006-01-11  Simon Josefsson  <jas@extundo.com>
76056
76057         * lib/stdint_.h (SIZE_MAX): Add missing (.
76058
76059 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         Sync from coreutils.
76062         * lib/md5.c: Fix commentary typos.
76063         (alignof, UNALIGNED_P): No need for a GCC-specific version.
76064         * lib/md5.h (__attribute__): Remove; unused.
76065         * lib/sha1.c: Fix commentary to match md5 better.
76066         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
76067         so that we don't need to worry about alignment.  All uses changed.
76068         This merges the 2005-10-28 md5 change into sha1.
76069
76070 2006-01-11  Jim Meyering  <jim@meyering.net>
76071
76072         Sync from coreutils.
76073         * lib/md5.c (OP): Fix spacing.
76074
76075 2006-01-11  Bruno Haible  <bruno@clisp.org>
76076
76077         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76078         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
76079         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
76080
76081 2006-01-11  Bruno Haible  <bruno@clisp.org>
76082
76083         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76084         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
76085         the "early" section as well.
76086
76087 2006-01-11  Bruno Haible  <bruno@clisp.org>
76088
76089         Avoid "ar: no archive members specified" error on MacOS X.
76090         * gnulib-tool (func_modules_add_dummy): New function.
76091         (func_import, func_create_testdir): Invoke it.
76092
76093 2006-01-11  Bruno Haible  <bruno@clisp.org>
76094
76095         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
76096         with $auxdir in AC_CONFIG_FILES statements.
76097
76098 2006-01-11  Bruno Haible  <bruno@clisp.org>
76099
76100         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76101         Initialize also noinst_HEADERS to empty.
76102
76103 2006-01-11  Bruno Haible  <bruno@clisp.org>
76104
76105         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
76106         variables.
76107         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
76108         autoreconf.
76109
76110 2006-01-11  Bruno Haible  <bruno@clisp.org>
76111
76112         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
76113         overridable by the user.
76114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76115
76116 2006-01-10  Simon Josefsson  <jas@extundo.com>
76117
76118         * modules/sys_socket: New file.
76119
76120 2006-01-10  Simon Josefsson  <jas@extundo.com>
76121
76122         * m4/sys_socket_h.m4: New file.
76123
76124 2006-01-10  Simon Josefsson  <jas@extundo.com>
76125
76126         * lib/socket_.h: New file.
76127
76128 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * modules/readutmp (Maintainer): Add myself.
76131
76132 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
76135         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
76136         People who are still concerned with buggy memcmp implementations
76137         can invoke gl_FUNC_MEMCMP themselves.
76138
76139 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * lib/regex_internal.h (BITSET_WORD_BITS):
76142         Work around a bug in 64-bit PGC (before version 6.1-2), where the
76143         preprocessor mishandles large unsigned values as if they were signed.
76144         Problem reported by Claudio Fontana in
76145         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
76146
76147 2006-01-10  Jim Meyering  <jim@meyering.net>
76148
76149         Avoid the double-free (first in fts_read, second in fts_close) that
76150         would occur when an `active' directory is made inaccessible (e.g.,
76151         via chmod a-x) during a traversal.
76152         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76153         before returning.  Reproduce this failure by
76154         mkdir -p a/b; cd a; chmod a-x . b
76155         Reported by Stavros Passas.
76156
76157         Sync from coreutils.
76158         * lib/sha1.c: Tweak grammar in a comment.
76159
76160 2006-01-10  Jim Meyering  <jim@meyering.net>
76161
76162         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
76163         Patch by Joerg Sonnenberger.
76164
76165 2006-01-10  Bruno Haible  <bruno@clisp.org>
76166
76167         * modules/readutmp: Depend on module free.
76168         * modules/strtok_r: Depend on module restrict.
76169
76170 2006-01-10  Bruno Haible  <bruno@clisp.org>
76171
76172         * modules/gettext (configure.ac): Add an invocation of
76173         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
76174
76175 2006-01-10  Bruno Haible  <bruno@clisp.org>
76176
76177         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
76178         Reported by Werner Lemberg <wl@gnu.org>.
76179
76180 2006-01-10  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/localcharset.c: Update from GNU gettext.
76183
76184 2006-01-10  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/argp.h (__const): Remove macro. Use const instead.
76187         * lib/argp-fmtstream.h (__const): Likewise.
76188         * lib/glob_.h (__const): Remove macro.
76189         * lib/glob-libc.h: Use const instead of __const.
76190
76191 2006-01-10  Bruno Haible  <bruno@clisp.org>
76192
76193         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
76194         variable.
76195         Needed to avoid an automake error regarding the 'gettext' module.
76196
76197 2006-01-09  Simon Josefsson  <jas@extundo.com>
76198
76199         * modules/inet_ntop (Depends-on): Add restrict.
76200
76201 2006-01-09  Simon Josefsson  <jas@extundo.com>
76202
76203         * modules/gc-rijndael-tests (License): Put under LGPL.
76204
76205         * modules/gc-des-tests (License): Likewise.
76206
76207         * modules/gc-arcfour-tests (License): Likewise.
76208
76209         * modules/gc-arctwo-tests (License): Likewise.
76210
76211         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
76212
76213         * modules/gc-hmac-sha1-tests (Files): Likewise.
76214
76215         * modules/gc-hmac-md5-tests (License): Likewise.
76216
76217         * modules/gc-sha1-tests (License): Likewise.
76218
76219         * modules/gc-md5-tests (License): Likewise.
76220
76221         * modules/gc-md4-tests (License): Likewise.
76222
76223         * modules/gc-md2-tests (License): Likewise.
76224
76225         * modules/gc-tests (License): Likewise.
76226
76227         * modules/des-tests (License): Likewise.
76228
76229         * modules/md4-tests (License): Likewise.
76230
76231         * modules/md2-tests (License): Likewise.
76232
76233 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         Sync from coreutils:
76236
76237         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76238         * modules/lib-ignore: New file.
76239         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76240         chdir-safer.m4, lchmod.m4.
76241         * modules/openat: Add mkdirat.c, openat-priv.h.
76242
76243 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         Sync from coreutils.
76246         * m4/lib-ignore.m4: New file.
76247         * m4/lchmod.m4: New file.
76248
76249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         Sync from coreutils.
76252         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76253         for write access: POSIX says that must fail.
76254         * lib/fts.c (diropen): Likewise.
76255         * lib/save-cwd.c (save_cwd): Likewise.
76256         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76257         well, for minor improvements on hosts that lack O_DIRECTORY.
76258         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76259         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76260         Fall back on chown if open failed with EACCES.
76261
76262         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76263         Report an error at compile-time if only a 1-second nominal clock
76264         resolution is found.
76265
76266         * lib/lchmod.h: New file.
76267         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76268         (make_dir_parents): Use lchown rather than chown, and
76269         lchmod rather than chmod.
76270
76271         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76272         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76273         "proc" reported by n0dalus.
76274
76275         * lib/mountlist.c: Include <limits.h>.
76276         (dev_from_mount_options)
76277         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76278         New function.  It no longer assumes "dev=" has the System V meaning
76279         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76280         (read_file_system_list)
76281         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76282         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76283         dev= in that case.
76284
76285         * lib/posixtm.h (PDS_PRE_2000): New macro.
76286         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76287         allow_century.  All usages changed.  Reject dates outside the range
76288         1969-1999 if PDS_PRE_2000 is used.
76289
76290 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         Sync from coreutils.
76293         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76294         (Time of day items): Mention the possibility of leap seconds.
76295         Problem reported by Dr. David Alan Gilbert.
76296
76297 2006-01-09  Jim Meyering  <jim@meyering.net>
76298
76299         Sync from coreutils.
76300
76301         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76302
76303         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76304
76305         * lib/modechange.c (mode_compile): Reject an invalid mode string
76306         that starts with an octal digit.  From Andreas Gruenbacher.
76307
76308         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76309         and dup to open_safer and dup_safer, respectively.
76310         (openat_permissive): Fix typo in comment.
76311
76312         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76313         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76314         (_): Remove; no longer needed.
76315         (openat): Renamed from rpl_openat; no need for rpl_openat
76316         since openat.h renames openat for us.
76317         Replace most of the body with a call to openat_permissive,
76318         to avoid duplicate code.
76319         Port to (probably hypothetical) environments were mode_t is
76320         wider than int.
76321         (openat_permissive): Require mode arg, so that we can check
76322         types better.  Put it just after flags.  Change cwd failure
76323         indicator from pointer-to-bool to pointer-to-errno-value.
76324         All callers changed.
76325         Invoke openat_save_fail and/or openat_restore_fail if
76326         cwd_errno is null, so that openat can call us.
76327         (openat_permissive, fdopendir, fstatat, unlinkat):
76328         Simplify errno handling to avoid some duplicate code,
76329         as it's OK to set errno on success.
76330         * lib/openat.h: Revamp code so that function macros depend on
76331         __OPENAT_PREFIX only, not also on AT_FDCWD.
76332         (openat_ro): Remove.  Caller changed to use openat_permissive.
76333         (openat_permissive): Now a macro, if not a function.
76334         (openat_restore_fail, openat_save_fail): Now always functions,
76335         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76336
76337         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76338         and openat.c.
76339         * lib/mkdirat.c: Include openat-priv.h.
76340         Remove definitions of macros defined therein.
76341         * lib/openat.c: Likewise.
76342
76343         * lib/mkdirat.c (mkdirat): New file and function.
76344         * lib/openat.h (mkdirat): Declare.
76345
76346         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76347
76348         * lib/openat.h (openat_permissive): Declare.
76349         (openat_ro): Define.
76350
76351         * lib/openat.c (EXPECTED_ERRNO): New macro.
76352         (openat_permissive): New function -- used in remove.c rewrite.
76353         (all functions): Set errno just before returning, only if there
76354         was an actual failure.
76355         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76356
76357         Emulate openat-family functions using Linux's procfs, if possible.
76358         Idea and some code based on Ulrich Drepper's glibc changes.
76359
76360         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76361         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76362         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76363         before falling back on save_cwd and restore_cwd.
76364         (fdopendir, fstatat, unlinkat): Likewise.
76365
76366         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76367         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76368
76369         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76370         as second argument to va_arg.  Otherwise, some versions of gcc
76371         warn that `if this code is reached, the program will abort'.
76372
76373 2006-01-09  Jim Meyering  <jim@meyering.net>
76374
76375         Sync from coreutils.
76376         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76377         Require openat-priv.h.
76378
76379 2006-01-09  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/strnlen (Include): Use strnlen.h.
76382
76383 2006-01-09  Bruno Haible  <bruno@clisp.org>
76384
76385         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76386
76387 2006-01-09  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/sysexit_.h (EX_OK): New macro.
76390         Suggested by Martin Lambers <marlam@marlam.de>.
76391
76392 2006-01-09  Bruno Haible  <bruno@clisp.org>
76393
76394         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76395         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76396
76397 2006-01-09  Bruno Haible  <bruno@clisp.org>
76398
76399         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76400         numbers.
76401
76402 2006-01-09  Bruno Haible  <bruno@clisp.org>
76403
76404         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76405         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76406         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76407         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76408
76409 2006-01-09  Bruno Haible  <bruno@clisp.org>
76410
76411         * build-aux/javacomp.sh.in: New file, moved from lib/.
76412         * modules/javacomp-script (Files): Update.
76413         (configure.ac): Add AC_CONFIG_FILES invocation.
76414         (EXTRA_DIST): Remove variable.
76415
76416         * build-aux/javaexec.sh.in: New file, moved from lib/.
76417         * modules/javaexec (Files): Update.
76418         (configure.ac): Add AC_CONFIG_FILES invocation.
76419         (EXTRA_DIST): Remove javaexec.sh.in.
76420
76421         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76422         * modules/csharpcomp-script (Files): Update.
76423         (configure.ac): Add AC_CONFIG_FILES invocation.
76424         (EXTRA_DIST): Remove variable.
76425
76426         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76427         * modules/csharpexec (Files): Update.
76428         (configure.ac): Add AC_CONFIG_FILES invocation.
76429         (EXTRA_DIST): Remove csharpexec.sh.in.
76430
76431 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76432
76433         Sync from coreutils.
76434
76435         Add POSIX ACL support
76436         * lib/acl.h (copy_acl, set_acl): Add declarations.
76437         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76438         systems other than Linux.
76439         (chmod_or_fchmod): New function: use fchmod when possible,
76440         and chmod otherwise.
76441         (file_has_acl): Add a POSIX ACL implementation, with a
76442         Linux-specific subcase.
76443         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76444         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76445         acls are unsupported.
76446         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76447         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76448         are unsupported.
76449
76450 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76451
76452         Sync from coreutils.
76453         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76454
76455 2006-01-07  Bruno Haible  <bruno@clisp.org>
76456
76457         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76458         gl_EARLY.
76459
76460 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76463         Problem reported for Mingw by Mark Junker.
76464
76465 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * README: Gnulib normally doesn't generate a tarball.
76468
76469 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76472         long int, not int, for nanosecond counts, so that people who are
76473         used to POSIX struct timespec won't be surprised.  Reported by Jim
76474         Meyering.
76475
76476 2005-12-28  Bruno Haible  <bruno@clisp.org>
76477
76478         * build-aux/config.rpath: Update from GNU gettext.
76479
76480 2005-12-16  Jim Meyering  <jim@meyering.net>
76481
76482         * modules/fprintftime: New module.
76483         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76484
76485 2005-12-16  Jim Meyering  <jim@meyering.net>
76486
76487         * m4/fprintftime.m4: New file.
76488
76489 2005-12-16  Jim Meyering  <jim@meyering.net>
76490
76491         * lib/fprintftime.c, lib/fprintftime.h: New files.
76492
76493 2005-12-15  Simon Josefsson  <jas@extundo.com>
76494
76495         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76496         new m4/socklen.m4.
76497
76498 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76499
76500         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76501         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76502
76503 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76504
76505         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76506         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76507         struct uparams is valid. Fall back to the default values if it is
76508         not.
76509
76510 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76511
76512         * modules/argp (Files): Add argp-pin.c
76513         (Depends-on): dirname
76514         (lib_SOURCES): Add argp-pin.c
76515
76516 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76517
76518         * m4/argp.m4:  Check if program_invocation_name and
76519         program_invocation_short_name are declared and define appropriate
76520         macros if they are not.
76521
76522 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76523
76524         * lib/argp-help.c (__argp_base_name): New function
76525         (__argp_short_program_name): Rewrite using __argp_base_name
76526         * lib/argp-namefrob.h: Define program_invocation_name and
76527         program_invocation_short_name if requested
76528         (__argp_base_name): Add prototype
76529         * lib/argp-parse.c (argp_def): Use gettext wrappers
76530         (argp_default_parser): Use __argp_base_name
76531         * lib/argp-pin.c: New file. Defines program_invocation_name and
76532         program_invocation_short_name on systems that lack them.
76533
76534 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76535
76536         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76537         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76538         porting problem reported by Georg Schwarz in
76539         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76540
76541 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76544         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76545         porting problem reported by Georg Schwarz in
76546         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76547
76548 2005-12-05  Bruno Haible  <bruno@clisp.org>
76549
76550         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76551         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76552         Reported by Mark Junker <mjscod@gmx.de>.
76553
76554 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76557         Use implementation from Albert Chin, with some
76558         comments/corrections by Stepan Kasal and myself.
76559
76560 2005-12-02  Bruno Haible  <bruno@clisp.org>
76561
76562         * gnulib-tool (func_import): Accept GPLed build tool modules when
76563         --lgpl is given.
76564         * modules/csharpcomp-script: New file.
76565         * modules/csharpcomp: Depend on it.
76566         * modules/javacomp-script: New file.
76567         * modules/javacomp: Depend on it.
76568         Suggested by Simon Josefsson.
76569
76570 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76573         statement, to work around an HP-UX 10.20 compiler bug reported by
76574         Peter O'Gorman.
76575
76576 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76577
76578         * modules/savedir (Depends-on): Add openat.
76579
76580 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76583         (uintmax_t) [defined uintmax_t]: Do not declare.
76584         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76585         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76586         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76587         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76588         sake of portability to weird hosts that C allows (though we don't
76589         know of any practical examples).
76590
76591         * lib/savedir.h (fdsavedir): New decl.
76592         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76593         contains most of the former guts of savedir.
76594         (savedir): Use savedirstream.
76595         Include "openat.h".
76596
76597 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * modules/obstack (Files): Add m4/ulonglong.m4.
76600         Problem reported by Davide Angelocola.
76601
76602 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76605         coreutils no longer futzes with rounding modes.
76606
76607 2005-11-14  Jim Meyering  <jim@meyering.net>
76608
76609         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76610         replacement of mkstemp.
76611
76612 2005-11-10  Simon Josefsson  <jas@extundo.com>
76613
76614         * lib/readline.c: Remove EOL.
76615
76616 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         * modules/gethrxtime (Depends-on): Add gettime.
76619
76620 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76623         or gettimeofday; no longer needed.
76624
76625 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76628         time business.
76629         (gethrxtime) [! (HAVE_NANOUPTIME
76630         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76631         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76632         our own approximation.
76633
76634 2005-11-08  Eric Blake  <ebb9@byu.net>
76635
76636         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76637
76638 2005-11-08  Eric Blake  <ebb9@byu.net>
76639
76640         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76641
76642 2005-11-04  Bruno Haible  <bruno@clisp.org>
76643
76644         * gnulib-tool: Implement --update mode.
76645
76646 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         Fix porting problem reported by Theodoros V. Kalamatianos.
76649         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76650         Don't assume that futimes failing means we must fail.
76651
76652 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76653
76654         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76655         variables to suggest the intended function of the PATH_MAX check.
76656
76657 2005-10-30  Kean Johnston  <jkj@sco.com>
76658
76659         Trivial changes to support SCO systems.
76660         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76661         as PATH_MAX.
76662         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76663         where __ptr is null when no I/O is pending.
76664
76665 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76668         leave errno alone.  Problem reported by Dmitry V. Levin.
76669
76670 2005-10-28  Simon Josefsson  <jas@extundo.com>
76671
76672         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76673         Test more.
76674
76675         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76676
76677         * modules/md2, modules/md2-tests: New files.
76678
76679 2005-10-28  Simon Josefsson  <jas@extundo.com>
76680
76681         * m4/inet_ntop.m4: More tests.
76682
76683         * m4/gc-md2.m4, md2.m4: New file.
76684
76685 2005-10-28  Simon Josefsson  <jas@extundo.com>
76686
76687         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76688         "restrict" keywords, as per POSIX.  Protect the function
76689         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76690         Don't use K&R prototypes.  Check the sprintf return values.
76691         Re-define EAFNOSUPPORT if not present.  Indent.
76692
76693         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76694         suggested by Bruno Haible <bruno@clisp.org>.
76695
76696         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76697
76698         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76699
76700         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76701         libgcrypt).
76702
76703         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76704
76705         * lib/md2.h, lib/md2.c: New files.
76706
76707 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76710         errno alone.  Problem reported by Frederic Jolliton.
76711
76712 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * modules/verify (License): Change from GPL to LGPL.  This is a
76715         tiny module and there are apparently near-equivalents that are
76716         under the BSD license.
76717
76718 2005-10-24  Simon Josefsson  <jas@extundo.com>
76719
76720         * modules/sha1: Relicense to LGPL.
76721
76722 2005-10-24  Simon Josefsson  <jas@extundo.com>
76723
76724         * lib/md4.h: Shrink buffer size, now that we changed the type.
76725
76726 2005-10-23  Simon Josefsson  <jas@extundo.com>
76727
76728         * gnulib-tool (func_import): Fix --tests-base.
76729
76730 2005-10-22  Simon Josefsson  <jas@extundo.com>
76731
76732         * modules/arcfour (Depends-on): Need stdint.
76733
76734 2005-10-22  Simon Josefsson  <jas@extundo.com>
76735
76736         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76737         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76738
76739 2005-10-22  Simon Josefsson  <jas@extundo.com>
76740
76741         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76742         suggested by Bruno Haible <bruno@clisp.org>.
76743
76744 2005-10-22  Simon Josefsson  <jas@extundo.com>
76745
76746         * lib/crc.h: Include stddef.h, for size_t.
76747
76748 2005-10-22  Simon Josefsson  <jas@extundo.com>
76749
76750         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76751         arcfour_context struct (simplify test vector testing in GNU
76752         Shishi).
76753
76754 2005-10-21  Simon Josefsson  <jas@extundo.com>
76755
76756         * modules/des, modules/des-tests: New files.
76757
76758         * modules/gc-des, modules/gc-des-tests: New files.
76759
76760         * tests/test-des.c, tests/test-gc-des.c: New file.
76761
76762 2005-10-21  Simon Josefsson  <jas@extundo.com>
76763
76764         * modules/arctwo, modules/arctwo-tests: New files.
76765
76766         * tests/test-arctwo.c: New file.
76767
76768         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76769
76770         * tests/test-gc-arctwo.c: New file.
76771
76772 2005-10-21  Simon Josefsson  <jas@extundo.com>
76773
76774         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76775         Bruno Haible <bruno@clisp.org>.
76776
76777         * m4/gc-des.m4: New file.
76778
76779 2005-10-21  Simon Josefsson  <jas@extundo.com>
76780
76781         * m4/arctwo.m4: New file.
76782
76783         * m4/gc-arctwo.m4: New file.
76784
76785 2005-10-21  Simon Josefsson  <jas@extundo.com>
76786
76787         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76788         block.
76789
76790 2005-10-21  Simon Josefsson  <jas@extundo.com>
76791
76792         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76793         <bruno@clisp.org>.
76794
76795         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76796
76797         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76798         Bruno Haible <bruno@clisp.org>.
76799
76800         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76801         <bruno@clisp.org>.
76802
76803 2005-10-21  Simon Josefsson  <jas@extundo.com>
76804
76805         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76806
76807 2005-10-21  Simon Josefsson  <jas@extundo.com>
76808
76809         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76810
76811 2005-10-21  Simon Josefsson  <jas@extundo.com>
76812
76813         * lib/des.h, lib/des.c: New files.
76814
76815         * lib/gc-gnulib.c: Support DES.c
76816
76817 2005-10-21  Simon Josefsson  <jas@extundo.com>
76818
76819         * lib/arctwo.h, lib/arctwo.c: New files.
76820
76821         * lib/gc-gnulib.c: Support ARCTWO.
76822
76823 2005-10-21  Simon Josefsson  <jas@extundo.com>
76824
76825         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76826         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76827
76828 2005-10-21  Simon Josefsson  <jas@extundo.com>
76829
76830         * gnulib-tool (func_import, func_create_testdir): Define automake
76831         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76832         Makefile.am snippet),
76833         suggested by Bruno Haible <bruno@clisp.org>.
76834
76835         * modules/gc (Makefile.am): Use it.
76836
76837 2005-10-21  Bruno Haible  <bruno@clisp.org>
76838
76839         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76840         patch.
76841
76842 2005-10-19  Simon Josefsson  <jas@extundo.com>
76843
76844         * tests/test-gc-rijndael.c: New file.
76845
76846         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76847
76848 2005-10-19  Simon Josefsson  <jas@extundo.com>
76849
76850         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76851         interface too.
76852
76853 2005-10-19  Simon Josefsson  <jas@extundo.com>
76854
76855         * tests/test-gc-arcfour.c: New file.
76856
76857         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76858
76859 2005-10-19  Simon Josefsson  <jas@extundo.com>
76860
76861         * modules/gc-md4, modules/gc-md4-tests: New file.
76862
76863         * tests/test-gc-md4.c: New file.
76864
76865 2005-10-19  Simon Josefsson  <jas@extundo.com>
76866
76867         * m4/gc-md4.m4: New file.
76868
76869 2005-10-19  Simon Josefsson  <jas@extundo.com>
76870
76871         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76872         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76873         <kasal@ucw.cz>.
76874
76875 2005-10-19  Simon Josefsson  <jas@extundo.com>
76876
76877         * m4/gc-arcfour.m4: New file.
76878
76879         * m4/gc-rijndael.m4: New file.
76880
76881 2005-10-19  Simon Josefsson  <jas@extundo.com>
76882
76883         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76884
76885 2005-10-19  Simon Josefsson  <jas@extundo.com>
76886
76887         * lib/gc-gnulib.c: Support ARCFOUR.
76888
76889 2005-10-19  Simon Josefsson  <jas@extundo.com>
76890
76891         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76892         support.
76893
76894         * lib/gc.h: Add ECB enum type.
76895
76896         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76897
76898 2005-10-18  Simon Josefsson  <jas@extundo.com>
76899
76900         * tests/test-md5.c: New file.
76901
76902         * modules/md5-tests: New file.
76903
76904 2005-10-18  Simon Josefsson  <jas@extundo.com>
76905
76906         * tests/test-md4.c: New file.
76907
76908         * modules/md4, modules/md4-tests: New files.
76909
76910 2005-10-18  Simon Josefsson  <jas@extundo.com>
76911
76912         * m4/md4.m4: New file.
76913
76914 2005-10-18  Simon Josefsson  <jas@extundo.com>
76915
76916         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76917
76918 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76919
76920         * gnulib-tool (func_create_testdir): Omit the second check whether
76921         BUILT_SOURCES in nonempty.
76922
76923 2005-10-17  Simon Josefsson  <jas@extundo.com>
76924
76925         * tests/test-rijndael.c: New file.
76926
76927 2005-10-17  Simon Josefsson  <jas@extundo.com>
76928
76929         * modules/sha1: Depend on stdint instead of md5.
76930
76931         * modules/md5: Depend on stdint, remove uint32_t.
76932
76933 2005-10-17  Simon Josefsson  <jas@extundo.com>
76934
76935         * modules/gc-sha1-tests: New file.
76936
76937         * tests/test-gc-sha1.c: New file.
76938
76939 2005-10-17  Simon Josefsson  <jas@extundo.com>
76940
76941         * m4/md5.m4: Remove call to uint32_t.m4.
76942
76943 2005-10-17  Simon Josefsson  <jas@extundo.com>
76944
76945         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76946
76947         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76948         md5.h.
76949
76950         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76951
76952         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76953
76954 2005-10-17  Simon Josefsson  <jas@extundo.com>
76955
76956         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76957
76958 2005-10-17  Simon Josefsson  <jas@extundo.com>
76959
76960         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76961
76962 2005-10-17  Simon Josefsson  <jas@extundo.com>
76963
76964         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76965
76966         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76967
76968 2005-10-17  Bruno Haible  <bruno@clisp.org>
76969
76970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76971         that it can also be used in a test.
76972
76973 2005-10-16  Bruno Haible  <bruno@clisp.org>
76974
76975         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76976         TESTS_ENVIRONMENT, so that individual tests can augment it.
76977
76978         * gnulib-tool (func_create_testdir): Use an intermediate target for
76979         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76980         macros, like $(ALLOCA_H), which cannot be passed through the command
76981         line.
76982
76983 2005-10-15  Simon Josefsson  <jas@extundo.com>
76984
76985         * modules/rijndael-tests: New file.
76986
76987         * modules/rijndael: New file.
76988
76989 2005-10-15  Simon Josefsson  <jas@extundo.com>
76990
76991         * m4/rijndael.m4: New file.
76992
76993 2005-10-15  Simon Josefsson  <jas@extundo.com>
76994
76995         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76996
76997         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76998
76999 2005-10-14  Simon Josefsson  <jas@extundo.com>
77000
77001         * tests/test-arcfour.c: New file.
77002
77003         * modules/arcfour, modules/arcfour-tests: New files.
77004
77005 2005-10-14  Simon Josefsson  <jas@extundo.com>
77006
77007         * m4/arcfour.m4: New file.
77008
77009 2005-10-14  Simon Josefsson  <jas@extundo.com>
77010
77011         * lib/arcfour.h, lib/arcfour.c: New files.
77012
77013 2005-10-14  Roland McGrath  <roland@redhat.com>
77014
77015         Import from libc.  [BZ #1331]
77016         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
77017         macro argument.
77018         Reported by Matej Vela <vela@debian.org>.
77019
77020 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
77023         include <wchar.h>; no longer needed.
77024
77025 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
77028
77029 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
77030         and  Ulrich Drepper  <drepper@redhat.com>
77031
77032         Import from libc.
77033         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
77034         instead of inline stream orientation test and two separate
77035         function calls.  Pay no attention to USE_IN_LIBIO.
77036
77037 2005-10-13  Simon Josefsson  <jas@extundo.com>
77038
77039         * modules/gc-hmac-md5-tests: New file.
77040
77041         * tests/test-gc-hmac-sha1.c: New file.
77042
77043         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
77044
77045         * modules/gc-hmac-md5-tests: New file.
77046
77047         * tests/test-gc-md5.c: New file.
77048
77049         * modules/gc-md5-tests: New file.
77050
77051 2005-10-13  Simon Josefsson  <jas@extundo.com>
77052
77053         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
77054         Move memory allocation outside of loop.
77055
77056 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
77059         intermediate directory is in a read-only file system.  Problem
77060         reported by Eric Blake.
77061
77062 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
77063
77064         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
77065
77066 2005-10-12  Simon Josefsson  <jas@extundo.com>
77067
77068         * tests/test-hmac-sha1.c: New file.
77069
77070         * modules/hmac-sha1-tests: New file.
77071
77072         * modules/hmac-sha1: New file.
77073
77074 2005-10-12  Simon Josefsson  <jas@extundo.com>
77075
77076         * modules/gc-sha1: New file.
77077
77078 2005-10-12  Simon Josefsson  <jas@extundo.com>
77079
77080         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
77081
77082         * tests/test-gc-pbkdf2-sha1.c: New file.
77083
77084 2005-10-12  Simon Josefsson  <jas@extundo.com>
77085
77086         * modules/gc-md5, modules/gc-hmac-md5: New files.
77087
77088         * modules/gc (Files): Remove md5, memxor and hmac files.
77089
77090 2005-10-12  Simon Josefsson  <jas@extundo.com>
77091
77092         * m4/gc-pbkdf2-sha1.m4: New file.
77093
77094         * m4/gc-hmac-sha1.m4: New file.
77095
77096         * m4/gc-sha1: New file.
77097
77098         * m4/hmac-sha1.m4: New file.
77099
77100 2005-10-12  Simon Josefsson  <jas@extundo.com>
77101
77102         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
77103
77104         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
77105
77106 2005-10-12  Simon Josefsson  <jas@extundo.com>
77107
77108         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
77109         suggested by Bruno Haible <bruno@clisp.org>.
77110
77111 2005-10-12  Simon Josefsson  <jas@extundo.com>
77112
77113         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
77114
77115 2005-10-12  Simon Josefsson  <jas@extundo.com>
77116
77117         * lib/gc-pbkdf2-sha1.c: New file.
77118
77119         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
77120
77121 2005-10-12  Simon Josefsson  <jas@extundo.com>
77122
77123         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
77124
77125         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
77126
77127 2005-10-12  Simon Josefsson  <jas@extundo.com>
77128
77129         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
77130         GC_USE_HMAC_MD5, respectively.
77131
77132         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
77133         (gc_md5): Fix typo.
77134
77135         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
77136
77137         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
77138
77139         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
77140
77141 2005-10-12  Bruno Haible  <bruno@clisp.org>
77142
77143         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
77144         Reported by Stepan Kasal <kasal@ucw.cz>.
77145
77146 2005-10-11  Simon Josefsson  <jas@extundo.com>
77147
77148         * tests/test-crc.c: New file.
77149
77150         * modules/crc, modules/crc-tests: New files.
77151
77152 2005-10-11  Simon Josefsson  <jas@extundo.com>
77153
77154         * m4/crc.m4: New file.
77155
77156 2005-10-11  Simon Josefsson  <jas@extundo.com>
77157
77158         * lib/gc.h: Add gc_hash and gc_hash_buffer.
77159
77160         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
77161
77162         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
77163
77164 2005-10-11  Simon Josefsson  <jas@extundo.com>
77165
77166         * lib/crc.h, lib/crc.c: New files.
77167
77168         * lib/gc.h (gc_hash_buffer): Add doc.
77169
77170 2005-10-11  Bruno Haible  <bruno@clisp.org>
77171
77172         * modules/c-strcasestr: New file.
77173         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
77174
77175 2005-10-11  Bruno Haible  <bruno@clisp.org>
77176
77177         * modules/c-strcase: New file.
77178         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
77179
77180 2005-10-11  Bruno Haible  <bruno@clisp.org>
77181
77182         * lib/strcasecmp.c: Include limits.h.
77183         (strcasecmp): Avoid integer overflow on exotic platforms.
77184         * lib/strncasecmp.c: Include limits.h.
77185         (strncasecmp): Avoid integer overflow on exotic platforms.
77186         Reported by Paul Eggert.
77187
77188 2005-10-11  Bruno Haible  <bruno@clisp.org>
77189
77190         * lib/c-strcasestr.h: New file, from GNU gettext.
77191         * lib/c-strcasestr.c: New file, from GNU gettext.
77192
77193 2005-10-11  Bruno Haible  <bruno@clisp.org>
77194
77195         * lib/c-strcase.h: New file, from GNU gettext.
77196         * lib/c-strcasecmp.c: New file, from GNU gettext.
77197         * lib/c-strncasecmp.c: New file, from GNU gettext.
77198
77199 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77200
77201         * modules/mempcpy (License): GPL -> LGPL.
77202         * modules/strchrnul (License): Likewise.
77203         * modules/sysexits (License): Likewise.
77204
77205 2005-10-08  Simon Josefsson  <jas@extundo.com>
77206
77207         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
77208
77209 2005-10-07  Simon Josefsson  <jas@extundo.com>
77210
77211         * m4/memxor.m4: Remove gl_C_RESTRICT call.
77212
77213 2005-10-06  Simon Josefsson  <jas@extundo.com>
77214
77215         * tests/test-hmac-md5.c: New file.
77216
77217         * modules/hmac-md5-tests: New file.
77218
77219         * modules/hmac-md5: New file.
77220
77221 2005-10-06  Simon Josefsson  <jas@extundo.com>
77222
77223         * m4/hmac-md5.m4: New file.
77224
77225         * m4/memxor.m4: Require gl_C_RESTRICT.
77226
77227 2005-10-06  Simon Josefsson  <jas@extundo.com>
77228
77229         * lib/memxor.c (memxor): Avoid casts and warnings.
77230
77231 2005-10-06  Simon Josefsson  <jas@extundo.com>
77232
77233         * lib/hmac-md5.c: New file.
77234
77235         * lib/hmac.h: New file.
77236
77237 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77240         promotes to int, not unsigned int, to catch the AIX 5.3
77241         compiler bug.
77242
77243 2005-10-05  Simon Josefsson  <jas@extundo.com>
77244
77245         * modules/memxor: New file.
77246
77247         * modules/iconv (Files): Move config.rpath to havelib, it is used
77248         there.
77249
77250         * modules/havelib (Files): Add config.rpath.
77251
77252 2005-10-05  Simon Josefsson  <jas@extundo.com>
77253
77254         * m4/memxor.m4: New file.
77255
77256 2005-10-05  Simon Josefsson  <jas@extundo.com>
77257
77258         * lib/memxor.c (memxor): Fix compiler error.
77259
77260         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77261         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77262
77263         * lib/memxor.h, lib/memxor.c: New files.
77264
77265         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77266         we assume all systems have it, suggested by Jim Meyering
77267         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77268         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77269         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77270         same reasons.
77271
77272 2005-10-05  Simon Josefsson  <jas@extundo.com>
77273
77274         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77275
77276 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77279         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77280         needed, since the source code now assumes these .h files.
77281
77282 2005-10-05  Derek Price  <derek@ximbiot.com>
77283
77284         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77285
77286 2005-10-05  Bruno Haible  <bruno@clisp.org>
77287
77288         * modules/stdint (License): Change to LGPL.
77289
77290 2005-10-04  Simon Josefsson  <jas@extundo.com>
77291
77292         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77293         D. Baushke" <mdb@gnu.org>.
77294
77295 2005-10-04  Bruno Haible  <bruno@clisp.org>
77296
77297         * lib/verify.h (verify_true): Provide alternative definition for C++.
77298
77299 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77302         (SSIZE_MAX): New macro, if not already defined.
77303         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77304         than 2 GiB.
77305
77306 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77307
77308         Sync from coreutils.
77309         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77310         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77311         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77312         ULLONG_MAX doesn't work with 2.7.2.1.
77313
77314 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77317         From Ben Pfaff.
77318
77319         * modules/exclude (Depends-on): Depend on verify.
77320         * modules/strtoimax (Depends-on): Likewise.
77321         * modules/utimecmp (Depends-on): Likewise.
77322
77323 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77324
77325         * lib/exclude.c: Include verify.h.
77326         (verify): Remove.  All callers changed to use verify.h's version.
77327         * lib/strtoimax.c: Likewise.
77328         * lib/utimecmp.c: Likewis.e
77329
77330         Sync from coreutils.
77331         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77332         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77333         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77334         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77335         bother returning ENOSYS if settimeofday or stime fails; just let
77336         them return whatever errno they want to return.
77337         * lib/utimens.c: Include unistd.h, for dup2.
77338         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77339         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77340
77341 2005-10-02  Jim Meyering  <jim@meyering.net>
77342
77343         Sync from coreutils.
77344         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77345         from glibc-2.2.5 that fails for read-only files.
77346
77347 2005-10-02  Jim Meyering  <jim@meyering.net>
77348
77349         Sync from coreutils.
77350         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77351         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77352         `#if HAVE_CONFIG_H'.
77353         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77354         Remove AT_FDCWD test.
77355         Do not consume the fd unless successful.
77356         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77357         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77358         block, so that we don't even try to compile it if settimeofday is
77359         available.  This works around a compilation failure on OSF1 V5.1,
77360         due to stime requiring a `long int*' while tv_sec is `int'.
77361
77362 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77363
77364         Sync from coreutils.
77365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77366         against `yes', rather than just testing for nonempty.
77367
77368 2005-10-01  Simon Josefsson  <jas@extundo.com>
77369
77370         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77371         and Darwin.
77372
77373         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77374         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77375         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77376         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77377         Check if struct addrinfo is declared.
77378
77379 2005-10-01  Simon Josefsson  <jas@extundo.com>
77380
77381         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77382         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77383         AI_* and EAI_* definitions.  Protect function declarations.
77384
77385 2005-10-01  Jim Meyering  <jim@meyering.net>
77386
77387         Sync from coreutils.
77388
77389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77390         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77391         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77393         in the inet and nsl libraries.  Required on Solaris 5.7.
77394
77395 2005-10-01  Jim Meyering  <jim@meyering.net>
77396
77397         Sync from coreutils.
77398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77399         in the inet and nsl libraries.  Required on Solaris 5.7.
77400
77401 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77402
77403         * lib/getdelim.c (getdelim): Remove unused variables.
77404
77405 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77408         so that the code works even with ancient cpp.  Portability problem
77409         with GCC 2.7.2.1 reported by Thomas M.Ott.
77410
77411 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77412
77413         * modules/regex (Depends-on): Add strcase.
77414
77415         * modules/gethostname (Licence): Change from GPL to LGPL, since
77416         gethostname.c is a trivial implementation of a standard library
77417         function.
77418         * modules/poll (License): Change from GPL to LGPL, since it's
77419         derived from LGPL code.
77420
77421 2005-09-27  Jim Meyering  <jim@meyering.net>
77422
77423         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77424         HAVE_CONFIG_H.
77425
77426         * lib/intprops.h (signed_type_or_expr__): Define.
77427         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77428         for unsigned types.
77429
77430 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77431
77432         * lib/verify.h (verify_expr): Remove, replacing with:
77433         (verify_true): New macro that returns true instead of void.
77434         (verify_type__): Remove.
77435         (verify): Use verify_true rather than verify_type__.
77436
77437 2005-09-26  Bruno Haible  <bruno@clisp.org>
77438
77439         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77440         is necessary.
77441         (lib_SOURCES): Remove mbchar.c.
77442         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77443         (Files): Add m4/mbrtowc.m4.
77444         * modules/mbiter: Likewise.
77445         * modules/mbuiter: Likewise.
77446
77447 2005-09-26  Bruno Haible  <bruno@clisp.org>
77448
77449         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77450         compile mbchar.c if they are not both present.
77451         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77452         * m4/mbiter.m4 (gl_MBITER): Likewise.
77453         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77454         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77455         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77456
77457 2005-09-25  Jim Meyering  <jim@meyering.net>
77458
77459         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77460         also uses socklen_t.
77461
77462 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77463
77464         * lib/utimens.c (ENOSYS): Define if not already defined.
77465         (futimens): Support having a null PATH if the file descriptor
77466         is nonnegative.
77467
77468         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77469         Remove.
77470         (__attribute): Define to empty unless GCC 3.1 or later.
77471         This works around a core dump on OpenBSD 3.4, which has GCC
77472         2.95.3, which dumps core when given __attribute__(()).  It also
77473         simplifies other tests, since we really don't want to bother with
77474         worrying about which ancient version of GCC supported what.
77475         Original problem reported by Yoann Vandoorselaere, with part of
77476         the fix suggested by Derek Price.
77477
77478 2005-09-24  Jim Meyering  <jim@meyering.net>
77479
77480         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77481         so we can once again use a positive bitfield width of 1 -- now we
77482         don't have to explain why we were using a bitfield width of 2.
77483
77484 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77487         and similarly for the other external symbols.  Problem reported
77488         by James Gallager.
77489
77490         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77491         bug reported by Jim Meyering.
77492
77493         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77495         not needed, since socklen is a prerequisite module.
77496
77497 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77500         Problem reported by Eric Blake.
77501         (getaddrinfo): Initialize se so that it's not garbage.
77502         Redo internal storage allocation so that it doesn't make unportable
77503         assumptions about alignment.
77504         Fix a memory leak.
77505
77506         * lib/utimens.c (futimens): Use futimesat if available.
77507         Prefer it to futimes since it doesn't have the futimes bug.
77508
77509         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77510         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77511         Instead, declare a function that returns a pointer to an array,
77512         and use verify_type__ to declare the size of the array.
77513         Problem and germ of a solution reported by Bruno Haible.
77514         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77515         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77516
77517 2005-09-23  Jim Meyering  <jim@meyering.net>
77518
77519         Sync from coreutils.
77520         Correct build failure (socklen_t not defined) on at least
77521         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77522         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77523
77524 2005-09-23  Jim Meyering  <jim@meyering.net>
77525
77526         * modules/getaddrinfo (Depends-on): Add socklen.
77527
77528 2005-09-23  Bruno Haible  <bruno@clisp.org>
77529
77530         * tests/test-verify.c: New file.
77531
77532 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         Sync from coreutils.
77535
77536         * modules/argmatch (Depends-on): Add verify.
77537         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77538         unistd-safer.
77539         * modules/save-cwd (Depends-on): Likewise.
77540
77541         * modules/openat (Files): Add lib/openat-die.c.
77542         (Depends-on): Remove error, exitfail.
77543         Add dirname.
77544
77545         * modules/verify: New file.
77546         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77547         with "verify" module.
77548
77549 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         Sync from coreutils.
77552
77553         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77554         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77555         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77556         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77557         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77558         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77559         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77560         Don't bother checking for string.h, stdlib.h, unistd.h.
77561         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77562         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77563         module's job.
77564         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77565         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77566
77567         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77568         (gl_GETDATE): Use it.
77569
77570         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77571
77572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         Sync from coreutils.
77575
77576         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77577         stat-time.h.
77578         * lib/argmatch.h: Include verify.h
77579         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77580         (ARGMATCH_ASSERT): Remove; unused.
77581         * lib/canonicalize.c: Assume STDC_HEADERS.
77582         * lib/exclude.c: Include "strcase.h".
77583         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77584         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77585         and stdio-safer.h.
77586         (getusershell): Call fopen, not fopen_safer.
77587         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77588         Do not include unistd-safer.h.
77589         (save_cwd): Don't call fd_safer; no longer needed
77590         now that we include fcntl--.h.
77591
77592         * lib/getdate.y (relative_time): New type.
77593         (RELATIVE_TIME_0): New constant.
77594         (parser_control): Use relative_time instead of doing it ourselves.
77595         (%union): Add new relative_time rel member.
77596         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77597         Now typeless.
77598         (relunit, relunit_snumber): Now of type rel.
77599         (zone, rel, relunit, get_date): Adjust to above changes.
77600
77601         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77602         Do not include unistd-safer.h.
77603         (getloadavg): Don't call fd_safer; no longer needed
77604         now that we include fcntl--.h.
77605
77606         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77607         (make_dir_parents): Treat ENOSYS like EEXIST.
77608
77609         Improve quality of diagnostics on restore_cwd failure.
77610         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77611         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77612         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77613         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77614         each time through the loop.  Do not diagnose restore_cwd failure;
77615         that is the caller's job (and perhaps the caller does not care).
77616
77617         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77618         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77619         If the file already exists but is not a directory, don't bother
77620         to try to make its parents.
77621         Close potential file descriptor leak if we can't chdir("/") (!).
77622         Don't always return true if chdir($PWD) fails; return true only
77623         if the requested action was done successfully (except for the
77624         chdir($PWD)).
77625         Don't log final directory unless we actually made it.
77626         Refactor to avoid duplicate code to fix up permissions.
77627         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77628
77629         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77630         to make it a bit faster and (I hope) clearer.
77631         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77632         Fix bug in formats like %2N.
77633
77634         * lib/verify.h: New file.
77635
77636 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77637
77638         Sync from coreutils.
77639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77640
77641 2005-09-22  Jim Meyering  <jim@meyering.net>
77642
77643         Sync from coreutils.
77644
77645         * m4/lstat.m4 (gl_FUNC_LSTAT):
77646         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77647         Remove obsolete comment.
77648         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77649         * m4/xstrtod.m4: Likewise.
77650
77651         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77652
77653 2005-09-22  Jim Meyering  <jim@meyering.net>
77654
77655         Sync from coreutils.
77656
77657         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77658
77659         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77660         the .tm_year member, since otherwise gcc-4.0 would now warn about
77661         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77662
77663         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77664         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77665
77666         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77667         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77668         when run in a time zone for which daylight savings time is in effect
77669         for the starting date.
77670
77671         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77672         stop us from restricting permissions of just-created absolute-named
77673         directories.
77674         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77675         to restore initial working directory.
77676         * lib/mkdir-p.c (make_dir_parents): New parameter:
77677         different_working_dir, to tell caller if/when we change the working
77678         directory and are unable to return to the initial one.
77679         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77680         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77681         `return false'.  This fixes a bug introduced on 2004-07-30.
77682
77683         * lib/openat.c (fdopendir): Be sure to close the supplied
77684         file descriptor before returning.  This makes our replacement
77685         implementation a little closer to Solaris's, where fdopendir
77686         ties the file descriptor to the returned DIR* pointer.
77687         * lib/openat.c (unlinkat): New function.
77688         * lib/openat.h (unlinkat): Add prototype.
77689         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77690         (openat_restore_fail): Rename from openat_restore_die.
77691         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77692
77693         Provide an alternative to exiting immediately upon save_cwd or
77694         restore_cwd failure.  Now, an application can arrange e.g.,
77695         to perform a longjump in that case.
77696         * lib/openat.c: Include dirname.h.
77697         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77698         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77699         and openat_restore_die rather than calling error directly.
77700         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77701
77702         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77703         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77704         define.
77705
77706         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77707         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77708                             int utc, int nanoseconds);
77709         Background:
77710         date should not have to allocate a megabyte of virtual memory to
77711         handle a format argument like +%1048575T.  When implemented with
77712         strftime, it must allocate such a buffer, use strftime to fill it
77713         in, print it, then free it.
77714         With fprintftime, it simply prints everything and exits.
77715         With no need for memory allocation, that's one fewer way to fail.
77716         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77717         optional field width, not before, so we accept %9:z, not %:9z.
77718         (my_strftime): Be sure to use L_('x') for literals.
77719
77720         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77721         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77722         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77723         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77724         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77725         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77726         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77727         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77728         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77729         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77730         * lib/xgethostname.c, lib/xreadlink.c:
77731         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77732
77733         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77734         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77735         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77736         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77737         and don't include <sys/file.h>).
77738
77739 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77740
77741         Sync from coreutils.
77742
77743         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77744         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77745         [!LDAV_DONE]: Avoid unused variable warning.
77746
77747 2005-09-21  Bruno Haible  <bruno@clisp.org>
77748
77749         * lib/unicodeio.h (unicode_to_mb): New declaration.
77750
77751 2005-09-20  Derek Price  <derek@ximbiot.com>
77752
77753         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77754         getaddrinfo.h.
77755
77756 2005-09-20  Bruno Haible  <bruno@clisp.org>
77757
77758         * gnulib-tool: Remove trailing slashes from the values specified for
77759         --source-base, --m4-base, --tests-base, --aux-dir.
77760         Suggested by Simon Josefsson <jas@extundo.com>.
77761
77762 2005-09-20  Bruno Haible  <bruno@clisp.org>
77763
77764         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77765         func_modules_to_filelist, func_import, func_create_testdir): Make all
77766         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77767         change when gnulib-tool is invoked in a different locale.
77768
77769 2005-09-19  Simon Josefsson  <jas@extundo.com>
77770
77771         * m4/socklen.m4: Fix typo.
77772
77773 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77774
77775         Use a consistent style for including <config.h>.
77776         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77777         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77778         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77779         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77780         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77781         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77782         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77783         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77784         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77785         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77786         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77787         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77788         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77789         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77790         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77791         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77792         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77793         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77794         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77795         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77796         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77797         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77798         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77799         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77800         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77801         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77802         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77803         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77804         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77805         lib/xstrtoumax.c, lib/yesno.c:
77806         Standardize inclusion of config.h.
77807         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77808         lib/inttostr.h:  Removed inclusion of config.h from header files.
77809         * lib/inttostr.c:  Adjusted in-tree users.
77810         * lib/timespec.h: Remove superfluous warning to include config.h.
77811         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77812         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77813         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77814         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77815         config.h with HAVE_CONFIG_H.
77816
77817 2005-09-19  Jim Meyering  <jim@meyering.net>
77818
77819         * modules/pathmax (License): Change to LGPL.
77820
77821 2005-09-19  Derek Price  <derek@ximbiot.com>
77822
77823         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77824
77825 2005-09-19  Bruno Haible  <bruno@clisp.org>
77826
77827         * gnulib-tool (import): Provide default for --tests-base.
77828
77829 2005-09-19  Bruno Haible  <bruno@clisp.org>
77830
77831         * doc/quote.texi: New file, extracted from gnulib.texi.
77832         * doc/ctime.texi: New file, extracted from gnulib.texi.
77833         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77834         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77835         * doc/gnulib.texi: Include them.
77836
77837 2005-09-18  Bruno Haible  <bruno@clisp.org>
77838
77839         Portability fix.
77840         * gnulib-tool (func_readlink): New function.
77841         (func_ln_if_changed): Use it.
77842
77843 2005-09-18  Bruno Haible  <bruno@clisp.org>
77844
77845         * gnulib-tool: Support --with-tests also with --import.
77846         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77847         (func_import): Use variables $testsbase and $inctests. Emit a
77848         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77849         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77850         SUBDIRS += $testsdir.
77851         (func_create_testdir): Update.
77852
77853 2005-09-18  Bruno Haible  <bruno@clisp.org>
77854
77855         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77856         instead of $dry_run.
77857         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77858         (func_ln_if_changed): Don't handle dry-run here.
77859         (func_import): In dry-run mode, detect more precisely which actions
77860         would be performed, and don't use "...ing" verbs.
77861
77862 2005-09-18  Bruno Haible  <bruno@clisp.org>
77863
77864         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77865         (func_import): Use join on two temporary files instead of three nested
77866         loops, in order to determine which files are new or old.
77867
77868 2005-09-18  Bruno Haible  <bruno@clisp.org>
77869
77870         * gnulib-tool (func_import): Comment out code that spits out the
77871         new files with --dry-run.
77872
77873 2005-09-18  Bruno Haible  <bruno@clisp.org>
77874
77875         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77876
77877 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * lib/stat-time.h: New file.
77880         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77881         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77882         in a different way.
77883         (timespec_cmp): New function.
77884         * lib/utimecmp.c: Include stat-time.h.
77885         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77886         members exist, not on the obsolescent ST_MTIM_NSEC.
77887         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77888
77889 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77892
77893 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         * MODULES.html.sh (File system functions): Add stat-time.
77896         * modules/stat-time: New file.
77897         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77898         is now done in a different way, by the stat-time module.
77899         * modules/utimecmp (Depends-on): Add stat-time.
77900
77901 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * m4/st_mtim.m4: Remove.  Superseded by...
77904         * m4/stat-time.m4: New file.
77905         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77906         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77907
77908 2005-09-15  Derek Price  <derek@ximbiot.com>
77909
77910         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77911
77912 2005-09-15  Derek Price  <derek@ximbiot.com>
77913
77914         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77915         * lib/regex_internal.c: Ditto, using this...
77916         (__GNUC_PREREQ): ...new macro.
77917         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77918         using...
77919         (__GNUC_PREREQ): ...this new macro.
77920
77921         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77922
77923 2005-09-15  Derek Price  <derek@ximbiot.com>
77924             Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77927         changes, consolidating in...
77928         * lib/regex_internal.h: ...this file.
77929
77930 2005-09-13  Jim Meyering  <jim@meyering.net>
77931
77932         * lib/canon-host.c: Filter through gnu indent and reword comments
77933         slightly.
77934         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77935
77936 2005-09-13  Derek Price  <derek@ximbiot.com>
77937
77938         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77939         failure.
77940         Reported by Jim Meyering  <jim@meyering.net>.
77941
77942 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77943
77944         * lib/base64.c: Typo.
77945         (base64_encode): Put b64str in initialized data section.
77946
77947 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         Merge glibc and coreutils changes into gnulib, plus a few
77950         extra fixes.
77951         * lib/md5.c: Use #error rather than a string.
77952         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77953         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77954         (__attribute__): Define to empty for non recent-GCC.
77955         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77956         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77957         Renamed from their non-__ counterparts, with new macros replacing
77958         them if not _LIBC.  Add __THROW attribute.
77959         (rol): Remove.
77960         (struct md5_ctx): Align buffer if using GCC.
77961         * lib/sha1.h (struct sha1_ctx): Likewise.
77962         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77963         The old name was backwards.
77964         (NOTSWAP): Remove; not used.
77965         (rol): New macro, moved here from md5.h.
77966         (sha1_process_block): Remove a FIXME that doesn't make sense.
77967
77968 2005-09-12  Derek Price  <derek@ximbiot.com>
77969
77970         Return usable errors from canon-host.
77971         * lib/canon-host.h: New file.
77972         * lib/canon-host.c (canon_host): Wrap...
77973         (canon_host_r): ...this new function, which now relies exclusively on
77974         getaddrinfo.
77975         (ch_strerror): New function.
77976         (last_cherror): New global.
77977         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77978         interface.
77979         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77980         void *.
77981         (freeaddrinfo): Free ai->ai_canonname when set.
77982
77983 2005-09-12  Derek Price  <derek@ximbiot.com>
77984
77985         Make canon-host require getaddrinfo.
77986         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77987         AC_LIBSOURCE canon-host.h.  Call...
77988         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77989         gl_GETADDRINFO.
77990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77991
77992 2005-09-12  Derek Price  <derek@ximbiot.com>
77993
77994         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77995         LGPL.
77996         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77997
77998 2005-09-12  Derek Price  <derek@ximbiot.com>
77999
78000         * lib/gai_strerror.c: Include config.h when available.  Include
78001         getaddrinfo.h before other headers to test interface.
78002         Reported by Larry Jones <lawrence.jones@ugs.com>.
78003
78004 2005-09-12  Derek Price  <derek@ximbiot.com>
78005             Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * modules/glob (Files): Add glob-libc.h.
78008
78009 2005-09-12  Derek Price  <derek@ximbiot.com>
78010             Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
78013         glob_.h, glob-libc.h.
78014         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
78015
78016 2005-09-12  Derek Price  <derek@ximbiot.com>
78017             Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
78020         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
78021         protecting things that should be done only in gnulib contexts.
78022         * lib/glob_.h: New file, containing only the glob things needed for
78023         gnulib.
78024         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
78025         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
78026         (glob, globfree, glob_pattern_p): Now defined simply in terms of
78027         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
78028         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
78029         and to respect the namespace rules better.
78030
78031 2005-09-08  Simon Josefsson  <jas@extundo.com>
78032
78033         * modules/socklen: New file.
78034
78035 2005-09-08  Simon Josefsson  <jas@extundo.com>
78036
78037         * m4/socklen.m4: New file.
78038
78039 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * modules/utimens (Files): Add m4/utimbuf.m4, since
78042         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
78043         Reported by Sergey Poznyakoff.
78044
78045 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
78048         definitions, since that's the preferred style in glibc.
78049         Fix a minor spacing issue, and update copyright notice to match
78050         glibc's.
78051
78052 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
78055
78056 2005-09-06  Simon Josefsson  <jas@extundo.com>
78057
78058         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
78059         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
78060
78061 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
78064         warning.
78065
78066 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * config/srclist.txt: Add glibc bug 1302.
78069
78070 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         Change bitset word type from unsigned int to unsigned long int,
78073         as this has better performance on typical 64-bit hosts.
78074         Port bitset code to hosts with unusual word sizes.
78075         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
78076         (build_collating_symbol):
78077         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
78078         argument is a bitset.  This is merely a style issue, but it makes
78079         it clearer that an entire array is expected.
78080         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
78081         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
78082         Port to the case where bitset_word is not the same as unsigned int.
78083         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78084         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
78085         Likewise.
78086         * lib/regexec.c (check_dst_limits_calc_pos_1,
78087         check_subexp_matching_top):
78088         (build_trtable, group_nodes_into_DFAstates):
78089         Likewise.
78090         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
78091         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
78092         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
78093         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
78094         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
78095         * lib/regcomp.c (optimize_subexps, lower_subexp):
78096         Work even if bitset_word has holes in its bitwise representation.
78097         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
78098         * lib/regexec.c (check_dst_limits_calc_pos_1,
78099         check_subexp_matching_top):
78100         Likewise.
78101         * lib/regex_internal.c (re_string_reconstruct):
78102         Don't assume UCHAR_MAX == 255.
78103         * lib/regex_internal.h (bitset_set_all): Likewise.
78104         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
78105         All uses changed.
78106         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
78107         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
78108         All uses changed.
78109         (BITSET_WORD_MAX): New macro.
78110         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
78111         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
78112         (bitset_empty, bitset_copy):
78113         Prefer sizeof (bitset) to multiplying it out ourselves.
78114         (bitset_not_merge): Remove; unused.
78115         (bitset_contain): Return bool, not unsigned int with one bit on.
78116         All callers changed.
78117         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
78118         alignment than re_node_set; do this by defining a new internal
78119         type struct dests_alloc and using it to allocate memory.
78120
78121 2005-09-05  Bruno Haible  <bruno@clisp.org>
78122
78123         * gnulib-tool (func_import): Fix comparison in handling of symbolic
78124         links.
78125
78126 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
78127
78128         * modules/size_max (Makefile.am): Add size_max.h
78129
78130 2005-09-04  Derek Price  <derek@ximbiot.com>
78131
78132         * gnulib-tool (func_import): Fix reversed $symbolic logic.
78133
78134 2005-09-03  Simon Josefsson  <jas@extundo.com>
78135
78136         * gnulib-tool: Fix typo.
78137
78138 2005-09-03  Simon Josefsson  <jas@extundo.com>
78139
78140         * config/srclist.txt: Add glibc bug 1293.
78141
78142 2005-09-03  Derek Price  <derek@ximbiot.com>
78143
78144         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
78145         From Larry Jones <lawrence.jones@ugs.com>.
78146
78147 2005-09-02  Simon Josefsson  <jas@extundo.com>
78148
78149         * modules/socklen: New file.
78150
78151 2005-09-02  Simon Josefsson  <jas@extundo.com>
78152
78153         * modules/havelib: New module.
78154
78155         * modules/gettext, modules/iconv, modules/lock, modules/readline:
78156         Use havelib.
78157
78158 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         Check for arithmetic overflow when calculating sizes, to prevent
78161         some buffer-overflow issues.  These patches are conservative, in the
78162         sense that when I couldn't determine whether an overflow was possible,
78163         I inserted a run-time check.
78164         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
78165         macros.
78166         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
78167         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
78168         (re_xnrealloc, re_x2nrealloc): New inline functions.
78169         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
78170         parse_bracket_exp):
78171         (build_equiv_class, build_charclass): Check for arithmetic overflow
78172         in size expression calculations.
78173         * lib/regex_internal.c (re_string_realloc_buffers):
78174         (build_wcs_upper_buffer, re_node_set_add_intersect):
78175         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
78176         (re_dfa_add_node, register_state): Likewise.
78177         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
78178         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
78179         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
78180         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
78181
78182 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78185         m4/ulonglong.m4.  Problem reported by Martin Lambers.
78186
78187 2005-09-02  Bruno Haible  <bruno@clisp.org>
78188
78189         Support for lib vs. lib64 distinction on biarch platforms.
78190         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
78191         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
78192         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
78193
78194 2005-09-02  Bruno Haible  <bruno@clisp.org>
78195
78196         * gnulib-tool (import): In the other first-use case, provide defaults
78197         as well.
78198
78199 2005-09-02  Bruno Haible  <bruno@clisp.org>
78200
78201         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
78202         patches not yet found in the latest gettext release.
78203
78204 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
78207         to avoid a collision with bits/local_lim.h in glibc.
78208         All uses changed.  Problem reported by Dmitry V. Levin in
78209         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
78210
78211         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
78212         bugs in int versus size_t comparisons.
78213         (re_string_context_at): Fix bug where the code assumed that
78214         Idx is signed.
78215
78216         Use bool where appropriate.
78217         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
78218         All callers changed.
78219         (calc_eclosure_iter): Likewise, for ROOT arg.
78220         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
78221         (build_charclass_op): Likewise, for NON_MATCH arg.
78222         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78223         (re_string_construct_common): Likewise, for ICASE arg.
78224         * lib/regexec.c (re_search_2_stub, re_search_stub):
78225         Likewise, for RET_LEN arg.
78226         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78227         (set_regs): Likewise, for FL_BACKTRACK arg.
78228         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78229         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78230         (calc_eclosure_iter, parse_bracket_exp):
78231         Use bool for internal variables that are booleans.
78232         * lib/regexec.c (re_search_internal, check_matching,
78233         proceed_next_node):
78234         (set_regs, build_sifted_states, sift_states_bkref):
78235         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78236         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78237         (find_collation_sequence_value):
78238         Likewise.
78239         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78240         (re_node_set_compare):
78241         Return bool, not int. All callers changed.
78242         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78243         (build_trtable, check_node_accept): Likewise.
78244         * lib/regex_internal.h: Include stdbool.h.
78245
78246         Fix bugs uncovered when converting to bool.
78247         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78248         failure instead of charging ahead blindly.
78249         * lib/regex_internal.c (register_state): Likewise.
78250         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78251         for freeing internal storage.
78252         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78253         bitset pieces used as boolean, to avoid undefined behavior
78254         on hosts that do int overflow checking.
78255
78256 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * config/srclist.txt: Add glibc bugs 1285-1287.
78259
78260 2005-09-01  Jim Meyering  <jim@meyering.net>
78261
78262         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78263         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78264         Require gl_STAT_MACROS, too.
78265
78266 2005-09-01  Bruno Haible  <bruno@clisp.org>
78267
78268         * gnulib-tool (import): In the first-use case, provide defaults.
78269
78270 2005-09-01  Bruno Haible  <bruno@clisp.org>
78271
78272         * gnulib-tool (func_import): Remove the .tmp files.
78273
78274 2005-09-01  Bruno Haible  <bruno@clisp.org>
78275
78276         * gnulib-tool (func_import): Fix handling of symbolic links.
78277
78278 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78281         old glibc regex code mishandles strings longer than 2**31 bytes.
78282         This patch fixes this when the regex code is used in gnulib
78283         (i.e., outside glibc).
78284
78285         This patch should not affect the use of the regex code inside
78286         glibc.  No doubt this problem also needs to be handled for glibc
78287         as well, but the result will be an incompatible change to the
78288         glibc ABI, and the old ABI will have to be supported too.  That
78289         can be the the subject for another patch.
78290
78291         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78292         governing whether the rest of this patch is active.  By default,
78293         the macro is disabled and the patch has no effect.
78294         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78295         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78296         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78297         (re_match_2, re_set_registers): Use the new types.
78298         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78299         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78300         New macros.
78301         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78302         (re_string_context_at, bin_tree_t, re_dfastate_t):
78303         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78304         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78305         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78306         (re_string_char_size_at, re_string_wchar_at):
78307         (re_string_elem_size_at):
78308         Use the new types and macros to port to 64-bit hosts.
78309         Use unsigned types for internal values, so that the code
78310         mostly works even for arrays larger than SSIZE_MAX.
78311         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78312         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78313         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78314         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78315         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78316         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78317         (calc_inveclosure, parse_dup_op, build_range_exp):
78318         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78319         (fetch_number, create_token_tree, mark_opt_subexp):
78320         Likewise.
78321         * lib/regex_internal.c (re_string_construct_common,
78322         create_ci_newstate):
78323         (create_cd_newstate, re_string_allocate, re_string_construct):
78324         (re_string_realloc_buffers, build_wcs_upper_buffer):
78325         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78326         (re_string_reconstruct, re_string_peek_byte_case):
78327         (re_string_fetch_byte_case, re_string_context_at):
78328         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78329         (re_node_set_init_copy, re_node_set_add_intersect):
78330         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78331         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78332         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78333         (re_acquire_state, re_acquire_state_context, register_state):
78334         Likewise.
78335         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78336         search_cur_bkref_entry):
78337         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78338         (re_search_internal, re_search_2_stub, re_search_stub)
78339         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78340         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78341         (update_cur_sifted_state, check_dst_limits):
78342         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78343         (check_subexp_limits, sift_states_bkref, merge_state_array):
78344         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78345         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78346         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78347         (expand_bkref_cache, check_node_accept_bytes):
78348         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78349         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78350         (acquire_init_state_context, check_halt_node_context):
78351         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78352         (sift_states_backward, clean_state_log_if_needed):
78353         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78354         (find_recover_state, transit_state_sb, transit_state_mb):
78355         (transit_state_bkref, build_trtable, match_ctx_clean):
78356         Likewise.
78357         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78358         to work around an assumption that REG_MISSING is negative.
78359
78360         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78361         (seek_collating_symbol_entry) [defined _LIBC]:
78362         (lookup_collation_sequence_value) [defined _LIBC]:
78363         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78364         Use prototypes rather than old-style function definitions.
78365         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78366         (transit_state_sb) [0]:
78367         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78368
78369         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78370         rm_eo.
78371
78372         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78373         (optimize_subexps, lower_subexp):
78374         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78375         since the signed shift might overflow.  Use 1u<<31 instead.
78376         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78377         Likewise.
78378         * lib/regexec.c (check_dst_limits_calc_pos_1,
78379         check_subexp_matching_top): Likewise.
78380
78381         * lib/regcomp.c (optimize_subexps, lower_subexp):
78382         Use CHAR_BIT rather than 8, for clarity.
78383         * lib/regexec.c (check_dst_limits_calc_pos_1):
78384         (check_subexp_matching_top): Likewise.
78385         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78386         have to worry about portability issues when shifting it left.
78387         Remove no-longer-needed test for table_size > 0.
78388         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78389         in a word, as the resulting behavior is undefined.
78390         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78391         in one case, a <= should have been an <, and in another case the
78392         whole test was missing.
78393         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78394         the standard name CHAR_BIT.
78395         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78396         this is not true on one's complement and signed-magnitude hosts.
78397
78398         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78399         next_last_offset.
78400         (struct re_dfa_t): Remove unused member states_alloc.
78401         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78402
78403 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78406         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78407         and large-file glibc and in 32-bit large-file Solaris.
78408
78409 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78410
78411         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78412         lengths fit in regoff_t; this isn't true if regoff_t is the same
78413         width as size_t.
78414         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78415         (= START + RANGE) instead of RANGE.  This avoids overflow
78416         problems when regoff_t is the same width as size_t.
78417         All callers changed.
78418         (re_search_2_stub): Check for overflow when adding the
78419         sizes of the two strings.
78420         (re_search_stub): Check for overflow when adding START
78421         to RANGE; if it occurs, substitute the extreme value.
78422
78423 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78426
78427 2005-08-31  Jim Meyering  <jim@meyering.net>
78428
78429         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78430         a pointer-to-const.
78431         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78432         (register_state): Likewise.
78433         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78434         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78435         (group_nodes_into_DFAstates): Likewise.
78436
78437 2005-08-31  Jim Meyering  <jim@meyering.net>
78438
78439         * check-module: Add a FIXME comment.
78440
78441 2005-08-31  Eric Blake  <ebb9@byu.net>
78442
78443         * modules/unistd-safer (Files): Add unistd--.h.
78444         * modules/stdio-safer (Files): Add stdio--.h.
78445
78446 2005-08-31  Derek Price  <derek@ximbiot.com>
78447
78448         * lib/getdelim.c (getdelim): Return EOF on EOF.
78449         Reported by Larry Jones <lawrence.jones@ugs.com>.
78450
78451 2005-08-31  Bruno Haible  <bruno@clisp.org>
78452
78453         Avoid unnecessary diffs in the generated lib/Makefile.am.
78454         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78455         the generated files.
78456         (func_import): Don't set cmd.
78457
78458 2005-08-31  Bruno Haible  <bruno@clisp.org>
78459
78460         * lib/strstr.c: Include <stddef.h>, for NULL.
78461         * lib/strcasestr.c: Likewise.
78462         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78463
78464 2005-08-31  Bruno Haible  <bruno@clisp.org>
78465
78466         * gnulib-tool: New option --macro-prefix.
78467         (func_import): Use macro_prefix.
78468         (import): Handle option --macro-prefix.
78469
78470 2005-08-31  Bruno Haible  <bruno@clisp.org>
78471
78472         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78473         Also use new variables cached_lgpl, cached_libtool.
78474
78475 2005-08-31  Bruno Haible  <bruno@clisp.org>
78476
78477         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78478         always instantiating them.
78479
78480 2005-08-31  Bruno Haible  <bruno@clisp.org>
78481
78482         * gnulib-tool (func_import): Read the previous cached settings
78483         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78484         earlier added by gnulib but are now dropped. Warn when a gnulib file
78485         overwrites a non-gnulib file.
78486
78487 2005-08-31  Bruno Haible  <bruno@clisp.org>
78488
78489         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78490         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78491         projects that don't keep autogenerated files in CVS. Put into
78492         actioncmd only the specified modules, not the transitive closure.
78493
78494 2005-08-31  Bruno Haible  <bruno@clisp.org>
78495
78496         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78497         Create directories that shall be filled.
78498         (import): Don't look for gl_* macros in configure.ac. Recurse across
78499         all directories containing a gnulib-cache.m4 files, if meaningful.
78500
78501 2005-08-31  Bruno Haible  <bruno@clisp.org>
78502
78503         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78504         (import): Set seen_libtool when we see gl_LIBTOOL.
78505
78506 2005-08-31  Bruno Haible  <bruno@clisp.org>
78507
78508         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78509         declaration macro definitions from generated gnulib.m4.
78510
78511 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78512
78513         * lib/iconvme.h: Add prototype for iconv_alloc.
78514
78515 2005-08-29  Simon Josefsson  <jas@extundo.com>
78516
78517         * lib/iconvme.c: Fix errno.
78518
78519 2005-08-29  Bruno Haible  <bruno@clisp.org>
78520
78521         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78522         that it works when the directory contains spaces.
78523
78524 2005-08-29  Bruno Haible  <bruno@clisp.org>
78525
78526         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78527
78528 2005-08-29  Bruno Haible  <bruno@clisp.org>
78529
78530         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78531         Emit more advice.
78532
78533 2005-08-29  Bruno Haible  <bruno@clisp.org>
78534         and Stepan Kasal  <kasal@ucw.cz>
78535
78536         * check-module: If more parameters are given, check each of them
78537         separately; add more exceptions, as noted by Jim Meyering.
78538         (check_module): New procedure.
78539         (%exempt_header): Now contains all exceptions.
78540
78541 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78542
78543         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78544
78545 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78546
78547         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78548
78549 2005-08-28  Bruno Haible  <bruno@clisp.org>
78550
78551         * m4/gnulib-tool.m4: New file.
78552
78553 2005-08-27  Jim Meyering  <jim@meyering.net>
78554
78555         * modules/unistd-safer (Files): Add pipe-safer.c.
78556         * modules/fcntl-safer (Files): Add creat-safer.c.
78557
78558 2005-08-27  Jim Meyering  <jim@meyering.net>
78559
78560         * m4/stdlib-safer.m4: New file.  From coreutils.
78561         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78562         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78563         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78564         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78565         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78566
78567 2005-08-27  Jim Meyering  <jim@meyering.net>
78568
78569         * lib/fopen-safer.c: Merge minor changes from coreutils.
78570         * lib/dup-safer.c: Likewise.
78571         * lib/fd-safer.c: Likewise.
78572
78573         Merge from coreutils.
78574         * lib/stdio--.h: New file.
78575         * lib/stdlib--.h: New file.
78576         * lib/mkstemp-safer.c: New file.
78577
78578         GNU tar needs these.
78579         * lib/pipe-safer.c: New file.
78580         * lib/creat-safer.c: New file.
78581         * lib/fcntl--.h (creat): Define to creat_safer.
78582         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78583         * lib/unistd--.h (pipe): Define to pipe_safer.
78584         * lib/unistd-safer.h: Declare pipe_safer.
78585
78586 2005-08-26  Simon Josefsson  <jas@extundo.com>
78587
78588         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78589         Haible <bruno@clisp.org>.
78590
78591 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78592
78593         * lib/regex_internal.h: Remove all references to
78594         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78595         or better.
78596         (bitset_not, bitset_merge, bitset_not_merge):
78597         (bitset_mask, re_string_allocate, re_string_construct):
78598         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78599         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78600         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78601         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78602         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78603         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78604         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78605         (re_acquire_state_context):
78606         Remove unnecessary forward decls.
78607         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78608         Put __attribute at function definition,
78609         now that the function decl has been removed.
78610         * lib/regex_internal.c (re_string_peek_byte_case):
78611         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78612         Likewise.
78613
78614 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78615
78616         * m4/regex.m4: Add AC_PREREQ(2.50).
78617         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78618
78619 2005-08-25  Simon Josefsson  <jas@extundo.com>
78620
78621         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78622         __fsetlocking.
78623
78624 2005-08-25  Simon Josefsson  <jas@extundo.com>
78625
78626         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78627         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78628         GLIBC specific code.
78629
78630 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         Make regex safe for g++.  This fixes one real bug (an "err"
78633         that should have been "*err").  g++ problem reported by
78634         Sam Steingold.
78635         * lib/regex_internal.h (re_calloc): New macro, consistent with
78636         re_malloc etc.  All callers of calloc changed to use re_calloc.
78637         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78638         not int.  All callers changed.
78639         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78640         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78641         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78642         (find_recover_state): Change "err" to "*err"; this fixes what
78643         appears to be a real bug.
78644         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78645         versus int.
78646
78647 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * modules/regex (Depends-on): Add malloc, since the code
78650         assumes that !malloc(0) means failure.
78651
78652 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78655
78656         alloca modernization/simplification for regex.
78657         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78658         needs to be at the start of the file, and can be moved into
78659         regex_internal.h and simplified.
78660         * lib/regex_internal.h: Include <alloca.h>.
78661         (__libc_use_alloca) [!defined _LIBC]: New macro.
78662         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78663         now works outside glibc.
78664
78665 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * config/srclist.txt: Add glibc bugs 1241, 1245.
78668
78669 2005-08-25  Jim Meyering  <jim@meyering.net>
78670
78671         * lib/open-safer.c: Include <config.h>.
78672         Otherwise, we'd lose LARGEFILE support in any file using
78673         e.g. "fcntl--.h"
78674
78675 2005-08-25  Bruno Haible  <bruno@clisp.org>
78676
78677         * m4/minmax.m4: Require autoconf 2.52.
78678         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78679         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78680         alternatives of translit over the alphabet.
78681         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78682
78683 2005-08-24  Simon Josefsson  <jas@extundo.com>
78684
78685         * tests/test-getpass.c: New file.
78686
78687 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78690         for GNU regex features.
78691
78692 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78695         * lib/regex.h (regerror): Likewise.
78696
78697         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78698         requires this.  (The code never needed it.)
78699
78700         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78701         All uses of recently-renamed identifiers changed to use the new,
78702         POSIX-compliant names.  The code will build and run just fine
78703         without these changes, but it's better to eat our own dog food
78704         and use the standard-conforming names.
78705
78706         * lib/regex.h: Fix a multitude of POSIX name space violations.
78707         These changes have an effect only for programs that define
78708         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78709         do not change anything for programs compiled in the normal way.
78710         Also, there is no effect on the ABI.
78711
78712         (_REGEX_SOURCE): New macro.
78713         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78714         defined and _GNU_SOURCE is not; this fixes a name space violation.
78715
78716         Rename the following macros to obey POSIX requirements.
78717         The old names are still visible as macros if _REGEX_SOURCE is defined.
78718         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78719         RE_BACKSLASH_ESCAPE_IN_LISTS.
78720         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78721         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78722         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78723         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78724         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78725         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78726         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78727         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78728         (REG_INTERVALS): renamed from RE_INTERVALS.
78729         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78730         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78731         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78732         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78733         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78734         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78735         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78736         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78737         RE_UNMATCHED_RIGHT_PAREN_ORD.
78738         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78739         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78740         (REG_DEBUG): renamed from RE_DEBUG.
78741         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78742         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78743         unusual, since we can't clash with the POSIX REG_ICASE.
78744         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78745         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78746         (REG_NO_SUB): renamed from RE_NO_SUB.
78747         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78748         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78749         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78750         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78751         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78752         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78753         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78754         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78755         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78756         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78757         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78758         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78759         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78760         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78761         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78762         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78763         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78764         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78765         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78766         (REG_FIXED): Renamed from REGS_FIXED.
78767         (REG_NREGS): Renamed from RE_NREGS.
78768
78769         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78770         of other REG_* macros, since POSIX says the user is allowed to
78771         #undef these macros selectively.
78772
78773         (reg_errcode_t): Update comment stating what other tables need
78774         to be consistent.
78775
78776         Rename the following enum values to obey POSIX requirements.
78777         The old names are still visible as macros.
78778         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78779         is not defined, since GNU is supposed to be a superset of POSIX as
78780         much as possible, and since we want reg_errcode_t to be a signed
78781         type for implementation consistency.
78782         (_REG_NOERROR): Renamed from REG_NOERROR.
78783         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78784         (_REG_BADPAT): Renamed from REG_BADPAT.
78785         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78786         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78787         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78788         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78789         (_REG_EBRACK): Renamed from REG_EBRACK.
78790         (_REG_EPAREN): Renamed from REG_EPAREN.
78791         (_REG_EBRACE): Renamed from REG_EBRACE.
78792         (_REG_BADBR): Renamed from REG_BADBR.
78793         (_REG_ERANGE): Renamed from REG_ERANGE.
78794         (_REG_ESPACE): Renamed from REG_ESPACE.
78795         (_REG_BADRPT): Renamed from REG_BADRPT.
78796         (_REG_EEND): Renamed from REG_EEND.
78797         (_REG_ESIZE): Renamed from REG_ESIZE.
78798         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78799         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78800         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78801         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78802         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78803
78804         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78805         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78806         changed.  But support the old name if the new one is not defined
78807         and if _REGEX_SOURCE.
78808
78809         Change the following member names in struct re_pattern_buffer.
78810         The old names are still supported if !_REGEX_SOURCE.
78811         The new names are always supported, regardless of _REGEX_SOURCE.
78812         (re_buffer): Renamed from buffer.
78813         (re_allocated): Renamed from allocated.
78814         (re_used): Renamed from used.
78815         (re_syntax): Renamed from syntax.
78816         (re_fastmap): Renamed from fastmap.
78817         (re_translate): Renamed from translate.
78818         (re_can_be_null): Renamed from can_be_null.
78819         (re_regs_allocated): Renamed from regs_allocated.
78820         (re_fastmap_accurate): Renamed from fastmap_accurate.
78821         (re_no_sub): Renamed from no_sub.
78822         (re_not_bol): Renamed from not_bol.
78823         (re_not_eol): Renamed from not_eol.
78824         (re_newline_anchor): Renamed from newline_anchor.
78825
78826         Change the following member names in struct re_registers.
78827         The old names are still supported if !_REGEX_SOURCE.
78828         The new names are always supported, regardless of _REGEX_SOURCE.
78829         (rm_num_regs): Renamed from num_regs.
78830         (rm_start): Renamed from start.
78831         (rm_end): Renamed from end.
78832
78833         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78834         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78835         Prepend __ to parameter names.
78836
78837         Undo yesterday's changes.
78838
78839 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78842         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78843         lib/regex.c.
78844
78845 2005-08-24  Jim Meyering  <jim@meyering.net>
78846
78847         Sync from coreutils.
78848         * m4/fcntl-safer.m4: New file.
78849
78850         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78851         and object files for this module.
78852
78853 2005-08-24  Jim Meyering  <jim@meyering.net>
78854
78855         Sync from coreutils.
78856         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78857
78858 2005-08-24  Jim Meyering  <jim@meyering.net>
78859
78860         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78861         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78862
78863 2005-08-24  Jim Meyering  <jim@meyering.net>
78864
78865         * modules/fcntl-safer: New module.
78866         * modules/fts (Depends-on): Add fcntl-safer.
78867         * MODULES.html.sh (File descriptor based Input/Output):
78868         Add fcntl-safer.
78869
78870 2005-08-24  Bruno Haible  <bruno@clisp.org>
78871
78872         Support for unit test modules.
78873         * modules/README: Mention tests modules.
78874         * modules/TEMPLATE-TESTS: New file.
78875         * gnulib-tool: New options --extract-tests-module, --with-tests and
78876         --tests-base (unused for the moment).
78877         (testsbase, inctests): New variables.
78878         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78879         (func_verify_module): Exclude TEMPLATE-TESTS.
78880         (func_verify_nontests_module, func_verify_tests_module): New functions.
78881         (func_get_dependencies): Add implicit dependency for tests modules.
78882         (func_get_tests_module): New function.
78883         (func_modules_transitive_closure): When --with-tests was specified,
78884         include the unit tests as well, unless explicitly avoided.
78885         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78886         (func_emit_tests_Makefile_am): New function.
78887         (func_create_testdir): When --with-tests was specified, emit a
78888         tests/ directory.
78889         * MODULES.html.sh (Future developments): Update.
78890
78891 2005-08-24  Bruno Haible  <bruno@clisp.org>
78892
78893         * modules/tls-tests: New file.
78894         * tests/test-tls.c: New file, from GNU gettext.
78895
78896 2005-08-24  Bruno Haible  <bruno@clisp.org>
78897
78898         * modules/lock-tests: New file.
78899         * tests/test-lock.c: New file, from GNU gettext.
78900
78901 2005-08-24  Bruno Haible  <bruno@clisp.org>
78902
78903         * lib/lock.h: Add multiple inclusion guard.
78904         * lib/tls.h: Add multiple inclusion guard.
78905
78906 2005-08-24  Bruno Haible  <bruno@clisp.org>
78907
78908         * gnulib-tool: Add support for the --aux-dir option to
78909         --create-testdir, --create-megatestdir, --test, --megatest.
78910         (func_create_testdir, func_create_megatestdir): Optionally emit a
78911         AC_CONFIG_AUX_DIR directive.
78912         (create-testdir, create-megatestdir, test, megatest): Provide a
78913         default value for $auxdir.
78914
78915 2005-08-24  Bruno Haible  <bruno@clisp.org>
78916
78917         * gnulib-tool (import): Use compound statement instead of subshell
78918         where possible.
78919
78920 2005-08-24  Bruno Haible  <bruno@clisp.org>
78921
78922         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78923
78924 2005-08-24  Bruno Haible  <bruno@clisp.org>
78925
78926         * gnulib-tool (func_version): Update.
78927
78928 2005-08-24  Bruno Haible  <bruno@clisp.org>
78929
78930         * gnulib-tool (func_import, func_create_testdir,
78931         func_create_megatestdir): Quote all autoconf macro arguments.
78932
78933 2005-08-24  Bruno Haible  <bruno@clisp.org>
78934
78935         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78936         option --force, because --force causes the aclocal.m4 of each
78937         subdirectory to be newer than the corresponding config.h.in.
78938
78939 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78942         All contents moved to gl_REGEX.
78943         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78944         assume that it does.
78945
78946 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * lib/regex.h (REG_NOSYS)
78949         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78950         Define, since POSIX requires it as of 2001.
78951         (_REG_ENOSYS)
78952         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78953         New private symbol, used to keep the enum signed in all cases.
78954         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78955         Youngman in
78956         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78957
78958         * lib/regex_internal.c (re_string_skip_chars, register_state):
78959         (calc_state_hash):
78960         Remove forward decls; no longer needed now that we use prototypes.
78961         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78962         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78963         (clean_state_log_if_needed): Likewise.
78964
78965 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * config/srclist.txt: Add glibc bugs 1231-1233.
78968
78969 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         Fix problems reported by Sam Steingold in
78972         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78973         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78974         assumed that reg_errcode_t is a signed type, which is not
78975         necessarily true if _XOPEN_SOURCE is not defined.
78976         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78977         since some compilers warn about it otherwise.
78978
78979 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78982         (init_word_char, create_initial_state, duplicate_node_closure):
78983         (fetch_token, peek_token_bracket, build_range_exp):
78984         (build_collating_symbol): Remove forward decls; no longer needed
78985         now that we use prototypes.
78986
78987         * lib/regcomp.c:
78988         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78989         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78990         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78991         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78992         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78993         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78994         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78995         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78996         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78997         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78998         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78999         (build_charclass, build_charclass_op, fetch_number, create_tree):
79000         (create_token_tree, mark_opt_subexp, duplicate_tree):
79001         Use prototypes rather than old-style definitions.
79002
79003         * lib/regex_internal.c:
79004         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
79005         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
79006         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79007         (re_string_reconstruct, re_string_peek_byte_case):
79008         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
79009         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79010         (re_node_set_init_copy, re_node_set_add_intersect):
79011         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79012         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79013         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79014         (re_acquire_state, re_acquire_state_context, register_state):
79015         (create_ci_newstate, create_cd_newstate, free_state):
79016         Likewise.
79017         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
79018         re_search_2):
79019         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
79020         (re_search_internal, prune_impossible_nodes):
79021         (acquire_init_state_context, check_matching, static):
79022         (check_halt_node_context, check_halt_state_context, proceed_next_node):
79023         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
79024         (update_regs, sift_states_backward, build_sifted_states):
79025         (clean_state_log_if_needed, merge_state_array):
79026         (update_cur_sifted_state, add_epsilon_src_nodes):
79027         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
79028         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
79029         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
79030         (find_recover_state, check_subexp_matching_top, transit_state_mb):
79031         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
79032         (check_arrival, check_arrival_add_next_nodes):
79033         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79034         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79035         (check_node_accept_bytes, check_node_accept, extend_buffers):
79036         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
79037         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
79038         (sift_ctx_init):
79039         Likewise.
79040
79041         * lib/regex_internal.h:
79042         (re_string_allocate, re_string_construct, re_string_reconstruct):
79043         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
79044         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
79045         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
79046         (re_string_context_at, re_string_peek_byte_case):
79047         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
79048         is defined, since we now use prototypes always.
79049
79050         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
79051         C89 or better.  All uses removed.
79052
79053 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * config/srclist.txt: Add glibc bugs 1220-1227.
79056
79057 2005-08-20  Jim Meyering  <jim@meyering.net>
79058
79059         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
79060         of unused local, dfa.
79061
79062 2005-08-20  Bruno Haible  <bruno@clisp.org>
79063
79064         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
79065
79066 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
79069         (re_node_set_insert_last, re_dfa_add_node):
79070         Rename local variables to avoid GCC shadowing warnings.
79071
79072 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79073
79074         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
79075         [defined lint]: Suppress bogus uninitialized-variable warnings.
79076
79077         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
79078         and let the caller return REG_ESPACE if out of space.  This
79079         removes an uninitialied-variable warning with GCC 4.0.1, and also
79080         avoids taking the address of a local variable.  All callers
79081         changed.
79082
79083 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
79086         $LIBCSRC/posix/regexec.c.
79087         Add glibc bug 1217 for regcomp.c.
79088
79089 2005-08-19  Jim Meyering  <jim@meyering.net>
79090
79091         * lib/regexec.c (proceed_next_node): Redo local variables to
79092         avoid GCC shadowing warnings.
79093
79094 2005-08-18  Bruno Haible  <bruno@clisp.org>
79095
79096         * lib/strstr.c (strstr): Fix return value in multibyte case.
79097         * lib/strcasestr.c (strcasestr): Likewise.
79098
79099 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
79102
79103 2005-08-17  Jim Meyering  <jim@meyering.net>
79104
79105         Make the %s format (seconds since the epoch) work for a negative
79106         number and when used with a zero-padded field width, e.g. %015s.
79107
79108         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
79109         label so that it precedes the code to set `digits'.  Otherwise,
79110         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
79111         print `00-22'.  Now, it prints `-0022', as it should.
79112
79113 2005-08-17  Bruno Haible  <bruno@clisp.org>
79114
79115         * modules/strstr (Files): Add m4/mbrtowc.m4.
79116         (Depends-on): Add mbuiter.
79117
79118 2005-08-17  Bruno Haible  <bruno@clisp.org>
79119
79120         * modules/strcasestr: New file.
79121         * MODULES.html.sh (String handling, based on ANSI C 89): Add
79122         strcasestr.
79123
79124 2005-08-17  Bruno Haible  <bruno@clisp.org>
79125
79126         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
79127
79128 2005-08-17  Bruno Haible  <bruno@clisp.org>
79129
79130         * modules/mbuiter: New file.
79131         * MODULES.html.sh (Extended multibyte and wide character utilities):
79132         Add mbuiter.
79133
79134 2005-08-17  Bruno Haible  <bruno@clisp.org>
79135
79136         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
79137         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
79138
79139 2005-08-17  Bruno Haible  <bruno@clisp.org>
79140
79141         * m4/strcasestr.m4: New file.
79142
79143 2005-08-17  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
79146         * lib/strstr.c: Completely rewritten, with multibyte locale support.
79147
79148 2005-08-17  Bruno Haible  <bruno@clisp.org>
79149
79150         * lib/strcasestr.h: New file.
79151         * lib/strcasestr.c: New file.
79152
79153 2005-08-17  Bruno Haible  <bruno@clisp.org>
79154
79155         * lib/strcasecmp.c: Use mbuiter.h.
79156
79157 2005-08-17  Bruno Haible  <bruno@clisp.org>
79158
79159         * lib/mbuiter.h: New file.
79160
79161 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79162
79163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
79164         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
79165         and gl_GETOPT are both invoked via different paths (as happens
79166         with GNU tar CVS because it uses both argp and getopt), the former
79167         wins.
79168
79169 2005-08-16  Bruno Haible  <bruno@clisp.org>
79170
79171         * modules/tls: New file.
79172         * MODULES.html.sh (Multithreading): Add tls.
79173
79174 2005-08-16  Bruno Haible  <bruno@clisp.org>
79175
79176         * modules/strnlen1: New file.
79177         * MODULES.html.sh (String handling): Add strnlen1.
79178
79179 2005-08-16  Bruno Haible  <bruno@clisp.org>
79180
79181         * modules/strcase (Files): Add m4/mbrtowc.m4.
79182         (Depends-on): Add strnlen1, mbchar.
79183
79184 2005-08-16  Bruno Haible  <bruno@clisp.org>
79185
79186         * modules/mbiter: New file.
79187         * MODULES.html.sh (Extended multibyte and wide character utilities):
79188         Add mbiter.
79189
79190 2005-08-16  Bruno Haible  <bruno@clisp.org>
79191
79192         * modules/mbfile: New file.
79193         * MODULES.html.sh (Extended multibyte and wide character utilities):
79194         Add mbfile.
79195
79196 2005-08-16  Bruno Haible  <bruno@clisp.org>
79197
79198         * modules/mbchar: New file.
79199         * MODULES.html.sh (Extended multibyte and wide character utilities):
79200         New section.
79201
79202 2005-08-16  Bruno Haible  <bruno@clisp.org>
79203
79204         * m4/tls.m4: New file, from GNU gettext.
79205
79206 2005-08-16  Bruno Haible  <bruno@clisp.org>
79207
79208         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
79209         always.
79210         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
79211
79212 2005-08-16  Bruno Haible  <bruno@clisp.org>
79213
79214         * m4/mbiter.m4: New file.
79215
79216 2005-08-16  Bruno Haible  <bruno@clisp.org>
79217
79218         * m4/mbfile.m4: New file.
79219
79220 2005-08-16  Bruno Haible  <bruno@clisp.org>
79221
79222         * m4/mbchar.m4: New file.
79223
79224 2005-08-16  Bruno Haible  <bruno@clisp.org>
79225
79226         * lib/tls.h: New file, from GNU gettext.
79227         * lib/tls.c: New file, from GNU gettext.
79228
79229 2005-08-16  Bruno Haible  <bruno@clisp.org>
79230
79231         * lib/strnlen1.h: New file.
79232         * lib/strnlen1.c: New file.
79233
79234 2005-08-16  Bruno Haible  <bruno@clisp.org>
79235
79236         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79237         (mbi_init): Update.
79238         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79239         NUL byte, not after it.
79240
79241 2005-08-16  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/strcase.h (strcasecmp): Add note in comments.
79244         * lib/strncasecmp.c: Use code from strcasecmp.c.
79245         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79246         (strcasecmp): Work correctly in multibyte locales.
79247
79248 2005-08-16  Bruno Haible  <bruno@clisp.org>
79249
79250         * lib/mbiter.h: New file.
79251
79252 2005-08-16  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/mbfile.h: New file.
79255
79256 2005-08-16  Bruno Haible  <bruno@clisp.org>
79257
79258         * lib/mbchar.h: New file.
79259         * lib/mbchar.c: New file.
79260
79261 2005-08-16  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79264         the valid ones. Makes the comparison operations transitive:
79265         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79266         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79267
79268 2005-08-15  Simon Josefsson  <jas@extundo.com>
79269
79270         * modules/ssize_t (License): Change to 'unlimited'.
79271
79272         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79273
79274 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79277         Add comments for each pending glibc patch.
79278
79279 2005-08-15  Bruno Haible  <bruno@clisp.org>
79280
79281         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79282         __cplusplus is defined.
79283
79284 2005-08-14  Jim Meyering  <jim@meyering.net>
79285
79286         Sync from coreutils.
79287
79288         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79289         Use the hash-table-based cycle-detection code not just when
79290         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79291         Reported by James Youngman in
79292         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79293         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79294         FTS_TIGHT_CYCLE_CHECK.
79295         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79296         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79297         once again.
79298         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79299         * lib/fts.c (fd_safer): Remove decl.
79300         Include fcntl--.h rather than unistd-safer.h
79301         (fts_safe_changedir): Don't call fd_safer; no longer needed
79302         now that we include fcntl--.h.
79303
79304 2005-08-12  Simon Josefsson  <jas@extundo.com>
79305
79306         * modules/getndelim2: Use ssize_t module.
79307         * modules/getnline: Likewise.
79308         * modules/safe-read: Likewise.
79309         * modules/xreadlink: Likewise.
79310
79311         * modules/ssize_t: New file.
79312
79313 2005-08-12  Simon Josefsson  <jas@extundo.com>
79314
79315         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79316
79317 2005-08-12  Simon Josefsson  <jas@extundo.com>
79318
79319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79320         ssize_t.
79321
79322 2005-08-12  Simon Josefsson  <jas@extundo.com>
79323
79324         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79325         readline, getdelim and check_version.
79326         (Support for systems lacking ISO C 99: Sizes of integer types):
79327         Add size_max.
79328
79329 2005-08-12  Bruno Haible  <bruno@clisp.org>
79330
79331         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79332
79333 2005-08-11  Simon Josefsson  <jas@extundo.com>
79334
79335         * modules/readline: New file.
79336
79337         * modules/strnlen (Files): Add strnlen.h.
79338
79339 2005-08-11  Simon Josefsson  <jas@extundo.com>
79340
79341         * m4/readline.m4: New file.
79342
79343 2005-08-11  Simon Josefsson  <jas@extundo.com>
79344
79345         * lib/readline.h, readline.c: New file.
79346
79347 2005-08-11  Simon Josefsson  <jas@extundo.com>
79348
79349         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79350         gl_AVOID.
79351
79352 2005-08-11  Bruno Haible  <bruno@clisp.org>
79353
79354         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79355
79356 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79357
79358         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79359
79360 2005-08-10  Simon Josefsson  <jas@extundo.com>
79361
79362         * tests/test-iconvme.c: New file.
79363
79364 2005-08-10  Simon Josefsson  <jas@extundo.com>
79365
79366         * m4/strnlen.m4: New file.
79367
79368         * m4/strndup.m4: Don't check for strnlen declaration, done in
79369         strnlen.m4.
79370
79371 2005-08-10  Simon Josefsson  <jas@extundo.com>
79372
79373         * lib/strndup.c: Use strnlen.h.
79374
79375         * lib/strnlen.h: New file.
79376
79377 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79378
79379         * README: Typos.
79380
79381 2005-08-02  Simon Josefsson  <jas@extundo.com>
79382
79383         * modules/readline: New file.
79384
79385 2005-08-02  Simon Josefsson  <jas@extundo.com>
79386
79387         * modules/getdelim: New file.
79388
79389         * modules/getline: Rewrite, don't use getndelim2.
79390
79391 2005-08-02  Simon Josefsson  <jas@extundo.com>
79392
79393         * m4/getline.m4: Separate out getdelim stuff into separate module.
79394
79395         * m4/getdelim.m4: New file.
79396
79397 2005-08-02  Simon Josefsson  <jas@extundo.com>
79398
79399         * lib/getline.h, getline.c: Rewrite.
79400
79401         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79402
79403 2005-07-31  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/lock.h (gl_lock_initializer): New macro.
79406         (gl_lock_define_initialized): Use it.
79407         (gl_rwlock_initializer): New macro.
79408         (gl_rwlock_define_initialized): Use it.
79409         (gl_recursive_lock_initializer): New macro.
79410         (gl_recursive_lock_define_initialized): Use it.
79411
79412 2005-07-30  Karl Berry  <karl@gnu.org>
79413
79414         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79415         Report from Ben Pfaff, regarding getopt.
79416
79417 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79420         normal way.
79421         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79422         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79423         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79424         (gl_GETOPT): Use the new macros.  Most of the implementation
79425         is moved to the new macros.  This is for programs like Emacs
79426         that don't want all the functionality of gl_GETOPT.
79427
79428 2005-07-26  Bruno Haible  <bruno@clisp.org>
79429
79430         * m4/lock.m4: Update from GNU gettext.
79431
79432 2005-07-26  Bruno Haible  <bruno@clisp.org>
79433
79434         * lib/lock.h: Update from GNU gettext.
79435         * lib/lock.c: Update from GNU gettext.
79436
79437 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79440         obsolescent AC_TRY_RUN.  Include the default includes files, for
79441         'exit'.
79442
79443 2005-07-24  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/visibility: New file.
79446         * MODULES.html.sh (Misc): Add visibility.
79447
79448 2005-07-24  Bruno Haible  <bruno@clisp.org>
79449
79450         * m4/visibility.m4: New file.
79451
79452 2005-07-24  Bruno Haible  <bruno@clisp.org>
79453
79454         * doc/visibility.texi: New file.
79455
79456 2005-07-22  Bruno Haible  <bruno@clisp.org>
79457
79458         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79459         $(ALLOCA_H), redundant through BUILT_SOURCES.
79460         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79461         redundant through BUILT_SOURCES.
79462         * modules/byteswap (Makefile.am): Remove explicit dependency on
79463         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79464         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79465         $(FNMATCH_H), redundant through BUILT_SOURCES.
79466         * modules/getopt (Makefile.am): Remove explicit dependency on
79467         $(GETOPT_H), redundant through BUILT_SOURCES.
79468         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79469         redundant through BUILT_SOURCES.
79470         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79471         redundant through BUILT_SOURCES.
79472         * modules/stdbool (Makefile.am): Remove explicit dependency on
79473         $(STDBOOL_H), redundant through BUILT_SOURCES.
79474         * modules/stdint (Makefile.am): Remove explicit dependency on
79475         $(STDINT_H), redundant through BUILT_SOURCES.
79476         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79477         Remove explicit dependency on $(SYSEXITS_H).
79478         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79479
79480 2005-07-18  Simon Josefsson  <jas@extundo.com>
79481
79482         * lib/check-version.c (check_version): Accept identical versions too.
79483
79484 2005-07-18  Bruno Haible  <bruno@clisp.org>
79485
79486         * modules/lock: New file.
79487         * MODULES.html.sh (Multithreading): New section.
79488
79489 2005-07-18  Bruno Haible  <bruno@clisp.org>
79490
79491         * m4/lock.m4: New file, from GNU gettext.
79492
79493 2005-07-18  Bruno Haible  <bruno@clisp.org>
79494
79495         * lib/lock.h: New file, from GNU gettext.
79496         * lib/lock.c: New file, from GNU gettext.
79497
79498 2005-07-18  Bruno Haible  <bruno@clisp.org>
79499
79500         * lib/lock.h (gl_once_t): New type.
79501         (gl_once_define, gl_once): New macros.
79502         * lib/lock.c (fresh_once): New variable.
79503         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79504         functions.
79505
79506 2005-07-16  Simon Josefsson  <jas@extundo.com>
79507
79508         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79509         workaround, suggested by Bruno.
79510
79511 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * modules/xalloc (Depends-on): Add xalloc-die.
79514         * modules/xvasprintf (Depends-on): Add xalloc-die.
79515
79516 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79519         with a minor change.
79520
79521 2005-07-15  Bruno Haible  <bruno@clisp.org>
79522
79523         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79524         When using lib/poll.c, define poll as rpl_poll.
79525
79526 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * modules/argp (Depends-on): Remove unlocked-io.
79529
79530 2005-07-14  Derek Price  <derek@ximbiot.com>
79531
79532         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79533         for glob symlink bug.
79534
79535 2005-07-14  Bruno Haible  <bruno@clisp.org>
79536
79537         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79538         Instead, test for *_unlocked function declarations directly.
79539
79540 2005-07-11  Simon Josefsson  <jas@extundo.com>
79541
79542         * modules/size_max: New file.
79543
79544         * modules/xsize: Depend on size_max module for size_max.m4.
79545
79546 2005-07-11  Simon Josefsson  <jas@extundo.com>
79547
79548         * lib/size_max.h: New file.
79549
79550 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79553         copyright symbol and the year.
79554         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79555         (version_etc_va): Use parameterized copyright notice.
79556         Reword to conform to the current GNU coding standards.
79557
79558 2005-07-11  Karl Berry  <karl@gnu.org>
79559
79560         * doc/gnulib.texi (Quoting): new node.
79561         (Initial import): more info, from Patrice.
79562
79563 2005-07-11  Bruno Haible  <bruno@clisp.org>
79564
79565         * gnulib-tool (func_usage): Document option --avoid.
79566         (Command line options): Handle --avoid.
79567         (func_acceptable): New function.
79568         (func_modules_transitive_closure): Use it.
79569
79570 2005-07-11  Bruno Haible  <bruno@clisp.org>
79571
79572         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79573         Reported by Jim Meyering.
79574
79575 2005-07-10  Bruno Haible  <bruno@clisp.org>
79576
79577         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79578         Needed when size_t is smaller than 'unsigned int'.
79579         Reported by Paul Eggert.
79580
79581 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79582
79583         * modules/argp (Depends-on): Add unlocked-io
79584
79585 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79586
79587         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79588         block of defines.
79589
79590 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79593         fix now.
79594
79595 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79596         and Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79599         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79600
79601 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         * modules/regex (Files): Add lib/regex_internal.c,
79604         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79605         (Depends-on): Add extensions.
79606         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79607
79608 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79611         pathconf.
79612         * m4/same.m4 (gl_SAME): Likewise.
79613         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79614
79615         * m4/regex.m4: Adjust to new libc regex implementation.
79616         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79617         all the .c and .h parts of (the new) regex.
79618         Quote the m4 stuff better.
79619         Check for RE_ICASE bug of old gnulib.
79620         Check for REG_STARTEND of recent libc.
79621         Rename local variables from jm_* to gl_*.
79622         Quote operand of "test -f".
79623         Say "recent enough" version of libc, not "version 2".
79624         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79625         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79626         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79627         Remove check for btowc, isascii.
79628         Require AM_LANGINFO_CODESET.
79629
79630 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * lib/regex.c, regex.h: Sync from libc.
79633         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79634         * lib/regexec.c:
79635         New files, synced from libc, except that regex_internal.h
79636         currently has a small porting fix.
79637
79638 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79641         regex_internal.c, regexec.c.
79642         Add regex_internal.h too, but as a comment, since the libc version
79643         is currently broken in gnulib mode.
79644
79645 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         Support programs like Emacs that use gnulib but not gettext.
79648         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79649         * modules/gettext-h: New file.
79650         * modules/gettext (Files): Remove lib/gettext.h.
79651         (Depends-on): Add gettext-h.
79652         (Makefile.am): Remove lib_SOURCES.
79653         * modules/argmatch, modules/c-stack, modules/closeout:
79654         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79655         * modules/execute, modules/file-type, modules/getaddrinfo:
79656         * modules/getopt, modules/human, modules/javacomp:
79657         * modules/javaexec, modules/mkdir-p, modules/obstack:
79658         * modules/openat, modules/pagealign_alloc, modules/pipe:
79659         * modules/quotearg, modules/regex, modules/rpmatch:
79660         * modules/unicodeio, modules/userspec, modules/version-etc:
79661         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79662         * modules/xsetenv:
79663         Depend on gettext-h, not gettext.
79664
79665 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * gnulib-tool (func_import): Add support for 'public domain' license.
79668         * modules/alloca, modules/atexit, modules/memmove:
79669         Now public domain, not GPL.
79670         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79671         * modules/realloc, modules/strerror, modules/strtod:
79672         Now LGPL, not GPL.
79673
79674 2005-07-05  Bruno Haible  <bruno@clisp.org>
79675
79676         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79677         autoconf CVS. Needed for mingw.
79678
79679 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         Remove the dependency of the strftime module on the tzset module.
79682         * modules/strftime (Depends-on): Remove dependency on tzset.
79683
79684 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         Remove the dependency of the strftime module on the tzset module.
79687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79688         gl_FUNC_TZSET_CLOBBER.
79689
79690 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         Remove the dependency of the strftime module on the tzset module.
79693         * lib/strftime.c (my_strftime)
79694         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79695         Copy the input structure, to work around some of the bug with
79696         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79697         Solaris releases, you should also use the tzset module, but we won't
79698         require it as a dependency any more since we don't want LGPLed code
79699         to depend on GPLed code.
79700
79701 2005-07-02  Jim Meyering  <jim@meyering.net>
79702
79703         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79704         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79705         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79706         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79707
79708 2005-07-02  Jim Meyering  <jim@meyering.net>
79709
79710         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79711
79712 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79715         declares only 'struct timespec;' (!).
79716
79717 2005-07-01  Jim Meyering  <jim@meyering.net>
79718
79719         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79720         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79721         * lib/save-cwd.c, tempname.c:
79722         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79723         and don't include <sys/file.h>).
79724
79725 2005-06-29  Jim Meyering  <jim@meyering.net>
79726
79727         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79728         type name.  Use the variable name instead.
79729         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79730         Likewise.
79731
79732 2005-06-28  Simon Josefsson  <jas@extundo.com>
79733
79734         * modules/check-version (Files): Add check-version.m4.
79735
79736 2005-06-28  Simon Josefsson  <jas@extundo.com>
79737
79738         * m4/check-version.m4: New file, suggested by Jim Meyering
79739         <jim@meyering.net>.
79740
79741 2005-06-28  Simon Josefsson  <jas@extundo.com>
79742
79743         * lib/check-version.h, lib/check-version.c: New files.
79744
79745 2005-06-28  Simon Josefsson  <jas@extundo.com>
79746
79747         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79748         collision with global variable.  Better indentation.  Don't
79749         increment buffer pointer beyond buffer end.  Based on comments
79750         from Paul Eggert <eggert@cs.ucla.edu>.
79751
79752         * lib/base64.h: Indent.
79753
79754 2005-06-28  Simon Josefsson  <jas@extundo.com>
79755
79756         * doc/gnulib.texi (Library version handling): New section.
79757
79758 2005-06-28  Jim Meyering  <jim@meyering.net>
79759
79760         * check-module (find_included_lib_files): Hard-code another
79761         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79762         but modules/fts-lgpl (correctly) does not list those files.
79763
79764         * modules/canonicalize (Files): Add lib/pathmax.h.
79765
79766 2005-06-25  Simon Josefsson  <jas@extundo.com>
79767
79768         * modules/check-version: New file.
79769
79770 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79771
79772         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79773         initializer of struct addrinfo, as an indication that we don't
79774         care how many members the structure has.
79775
79776 2005-06-24  Derek Price  <derek@ximbiot.com>
79777         and Bruno Haible  <bruno@clisp.org>
79778
79779         Remove stat module & update lstat.
79780         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79781         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79782         * m4/stat.m4: Remove this file.
79783
79784 2005-06-24  Derek Price  <derek@ximbiot.com>
79785         and Bruno Haible  <bruno@clisp.org>
79786
79787         Remove stat module & update lstat.
79788         * lib/stat.c: Remove this file...
79789         (slash_aware_lstat): ...moving this content and its support...
79790         * lib/lstat.c (rpl_lstat): ...into here.
79791         * lib/lstat.h: New file.
79792
79793 2005-06-24  Derek Price  <derek@ximbiot.com>
79794         and Bruno Haible  <bruno@clisp.org>
79795
79796         Remove stat module & update lstat.
79797         * config/srclist.txt (libc sources): Remove stat.
79798
79799 2005-06-24  Derek Price  <derek@ximbiot.com>
79800         and Bruno Haible  <bruno@clisp.org>
79801
79802         Remove stat module & update lstat.
79803         * MODULES.html.sh (stat): Remove.
79804         * MODULES.html: Regenerated.
79805         * modules/lstat (Description): Correct function name.
79806         (Files): Add "lstat.h".
79807         (Depends-on): Remove stat, add xalloc, stat-macros.
79808         * modules/stat: Remove this file.
79809         (Include): Add "lstat.h", remove <sys/stat.h>.
79810
79811 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79814         (ranged_convert): Don't save conversion in a temporary struct.
79815         This causes a warning with GCC 4.0.0, and anyway in the typical
79816         case it's not worth the extra 100 bytes or so of code.
79817         (ranged_convert, __mktime_internal): When calling a function via a
79818         pointer P, use P () rather than (*P) (), as we now assume C89 or
79819         better.
79820
79821 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79822
79823         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79824         "who -r" failed to give output.  Problem reported by Tim Waugh.
79825
79826         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79827         (xcalloc): Use it to avoid needless tests.
79828         Problem reported by Jim Meyering.
79829
79830 2005-06-20  Derek Price  <derek@ximbiot.com>
79831
79832         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79833         unnecessary for Autoconfs > 2.59c.
79834
79835 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79836
79837         * lib/argp.h (__option_is_short): Check upper limit of
79838         __key. Isprint() requires its argument to have the value
79839         of an unsigned char or EOF.
79840
79841 2005-06-16  Jim Meyering  <jim@meyering.net>
79842
79843         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79844         when either N or S is zero.
79845
79846 2005-06-16  Derek Price  <derek@ximbiot.com>
79847
79848         * m4/bison.m4: Declare YACC & YFLAGS precious.
79849
79850 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79853         multibyte string or pattern, fall back on unibyte matching.
79854         Problem reported by James Youngman.
79855
79856 2005-06-08  Bruno Haible  <bruno@clisp.org>
79857
79858         * modules/csharpcomp: New file.
79859         * MODULES.html.sh (C#): Add csharpcomp.
79860
79861 2005-06-08  Bruno Haible  <bruno@clisp.org>
79862
79863         * m4/csharpcomp.m4: New file, from GNU gettext.
79864
79865 2005-06-08  Bruno Haible  <bruno@clisp.org>
79866
79867         * lib/csharpcomp.h: New file, from GNU gettext.
79868         * lib/csharpcomp.c: New file, from GNU gettext.
79869         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79870
79871 2005-06-08  Bruno Haible  <bruno@clisp.org>
79872
79873         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79874         warning on mingw.
79875
79876 2005-06-07  Derek Price  <derek@ximbiot.com>
79877
79878         Sync from CVS.
79879         * lib/glob_.h: Indent nested #ifdef.
79880
79881 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         Sync from coreutils.
79884         Use "file name" when talking about file names, instead of "filename"
79885         or "path", as per the GNU coding standards.
79886         * lib/mkdir-p.c: Renamed from makepath.c.
79887         (make_dir_parents): Renamed from make_path.  All callers changed.
79888         * lib/mkdir-p.h: Likewise.  All includers changed.
79889         * lib/filenamecat.c: Renamed from path-concat.c.
79890         (file_name_concat): Renamed from path_concat.  All callers changed.
79891         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79892         * lib/filenamecat.h: Likewise.  All includers changed.
79893         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79894         in comments or local variable names.
79895         * lib/basename.c: Likewise.
79896         * lib/canonicalize.c, canonicalize.h: Likewise.
79897         * lib/dirname.c, dirname.h: Likewise.
79898         * lib/euidaccess.c: Likewise.
79899         * lib/exclude.c: Likewise
79900         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79901         * lib/fsusage.c, fsuage.h: Likewise.
79902         * lib/fts.c, fts_.h: Likewise.
79903         * lib/getcwd.c: Likewise.
79904         * lib/getloadavg.c: Likewise.
79905         * lib/mkstemp.c: Likewise.
79906         * lib/mountlist.c, mountlist.h: Likewise.
79907         * lib/openat.c, openat.h: Likewise.
79908         * lib/readlink-stub.c: Likewise.
79909         * lib/readutmp.c, readutmp.h: Likewise.
79910         * lib/rename.c: Likewise.
79911         * lib/rmdir.c: Likewise.
79912         * lib/same.c: Likewise.
79913         * lib/savedir.c: Likewise.
79914         * lib/stripslash.c: Likewise.
79915         * lib/tempname.c: Likewise.
79916         * lib/xreadlink.c: Likewise.
79917         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79918         All uses changed.
79919         * lib/exclude.h: Likewise.
79920
79921         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79922         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79923         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79924         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79925         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79926         files have been getting away with it for years (MORE/BSD 4.3
79927         is extinct now).
79928         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79929         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79930
79931         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79932         Define to 256, not 255, as per modern POSIX.
79933
79934 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         Sync from coreutils.
79937         Use "file name" when talking about file names, instead of "filename"
79938         or "path", as per the GNU coding standards.
79939         * MODULES.html.sh: mkdir-p renamed from makepath.
79940         filenamecat renamed from path-concat.
79941         * modules/filenamecat: Renamed from modules/path-concat.
79942         (Files): filenamecat.h and filenamecat.c renamed from
79943         path-concat.h and path-concat.c.
79944         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79945         (Include): filenamecat.h, not path-concat.h.
79946         * modules/mkdir-p: Renamed from modules/makepath.
79947         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79948         makepath.c.
79949         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79950         (Include): mkdir-p.h, not makepath.h.
79951
79952 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         Sync from coreutils.
79955         * m4/mkdir-p.m4: Renamed from makepath.m4.
79956         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79957         Rename files from makepath.c to mkdir-p.c, and from
79958         makepath.h to mkdir-p.h.
79959         * m4/filenamecat.m4: Renamed from path-concat.m4.
79960         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79961         Rename files from path-concat.c to filenamecat.c,
79962         and from path-concat.h to filenamecat.h.
79963         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79964         "file name" in local variables or comments.
79965         * m4/rename.m4: Likewise.
79966
79967 2005-06-01  Bruno Haible  <bruno@clisp.org>
79968
79969         * modules/csharpexec: New file.
79970         * MODULES.html.sh (C#): New section.
79971
79972 2005-06-01  Bruno Haible  <bruno@clisp.org>
79973
79974         * m4/csharp.m4: New file, from GNU gettext.
79975         * m4/csharpexec.m4: New file, from GNU gettext.
79976
79977 2005-06-01  Bruno Haible  <bruno@clisp.org>
79978
79979         * lib/csharpexec.h: New file, from GNU gettext.
79980         * lib/csharpexec.c: New file, from GNU gettext.
79981         * lib/csharpexec.sh.in: New file, from GNU gettext.
79982
79983 2005-05-31  Derek Price  <derek@ximbiot.com>
79984             Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         Sync from cvs.
79987         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79988
79989 2005-05-31  Derek Price  <derek@ximbiot.com>
79990             Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         Sync from cvs.
79993         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79994
79995 2005-05-29  Derek Price  <derek@ximbiot.com>
79996
79997         * config/srclist.txt (glob_.h, glob.c): Add these files.
79998
79999 2005-05-29  Derek Price  <derek@ximbiot.com>
80000
80001         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
80002         * modules/glob: New file.
80003         * modules/getlogin_r: Add link to POSIX spec in description.
80004
80005 2005-05-29  Derek Price  <derek@ximbiot.com>
80006             Paul Eggert  <eggert@cs.ucla.edu>
80007
80008         * m4/glob.m4: New file.
80009
80010 2005-05-29  Derek Price  <derek@ximbiot.com>
80011             Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         * lib/glob_.h, lib/glob.c: New files.
80014
80015 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * modules/fts (Files): Remove m4/inttypes-pri.m4.
80018         * modules/fts-lgpl (Depends-on): Remove gettext.
80019
80020 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
80023         and don't require gt_INTTYPES_PRI.
80024
80025 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80026
80027         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
80028
80029         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
80030         the configuration hassle isn't worth it.
80031         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
80032         (LONGEST_MODIFIER, PRIuMAX): Remove.
80033
80034 2005-05-27  Bruno Haible  <bruno@clisp.org>
80035
80036         * lib/getlogin_r.h: Remove second include of <stddef.h>.
80037
80038 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
80041         _POSIX_PTHREAD_SEMANTICS for Solaris.
80042
80043 2005-05-25  Derek Price  <derek@ximbiot.com>
80044
80045         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
80046
80047 2005-05-25  Derek Price  <derek@ximbiot.com>
80048             Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * modules/getlogin_r, m4/getlogin_r.m4: New files.
80051         * lib/getlogin_r.c, getlogin_r.h: New files.
80052
80053 2005-05-25  Bruno Haible  <bruno@clisp.org>
80054             Derek Price  <derek@ximbiot.com>
80055
80056         * lib/getlogin_r.h: Simplify API documentation.
80057
80058 2005-05-23  Derek Price  <derek@ximbiot.com>
80059
80060         * modules/minmax (Files): Add m4/minmax.m4.
80061         (configure.ac): Add gl_MINMAX.
80062
80063 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
80066         so that unistd-safer.h (GPL'ed code) need not be included.
80067
80068 2005-05-22  Bruno Haible  <bruno@clisp.org>
80069
80070         * m4/minmax.m4: New file.
80071         Based on a patch by Derek Price <derek@ximbiot.com>.
80072
80073 2005-05-22  Bruno Haible  <bruno@clisp.org>
80074
80075         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
80076         (INT64_MIN): Fix definition.
80077         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
80078
80079         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
80080         NEED_SIGNED_INT_TYPES.
80081
80082         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
80083         HAVE_SYSTEM_INTTYPES.
80084
80085 2005-05-22  Bruno Haible  <bruno@clisp.org>
80086
80087         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
80088         Also include <sys/param.h> if it defines MIN, MAX.
80089         Based on a patch by Derek Price <derek@ximbiot.com>.
80090
80091 2005-05-21  Jim Meyering  <jim@meyering.net>
80092
80093         * modules/fts (Files): Add m4/inttypes-pri.m4.
80094         (Depends-on): Add lstat and remove gettext.  Alphabetize.
80095
80096 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         New fts module.
80099         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
80100         (setup_dir, free_dir): New functions.
80101         (enter_dir, leave_dir): Define trivial
80102         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
80103         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
80104         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
80105         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
80106         Move to fts-cycle.c.
80107         (fts_open): Use setup_dir.
80108         (fts_close): Use free_dir.
80109         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
80110         This adds a label and some gotos, but the alternatives were messier.
80111         Check for memory allocation failure when entering a dir.
80112         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
80113         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
80114         (FTS): New member fts_cycle, that is a union that contains the
80115         old active_dir_ht and cycle_state.  All uses changed to mention
80116         fts_cycle.ht and fts_cycle.state.
80117         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
80118         fts.c, with the following changes:
80119         (setup_dir, free_dir): New functions.
80120         (enter_dir): Now returns bool.  Return true if successful, false
80121         if memory exhausted.  All callers changed.
80122         Do not bother partly cleaning up on
80123         memory allocation failure; that is free_dir's job.
80124         However, free ad if hash_insert fails, to avoid memory leak.
80125         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
80126         fts->fts_options to see which union member to use.
80127
80128 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
80131         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
80132
80133 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
80136
80137 2005-05-20  Jim Meyering  <jim@meyering.net>
80138
80139         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
80140         Now a macro, to pacify GCC.
80141
80142 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80143
80144         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
80145         of -1.
80146
80147 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80148
80149         * lib/chown.c (rpl_chown): Return -1 on failure.
80150
80151 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
80154         Don't check for stddef.h.
80155         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
80156         don't use its results.
80157         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
80158         since we include them unconditionally.  Don't require
80159         AM_STDBOOL_H, since stdbool is a prerequisite.
80160         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
80161         since we assume C89 or better.
80162         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
80163         as we don't use their results.
80164         Don't check for fchdir, memmove, memset, strrchr, as we use
80165         them unconditionally.
80166         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
80167         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
80168
80169 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
80172         Include <stddef.h> unconditionally, since we assume C89 now.
80173         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
80174         * lib/fts.c: Include fts_.h first, to check interface.
80175         Do not include intprops.h; no longer needed.
80176         Include cycle-check.h and hash.h, since fts_.h no longer does.
80177         Remove unnecessary casts of closedir to void.
80178         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
80179         decide whether to decrement nlinks.
80180         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
80181         (FTS): Use struct hash_table * instead of Hash_table, so that
80182         we no longer need to include hash.h here.
80183
80184 2005-05-18  Jim Meyering  <jim@meyering.net>
80185
80186         * modules/dirfd (License): Change to LGPL.  Most of the code
80187         is already in the public domain.
80188
80189 2005-05-18  Jim Meyering  <jim@meyering.net>
80190
80191         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
80192         Reported by Yoann Vandoorselaere.
80193
80194 2005-05-17  Jim Meyering  <jim@meyering.net>
80195
80196         * m4/fts.m4: New file, from coreutils.
80197
80198 2005-05-17  Jim Meyering  <jim@meyering.net>
80199
80200         * lib/fts.c, lib/fts_.h: New files, from coreutils.
80201
80202 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         Sync from coreutils.
80205         * m4/unlinkdir.m4: New file.
80206
80207 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         Sync from coreutils.
80210         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
80211         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
80212         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
80213         White space changes only.
80214         * lib/makepath.c (make_path): Port to hosts where leading "//" is
80215         special.
80216         * lib/yesno.c: Include getline.h, not ctype.h.
80217         (yesno): Don't remove leading white space; POSIX doesn't allow it.
80218         Use getline to remove arbitrary restriction on response length.
80219
80220 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * config/srclist-update: Spell out "Street" in FSF postal
80223         mail address; this is the style the FSF seems to prefer.
80224
80225         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80226         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80227         this updates FSF postal mail address.
80228
80229         Sync from coreutils.
80230         * modules/unlinkdir: New file.
80231         * modules/yesno (Depends-on): Add getline.
80232         * MODULES.html.sh (File system functions): Add unlinkdir.
80233
80234 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80235
80236         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80237         lib/strsep.h:
80238         Change the initial comment to refer to GPL, not LGPL.
80239         gnulib-tool will change it to LGPL as needed.
80240
80241         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80242         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80243         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80244         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80245         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80246         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80247         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80248         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80249         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80250         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80251         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80252         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80253         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80254         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80255         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80256         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80257         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80258         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80259         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80260         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80261         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80262         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80263         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80264         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80265         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80266         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80267         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80268         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80269         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80270         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80271         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80272         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80273         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80274         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80275         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80276         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80277         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80278         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80279         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80280         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80281         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80282         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80283         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80284         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80285         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80286         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80287         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80288         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80289         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80290         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80291         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80292         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80293         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80294         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80295         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80296         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80297         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80298         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80299         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80300         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80301         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80302         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80303         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80304         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80305         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80306         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80307         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80308         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80309         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80310         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80311         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80312         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80313         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80314         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80315         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80316         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80317         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80318         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80319         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80320         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80321         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80322         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80323         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80324         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80325         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80326         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80327         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80328         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80329         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80330         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80331         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80332         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80333         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80334         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80335         lib/yesno.c, lib/yesno.h:
80336         Update FSF postal mail address.
80337
80338 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80341         tests/test-memmem.c, tests/test-stpncpy.c:
80342         Update FSF postal mail address.
80343
80344 2005-05-13  Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80347         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80348         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80349         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80350         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80351         Add support for 64-bit integers in the MSVC compiler.
80352
80353 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80354
80355         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80356
80357 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80358
80359         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80360
80361 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * doc/getdate.texi (General date syntax): Don't say that date
80364         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80365         Problem reported by Nic Ferrier.
80366
80367 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80368
80369         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80370         specified in ai_socktype. Fix invalid ai_protocol
80371         check. ai_protocol is usually set to 0 or depending on
80372         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80373         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80374         ai_socktype / ai_protocol in the returned addrinfo structure.
80375
80376 2005-05-10  Simon Josefsson  <jas@extundo.com>
80377
80378         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80379         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80380
80381 2005-05-10  Karl Berry  <karl@gnu.org>
80382
80383         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80384         (from http://www.gnu.org/licenses).
80385         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80386         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80387         fdl.texi suffices.
80388
80389 2005-05-10  Karl Berry  <karl@gnu.org>
80390
80391         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80392         (COPYING.DOC): remove.
80393
80394         * config/srclist-update: new FSF address.
80395
80396 2005-05-10  Derek Price  <derek@ximbiot.com>
80397
80398         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80399         possible.
80400
80401 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80402             Bruno Haible  <bruno@clisp.org>
80403
80404         * modules/inet_ntop: New file.
80405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80406         inet_ntop.
80407
80408 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80409             Bruno Haible  <bruno@clisp.org>
80410
80411         * m4/inet_ntop.m4: New file.
80412
80413 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80414             Bruno Haible  <bruno@clisp.org>
80415
80416         * lib/inet_ntop.h: New file.
80417         * lib/inet_ntop.c: New file, from glibc with modifications.
80418
80419 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * modules/time_r (License): Change to LGPL.
80422         * modules/extensions (License): Change to LGPL.  Actually,
80423         the license is more permissive than that, but currently gnulib-tool
80424         doesn't know how to handle more-permissive licenses.
80425
80426         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80427         Problem reported by Dave Love.
80428
80429 2005-05-08  Jim Meyering  <jim@meyering.net>
80430
80431         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80432         blank.
80433
80434 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * modules/argmatch (Depends-on): Add stdbool.
80437         * modules/backupfile (Depends-on): Likewise.
80438         * modules/chdir-long (Depends-on): Likewise.
80439         * modules/closeout (Depends-on): Likewise.
80440         * modules/cycle-check (Depends-on): Likewise.
80441         * modules/dirname (Depends-on): Likewise.
80442         * modules/fnmatch (Depends-on): Likewise.
80443         * modules/fsusage (Depends-on): Likewise.
80444         * modules/fwriteerror (Depends-on): Likewise.
80445         * modules/getcwd (Depends-on): Likewise.
80446         * modules/getloadavg (Depends-on): Likewise.
80447         * modules/hard-locale (Depends-on): Likewise.
80448         * modules/makepath (Depends-on): Likewise.
80449         * modules/mountlist (Depends-on): Likewise.
80450         * modules/nanosleep (Depends-on): Likewise.
80451         * modules/posixtm (Depends-on): Likewise.
80452         * modules/quotearg (Depends-on): Likewise.
80453         * modules/readtokens (Depends-on): Likewise.
80454         * modules/readtokens0 (Depends-on): Likewise.
80455         * modules/readutmp (Depends-on): Likewise.
80456         * modules/save-cwd (Depends-on): Likewise.
80457         * modules/strftime (Depends-on): Likewise.
80458         * modules/userspec (Depends-on): Likewise.
80459         * modules/utimecmp (Depends-on): Likewise.
80460         * modules/xgetcwd (Depends-on): Likewise.
80461         * modules/xnanosleep (Depends-on): Likewise.
80462         * modules/xstrtod (Depends-on): Likewise.
80463         * modules/yesno (Depends-on): Likewise.
80464
80465 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80468         needless checks.
80469
80470 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Merge from coreutils.  Among other things,
80473         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80474         * lib/fd-safer.c: New file.
80475         * lib/fcntl-safer.h, open-safer.c: Remove.
80476         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80477         * lib/dup-safer.c: Include unistd-safer.h first.
80478         Don't include errno.h.
80479         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80480         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80481         * lib/file-type.c: Rely on file-type.h change.
80482         * lib/getloadavg.c: Include unistd-safer.h.
80483         (getloadavg): Use safer open.
80484         * lib/getusershell.c: Include "stdio-safer.h".
80485         (getusershell): Use safer fopen.
80486         * lib/long-options.c (long_options): Use NULL rather than 0.
80487         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80488         'free'.
80489         * lib/modechange.c: Likewise.
80490         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80491         (MODE_DONE): New constant.
80492         (struct mode_change): Remove 'next' member.
80493         (make_node_op_equals): New function; like the old one of the
80494         same name, except it allocates an array.
80495         (mode_compile, mode_create_from_ref): Use it.
80496         (mode_compile): Allocate result as an array, not a linked list.
80497         Parse octal string ourself, so that we catch mistakes like "+0".
80498         (mode_adjust): Arg is an array, not a linked list.
80499         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80500         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80501         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80502         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80503         Remove.  This is now stat-macros.h's job.
80504         (talloc): Remove.  All callers replaced by xalloc, so that
80505         our invokers don't have to worry about reporting memory failures.
80506         (make_node_op_equals): Remove.
80507         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80508         New constants.
80509         (struct mode_change): Moved here from modechange.h.
80510         (mode_append_entry): Remove.
80511         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80512         apps to have incorrect behavior.  Use simpler algorithm for head
80513         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80514         Detect more invalid usages rather than having somewhat-random behavior.
80515         Don't insert an "a=" action, as that leads to incorrect behavior.
80516         (mode_compile, mode_create_from_ref): Return NULL on error instead
80517         of an enum, since now there's only one way to have an error.  All
80518         callers changed.
80519         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80520         at the correct time.  Simplify calculation of "+u" and its ilk.
80521         Don't mishandle "+X".
80522         (mode_free): Remove "register" and localize decls.
80523         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80524         (struct mode_change): Move to modechange.c; callers don't
80525         need to see this stuff.
80526         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80527         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80528         (mode_change, mode_adjust): Reflect the new signatures noted above.
80529         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80530         that might redefine system include files.
80531         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80532         (my_usleep): Use NULL rather than (void *) 0.
80533         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80534         Use siginterrupt to specify that system calls should be interrupted.
80535         (rpl_nanosleep): Move initialization of suspended closer to call of
80536         my_usleep.
80537         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80538         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80539         (desirable_utmp_entry): New function.
80540         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80541         using x2nrealloc, to simplify logic.
80542         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80543         size calculation.  Do not assume utmp file is a regular file.
80544         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80545         (READ_UTMP_CHECK_PIDS): New constant.
80546         * lib/save-cwd.c: Include unistd-safer.h.
80547         (save_cwd): Use fd_safer.
80548         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80549         [!_LIBC] Include "stat-macros.h" instead.
80550         * lib/unistd-safer.h (fd_safer): New decl.
80551
80552 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * modules/getloadavg (Depends-on): Add unistd-safer.
80555         * modules/getusershell (Depends-on): Add stdio-safer.
80556         * modules/lstat (Depends-on): Remove xalloc.
80557         * modules/mkstemp (Depends-on): Add stat-macros.
80558         * modules/modechange (Depends-on): Remove xstrtol.
80559         Add stat-macros, xalloc.
80560         * modules/save-cwd (Depends-on): Add unistd-safer.
80561         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80562         * modules/unistd-safer (Files): Add lib/fd-safer.c
80563         (Makefile.am): Remove lib_SOURCES.
80564
80565         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80566         Remove fcntl-safer; unistd-safer supersedes it.
80567
80568 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80569
80570         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80571         AC_HEADER_STAT.
80572         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80573         (gl_PREREQ_CHOWN): Remove.
80574         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80575         it.  Don't require AC_HEADER_STAT.
80576         (gl_PREREQ_LSTAT): Remove.
80577         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80578         Don't require AC_HEADER_STAT.
80579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80580         (gl_PREREQ_RMDIR): Remove.
80581         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80582         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80583         the stat-macros module a prerequisite.
80584         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80585         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80586         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80587         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80588         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80589         variable names.
80590         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80591         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80592         variable prefixes.
80593         * m4/fcntl-safer.m4: Remove.
80594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80595         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80596         Invoke gl_PREREQ_FD_SAFER.
80597         (gl_PREREQ_FD_SAFER): New macro.
80598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80599         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80600         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80601         Remove duplicate call to AC_LIBOBJ(readutmp).
80602         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80603
80604         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80605         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80606
80607 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * MODULES.html.sh (Misc): Add byteswap.
80610
80611 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80612
80613         * modules/getcwd (Depends-on): Add extensions.
80614         * modules/openat (Depends-on): Likewise.
80615
80616 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80617
80618         * modules/byteswap: New file.
80619
80620 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80621
80622         * m4/byteswap.m4: New file.
80623
80624 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80625
80626         * lib/byteswap_.h: New file.
80627
80628 2005-04-25  Karl Berry  <karl@gnu.org>
80629
80630         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80631
80632 2005-04-25  Albert Chin  <china@thewrittenword.com>
80633
80634         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80635         Toolkit C bug.
80636
80637 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80638
80639         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80640         (func_ln_if_changed): Remove forcibly for no error message
80641         in case file does not exist.
80642
80643 2005-04-19  Simon Josefsson  <jas@extundo.com>
80644
80645         * gnulib-tool (Options): Make --symlink mean --symbolic.
80646
80647 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80648
80649         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80650
80651 2005-04-16  Simon Josefsson  <jas@extundo.com>
80652
80653         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80654
80655 2005-04-15  Simon Josefsson  <jas@extundo.com>
80656
80657         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80658
80659 2005-04-15  Simon Josefsson  <jas@extundo.com>
80660
80661         * gnulib-tool: Rename --symlink to --symbolic.
80662
80663 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80664
80665         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80666         symbolic links to files instead of copying/moving.  Add --aux-dir,
80667         specifying directory relative --dir where auxiliary build tools
80668         are placed.
80669
80670 2005-04-14  Bruno Haible  <bruno@clisp.org>
80671
80672         * modules/allocsa (License): Change to LGPL.
80673         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80674
80675 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80676
80677         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80678         that "UTC +1 second" continues to work.  Problem reported
80679         by Dmitry V. Levin.
80680         (relunit_snumber): New rule.
80681         (relunit): Use it.
80682
80683 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * lib/getdate.y (universal_time_zone_table): New constant.
80686         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80687         universal_time_zone_table.
80688         (lookup_zone): Prefer universal_time_zone_table to
80689         local_time_zone_table, so that "GMT" time stamps are allowed in
80690         London during the summer.  Problem reported by Ian Abbott.
80691
80692 2005-04-12  Jim Meyering  <jim@meyering.net>
80693
80694         * lib/human.c (humblock): Set *options even when returning due to
80695         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80696         warning from gcc-4.
80697
80698 2005-04-09  Jim Meyering  <jim@meyering.net>
80699
80700         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80701         -Wuninitialized: initialize tm0.tm_year.
80702
80703 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80706         count, since there's no maximum.  All uses changed.
80707         Add member dsts_seen.
80708         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80709         not being INT_MAX.
80710         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80711         Use pc_rels_seen to decide whther a date is absolute.
80712
80713         * lib/getdate.y (number): Don't overwrite year.
80714         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80715         check.
80716
80717 2005-04-02  Simon Josefsson  <jas@extundo.com>
80718
80719         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80720         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80721
80722 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80723
80724         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80725         where no absolute path name can be longer than PATH_MAX.
80726
80727 2005-03-27  Jim Meyering  <jim@meyering.net>
80728
80729         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80730
80731 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80734         "one's complement" -> "ones' complement" in comment, as per Knuth.
80735         "value of type" -> "type or expression" in comment.
80736         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80737
80738 2005-03-26  Jim Meyering  <jim@meyering.net>
80739
80740         Comment nits.
80741         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80742         Correct typos: s/or/of/.
80743
80744 2005-03-26  Jim Meyering  <jim@meyering.net>
80745
80746         * modules/check-include-files: Move to ../ and rename to...
80747         * check-module: ...this.
80748
80749 2005-03-25  Jim Meyering  <jim@meyering.net>
80750
80751         * modules/xvasprintf (Files): Add xalloc.h.
80752
80753 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * modules/gettext (Files): config/config.rpath ->
80756         build-aux/config.rpath
80757         * modules/iconv (Files): Likewise.
80758         Problem reported by Oskar Liljeblad.
80759
80760 2005-03-23  Jim Meyering  <jim@meyering.net>
80761
80762         * modules/check-include-files: New script to check for
80763         missing dependencies, multiple includes, etc.
80764
80765         * modules/c-strtold (Depends-on): Add xalloc.
80766         * modules/c-strtod (Depends-on): Add xalloc.
80767         * modules/hash (Depends-on): Add xalloc.
80768         (Files): Remove lib/xalloc.h.
80769
80770         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80771         * modules/userspec (Files): Add lib/inttostr.h.
80772
80773 2005-03-23  Jim Meyering  <jim@meyering.net>
80774
80775         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80776
80777 2005-03-22  Jim Meyering  <jim@meyering.net>
80778
80779         * modules/stat-macros: New module.
80780         * modules/canonicalize, modules/euidaccess, modules/file-type,
80781         * modules/filemode, modules/lchown, modules/makepath,
80782         * modules/rmdir, modules/stat: Depend on new stat-macros module
80783         rather than listing lib/stat-macros.h manually.
80784         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80785
80786 2005-03-22  Jim Meyering  <jim@meyering.net>
80787
80788         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80789
80790 2005-03-22  Bruno Haible  <bruno@clisp.org>
80791
80792         * config/srclist.txt: Replace target directory 'config' with
80793         'build-aux'.
80794         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80795         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80796         ../build-aux/.
80797
80798 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         * modules/chdir-long (Depends-on): Add mempcpy.
80801
80802         * modules/acl, modules/backupfile, modules/c-strtod,
80803         modules/c-strtold, modules/canon-host, modules/canonicalize,
80804         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80805         modules/exclude, modules/exitfail, modules/file-type,
80806         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80807         modules/getdate, modules/getline, modules/getpagesize,
80808         modules/getpass, modules/getugroups, modules/group-member,
80809         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80810         modules/inttostr, modules/long-options, modules/makepath,
80811         modules/md5, modules/memcasecmp, modules/memcoll,
80812         modules/modechange, modules/mountlist, modules/path-concat,
80813         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80814         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80815         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80816         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80817         modules/strftime, modules/strndup, modules/strverscmp,
80818         modules/timespec, modules/unlocked-io, modules/userspec,
80819         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80820         modules/yesno:
80821         Remove lib_SOURCES line from Makefile.am section, as this is now
80822         done automatically by the corresponding Autoconf macro.
80823
80824 2005-03-21  Jim Meyering  <jim@meyering.net>
80825
80826         Changes imported from coreutils.
80827
80828         * lib/cycle-check.c: Don't include xalloc.h.
80829
80830         * lib/path-concat.c: Don't include assert.h.
80831         (path_concat): Remove assertion that would have triggered
80832         for ABASE starting with more than one slash.
80833         Reported by Andreas Schwab.
80834
80835         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80836         properly when ABASE is an absolute file name.
80837         Correct the description of this function.
80838         Include <assert.h>.
80839         Add an assertion and a test driver.
80840         This fixes a bug introduced on 2004-07-02.
80841         Andreas Schwab reported the resulting failure of cp --parents:
80842         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80843
80844 2005-03-21  Jim Meyering  <jim@meyering.net>
80845
80846         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80847         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80848
80849 2005-03-21  Jim Meyering  <jim@meyering.net>
80850         and  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80853         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80854         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80855         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80856         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80857         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80858         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80859         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80860         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80861         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80862         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80863         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80864         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80865         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80866         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80867         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80868         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80869         for these modules.
80870
80871 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80874         (which shouldn't happen), generate nothing instead of returning 0
80875         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80876
80877 2005-03-16  Bruno Haible  <bruno@clisp.org>
80878
80879         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80880         HAVE_LONGLONG_64BIT.
80881
80882 2005-03-16  Bruno Haible  <bruno@clisp.org>
80883
80884         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80885         HAVE_LONGLONG_64BIT.
80886
80887 2005-03-16  Bruno Haible  <bruno@clisp.org>
80888
80889         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80890         HAVE_LONGLONG_64BIT.
80891
80892 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80893
80894         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80895         reliably distinguish strftime failure from empty output on POSIX
80896         hosts.
80897
80898 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80899
80900         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80901         (iconv_string): Don't guess a size-zero buffer, as that might cause
80902         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80903         result would be 'too large', where 'too large' is (heuristically)
80904         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80905         overflow concerns.  This will prevent some unwanted malloc failures
80906         when the inputs are very large.
80907
80908 2005-03-15  Karl Berry  <karl@gnu.org>
80909
80910         * config/srclist.txt (config.rpath): from gettext.
80911         * config/config.rpath: update.
80912
80913 2005-03-15  Bruno Haible  <bruno@clisp.org>
80914
80915         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80916         to 'negate'.
80917
80918         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80919         variable.
80920
80921         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80922         results.
80923
80924 2005-03-14  Simon Josefsson  <jas@extundo.com>
80925
80926         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80927         <fx@gnu.org>.
80928
80929 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80932         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80933         intprops.h.
80934         * lib/strtol.c: Likewise.
80935
80936 2005-03-14  Jim Meyering  <jim@meyering.net>
80937
80938         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80939         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80940         to be nonzero so that we (and caller) can detect the difference
80941         between a valid zero-length expansion and an error return, even
80942         when the underlying strftime fails before writing anything into
80943         that location.
80944
80945 2005-03-14  Bruno Haible  <bruno@clisp.org>
80946
80947         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80948         Update from GNU gettext 0.14.3.
80949
80950 2005-03-10  Jim Meyering  <jim@meyering.net>
80951
80952         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80953
80954 2005-03-10  Jim Meyering  <jim@meyering.net>
80955
80956         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80957         so that this module works on systems without fchdir.
80958
80959 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80960
80961         Factor int-properties macros into a single file, except for
80962         glibc-related files.
80963         * lib/intprops.h: New file.
80964         * lib/getloadavg.c: Include it instead of limits.h.
80965         (INT_STRLEN_BOUND): Remove.
80966         * lib/human.c: Include intprops.h.
80967         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80968         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80969         302/1000.
80970         * lib/inttostr.h: Include intprops.h instead of limits.h.
80971         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80972         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80973         for consistency with intprops.h.
80974         (time_t_is_integer, twos_complement_arithmetic): Use them.
80975         * lib/sig2str.h: Include <signal.h>, intprops.h.
80976         (INT_STRLEN_BOUND): Remove.
80977         * lib/strftime.c (TYPE_SIGNED): Remove.
80978         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80979         * lib/strtol.c: Adjust comments to match intprops.h.
80980         * lib/userspec.c: Include intprops.h.
80981         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80982         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80983         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80984         instead of rolling our own expressions.
80985         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80986
80987         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80988         instead of int.
80989         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80990         the right thing even if adding 1900 would overflow.  Similarly
80991         for tm_mon + 1 and tm_yday + 1.
80992         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80993         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80994         (DO_SIGNED_NUMBER): New macro.
80995         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80996
80997 2005-03-07  Bruno Haible  <bruno@clisp.org>
80998
80999         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
81000
81001 2005-03-07  Bruno Haible  <bruno@clisp.org>
81002
81003         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
81004
81005 2005-03-04  Derek R. Price  <derek@ximbiot.com>
81006
81007         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
81008         (func_import): Only replace files via --import when they have actually
81009         changed.
81010
81011 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81012
81013         * m4/mmap-anon.m4: New file.
81014         * m4/pagealign_alloc.m4: New file.
81015
81016 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81017             Bruno Haible  <bruno@clisp.org>
81018
81019         * modules/pagealign_alloc: New file.
81020         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
81021
81022 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81023             Bruno Haible  <bruno@clisp.org>
81024
81025         * lib/pagealign_alloc.h: New file.
81026         * lib/pagealign_alloc.c: New file.
81027
81028 2005-03-03  Bruno Haible  <bruno@clisp.org>
81029
81030         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
81031         Use an all-permissive copyright notice, recommended by RMS.
81032
81033 2005-03-02  Bruno Haible  <bruno@clisp.org>
81034
81035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
81036         of AIX, the replacement has to be done only after <string.h> is
81037         included, therefore not in config.h. stpncpy.h does the replacement,
81038         and stpncpy.c uses it.
81039
81040 2005-03-02  Bruno Haible  <bruno@clisp.org>
81041
81042         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
81043         stpncpy.c uses it.
81044
81045 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81046
81047         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
81048         The workaround isn't strictly needed for POSIX conformance, and
81049         it's too much of a pain to configure and maintain.  We'll ask
81050         people to fix their kernels instead.
81051         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
81052         (NANOSLEEP_BUG_WORKAROUND): Remove.
81053         (xnanosleep): Remove the workaround.
81054
81055 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
81058         Reported by Derek Price.
81059         (Include): Add "timespec.h".
81060
81061         * modules/xnanosleep (Depends-on): Remove gethrxtime.
81062
81063 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
81066         to detect nanosleep bug.
81067
81068 2005-03-01  Bruno Haible  <bruno@clisp.org>
81069
81070         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
81071
81072 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * modules/gethrxtime: New file.
81075         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
81076         (Depends-on): Add gethrxtime.
81077         (configure.ac): Add gl_XNANOSLEEP.
81078         (Makefile.am): Remove lib_SOURCES line.
81079
81080 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81081
81082         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
81083         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
81084
81085 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
81088         * lib/timespec.h (gettime): Return void, since it always
81089         succeeds now.  All uses changed.
81090         * lib/gettime.c (gettime): Likewise.
81091         [HAVE_NANOTIME]: Prefer nanotime.
81092         Assume gettimeofday succeeds, as POSIX requires.
81093         Assime time () succeeds, since other code already does.
81094         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
81095         (timespec_subtract): Remove.
81096         (NANOSLEEP_BUG_WORKAROUND): New constant.
81097         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
81098         things considerably.  Use it only on GNU/Linux hosts, since the
81099         workaround shouldn't be needed elsewhere.
81100
81101 2005-02-24  Bruno Haible  <bruno@clisp.org>
81102
81103         * modules/gettext (Files): Add m4/glibc2.m4.
81104
81105 2005-02-24  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
81108         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
81109         * m4/progtest.m4:
81110         Update from GNU gettext 0.14.2.
81111         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
81112
81113 2005-02-24  Bruno Haible  <bruno@clisp.org>
81114
81115         * lib/localcharset.c: Update from GNU gettext 0.14.2.
81116         * lib/config.charset: Update from GNU gettext 0.14.2.
81117
81118 2005-02-24  Bruno Haible  <bruno@clisp.org>
81119
81120         * lib/gettext.h: Update from GNU gettext 0.14.2.
81121
81122 2005-02-23  Simon Josefsson  <jas@extundo.com>
81123
81124         * m4/iconvme.m4: New file.
81125
81126 2005-02-23  Jim Meyering  <jim@meyering.net>
81127
81128         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
81129         change.
81130         Thanks to Bruno Haible for catching it.
81131
81132 2005-02-22  Simon Josefsson  <jas@extundo.com>
81133
81134         * modules/iconvme: New file.
81135
81136         * MODULES.html.sh: Add iconvme.
81137
81138 2005-02-22  Simon Josefsson  <jas@extundo.com>
81139
81140         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
81141
81142 2005-02-22  Simon Josefsson  <jas@extundo.com>
81143
81144         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
81145
81146 2005-02-22  Jim Meyering  <jim@meyering.net>
81147
81148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
81149         s/ifndef/ifdef/.
81150
81151 2005-02-20  Neil Conway  <neilc@samurai.com>
81152
81153         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
81154         returned by OSX/Darwin if the specified buffer is not large
81155         enough for the hostname.
81156
81157 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81158
81159         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
81160         pass it to _help, otherwise the latter coredumps trying to
81161         dereference state.root_argp.
81162
81163 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         * modules/chdir-long (Depends-on): Add memrchr.
81166         * modules/memrchr (Files): Add lib/memrchr.h.
81167         (Include): "memrchr.h".
81168
81169 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
81172
81173 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * lib/memrchr.h: New file.
81176         * lib/chdir-long.c: Include it.
81177         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
81178         Don't bother including stddef.h.
81179
81180 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
81181
81182         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
81183         inclusion.
81184         Include <sys/types.h>, for dev_t.
81185         (ME_DUMMY, ME_REMOTE): Move from here....
81186         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
81187         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
81188         Dmitry V. Levin.
81189         Include mountlist.h first, to test the interface.
81190
81191 2005-01-29  Bruno Haible  <bruno@clisp.org>
81192
81193         * lib/progname.c (program_name): Initialize.
81194         Needed when linking statically on MacOS X.
81195
81196 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         Sync from coreutils.
81199         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
81200         (Depends-on): Add c-strtod.
81201         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
81202
81203 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81204
81205         Sync from coreutils.
81206         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
81207
81208         Remove files that are specific to coreutils.
81209         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
81210
81211 2005-01-28  Bruno Haible  <bruno@clisp.org>
81212
81213         * modules/javacomp: New file.
81214         * MODULES.html.sh (Java): Add javacomp.
81215
81216 2005-01-28  Bruno Haible  <bruno@clisp.org>
81217
81218         * m4/javacomp.m4: New file, from GNU gettext.
81219
81220 2005-01-28  Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/javacomp.sh.in: New file, from GNU gettext.
81223         * lib/javacomp.h: New file, from GNU gettext.
81224         * lib/javacomp.c: New file, from GNU gettext.
81225
81226 2005-01-26  Simon Josefsson  <jas@extundo.com>
81227
81228         * lib/gai_strerror.c: Use GPL in header.
81229
81230 2005-01-26  Bruno Haible  <bruno@clisp.org>
81231
81232         * modules/javaexec: New file.
81233         * MODULES.html.sh (Java): Add javaexec.
81234
81235 2005-01-26  Bruno Haible  <bruno@clisp.org>
81236
81237         * m4/javaexec.m4: New file, from GNU gettext.
81238
81239 2005-01-26  Bruno Haible  <bruno@clisp.org>
81240
81241         * lib/javaexec.sh.in: New file, from GNU gettext.
81242         * lib/javaexec.h: New file, from GNU gettext.
81243         * lib/javaexec.c: New file, from GNU gettext.
81244
81245 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81246
81247         * modules/lchown (Depends-on): Remove lchown.h
81248
81249 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81250
81251         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81252         must be defined if the header file was not found, in order
81253         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81254
81255 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81256
81257         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81258         initializers for struct pentry_state.
81259         (__argp_error): Check return value of __asprintf
81260         (__argp_failure): Translate error message
81261
81262         * lib/argp-parse.c: Removed braces around the expansion of N_()
81263
81264 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81265
81266         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81267         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81268         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81269         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81270         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81271         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81272         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81273         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81274         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81275         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81276         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81277         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81278         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81279         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81280         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81281         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81282         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81283         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81284         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81285         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81286         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81287         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81288         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81289         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81290         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81291         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81292         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81293         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81294         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81295         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81296         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81297         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81298         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81299         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81300         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81301         Use an all-permissive copyright notice, recommended by RMS.
81302
81303 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81304
81305         * modules/chdir-long (Depends-on): Remove mempcpy.
81306
81307 2005-01-21  Jim Meyering  <jim@meyering.net>
81308
81309         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81310         same value as for Solaris 9.
81311
81312         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81313         component length.  This included changing the parameter to be
81314         of type `char *' rather than `char const *'.
81315         * lib/chdir-long.h (chdir_long): Update prototype.
81316
81317         * lib/openat.c (fdopendir, fstatat): New functions.
81318         * lib/openat.h: Include headers required for use of DIR and struct
81319         stat.
81320         [AT_SYMLINK_NOFOLLOW]: Define.
81321         (fdopendir, fstatat): Add prototypes.
81322
81323 2005-01-21  Bruno Haible  <bruno@clisp.org>
81324
81325         * modules/classpath: New file.
81326         * MODULES.html.sh (Java): Add classpath.
81327
81328 2005-01-21  Bruno Haible  <bruno@clisp.org>
81329
81330         * lib/classpath.h: New file, from GNU gettext.
81331         * lib/classpath.c: New file, from GNU gettext.
81332
81333 2005-01-20  Simon Josefsson  <jas@extundo.com>
81334
81335         * modules/version-etc-fsf: New file.
81336
81337 2005-01-20  Simon Josefsson  <jas@extundo.com>
81338
81339         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81340         * lib/version-etc.c: Remove version_etc_copyright.
81341         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81342         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81343
81344 2005-01-20  Simon Josefsson  <jas@extundo.com>
81345
81346         * lib/base64.h (isbase64): Add.
81347
81348         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81349         using a unsigned prototype, don't inline.
81350         (base64_decode): Use it.
81351
81352 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81355         it.
81356
81357 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/save-cwd.c (save_cwd): Remove code to support the case
81360         where fchdir is missing or flaky.
81361
81362 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81365
81366 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81367
81368         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81369         AC_LIBSOURCES now does this.
81370         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81371         with new ullong_max module.
81372
81373 2005-01-19  Bruno Haible  <bruno@clisp.org>
81374
81375         * modules/sh-quote: New file.
81376         * MODULES.html.sh (Executing programs): Add sh-quote.
81377
81378 2005-01-19  Bruno Haible  <bruno@clisp.org>
81379
81380         * lib/sh-quote.h: New file, from GNU gettext.
81381         * lib/sh-quote.c: New file, from GNU gettext.
81382
81383 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         Merge from coreutils.
81386         * m4/ullong_max.m4: New file.
81387         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81388         (gl_MACROS): Assume localeconv exists.
81389
81390 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         Merge changes from coreutils, as described below in several
81393         changelogs dated today.
81394
81395         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81396         (O_DIRECTORY): Remove; not needed here, since "." must be
81397         a directory.  All uses removed.
81398         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81399         universal on Suns, and we also need to test for IRIX.
81400         Revamp code to use 'if' rather than '#if'.
81401         Avoid unnecessary comparison of cwd->desc to 0.
81402
81403         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81404         for known valid error numbers rather than observed invalid ones.
81405
81406 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * modules/ullong_max: New file.
81409
81410         * modules/chdir-long, modules/openat: New files.
81411         * modules/save-cwd (Depends-on): Depend on chdir-long.
81412         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81413
81414 2005-01-18  Jim Meyering  <jim@meyering.net>
81415
81416         Merge from coreutils.
81417         * m4/chdir-long.m4, m4/openat.m4: New files.
81418         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81419         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81420         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81421         is sane and DOES follow symlinks.  Besides, testing 20 different
81422         systems found no broken chown implementations.
81423         Prompted by a change in rsync's copy of this macro.
81424         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81425
81426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81427
81428         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81429         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81430         NULL-means-set-to-current-time semantics.
81431         Remove temporary file immediately, rather than waiting
81432         for configure's at-exit trap code to do it.
81433
81434 2005-01-18  Jim Meyering  <jim@meyering.net>
81435
81436         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81437
81438         * lib/utimens.c (futimens): Account for the fact that futimes
81439         can also fail with errno == ENOSYS or errno == ENOENT.
81440         Patch from Dmitry V. Levin.
81441
81442         Change the name of the robust chdir function from chdir to chdir_long.
81443         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81444         (restore_cwd): Use chdir_long, not chdir.
81445         * lib/chdir-long.c: Renamed from chdir.c.
81446         * lib/chdir-long.h: Renamed from chdir.h.
81447         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81448         Hurd.
81449
81450 2005-01-18  Bruno Haible  <bruno@clisp.org>
81451
81452         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81453         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81454         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81455         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81456         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81457         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81458         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81459         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81460         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81461         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81462         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81463         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81464         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81465         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81466         Use an all-permissive copyright notice, recommended by RMS.
81467
81468 2005-01-18  Bob Proulx  <bob@proulx.com>
81469
81470         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81471         simplify offsetof() macro construct to avoid compile failure with
81472         native HP-UX 11.0 ANSI C compiler.
81473
81474 2005-01-17  Bruno Haible  <bruno@clisp.org>
81475
81476         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81477         redundant because stpncpy.m4 takes care of it.
81478
81479 2005-01-17  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81482
81483 2005-01-17  Bruno Haible  <bruno@clisp.org>
81484
81485         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81486         used.
81487
81488 2005-01-17  Bruno Haible  <bruno@clisp.org>
81489
81490         * lib/fwriteerror.h (fwriteerror): Change specification to include
81491         fclose.
81492         * lib/fwriteerror.c: Include <stdbool.h>.
81493         (fwriteerror): At the end, close the file stream. Record whether
81494         stdout was already closed.
81495
81496 2005-01-17  Bruno Haible  <bruno@clisp.org>
81497
81498         * lib/execute.c (environ): Declare if needed.
81499         * lib/pipe.c (environ): Likewise.
81500         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81501
81502 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81503
81504         * modules/argp: Depend on vsnprintf
81505
81506 2005-01-10  Jim Meyering  <jim@meyering.net>
81507
81508         * modules/closeout (Depends-on): Add atexit.
81509
81510 2005-01-06  Bruno Haible  <bruno@clisp.org>
81511
81512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81513
81514 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81517         definitions to be after all include files, to avoid collisions.
81518         Problem reported by Bob Proulx.
81519
81520 2005-01-04  Jim Meyering  <jim@meyering.net>
81521
81522         Changes imported from coreutils.
81523         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81524         as the mkstemp template, use a temporary directory and an
81525         8.3-friendly template to avoid trouble on systems like DJGPP.
81526         Reported by Juan M. Guerrero via Stepan Kasal.
81527         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81528         close. Remove the temporary directory right away, rather than waiting
81529         for configure's at-exit trap code to do it.
81530         Suggestion from Stepan Kasal.
81531
81532 2005-01-01  Simon Josefsson  <jas@extundo.com>
81533
81534         * gnulib-tool: Print #include directives when --import'ing.
81535
81536 2004-12-28  Simon Josefsson  <jas@extundo.com>
81537
81538         * tests/test-base64.c: Include required header files.  Remove
81539         unused variables.
81540
81541 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81542
81543         * modules/error (Depends-on): Remove gettext.
81544
81545 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81548         not needed.  This removes a dependency on the gettext module.
81549         [defined _LIBC]: Do not include <libintl.h>; not needed.
81550
81551 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81554         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81555
81556 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81559         HAVE_DECL_STRTOLD.
81560
81561 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * modules/getdate (Depends-on): Remove alloca-opt.
81564
81565 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81568
81569 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81570
81571         * lib/argp-parse.c: Include <stddef.h>.
81572         (alignof, alignto): New macros.
81573         (parser_init): Don't assume that void * is aligned sufficiently
81574         for struct option.
81575
81576         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81577         need to extend the stack.
81578         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81579         large.
81580
81581 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81582
81583         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81584
81585 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81588         (2004-10-24) change.  Apparently this was a false alarm.
81589
81590         * modules/getdate: Depend on alloca-opt, not alloca.
81591
81592 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81595         Remove now-obsolete comment about AIX.
81596         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81597         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81598         (YYMAXDEPTH): New macro.
81599
81600 2004-12-18  Simon Josefsson  <jas@extundo.com>
81601
81602         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81603
81604 2004-12-18  Bruno Haible  <bruno@clisp.org>
81605
81606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81607
81608 2004-12-18  Bruno Haible  <bruno@clisp.org>
81609
81610         * lib/fatal-signal.c (fatal_signals): Make non-const.
81611         (init_fatal_signals): New function.
81612         (uninstall_handlers, install_handlers): Ignore signals that were set to
81613         SIG_IGN.
81614         (at_fatal_signal): Call init_fatal_signals.
81615         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81616         SIG_IGN.
81617         Reported by Paul Eggert.
81618
81619 2004-12-18  Bruno Haible  <bruno@clisp.org>
81620
81621         * doc/alloca.texi: New file.
81622         * doc/alloca-opt.texi: New file.
81623
81624 2004-12-17  Jim Meyering  <jim@meyering.net>
81625
81626         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81627         Otherwise, install-sh could exit with improper exit status when
81628         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81629
81630 2004-12-16  Simon Josefsson  <jas@extundo.com>
81631
81632         * tests/test-base64.c: Add license.
81633
81634 2004-12-15  Stepan Kasal  <address@hidden>
81635
81636         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81637
81638 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81639
81640         * modules/getcwd (Files): Add m4/d-ino.m4.
81641         Suggested by Mark D. Baushke.
81642
81643 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * lib/getdate.y (textint): New member "negative".
81646         (time_zone_hhmm): New function.
81647         Expect 14 shift-reduce conflicts, not 13.
81648         (o_colon_minutes): New rule.
81649         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81650         (yylex): Set the "negative" member of signed numbers.
81651
81652 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * doc/getdate.texi (Time of day items, Time zone items):
81655         Describe new formats +00:00, UTC+00:00.
81656
81657 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81658
81659         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81660         spurious "-l"s.  Problem reported by Stepan Kasal.
81661
81662 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81665         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81666
81667 2004-12-04  Simon Josefsson  <jas@extundo.com>
81668
81669         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81670         Vandoorselaere <yoann@prelude-ids.org>.
81671
81672 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         Changes imported from coreutils.
81675         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81676         exist.
81677         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81678
81679 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81680
81681         Changes imported from coreutils.
81682         * lib/hard-locale.c: Assume <locale.h> exists.
81683         Include "strdup.h".
81684         (GLIBC_VERSION): New macro.
81685         (hard_locale): Assume setlocale exists.
81686         Rewrite to avoid #ifdef.
81687         Use strdup rather than malloc + strcpy.
81688         * lib/human.c: Assume <locale.h> exists.
81689         (human_readable): Assume localeconv exists.
81690
81691 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * modules/hard-locale (Depends-on): Add strdup.
81694
81695 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81696
81697         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81698         convert T2, not T.  (Imported from libc.)
81699
81700 2004-11-30  Simon Josefsson  <jas@extundo.com>
81701
81702         * modules/restrict (License): Change to LGPL.
81703
81704 2004-11-30  Simon Josefsson  <jas@extundo.com>
81705
81706         * m4/restrict.m4: Add copyright and copying conditions.
81707
81708 2004-11-30  Simon Josefsson  <jas@extundo.com>
81709
81710         * m4/base64.m4: New file.
81711
81712 2004-11-30  Simon Josefsson  <jas@extundo.com>
81713
81714         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81715         base64.
81716
81717         * tests/test-base64.c: New file.
81718
81719         * modules/base64: New file.
81720
81721 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81724         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81725
81726         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81727
81728 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81731         (__getcwd.c): Don't restore errno; glibc doesn't.
81732         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81733         first, falling back to our code only if its results look suspicious.
81734         Ensure that the resulting buffer is only as large as necessary.
81735
81736         * lib/readutmp.c: Include readutmp.h first.
81737         Include <errno.h>, since readutmp.h no longer does that.
81738         * lib/readutmp.h: Don't include <errno.h>,
81739         <sys/param.h>, <time.h>; not needed to establish interface.
81740         (errno): Remove decl.
81741         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81742         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81743         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81744
81745 2004-11-28  Simon Josefsson  <jas@extundo.com>
81746
81747         * lib/base64.h, base64.c: New file.
81748
81749 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81752
81753 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81756         (Depends-on): Remove pathmax, same.  Add mempcpy.
81757         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81758         (Makefile.am): Append getcwd.h to lib_SOURCES.
81759         (Include): Add getcwd.h.
81760         (Maintainer): Change from Jim Meyering to "all, glibc",
81761         since getdate now uses intended-for-glibc code.
81762         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81763         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81764
81765 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81766
81767         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81768         HP's ANSI C compiler.
81769         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81770         Declaring int functions causes warnings on some modern systems and
81771         shouldn't be needed to compile on ancient ones.
81772         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81773         defined.
81774
81775         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81776         with the following changes.
81777         (__set_errno): Parenthesize properly.
81778         Include <stdbool.h>.
81779         (MIN, MAX, MATCHING_INO): New macros.
81780         (__getcwd): Define with prototype, not K&R form.
81781         Use heuristics to allocate default buffer on stack if possible.
81782         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81783         behavior, and to avoid the PATH_MAX limit when computing
81784         ../../../../...
81785         Use MATCHING_INO to compare inode number to file.
81786         Check for arithmetic overflow in size calculations.
81787         Fix bug in reallocation of dot array that caused getcwd to fail
81788         on directories nested deeper than 75.
81789         Be more careful about saving errno on error.
81790         Do not use realloc; use only free+malloc, as this is a bit
81791         more flexible and avoids a needless copy operation.
81792         Do not inspect st_dev and st_ino for symbolic links; POSIX
81793         doesn't specify the latter.
81794         Check for closedir errors.
81795         Avoid needless casts.
81796         Use "#ifdef weak_alias" around weak_alias, to be like other
81797         glibc code.
81798         The following changes to getcwd.c have effect only when used in
81799         gnulib; they have no effect inside glibc proper.
81800         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81801         as alloca isn't used.
81802         (alloca, __alloca): Likewise.
81803         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81804         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81805         unconditionally, as gnulib assumes C89 or better.
81806         Do not include <sys/param.h>.
81807         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81808         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81809         better.
81810         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81811         Include <dirent.h> in a way that is compatible with modern Autoconf.
81812         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81813         New macros, if not already defined.
81814         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81815         Use "_LIBC", not "defined _LIBC", for consistency.
81816         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81817         a mempcpy module.
81818         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81819         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81820         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81821         credit only to Jim Meyering and adjust the copyright dates.
81822         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81823         <stdlib.h>, <unistd.h>, "pathmax.h".
81824         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81825         (INITIAL_BUFFER_SIZE): Remove.
81826         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81827
81828 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81829
81830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81831         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81832         Use the _ONCE methods, for efficiency.
81833         Check for fcntl.h.  In test program, include <errno.h>
81834         and <fcntl.h> if available.  Remove old K&R cruft from
81835         test program.  Check for common errors in GNU/Linux,
81836         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81837         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81839         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81840         name accordingly.
81841         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81842         accommodate new getcwd.c.
81843         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81844         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81845         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81846         that's all we need now.
81847
81848 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81849
81850         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81851         argp-parse.c depends on getopt internals, that means we should
81852         always use our getopt, to be on the safe side.
81853         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81854         order not to spoil the result of an eventual previous invocation
81855         of gl_GETOPT_SUBSTITUTE.
81856
81857 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81858
81859         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81860         redefinition warnings. To avoid them, include the defines
81861         in `#if !defined __need_getopt ... #endif'. The only place
81862         where __getopt_argv_const is used is in definitions
81863         of getopt_long and getopt_long_only below, which are as well
81864         protected by `#ifndef __need_getopt'.
81865         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81866         __need_getopt after including <stdio.h> and <unistd.h> These
81867         headers might have defined it.
81868
81869 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81870
81871         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81872
81873 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81874
81875         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81876         (futimens): New function, which uses futimes if available.
81877         (futimens, utimens): Support timespec==NULL, with same semantics
81878         as utime and utimens.
81879         * lib/utimens.h (futimens): New decl.
81880
81881 2004-11-23  Jim Meyering  <jim@meyering.net>
81882
81883         * lib/getopt_.h: Remove trailing blanks.
81884
81885 2004-11-23  Jim Meyering  <jim@meyering.net>
81886
81887         * lib/__fpending.c: Add comment.
81888
81889 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81890
81891         * modules/canonicalize (Depends-on): Add xreadlink.
81892         Problem reported by James Youngman.
81893
81894 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81897         New macros.
81898         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81899         optopt): Use them instead of invoking ## directly; otherwise, the
81900         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81901
81902 2004-11-19  Bruno Haible  <bruno@clisp.org>
81903
81904         * lib/strtok_r.c: Move comments from here...
81905         * lib/strtok_r.h: ... to here.
81906
81907 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81910         implementations that mishandle size_t overflow.
81911
81912 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81915         might fail.  Problem reported by Yoann Vandoorselaere.
81916         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81917         implementations that mishandle size_t overflow.
81918
81919 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81920
81921         * modules/canon-host (Depends-on): Add strdup.
81922
81923 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81926
81927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/canon-host.c: Include "strdup.h".
81930         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81931         Use strdup instead of malloc/strcpy to duplicate strings.
81932
81933         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81934         (human_space_before_unit): New constant.
81935         * lib/human.c (human_readable): Support it.
81936
81937         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81938         (xgetcwd): Set errno correctly when failing.
81939         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81940         the failure is actually due to a PATH_MAX problem.
81941
81942         Further getopt changes to make it more likely that glibc will
81943         buy the changes back.
81944         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81945         (getopt): Use it, so to preserve glibc semantic
81946         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81947         when compiling for libc.
81948         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81949         (getopt_long, getopt_long_only): Use it.
81950
81951         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81952         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81953         (getopt): Argv is now char * const *, as per standard.
81954         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81955         not char *__getopt_argv_const *.
81956         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81957         _getopt_long_only_r): Likewise.
81958         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81959         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81960         _getopt_long_r, _getopt_long_only_r): Likewise.
81961         * lib/getopt_.h (__getopt_argv_const): Remove.
81962         (getopt): Argv is now char * const *, as per standard.
81963
81964         * lib/getdate.y (tORDINAL): New token.
81965         (day, relunit): Allow it for relative times.
81966         (relative_time_table): Use tORDINAL for ordinals.
81967
81968 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81971         Document that "second" isn't allowed as an ordinal number.
81972
81973 2004-11-16  Jim Meyering  <jim@meyering.net>
81974
81975         * modules/closeout (Depends-on): Add fpending.
81976
81977 2004-11-15  Jim Meyering  <jim@meyering.net>
81978
81979         * lib/closeout.c: Include "__fpending.h" once again.
81980         Include <stdbool.h>.
81981         (close_stdout): Don't fail just because stdout was closed initially,
81982         since some programs don't write to stdout in the normal course of
81983         operation (other than --version and --help), and we don't want this
81984         function to make e.g. `touch file >&-' fail.
81985         But do fail if it was closed and someone has tried to write to it.
81986         E.g., `printf foo >&-' must fail.
81987
81988 2004-11-13  Jim Meyering  <jim@meyering.net>
81989
81990         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81991
81992 2004-11-12  Simon Josefsson  <jas@extundo.com>
81993
81994         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81995         small doc fix is still pending.
81996
81997 2004-11-11  Simon Josefsson  <jas@extundo.com>
81998
81999         * modules/strtok_r: New file.
82000
82001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82002         strtok_r.
82003
82004 2004-11-11  Simon Josefsson  <jas@extundo.com>
82005
82006         * m4/strtok_r.m4: New file.
82007
82008         * m4/getopt.m4: Replace opterr.
82009
82010 2004-11-11  Simon Josefsson  <jas@extundo.com>
82011
82012         * lib/strtok_r.h, strtok_r.c: New file.
82013
82014 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
82017         of replacing opterr, getopt, etc.  This should handle the
82018         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
82019
82020 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
82023         we can stop lying to compilers about the constness of argv when we
82024         are compiled outside glibc.
82025         (getopt, getopt_long, getopt_long_only): Use it.
82026         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82027         _getopt_internal, getopt): Likewise.
82028         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82029         _getopt_long_only_r): Likewise.
82030         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82031         _getopt_long_r, _getopt_long_only_r): Likewise.
82032
82033         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
82034         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
82035         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
82036         the other external symbols.
82037         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
82038         declaration, since the above renaming now works around collisions.
82039
82040 2004-11-11  Jim Meyering  <jim@meyering.net>
82041
82042         * lib/linebreak.c: Remove trailing blanks.
82043         * lib/alloca_.h: Likewise.
82044         * lib/acosl.c: Likewise.
82045         * lib/euidaccess.c: Likewise.
82046         * lib/allocsa.h: Likewise.
82047
82048 2004-11-10  Simon Josefsson  <jas@extundo.com>
82049
82050         * m4/getaddrinfo.m4: New file.
82051
82052 2004-11-10  Simon Josefsson  <jas@extundo.com>
82053
82054         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
82055
82056 2004-11-10  Simon Josefsson  <jas@extundo.com>
82057
82058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82059         getaddrinfo.
82060
82061         * modules/getaddrinfo: New file.
82062
82063 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82064
82065         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
82066
82067 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82068
82069         * lib/mktime.c (SHR): New macro, which is a portable
82070         substitute for >> that should work even on Crays.
82071         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
82072         Problem reported by Mark D. Baushke in
82073         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
82074         * lib/getdate.y (SHR): Likewise.
82075         (tm_diff): Use it.
82076         * lib/strftime.c (SHR): Likewise.
82077         (tm_diff): Use it.
82078         * lib/quotearg.c (struct quoting_options): Use unsigned int for
82079         quote_these_too, so that right shifts are well defined.  All uses
82080         changed.
82081
82082 2004-11-10  Jim Meyering  <jim@meyering.net>
82083
82084         Ensure that no close failure goes unreported.
82085         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
82086         return early when it seems there's nothing to flush.
82087         Don't include __fpending.h.
82088
82089 2004-11-10  Jim Meyering  <jim@meyering.net>
82090
82091         * modules/closeout (Depends-on): Remove fpending.
82092
82093 2004-11-10  Jim Meyering  <jim@meyering.net>
82094
82095         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
82096
82097 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82098
82099         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
82100         gl_FUNC_STRFTIME.
82101         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
82102         and AC_REQUIRE when possible, to avoid duplicate checks.
82103         Check for <wchar.h>.
82104
82105 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
82108
82109 2004-11-09  Bruno Haible  <bruno@clisp.org>
82110
82111         * m4/sockpfaf.m4: New file.
82112
82113 2004-11-05  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
82116         Reported by Mark D. Baushke <mdb@cvshome.org>.
82117
82118 2004-11-04  Bruno Haible  <bruno@clisp.org>
82119
82120         2004-09-11  Bruno Haible  <bruno@clisp.org>
82121                 * allocsa.valgrind: New file.
82122         2004-02-06  Bruno Haible  <bruno@clisp.org>
82123                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
82124                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
82125                 Reported by Christopher Seip <chris.seip@hp.com>.
82126
82127 2004-11-04  Bruno Haible  <bruno@clisp.org>
82128
82129         * modules/allocsa (Files): Add lib/allocsa.valgrind.
82130         (Makefile.am): Distribute it.
82131
82132 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
82135         with errno == ERANGE if the buffer is too small.
82136         Problem reported by Mark D. Baushke.
82137
82138 2004-11-03  Albert Chin  <china@thewrittenword.com>
82139             Paul Eggert  <eggert@cs.ucla.edu>
82140
82141         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
82142         equivalent, substitute $ac_type for equivalent type rather than
82143         blindly using uint32_t *always* which won't work if uint32_t is not
82144         available.  Define _UINT32_T to work around typedef of uint32_t if
82145         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
82146         2.5.1.
82147
82148 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82149
82150         * m4/jm-macros.m4: Sync from coreutils.
82151         (gl_MACROS): Check for mbrlen, for pathchk.
82152         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
82153
82154 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * lib/xreadlink.c (MAXSIZE): New macro.
82157         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
82158         size does not exceed MAXSIZE.  Avoid cast.
82159         As suggested by Mark D. Baushke in
82160         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
82161         if readlink fails with buffer size just under MAXSIZE, try again
82162         with MAXSIZE.
82163
82164 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82165
82166         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
82167
82168 2004-11-02  Derek R. Price  <derek@ximbiot.com>
82169         and  Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
82172         (get_date): Overparenthesize to avoid GCC warning.
82173
82174 2004-11-02  Bruno Haible  <bruno@clisp.org>
82175
82176         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
82177         returns void.
82178
82179 2004-11-02  Bruno Haible  <bruno@clisp.org>
82180
82181         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
82182         function returns void.
82183
82184 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
82187         fflush_unlocked, flockfile, funlockfile, funlockfile,
82188         fputs_unlocked, putc_unlocked.
82189
82190 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82193         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
82194         already declared.
82195
82196 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82197
82198         * modules/getdate (Files): Add doc/getdate.texi.
82199         (Depends-on): Add setenv, xalloc.
82200
82201 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82202
82203         * lib/getdate.y: Add support for TZ="foo" within a date string.
82204         Fix some bugs near time_t boundaries.  Reject dates with
82205         out-of-range components, e.g., "Sept 31".
82206         Include <stdlib.h>, "setenv.h", "xalloc.h".
82207         (ISDIGIT_LOCALE): Remove; unused.
82208         Note that the TZ and time functions used here are not reentrant.
82209         (mktime_ok, get_tz): New functions.
82210         (TZBUFSIZE): New constant.
82211         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
82212         This requires that we sometimes generate our own TZ="XXX..." setting.
82213
82214 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * doc/getdate.texi: New file, from coreutils with modifications for
82217         the new TZ parsing.
82218
82219 2004-10-27  Derek R. Price  <derek@ximbiot.com>
82220
82221         * lib/mktime.c (not_equal_tm): Remove redundant check.
82222
82223 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * modules/regex (lib_SOURCES): Add regex.c.
82226         Reported by James Youngman in
82227         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82228
82229 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82230
82231         * lib/getdate.y: Use Bison 1.875 features, and some minor
82232         code cleanups.  This change does not affect semantics.
82233         Don't include <stdlib.h>; no longer needed.
82234         Don't include unlocked-io.h; only the "#if TEST" code uses
82235         stdio, and performance isn't crucial there.
82236         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82237         Bison 1.875 features as described below.
82238         All uses of "PC." replaced by "pc->".
82239         (YYSTYPE): Add a forward declaration.
82240         (yylex, yyerror): Use full prototypes in forward decls.
82241         Use "%pure-parser" rather than obsolescent "%pure_parser".
82242         Use %parse-param and %lex-param instead of obsolescent
82243         YYPARSE_PARAM and YYLEX_PARAM.
82244         (meridian_table, month_and_day_table, time_units_table,
82245         relative_time_table, time_zone_table, military_table,
82246         lookup_zone, lookup_word, get_date):
82247         Use NULL instead of 0 where appropriate.
82248         (to_hour): Avoid abort (), to avoid a dependency on
82249         stdlib.h.
82250         (yyerror, yylex): Now accepts parser_control * arg.
82251         (main) [TEST]: Use '\0' rather than 0 for char.
82252
82253 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82256
82257 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82258
82259         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82260         It's now the caller's responsibility to handle the case where
82261         !HAVE_GETPAGESIZE && !defined getpagesize.
82262
82263         * lib/mktime.c (leapyear): Arg is long int, not int.
82264
82265 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82268
82269 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82270
82271         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82272         missing.  Problem reported by James Youngman.
82273
82274 2004-10-16  Simon Josefsson  <jas@extundo.com>
82275
82276         * gnulib-tool: Fix comments.  Fix parse problem.
82277         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82278
82279 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82282         implementation of getopt_long.  Problem reported by Alexander Taler in:
82283         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82284
82285 2004-10-15  Bruno Haible  <bruno@clisp.org>
82286
82287         * gnulib-tool: Untabify. Initialize supplied_libname.
82288         (func_usage): More homogenous output.
82289         (func_modules_transitive_closure, func_modules_to_filelist,
82290         func_emit_lib_Makefile_am): New functions.
82291         (func_import): New function, extracted from big case statement. Use
82292         func_get_license, func_modules_transitive_closure,
82293         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82294         opt_lgpl. Don't use test -a, as it's not portable.
82295         (func_create_testdir): Use func_modules_transitive_closure,
82296         func_modules_to_filelist, func_emit_lib_Makefile_am.
82297
82298 2004-10-15  Bruno Haible  <bruno@clisp.org>
82299
82300         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82301
82302 2004-10-15  Bruno Haible  <bruno@clisp.org>
82303
82304         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82305         the portions belonging to each module.
82306         Suggested by Derek Robert Price <derek@ximbiot.com>.
82307
82308 2004-10-12  Simon Josefsson  <jas@extundo.com>
82309
82310         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82311         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82312         to real functions.
82313
82314 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82315
82316         * modules/vsnprintf: New file.
82317
82318 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82319
82320         * m4/vsnprintf.m4: New file.
82321
82322 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82323
82324         * lib/vsnprintf.h: New file.
82325         * lib/vsnprintf.c: New file.
82326
82327 2004-10-11  Bruno Haible  <bruno@clisp.org>
82328
82329         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82330         vsnprintf.
82331
82332 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82335
82336 2004-10-07  Bruno Haible  <bruno@clisp.org>
82337
82338         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82339         fits into the provided buffer.
82340
82341 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82342
82343         * lib/diacrit.c, diacrit.h: Add GPL notice.
82344
82345         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82346         notice.
82347         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82348         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82349         This avoids a potential constant-folding bug.
82350
82351 2004-10-05  Bruno Haible  <bruno@clisp.org>
82352
82353         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82354         for the declaration of strsep.
82355
82356 2004-10-05  Bruno Haible  <bruno@clisp.org>
82357
82358         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82359
82360 2004-10-04  Simon Josefsson  <jas@extundo.com>
82361
82362         * modules/memmem: New file.
82363         * tests/test-memmem.c: New file.
82364         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82365
82366 2004-10-04  Simon Josefsson  <jas@extundo.com>
82367
82368         * m4/memmem.m4: New file.
82369
82370 2004-10-04  Simon Josefsson  <jas@extundo.com>
82371
82372         * lib/memmem.h: New file.
82373         * lib/memmem.c: New file, taken from glibc.
82374
82375 2004-10-04  Simon Josefsson  <jas@extundo.com>
82376
82377         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82378         '#ifdef USE_UNLOCKED_IO'.
82379
82380 2004-10-04  Simon Josefsson  <jas@extundo.com>
82381
82382         * config/srclist.txt: Add memmem from glibc.
82383
82384 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82387
82388         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82389         modules/exclude, modules/getdate, modules/getline,
82390         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82391         modules/getusershell, modules/linebuffer, modules/md5,
82392         modules/mountlist, modules/posixtm, modules/readtokens,
82393         modules/readutmp, modules/regex, modules/sha1,
82394         modules/version-etc, modules/yesno:
82395         Remove dependency on unlocked-io.
82396
82397 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82398
82399         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82400
82401         * m4/unlocked-io.m4: Add copyright notice.
82402         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82403
82404 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82405
82406         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82407         * lib/xmalloc.c (xmemdup): Likewise.
82408         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82409         XFREE): Remove these long-obsolescent macros.
82410         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82411         * lib/xstrdup.c: Remove.
82412
82413         * lib/regex.c (re_comp): Cast gettext return value to char *,
82414         Problem reported by Martin Neitzel via Mark D. Baushke.
82415
82416 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82417
82418         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82419         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82420         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82421         regex.c, sha1.c, version-etc.c, yesno.c:
82422         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82423         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82424         the includer's responsibility.
82425
82426         Sync from coreutils.
82427
82428         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82429         points to the start of a string, as the C Standard says the
82430         resulting behavior is undefined.
82431
82432         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82433         simple -> simple_backups, numbered_existing ->
82434         numbered_existing_backups, numbered -> numbered_backups
82435         to avoid shadowing problems.  All uses changed.
82436         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82437         * lib/backupfile.c (check_extension, numbered_backup):
82438         Rename locals to avoid shadowing 'basename'.
82439         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82440         once.
82441
82442         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82443         * lib/.cvsignore: Add getopt.h.
82444
82445 2004-10-04  Bruno Haible  <bruno@clisp.org>
82446
82447         * modules/README: New file.
82448         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82449         not a module.
82450
82451 2004-10-02  Jim Meyering  <jim@meyering.net>
82452
82453         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82454
82455 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82456
82457         * modules/strsep: New file.
82458
82459 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82460
82461         * m4/strsep.m4: New file.
82462
82463 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82464
82465         * lib/strsep.h: New file.
82466         * lib/strsep.c: New file.
82467
82468 2004-10-01  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/snprintf.c (snprintf): Handle size==0.
82471
82472 2004-10-01  Simon Josefsson  <jas@extundo.com>
82473             Bruno Haible  <bruno@clisp.org>
82474
82475         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82476         (snprintf): Declare 'args'.
82477
82478 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         * lib/snprintf.c: Remove comments as to why each header is needed.
82481
82482 2004-10-01  Bruno Haible  <bruno@clisp.org>
82483
82484         * MODULES.html.sh: Add strsep.
82485
82486 2004-09-30  Simon Josefsson  <jas@extundo.com>
82487
82488         * modules/snprintf: New file.
82489
82490 2004-09-30  Simon Josefsson  <jas@extundo.com>
82491
82492         * m4/snprintf.m4: New file.
82493
82494 2004-09-30  Simon Josefsson  <jas@extundo.com>
82495
82496         * lib/snprintf.h, lib/snprintf.c: New files.
82497
82498 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82499
82500         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82501         (hol_entry_help): Never translate an empty string.
82502         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82503         * lib/argp.h (OPTION_NO_TRANS): New option.
82504
82505 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82506
82507         * modules/argp (Maintainer): Replace Simon Josefsson
82508         by Sergey Poznyakoff.
82509
82510 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82513         changes merged back into glibc.
82514
82515 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82516
82517         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82518
82519 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82520
82521         * lib/xvasprintf.c: Include xalloc.h.
82522         (xvasprintf): Use xalloc_die, not xmalloc_die.
82523
82524 2004-09-29  Bruno Haible  <bruno@clisp.org>
82525
82526         * modules/alloca-opt: New file, derived from modules/alloca.
82527         * modules/allocsa: Depend on alloca-opt instead of alloca.
82528         * modules/setenv: Likewise.
82529         * modules/vasnprintf: Likewise.
82530         * MODULES.html.sh: Add alloca-opt.
82531
82532 2004-09-28  Simon Josefsson  <jas@extundo.com>
82533
82534         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82535         LGPL, and to replace license template from GPL to LGPL.
82536
82537 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         * modules/dummy: Change license to LGPL.
82540
82541 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82542
82543         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82544
82545 2004-09-24  Simon Josefsson  <jas@extundo.com>
82546
82547         * modules/minmax (License): Change from GPL to LGPL.
82548
82549 2004-09-23  Simon Josefsson  <jas@extundo.com>
82550
82551         * gnulib-tool (--import): Typo.
82552
82553 2004-09-23  Simon Josefsson  <jas@extundo.com>
82554
82555         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82556
82557 2004-09-22  Bruno Haible  <bruno@clisp.org>
82558
82559         * modules/*: Add 'License' field.
82560         * gnulib-tool: Accept --extract-license option.
82561         (func_get_license): New function.
82562
82563 2004-09-21  Bruno Haible  <bruno@clisp.org>
82564
82565         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82566         Reported by Simon Josefsson.
82567
82568 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82571         gl_AC_TYPE_LONG_LONG.
82572
82573 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82576
82577 2004-09-18  Simon Josefsson  <jas@extundo.com>
82578         and  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82581         calls with autoreconf.  Define GL_LIB.
82582
82583 2004-09-14  Karl Berry  <karl@gnu.org>
82584
82585         * config/srclist.txt: unsync setenv.c, sigh.
82586
82587 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82590         Problem reported by Bruno Haible in:
82591         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82592
82593 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * config/srclist.txt: Comment out argp-pvh.c.
82596
82597 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82600         in case some system header has #define'd it.  Problem reported by
82601         Soeren D. Schulze in
82602         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82603
82604 2004-09-09  Karl Berry  <karl@gnu.org>
82605
82606         * regex.[ch]: delete from the root.  These were supposed to be
82607                 synced with emacs cvs, but this has not happened for about
82608                 a year, and anyway nothing else uses emacs regex.[ch].
82609                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82610                 lib/regex[.ch] is untouched.
82611
82612 2004-09-09  Bruno Haible  <bruno@clisp.org>
82613
82614         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82615
82616 2004-09-09  Bruno Haible  <bruno@clisp.org>
82617
82618         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82619         modifications.
82620         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82621
82622 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82623
82624         * modules/xvasprintf: New file.
82625         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82626
82627 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82628
82629         * lib/xvasprintf.h: New file.
82630         * lib/xvasprintf.c: New file.
82631         * lib/xasprintf.c: New file.
82632
82633 2004-09-08  Bruno Haible  <bruno@clisp.org>
82634
82635         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82636
82637 2004-09-08  Bruno Haible  <bruno@clisp.org>
82638
82639         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82640         length is > INT_MAX.
82641         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82642         more.
82643
82644 2004-09-08  Bruno Haible  <bruno@clisp.org>
82645
82646         * lib/stdint_.h: New file, taken from GNU clisp.
82647
82648 2004-09-08  Bruno Haible  <bruno@clisp.org>
82649             Oskar Liljeblad  <oskar@osk.mine.nu>
82650
82651         * modules/stdint: New file.
82652         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82653
82654 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         Import from coreutils.
82657         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82658         strings on unbounded length.  alloca's performance benefits aren't
82659         that important here.
82660         (V_STRDUP): Remove.
82661         (parse_with_separator): New function, with most of the internals
82662         of the old parse_user_spec.  Allow user to omit both user and group,
82663         for compatibility with FreeBSD.
82664         Clone only the user name, not the entire spec.
82665         Do not set *uid, *gid unless entirely successful.
82666         Avoid memory leak in some failing cases.
82667         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82668         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82669         (parse_user_spec): Rewrite to use parse_with_separator.
82670
82671 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * modules/userspec: Don't depend on alloca.
82674
82675 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82678
82679 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82682         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82683         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82684
82685 2004-08-16  Simon Josefsson  <jas@extundo.com>
82686
82687         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82688         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82689         Add --dry-run for --import.
82690         Let user provided command line parameters override configure.ac
82691         settings.
82692
82693 2004-08-12  Simon Josefsson  <jas@extundo.com>
82694
82695         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82696         as discussed with Paul Eggert in threads rooted at
82697         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82698         and
82699         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82700         Before, the test was empty, and relied on ELIDE_CODE in source
82701         code.)
82702         (gl_PREREQ_GETOPT): New macro.
82703         (gl_GETOPT): Use them.
82704
82705 2004-08-12  Simon Josefsson  <jas@extundo.com>
82706
82707         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82708         * lib/getopt_.h: Renamed from getopt.h.
82709
82710 2004-08-12  Simon Josefsson  <jas@extundo.com>
82711
82712         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82713         Change default library name from libfoo to libgnu.
82714         Now, if you have a configure.ac that says:
82715                 gl_SOURCE_BASE(gl)
82716                 gl_M4_BASE(gl/m4)
82717                 gl_MODULES(error getopt etcetera)
82718                 gl_INIT
82719         you can import all you need by running:
82720                 ../gnulib/gnulib-tool --import
82721
82722         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82723         (Makefile.am): Rewrite, use logic from argz.
82724         (Include): Use <getopt.h> instead of "getopt.h".
82725
82726 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * modules/argp (Files): Add m4/unlocked-io.m4.
82729         (Depends-on): Add extensions.
82730
82731 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82734         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82735         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82736         Check for program_invocation_name, program_invocation_short_name,
82737         flockfile, funlockfile, features.h, _getopt_long_only_r.
82738
82739 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82742         its complicated substitute.
82743         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82744         and program_invocation_name.
82745         (__argp_basename) [!_LIBC]: Remove; the only use was
82746         replaced by its body.
82747         (__argp_short_program_name): Change condition from
82748         !defined __argp_short_program_name to
82749         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82750         to match argp-namefrob.h.
82751         (__argp_failure): Don't assume strerror_r returns char *.
82752         * lib/argp-parse.c (N_): Define unconditionally.
82753         (argp_default_options): Fill out initializers with 0 to avoid
82754         gcc warnings.
82755
82756 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82759         getopt1.c.
82760
82761 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82762
82763         Merge from coreutils.
82764
82765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82766
82767         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82768         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82769
82770 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82771
82772         Merge from coreutils.
82773
82774         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82775         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82776         for Reliant Unix 5.43.
82777
82778         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82779         (union fooround): Use uintmax_t, not long int.
82780         The rest is a merge from libc:
82781         [defined _LIBC]: Include <shlib-compat.h>.
82782         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82783
82784         * lib/settime.c (settime): Recode to avoid warning with
82785         Sun Forte C 6U2.
82786
82787         * lib/strverscmp.c: Convert to UTF-8.
82788
82789 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82792         m4/uintmax_t.m4.
82793
82794 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         * modules/xalloc-die: New file.
82797         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82798
82799         * modules/md5 (Files): Add m4/uint32_t.m4.
82800         * modules/sha1: Renamed from modules/sha.
82801         (Files):
82802         Rename lib/sha.h to lib/sha1.h.
82803         Rename lib/sha.c to lib/sha1.c.
82804         Rename m4/sha.m4 to m4/sha1.m4.
82805         (lib_SOURCES): Likewise.
82806         (configure.ac): Rename gl_SHA to gl_SHA1.
82807         (Include): sha.h -> sha1.h.
82808
82809 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82812         * m4/sha1.m4: Renamed from sha.m4.
82813         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82814
82815 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/obstack.h (obstack_empty_p):
82818         Don't assume that chunk->contents is suitably aligned.
82819         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82820         Likewise. Problem reported by Benno in
82821         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82822
82823         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82824         readable.  This could be improved further but it'd take some work.
82825
82826 2004-08-08  Simon Josefsson  <jas@extundo.com>
82827
82828         * modules/xgethostname (Depends-on): Remove exit and error (not
82829         used).
82830
82831         * modules/getpass-gnu: Add getpass.h.
82832         (Depends-on): Add stdbool.
82833         * modules/getpass: Add getpass.h.
82834
82835 2004-08-08  Simon Josefsson  <jas@extundo.com>
82836
82837         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82838         Check getpass declaration.
82839
82840 2004-08-08  Simon Josefsson  <jas@extundo.com>
82841
82842         * lib/xgethostname.c: Don't include error.h (not used).
82843
82844         * lib/getpass.h: Add.
82845         * lib/getpass.c: Include getpass.h first.
82846
82847 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82848
82849         * lib/xalloc-die.c: New file.
82850         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82851         All uses removed.
82852         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82853         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82854         xalloc-die.c.
82855         (_, N_, xalloc_die): Move to xalloc-die.c.
82856         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82857         so that we needn't mess with xalloc_msg_memory_exhausted.
82858
82859         * lib/sha1.h: Renamed from sha.h.
82860         (SHA1_H): Renamed from _SHA_H.
82861         (sha1_ctx): Renamed from sha_ctx.
82862         (sha1_init_ctx): Renamed from sha_init_ctx.
82863         (sha1_process_block): Renamed from sha_process_block.
82864         (sha1_process_bytes): Renamed from sha_process_bytes.
82865         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82866         (sha1_read_ctx): Renamed from sha_read_ctx.
82867         (sha1_stream): Renamed from sha_stream.
82868         (sha1_buffer): Renamed from sha_buffer.
82869         * lib/sha1.c: Likewise; renamed from sha.c.
82870         Do not include <sys/types.h>.
82871         Include <stddef.h> rather than <stdlib.h>.
82872
82873 2004-08-08  Bruno Haible  <bruno@clisp.org>
82874
82875         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82876         FILESYSTEM_PREFIX_LEN.
82877         * lib/progreloc.c: Likewise.
82878         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82879
82880 2004-08-06  Simon Josefsson  <jas@extundo.com>
82881
82882         * modules/progname (Depends-on): Don't depend on stdbool.
82883
82884 2004-08-06  Simon Josefsson  <jas@extundo.com>
82885
82886         * modules/getsubopt: New file.
82887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82888         getsubopt.
82889
82890 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         More merge from coreutils.
82893
82894         * m4/utimens.m4, m4/utimecmp.m4: New files.
82895         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82896         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82897         prereq.m4, sha.m4: Import changes from coreutils.
82898
82899 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         More merge from coreutils.
82902         * modules/raise, modules/readtokens0, modules/utimens:
82903         * modules/utimecmp, module/xnanosleep: New files.
82904         * modules/strftime: Add lib/strftime.h.
82905         Change include from <time.h> to "strftime.h".
82906         * modules/yesno: Add lib/yesno.h.
82907         * modules/backupfile: Remove lib/addext.c.
82908         * modules/euidaccess: Add stat-macros.h.
82909         * modules/canonicalize, modules/euidaccess,
82910         modules/filemode, modules/lchown, modules/makepath,
82911         modules/rmdir, modules/stat: Likewise.
82912
82913 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82914
82915         Merge from tar.
82916         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82917         SIZE_MAX is a valid preprocessor constant.
82918         (__argp_basename): Change from "#ifndef _LIBC"
82919         to "#ifndef __argp_short_program_name", so that
82920         we don't compile these functions for tar.
82921
82922         More merges from coreutils.
82923         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82924         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82925         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82926         * lib/addext.c: Remove; no longer needed.
82927         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82928         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82929         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82930         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82931         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82932         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82933         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82934         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82935         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82936         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82937         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82938         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82939         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82940         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82941         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82942         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82943         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82944         Import changes from coreutils.
82945
82946 2004-08-05  Simon Josefsson  <jas@extundo.com>
82947
82948         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82949
82950 2004-08-05  Simon Josefsson  <jas@extundo.com>
82951
82952         * m4/getsubopt.m4: New file.
82953
82954 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         Merge from coreutils.
82957
82958         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82959         * m4/getcwd-path-max.m4: New files.
82960
82961         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82962         FILESYSTEM_PREFIX_LEN ->
82963         FILE_SYSTEM_PREFIX_LEN.
82964         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82965         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82966         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82967         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82968
82969         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82970         prerequisite modules now handle the DOS stuff.
82971         Don't check for unistd.h.
82972
82973 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82974
82975         Merge from coreutils.
82976
82977         * lib/.gdb-history: Remove; this doesn't belong here.
82978
82979         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82980         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82981         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82982         * lib/getcwd.c: New files.
82983
82984         * lib/dirname.h: Include <stdbool.h>.
82985         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82986         for consistency with POSIX terminology.  All uses changed.
82987         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82988         (strip_trailing_slashes): Use bool for booleans.
82989         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82990
82991         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82992         sometimes returns a positive errno value even when it succeeds.
82993         (print_errno_message) [!LIBC]: Fall back on strerror if
82994         __strerror_r fails.
82995
82996         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82997         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82998         (longest_relative_suffix): New function.
82999         (path_concat): Use it.  Assume first argument is not NULL.
83000         Port to DOS.  Omit redundant separators.
83001         Report an error instead of returning NULL.
83002         Use mempcpy instead of memcpy.
83003         (xpath_concat): Remove: not declared or used.
83004
83005         * lib/same.h: Include <stdbool.h>
83006         (same_name): Return bool, not int.
83007         * lib/same.c (same_name): Likewise.
83008         (errno): Don't declare; we assume C89 or better now.
83009
83010         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
83011         if not already defined.
83012
83013         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
83014         * lib/dup-safer.c (errno): Likewise.
83015
83016 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         Merge from coreutils.
83019         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
83020         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
83021         * modules/path-concat: Don't depend on strdup.
83022
83023 2004-08-03  Simon Josefsson  <jas@extundo.com>
83024
83025         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
83026         * lib/progname.h: Don't include stdbool.h.
83027
83028 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
83031         * MODULES.html.sh (func_all_modules): Remove fatal.
83032
83033 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
83036
83037 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83038
83039         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
83040         working.
83041
83042 2004-08-02  Simon Josefsson  <jas@extundo.com>
83043
83044         * lib/getsubopt.h: New file, with comments from Bruno Haible.
83045         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
83046         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
83047
83048 2004-08-01  Simon Josefsson  <jas@extundo.com>
83049
83050         * lib/xgetdomainname.c: Include stdlib.h, for free().
83051
83052 2004-07-19  Bruno Haible  <bruno@clisp.org>
83053
83054         * MODULES.html.sh (func_all_modules): Add dummy.
83055
83056 2004-07-16  Simon Josefsson  <jas@extundo.com>
83057
83058         * modules/dummy: New file.
83059
83060 2004-07-16  Simon Josefsson  <jas@extundo.com>
83061
83062         * lib/dummy.c: New file.
83063
83064 2004-07-16  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/backupfile.h: Add extern "C" for C++.
83067         * lib/closeout.h: Likewise.
83068         * lib/copy-file.h: Likewise.
83069         * lib/findprog.h: Likewise.
83070         * lib/full-write.h: Likewise.
83071         * lib/pathname.h: Likewise.
83072         * lib/progname.h: Likewise.
83073         * lib/stpcpy.h: Likewise.
83074         * lib/stpncpy.h: Likewise.
83075         * lib/strcase.h: Likewise.
83076         * lib/strstr.h: Likewise.
83077         * lib/xalloc.h: Likewise.
83078
83079         * lib/mbswidth.h: Add extern "C" for C++.
83080         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
83081
83082 2004-07-13  Robert Millan  <robertmh@gnu.org>
83083
83084         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
83085
83086 2004-07-09  Simon Josefsson  <jas@extundo.com>
83087
83088         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
83089         failed without this.)
83090
83091 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         * modules/chown (Files): Add lib/fchown-stub.c, since
83094         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
83095
83096 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83097
83098         * lib/fchown-stub.c: New file.
83099
83100 2004-06-24  Jim Meyering  <jim@meyering.net>
83101
83102         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
83103
83104 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83105
83106         * modules/argz: Omit "#include".
83107
83108         * MODULES.html.sh (func_all_modules): Add calloc, to match
83109         2004-06-01 addition of calloc module.
83110
83111 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83112
83113         * m4/argz.m4: New file, which is autoupdated from libtool.
83114
83115 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83116
83117         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
83118         libtool.
83119
83120 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * config/srclist-update: Don't insist on "USA." before the
83123         close-comment, as libtool omits the period and puts the */ on a
83124         separate line.
83125         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
83126         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
83127
83128 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
83129
83130         * modules/argz: New file.
83131         * MODULES.html.sh (func_all_modules): Add argz.
83132
83133 2004-06-12  Jim Meyering  <jim@meyering.net>
83134         and  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * modules/hash (Files): Add lib/xalloc.h.
83137         * modules/pipe (Depends-on): Add wait-process.
83138         * modules/stat (Depends-on): Add xalloc.
83139         * modules/userspec (Files): Add lib/userspec.h.
83140         * modules/xstrto
83141
83142         Upgrade from gettext-0.13.
83143         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
83144         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
83145         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
83146
83147 2004-06-10  Jim Meyering  <jim@meyering.net>
83148
83149         * lib/calloc.c: New file.
83150
83151 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83152
83153         * lib/getdate.y (yylex): Allow space between sign and number.
83154         Problem reported by Dan Jacobson.
83155
83156 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83157
83158         Merge from coreutils CVS.
83159
83160         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
83161         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
83162         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
83163         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
83164         xstrtol.m4: Fix copyright date and/or serial number.
83165
83166         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
83167         See if we need an fchown replacement.
83168         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
83169         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
83170         and use the replacement function if we detect either defect.
83171
83172         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
83173         gl_UTIMECMP.
83174
83175 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83176         and  Jim Meyering  <jim@meyering.net>
83177
83178         Merge from coreutils CVS.
83179
83180         * lib/stat-macros.h: New file, with contents from file-type.h
83181         and coreutils' system.h.
83182         * lib/file-type.c: Include "stat-macros.h".
83183         * lib/file-type.h (file_type): Move all macro definitions to new file,
83184         stat-macros.h.
83185
83186         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
83187         Wrap old code with this conditional.
83188         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
83189         function that does not dereference symlinks.
83190         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
83191
83192         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
83193         dependency problems.
83194         (xreadlink): Accept new arg SIZE, for efficiency.
83195         All decls and uses changed.
83196         * lib/xreadlink.h: Include <stddef.h>, for size_t.
83197
83198         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
83199         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
83200
83201         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
83202         sysexits.h.
83203
83204 2004-06-01  Jim Meyering  <jim@meyering.net>
83205
83206         * m4/calloc.m4: New file.
83207
83208 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
83211         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
83212         Also, fix a typo in a diagnostic.
83213
83214 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83215
83216         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
83217         or AC_FUNC_REALLOC.
83218
83219 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83220
83221         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83222         macros to be defined.
83223         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83224         the allocator returns NULL because the requested size is zero.
83225
83226 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83229         var.  Add comment explaining why libc still defines it.  This
83230         merges the following patch from glibc:
83231         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83232
83233 2004-05-20  Andreas Schwab  <schwab@suse.de>
83234
83235         * m4/free.m4: Replace free if it not known to work, not the other
83236         way round.
83237
83238 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83239
83240         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83241         present in glibc since revision 1.1 of this file.
83242         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83243         obstack_alignment_mask, obstack_alloc, obstack_base,
83244         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83245         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83246         obstack_grow0, obstack_init, obstack_int_grow,
83247         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83248         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83249         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83250         nonexistent functions.
83251
83252 2004-05-18  Karl Berry  <karl@gnu.org>
83253
83254         * config/srclist.txt: break link for vasnprintf.c.
83255
83256 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         Port obstack to the AS/400, where pointers are 16 bytes wide and
83259         you cannot cast an integer to a valid pointer.  This patch is
83260         currently waiting to be integrated into glibc; see
83261         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83262
83263         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83264         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83265         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83266         (struct obstack): temp member is now a union of a pointer and
83267         an integer, instead of an integer.  All integer uses changed.
83268         This does not affect the physical layout of struct obstack,
83269         except on hosts (like the AS/400) where the size or alignment of
83270         void * is greater than that of ptrdiff_t.
83271         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83272         __STDC__)]: Store temporary in pointer member of union, not
83273         integer member.
83274         * lib/obstack.c: Include <stddef.h>, for offsetof.
83275         (struct fooalign): Remove; it doesn't need a name.
83276         (union fooround): Change double to long double, and add void *.
83277         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83278         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83279         not a macro.  Hence the values are always int; so remove all
83280         casts-to-int in uses.
83281
83282 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83285         we can get this patch merged into glibc.
83286
83287 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83288             Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * m4/argp: Depend on alloca.
83291
83292 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83293             Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83296         freecoding.
83297
83298 2004-05-17  Bruno Haible  <bruno@clisp.org>
83299
83300         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83301         precision that consists of a '.' followed by an empty digit string.
83302         Patch by Tor Lillqvist <tml@iki.fi>.
83303
83304 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83307         for backward compatibility with older code.  We need our own
83308         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83309         it under some other name, and our alloca.h will define it.
83310
83311 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83312             Derek Price  <derek@ximbiot.com>
83313
83314         * lib/alloca.c: Include <alloca.h>, to get our interface.
83315         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83316         include <alloca.h> first.  Use C89 prototype for alloca; this
83317         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83318         Use #elif for simplicity, since we can assume C89 now.
83319         Don't try to source the system alloca.h since it will not be found
83320         and to prevent recursively including its replacement.
83321         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83322         * lib/regex.c: Likewise.
83323
83324 2004-05-16  Derek Price  <derek@ximbiot.com>
83325             Paul Eggert  <eggert@cs.ucla.edu>
83326
83327         getline cleanup.  This changes the getndelim2 API: both order of
83328         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83329         no delimiter).
83330
83331         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83332         interface does that.
83333         (getline): Always use getdelim, so that we don't have two
83334         copies of this code.
83335         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83336         if available.
83337         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83338         (GETNDELIM2_MAXIMUM): New macro.
83339         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83340         instead of the old practice of delim2==0.  All callers changed.
83341         Return -1 on overflow, instead of returning junk.
83342         Do not set *linesize unless allocation succeeds.
83343         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83344         that we include sys/types.h.
83345         * lib/getnline.h: Likewise.
83346         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83347         (getndelim2): Reorder arguments.
83348         * lib/getnline.c (getnline, getndelim):
83349         Don't discard the NMAX argument.
83350         (getnline): Invoke getndelim, to avoid code duplication.
83351         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83352         of (size_t) -1 by callers of the getnline family.
83353
83354 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83357         Check for gettimeofday.
83358         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83359         Check for settimeofday, stime.
83360
83361 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83362
83363         * lib/nanosleep.c (suspended): Change its type from int to
83364         sig_atomic_t volatile.
83365         (first_call): Make it private to rpl_nanosleep, and have it
83366         be zero initially as that's a bit faster.
83367         (my_usleep): Round up fractional times instead of truncating them,
83368         as this is the usual meaning for 'sleep'.
83369
83370         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83371         doesn't work.
83372         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83373         (ENOSYS): Define if not defined.
83374         (settime): Fall back on stime if it exists and settimeofday fails.
83375         But don't bother with fallbacks if a method fails with errno == EPERM.
83376
83377 2004-05-11  Jim Meyering  <jim@meyering.net>
83378
83379         Prior to this change, the save_cwd caller required read access to the
83380         current directory on most systems (ones with the fchdir function).
83381
83382         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83383         fails, try write-only, and finally, resort to using xgetcwd.
83384
83385 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * lib/obstack.c, obstack.h: Import changes from libc.
83388
83389 2004-04-28  Bruno Haible  <bruno@clisp.org>
83390
83391         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83392         also implicitly appends .exe to executables.
83393         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83394         accepts Windows pathnames.
83395         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83396         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83397         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83398         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83399         Reported by Derek Robert Price <derek@ximbiot.com>.
83400
83401 2004-04-21  Karl Berry  <karl@gnu.org>
83402
83403         * config/srclist.txt (localcharset.c): break sync.
83404
83405 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83406
83407         * m4/host-os.m4: Add a copyright notice.
83408
83409 2004-04-20  Jim Meyering  <jim@meyering.net>
83410
83411         Change UTILS_ to gl_ in AC_DEFINE'd names.
83412         Change utils_- and jm_-prefixed variables, too.
83413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83414         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83415         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83416
83417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83418         Don't emit trailing blanks.
83419         Also rename jm_-prefixed variables to have gl_ prefix.
83420
83421         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83422         Also rename jm_-prefixed variables to have gl_ prefix.
83423
83424         * m4/jm-macros.m4: Reflect the renamings.
83425         * m4/prereq.m4: Likewise.
83426
83427 2004-04-20  Jim Meyering  <jim@meyering.net>
83428
83429         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83430         memory.
83431
83432 2004-04-20  Jim Meyering  <jim@meyering.net>
83433             Bruno Haible  <bruno@clisp.org>
83434
83435         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83436         memory when realloc fails.
83437
83438 2004-04-19  Jim Meyering  <jim@meyering.net>
83439
83440         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83441         now that readutmp.c may call `free (0)'.
83442
83443 2004-04-19  Bruno Haible  <bruno@clisp.org>
83444
83445         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83446         * m4/inttypes_h.m4: Likewise.
83447         * m4/stdint_h.m4: Likewise.
83448         * m4/intmax_t.m4: Likewise.
83449         * m4/uintmax_t.m4: Likewise.
83450
83451 2004-04-18  Jim Meyering  <jim@meyering.net>
83452
83453         * m4/prereq.m4: Don't forbid jm_ prefix.
83454
83455         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83456         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83457         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83458         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83459         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83460         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83461         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83462         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83463         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83464         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83465         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83466         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83467         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83468         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83469         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83470         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83471         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83472         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83473         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83474
83475 2004-04-18  Jim Meyering  <jim@meyering.net>
83476
83477         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83478         failure, don't leak memory and do call END_UTMP_ENT.
83479
83480 2004-04-16  Jim Meyering  <jim@meyering.net>
83481
83482         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83483         coreutils' stat program.
83484         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83485
83486 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83487
83488         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83489         C89.
83490         (CHAR_BIT): Remove, since we assume C89.
83491         Include <stdint.h> if available, as per current Autoconf CVS advice.
83492
83493 2004-03-31  Jim Meyering  <jim@meyering.net>
83494
83495         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83496         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83497         * m4/xalloc.m4: Likewise.
83498
83499 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83500
83501         Merge from coreutils.
83502
83503         * m4/inttostr.m4: New file.
83504         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83505         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83506         Require gl_CLOCK_TIME.
83507         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83508
83509 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83510
83511         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83512         not bool, to be more consistent with Unix conventions.
83513         Suggested by Bruno Haible.
83514
83515         Merge from coreutils.
83516
83517         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83518         * lib/umaxtostr.c: New files.
83519
83520         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83521         the usual <time.h> dance.
83522         (get_date): Change signature to support fractional time stamps.
83523         All callers changed.
83524         * lib/getdate.y: Include "getdate.h" first, as we can now
83525         assume C89 and don't need to worry about 'const'.
83526         Similarly, include "unlocked-io.h" near start, not in middle.
83527         Include <limits.h>.
83528         (textint.value): Use long int rather than int.
83529         (textint.digits): Use size_t rather than int.
83530         (BILLION, LOG10_BILLION): New constants.
83531         (parser_control): New member rel_ns.  Members day_ordinal,
83532         time_zone, month, day, hour, minutes, rel_year, rel_month,
83533         rel_day, rel_hour, rel_minutes, rel_seconds
83534         are now long int, not int.  Member seconds is now struct timespec,
83535         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83536         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83537         not int.
83538         (%union.intval): Now long int, not int.
83539         New member timespec.
83540         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83541         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83542         (spec): Now is a timespec or an item list.
83543         (timespec, items): New nonterminals.
83544         (time, rel, relunit, number, get_date):
83545         Add support for fractional seconds.
83546         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83547         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83548         (to_hour): First arg is now long int, not int.
83549         (to_year): Returns long int, not int.
83550         Don't treat year -70 like 70.
83551         (tm_diff): Returns long int, not int.
83552         (lookup_word): Use bool instead of int when appropriate.
83553         (yylex): Use size_t for count, not int.
83554         Detect overflow when parsing large integer constants.
83555         Add support for fractions.
83556         (get_date): Make pointers 'const' if possible.
83557         Use more-portable code to detect integer overflow.
83558         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83559         Don't use ctime; it's not reliable if the year has >4 digits.
83560
83561         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83562         This is for compatibility with BSD.
83563
83564         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83565         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83566         From coreutils' system.h.
83567
83568         * lib/userspec.c: Don't include "posixver.h".
83569         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83570         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83571         compatible extension.  Simplify code by removing a boolean int
83572         that was always nonzero if a string was nonnull.
83573
83574 2004-03-30  Jim Meyering  <jim@meyering.net>
83575
83576         Merge from coreutils.
83577
83578         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83579         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83580         on some systems one must include <grp.h> before it.
83581         Reported by Christian Krackowizer.
83582
83583 2004-03-30  Jim Meyering  <jim@meyering.net>
83584
83585         Merge from coreutils.
83586
83587         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83588
83589         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83590         an empty input stream.
83591
83592         * lib/readtokens.c: Include <stdbool.h>.
83593         (readtoken): Use `size_t' rather than int/long.
83594         All callers adjusted.
83595         Use `bool' rather than `int' where appropriate.
83596         Use memset rather than an explicit loop.
83597         Use x2nrealloc rather than xrealloc.
83598         Allow the use of `\0' as a delimiter.
83599         (readtokens): Likewise.
83600         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83601
83602 2004-03-30  Jim Meyering  <jim@meyering.net>
83603
83604         * m4/realloc.m4: Remove file, since now it does no more than
83605         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83606         the `configure.ac' section of module/realloc.
83607         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83608
83609 2004-03-30  Bruno Haible  <bruno@clisp.org>
83610
83611         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83612         nonnull.
83613
83614 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83615
83616         Merge changes to getloadavg.c from coreutils and Emacs.
83617
83618         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83619         Define to an expression, not to the empty string.
83620         Include cloexec.h and xalloc.h.
83621         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83622         Use set_cloexec_flag rather than rolling our own.
83623         * lib/cloexec.c, lib/cloexec.h: New files.
83624
83625 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83626
83627         * m4/cloexec.m4: New file.
83628
83629 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83630
83631         * lib/getopt.h: Sync with libc CVS.
83632
83633 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83634             Bruno Haible  <bruno@clisp.org>
83635
83636         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83637         mbswidth.
83638
83639 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83640             Bruno Haible  <bruno@clisp.org>
83641
83642         * lib/mbswidth.h: Include <wchar.h> only if
83643         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83644         <wchar.h>.
83645         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83646
83647 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83648
83649         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83650         Sync with libc CVS.
83651         * lib/getopt_int.h: New file, also synced from libc.
83652
83653 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83654
83655         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83656         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83657         Bring back getopt.c, getopt.h, getopt1.c.
83658
83659 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83660
83661         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83662         All uses changed.  Check for sa_sigaction member; this fixes
83663         a bug first reported by Jason Andrade in
83664         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83665
83666 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83667
83668         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83669         '#if' expressions.  Unlike the code it replaces, it does not
83670         depend on (defined _SC_PAGESIZE).  However, it does depend on
83671         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83672         first reported by Jason Andrade in
83673         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83674
83675 2004-02-25  Simon Josefsson  <jas@extundo.com>
83676
83677         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83678
83679 2004-02-25  Simon Josefsson  <jas@extundo.com>
83680
83681         * lib/strdup.h: New file.
83682         * lib/strdup.c: Include it.
83683         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83684         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83685
83686 2004-02-23  Karl Berry  <karl@gnu.org>
83687
83688         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83689         (from fencepost.gnu.org:/gd/gnuorg).
83690
83691 2004-02-23  Karl Berry  <karl@gnu.org>
83692
83693         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83694         * config/srclist.txt: add maintain/standards documents.
83695
83696 2004-02-18  Bruno Haible  <bruno@clisp.org>
83697
83698         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83699         Reported by Derek Robert Price <derek@ximbiot.com>.
83700
83701 2004-02-16  Karl Berry  <karl@gnu.org>
83702
83703         * config/mkinstalldirs, install-sh: update from automake.
83704
83705 2004-02-06  Karl Berry  <karl@gnu.org>
83706
83707         * m4/po.m4: update from gettext 0.14.1.
83708
83709 2004-02-06  Karl Berry  <karl@gnu.org>
83710
83711         * lib/config.charset: update from gettext 0.14.1.
83712
83713 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83714
83715         Add comments and code, prompted by suggestions from Bruno Haible
83716         for sh-quote.
83717         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83718         describing the enum quoting_style values.
83719         * lib/quotearg.c (quotearg_alloc): New function.
83720         (quotearg_buffer_restyled): Treat lone { and } as special.
83721         Treat = as special.  Work around bug with older shells
83722         that "see" a '\' that is really the 2nd byte of a multibyte char.
83723         Quote empty string with shell_quoting_style.
83724
83725 2004-02-03  Bruno Haible  <bruno@clisp.org>
83726
83727         * m4/pipe.m4: New file, from GNU gettext.
83728
83729 2004-02-03  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/pipe.h: New file, from GNU gettext.
83732         * lib/pipe.c: New file, from GNU gettext.
83733
83734 2004-01-27  Bruno Haible  <bruno@clisp.org>
83735
83736         * m4/execute.m4: New file, from GNU gettext.
83737
83738 2004-01-27  Bruno Haible  <bruno@clisp.org>
83739
83740         * lib/execute.h: New file, from GNU gettext.
83741         * lib/execute.c: New file, from GNU gettext.
83742         * lib/w32spawn.h: New file, from GNU gettext.
83743
83744 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83745
83746         Merge from diffutils.
83747
83748         * lib/file-type.c (file_type): Add typed memory objects.
83749         * lib/file-type.h (S_TYPEISTMO): New macro.
83750
83751         * lib/c-stack.h (c_stack_action): Remove argv argument.
83752         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83753         (die): Don't calculate message unless segv_action returns.
83754         (get_stack_location, min_address_from_argv, max_address_from_argv,
83755         volatile stack_base, volatile_stack_size): Remove.
83756         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83757         that every segmentation violation is a stack overflow.  (Ouch!)
83758         See Debian bug 136249 (still outstanding) for more info about why
83759         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83760
83761 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83762
83763         Exit-status fix from coreutils.
83764
83765         Use exit_failure consistently in place of EXIT_FAILURE,
83766         so that program exit statuses are consistent on failure.
83767
83768         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83769         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83770         * lib/argmatch.h: Comment fix to match the above.
83771         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83772         Now a macro referring to exit_failure, instead of a separate
83773         variable.  Include "exitfail.h" to get it.
83774         * lib/xstrtol.h: Include "exitfail.h".
83775         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83776
83777         * lib/long-options.c (parse_long_options): Use prototype
83778         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83779         for clarity.
83780
83781 2004-01-21  Jim Meyering  <jim@meyering.net>
83782
83783         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83784         so as not to conflict with a different-sized __mktime_internal
83785         function in GNU libc.
83786         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83787         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83788
83789 2004-01-20  Karl Berry  <karl@gnu.org>
83790
83791         * config/config.guess: update from config.
83792
83793         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83794
83795 2004-01-20  Bruno Haible  <bruno@clisp.org>
83796
83797         Safer stack allocation.
83798         * lib/setenv.c: Include allocsa.h.
83799         (alloca): Remove fallback definition.
83800         (freea): Remove macro.
83801         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83802         instead of freea.
83803
83804 2004-01-20  Bruno Haible  <bruno@clisp.org>
83805
83806         * m4/eealloc.m4: New file, from GNU gettext.
83807
83808 2004-01-20  Bruno Haible  <bruno@clisp.org>
83809
83810         * m4/allocsa.m4: New file, from GNU gettext.
83811
83812 2004-01-20  Bruno Haible  <bruno@clisp.org>
83813
83814         * lib/xallocsa.h: New file, from GNU gettext.
83815         * lib/xallocsa.c: New file, from GNU gettext.
83816
83817 2004-01-20  Bruno Haible  <bruno@clisp.org>
83818
83819         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83820
83821 2004-01-20  Bruno Haible  <bruno@clisp.org>
83822
83823         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83824         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83825         specially.
83826
83827 2004-01-20  Bruno Haible  <bruno@clisp.org>
83828
83829         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83830         patch.
83831
83832 2004-01-20  Bruno Haible  <bruno@clisp.org>
83833
83834         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83835
83836 2004-01-20  Bruno Haible  <bruno@clisp.org>
83837
83838         * lib/eealloc.h: New file.
83839
83840 2004-01-20  Bruno Haible  <bruno@clisp.org>
83841
83842         * lib/binary-io.h: Avoid warnings on Cygwin.
83843
83844 2004-01-20  Bruno Haible  <bruno@clisp.org>
83845
83846         * lib/allocsa.h: New file, from GNU gettext.
83847         * lib/allocsa.c: New file, from GNU gettext.
83848
83849 2004-01-18  Karl Berry  <karl@gnu.org>
83850
83851         * doc/gpl.texi, doc/lgpl.texi: new files.
83852
83853 2004-01-18  Karl Berry  <karl@gnu.org>
83854
83855         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83856         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83857
83858 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83859
83860         Merge from coreutils.
83861
83862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83863         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83864         (gl_DEFAULT_POSIX2_VERSION): Move
83865         the documentation from 'configure' into 'config.hin',
83866         so that 'configure --help' isn't burdened by it and
83867         we don't have to worry about its formatting there.
83868         Reword the documentation so that it's more succinct
83869         and can be run together into a single paragraph.
83870         * m4/same.m4 (gl_SAME): Check for pathconf.
83871
83872 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83873
83874         Merge from coreutils.
83875
83876         * lib/posixver.c: Include posixver.h.
83877
83878         * lib/same.c: Include <stdbool.h>, <limits.h>.
83879         (_POSIX_NAME_MAX): Define if not defined.
83880         (MIN): New macro.
83881         (same_name): If file names are silently truncated, report
83882         that the file names are the same if they are the same after
83883         the silent truncation.
83884
83885         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83886         conversion function.
83887         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83888         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83889         longer needed.
83890
83891 2004-01-15  Jim Meyering  <jim@meyering.net>
83892
83893         Merge from coreutils.
83894
83895         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83896         if no library is required.
83897         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83898         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83899         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83900         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83901         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83902         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83903         value, $ac_cv_search_crypt, if it's "none required".
83904         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83905         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83906         not gl_FUNC_GETLOADAVG.
83907         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83908         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83909
83910 2004-01-15  Jim Meyering  <jim@meyering.net>
83911
83912         Merge from coreutils.
83913
83914         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83915         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83916         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83917
83918         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83919         optional configure-time default.
83920
83921         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83922
83923         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83924
83925 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83926
83927         Merge from coreutils.
83928
83929         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83930         value, $ac_cv_search_nanosleep, if it's "none required".
83931
83932 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83933
83934         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83935         with like-named macro in fnmatch.c.
83936         (EXT): Use an internal constant instead.
83937
83938         Merge fnmatch patches from glibc.
83939         * lib/fnmatch.c (mbsinit): Remove define.
83940         Add libc_hidden_ver (__fnmatch, fnmatch).
83941         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83942         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83943
83944 2004-01-14  Karl Berry  <karl@gnu.org>
83945
83946         * config/install-sh: update from automake.
83947
83948 2004-01-13  Karl Berry  <karl@gnu.org>
83949
83950         * config/install-sh: update from automake.
83951
83952 2004-01-09  Karl Berry  <karl@gnu.org>
83953
83954         * config/install-sh: update from automake.
83955
83956 2004-01-05  Karl Berry  <karl@gnu.org>
83957
83958         * config/config.{sub,guess}: update from config.
83959
83960 2003-12-31  Karl Berry  <karl@gnu.org>
83961
83962         * config/depcomp: update from automake.
83963
83964 2003-12-14  Karl Berry  <karl@gnu.org>
83965
83966         * lib/config.charset: update from gettext-runtime.
83967
83968 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83969
83970         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83971         Bug reported by Alfred M. Szmidt.
83972
83973 2003-12-03  Bruno Haible  <bruno@clisp.org>
83974
83975         * m4/gettext.m4: Upgrade from gettext-0.13.
83976         * m4/po.m4: Upgrade from gettext-0.13.
83977         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83978         * m4/intmax.m4: New file, from gettext-0.13.
83979         * m4/printf-posix.m4: New file, from gettext-0.13.
83980
83981 2003-11-29  Karl Berry  <karl@gnu.org>
83982
83983         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83984
83985 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83986             Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/printf-parse.h: Don't include sys/types.h.
83989         (ARG_NONE): New macro.
83990         (char_directive): Change type of *arg_index fields to size_t.
83991         * lib/printf-parse.c: Don't include sys/types.h.
83992         (SSIZE_MAX): Remove macro.
83993         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83994         Remove unnecessary overflow check.
83995         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83996         fields.
83997
83998 2003-11-25  Bruno Haible  <bruno@clisp.org>
83999
84000         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
84001
84002 2003-11-25  Bruno Haible  <bruno@clisp.org>
84003
84004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
84005         gt_TYPE_SSIZE_T.
84006
84007 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84008
84009         * modules/alloca: Remove dependency on xalloc.
84010
84011 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84012
84013         * lib/alloca.c: Remove dependency on xalloc module.
84014         (xalloc_die): Remove.
84015         (memory_full) [!defined emacs]: New macro.
84016         [!defined emacs]: Don't include xalloc.h.
84017         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
84018         address arithmetic overflows.  Change datatypes a bit to avoid
84019         unnecessary casts.
84020
84021 2003-11-22  Jim Meyering  <jim@meyering.net>
84022
84023         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
84024         s/size/size_t/.
84025
84026 2003-11-21  Karl Berry  <karl@gnu.org>
84027
84028         * config/config.{sub,guess}: update from config.
84029
84030 2003-11-18  Karl Berry  <karl@gnu.org>
84031
84032         * config/config.{sub,guess}: update from config.
84033
84034         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
84035
84036 2003-11-17  Paul Eggert  <eggert@twinsun.com>
84037
84038         * README: Mention that S+T cannot overflow if S is the size of
84039         an existing object and T is sufficiently small.
84040
84041 2003-11-17  Jim Meyering  <jim@meyering.net>
84042
84043         On systems without utime and without a utimes function capable of
84044         dealing with a NULL struct utimbuf* argument, this utime replacement
84045         could -- in unusual circumstances -- leak a file descriptor.
84046         * lib/utime.c: Include <unistd.h> and <errno.h>.
84047         (utime_null): Be sure to close `fd' and to preserve errno.
84048         Reported by Geoff Collyer via Arnold Robbins.
84049
84050 2003-11-17  Bruno Haible  <bruno@clisp.org>
84051
84052         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
84053         (Depends-on): Add xsize.
84054
84055 2003-11-17  Bruno Haible  <bruno@clisp.org>
84056
84057         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
84058
84059 2003-11-17  Bruno Haible  <bruno@clisp.org>
84060
84061         * lib/vasnprintf.c (alloca): Remove fallback definition.
84062         (freea): Remove definition.
84063         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
84064         Reported by Paul Eggert.
84065
84066 2003-11-16  Paul Eggert  <eggert@twinsun.com>
84067             Bruno Haible  <bruno@clisp.org>
84068
84069         Protect against address arithmetic overflow.
84070         * lib/printf-args.h: Include stddef.h.
84071         (arguments): Change type of field 'count' to size_t.
84072         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
84073         'unsigned int' where appropriate.
84074         * lib/printf-parse.h: Include sys/types.h.
84075         (char_directive): Change type of *arg_index fields to ssize_t.
84076         (char_directives): Change type of fields 'count', max_*_length to
84077         size_t.
84078         * lib/printf-parse.c: Include sys/types.h and xsize.h.
84079         (SSIZE_MAX): Define fallback value.
84080         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
84081         instead of 'int' where appropriate. Check a_allocated, d_allocated
84082         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
84083         * lib/vasnprintf.c: Include xsize.h.
84084         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
84085         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
84086         overflow. Avoid wraparound when converting a width or precision from
84087         decimal to binary.
84088
84089 2003-11-16  Bruno Haible  <bruno@clisp.org>
84090
84091         Update from GNU gettext.
84092         * lib/printf-parse.c: Generalize to it can be compiled for wide
84093         strings.
84094         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
84095         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
84096         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
84097         SNPRINTF): New macros.
84098         Don't include <alloca.h> if the file is used inside libintl.
84099         (local_wcslen): New function, for Solaris 2.5.1.
84100         (VASNPRINTF): Use it instead of wcslen.
84101
84102 2003-11-16  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/xsize.h (xmax): New function.
84105         (xsum, xsum3, xsum4): Declare as "pure" functions.
84106
84107 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84108
84109         * modules/xalloc (Files): Undo latest change, since xalloc.h
84110         no longer needs SIZE_MAX or PTRDIFF_MAX.
84111
84112 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84113
84114         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
84115         gl_PTRDIFF_MAX.
84116
84117 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84118
84119         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
84120         "return", to pacify some unknown compiler.  Problem reported
84121         by Joerg Schilling.
84122
84123 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84124
84125         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
84126         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
84127         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
84128         heuristic is just as accurate as far as we know, and it removes a
84129         dependency on size_max.m4 and ptrdiff_max.m4.
84130
84131 2003-11-11  Bruno Haible  <bruno@clisp.org>
84132
84133         * modules/xsize (Files): Add m4/size_max.m4.
84134         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
84135
84136 2003-11-11  Bruno Haible  <bruno@clisp.org>
84137
84138         * m4/size_max.m4: New file.
84139         * m4/ptrdiff_max.m4: New file.
84140         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
84141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
84142         (gl_XALLOC): Invoke it.
84143
84144 2003-11-11  Bruno Haible  <bruno@clisp.org>
84145
84146         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
84147         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
84148         defined.
84149
84150 2003-11-10  Paul Eggert  <eggert@twinsun.com>
84151
84152         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
84153         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
84154         rejected some allocations of exactly SIZE_MAX - 2 bytes.
84155         From Bruno Haible.
84156         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
84157         not (size_t) -1, since it's defined here.
84158
84159 2003-11-09  Karl Berry  <karl@gnu.org>
84160
84161         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
84162
84163 2003-11-06  Paul Eggert  <eggert@twinsun.com>
84164
84165         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
84166         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
84167         Reject sizes of exactly SIZE_MAX bytes.
84168         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
84169         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
84170
84171 2003-11-05  Bruno Haible  <bruno@clisp.org>
84172
84173         * lib/xsize.h: Include limits.h, to avoid a possible collision with
84174         SIZE_MAX defined in <limits.h> on Solaris.
84175
84176 2003-11-04  Jim Meyering  <jim@meyering.net>
84177
84178         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
84179         variable names, rather than @VAR@.
84180         * modules/poll: Likewise.
84181
84182 2003-11-04  Bruno Haible  <bruno@clisp.org>
84183
84184         * modules/xsize: New file.
84185         * modules/linebreak: Depend on xsize.
84186         * MODULES.html.sh (func_all_modules): Add xsize.
84187
84188 2003-11-04  Bruno Haible  <bruno@clisp.org>
84189
84190         * m4/xsize.m4: New file.
84191
84192 2003-11-04  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/xsize.h: New file.
84195         * lib/linebreak.c: Include xsize.h.
84196         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
84197         argument for overflow.
84198         Suggested by Paul Eggert.
84199
84200 2003-11-03  Karl Berry  <karl@gnu.org>
84201
84202         * config/config.{guess,sub}: update from config.
84203
84204 2003-11-03  Jim Meyering  <jim@meyering.net>
84205
84206         * modules/userspec (lib_SOURCES): Add userspec.h.
84207         (Include): Add "userspec.h".
84208         Improve description.
84209
84210 2003-11-03  Jim Meyering  <jim@meyering.net>
84211
84212         * lib/userspec.c: Include "userspec.h".
84213         * lib/userspec.h: New file.
84214
84215 2003-11-03  Bruno Haible  <bruno@clisp.org>
84216
84217         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
84218
84219 2003-11-03  Bruno Haible  <bruno@clisp.org>
84220
84221         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84222         available, to avoid (extremely rare) race condition.
84223         Suggested by Paul Eggert.
84224
84225 2003-11-02  Karl Berry  <karl@gnu.org>
84226
84227         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84228
84229 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84230
84231         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84232         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84233         (read_filesystem_list): Set and use me_type_malloced.
84234         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84235         whatever the type happens to be), for brevity and consistency.
84236         Check for size calculation overflow on Alphas running OSF/1.
84237
84238 2003-10-31  Jim Meyering  <jim@meyering.net>
84239
84240         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84241
84242         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84243
84244 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84245             Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84248         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84249
84250 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84253         netbsd*-gnu*.  Suggested by Robert Millan.
84254
84255 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84256
84257         * modules/group-member: Depend on stdbool.
84258
84259 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84260
84261         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84262
84263 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84264
84265         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84266         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84267         after the 'gnu' in these cases.  This fixes some bugs in the
84268         previous change, and is based on suggestions by Robert Millan.
84269
84270 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84271
84272         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84273         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84274         no longer needed.
84275         * lib/quotearg.c (quotearg_n_options): Use it.
84276         * lib/group-member.c: Include <stdbool.h>.
84277         (free_group_info): Arg is now const *; don't free arg.
84278         (get_group_info): Now returns bool and accepts struct group_info *,
84279         rather than returning a malloc'ed struct group_info *.
84280         All uses changed.  Check for overflow in internal size calculation.
84281
84282         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84283         rather than xmalloc/xrealloc.
84284         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84285         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84286         conformance bug: the old code used a pointer after freeing the
84287         storage that it addressed.
84288         * lib/hash.c (hash_initialize): Simplify the code by using
84289         xalloc_oversized rather than doing it by hand.
84290         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84291         the buffer preserved.  Use free and xmalloc instead.
84292         * lib/quotearg.c (quotearg_n_options): Likewise.
84293         Use a simpler test for size overflow.  Don't use xalloc_oversized
84294         because unsigned int might be wider than size_t (!); this suggests
84295         that we should switch from unsigned int to size_t for slot numbers.
84296
84297 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84298
84299         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84300         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84301         NetBSD kernels.  Requested by Richard Stallman.
84302
84303 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84304
84305         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84306         to allocate the returned structure.  Do not allocate a subarray,
84307         as x2nrealloc will do that.
84308         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84309         instead of xnrealloc.
84310         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84311
84312 2003-10-27  Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/stdbool_.h: Better support for BeOS.
84315
84316 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84317
84318         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84319         now uses inline.
84320
84321 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84322
84323         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84324         callers that want to do their own size-overflow checking.  Include
84325         <stdbool.h>, since xalloc_oversized returns bool.
84326         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84327         to use xalloc_oversized.
84328
84329         Add two functions x2realloc, x2nrealloc, for programs that grow
84330         arrays dynamically by doubling their sizes.
84331         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84332         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84333         New functions.
84334
84335         Port to C99 semantics for 'inline' of external functions.
84336         Bug reported by Bruno Haible.
84337         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84338         with the old contents of xnmalloc.
84339         (xnmalloc, xmalloc): Use it.
84340         (xnrealloc_inline): New static inline function,
84341         with the old contents of xnrealloc.
84342         (xnrealloc, xrealloc): Use it.
84343
84344         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84345         that.
84346
84347 2003-10-26  Karl Berry  <karl@gnu.org>
84348
84349         * config/srclist.txt (COPYING.DOC): no longer available from
84350         /gd/gnuorg; don't know where the ultimate source is.
84351
84352 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84353
84354         Fix several address-calculation bugs in the hash modules,
84355         plus some minor code cleanup.
84356
84357         * lib/hash.h: Include <stdbool.h>, for bool.
84358         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84359         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84360         hash_get_n_entries, hash_get_max_bucket_length,
84361         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84362         hash_rehash): Use size_t rather than unsigned.
84363         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84364         hash_get_n_buckets_used, hash_get_n_entries,
84365         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84366         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84367         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84368         Likewise.
84369         (SIZE_MAX): Define if not defined.
84370         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84371         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84372         hash_print):
84373         Use const * when possible.
84374         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84375         (check_tuning): Fix bug: if tuning parameters were very close to
84376         0 or 1, rounding errors could have caused subscript violations.
84377         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84378         (hash_initialize): Add 'fail:' label
84379         to free table and return NULL, and use it to simplify code.
84380         Use calloc rather than clearing the storage ourself.
84381         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84382         buffer size calculations.
84383         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84384         Include <stddef.h>, for size_t.
84385         * lib/hash-pjw.c (hash_pjw): Likewise.
84386         Switch to method described by Bruno Haible.
84387         Include <limits.h>, for CHAR_BIT.
84388         (SIZE_BITS): New macro.
84389
84390 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84391
84392         * m4/getline.m4 (AM_FUNC_GETLINE):
84393         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84394         hosts.  Problem reported by Derek Robert Price in
84395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84396         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84397         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84398
84399 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84400
84401         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84402         ceiling the allocation at NMAX bytes rather than silently
84403         discarding input bytes before NMAX is reached.  This makes
84404         a difference only if NMAX exceeds SIZE_MAX / 2.
84405
84406         * lib/obstack.c: Merge from glibc.
84407         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84408         Add libc_hidden_def (_obstack_newchunk).
84409         (_obstack_free) [! defined _LIBC]: Remove.
84410         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84411         a clone of the function body.
84412         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84413         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84414
84415         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84416         glibc.
84417         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84418         arg to memcpy.
84419
84420         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84421         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84422         Don't use lvalue casts, as GCC plans to remove support for them
84423         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84424         was also present in the non-GCC version, indicating that this
84425         code had always been buggy and had never been widely used.
84426         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84427         Use the fast variant of each macro, rather than copying the
84428         definiens of the fast variant; that way, we'll be more likely to
84429         catch future bugs in the fast variants.
84430
84431 2003-10-20  Bruno Haible  <bruno@clisp.org>
84432
84433         * modules/wait-process: New file.
84434         * MODULES.html.sh (func_all_modules): Add wait-process.
84435
84436 2003-10-20  Bruno Haible  <bruno@clisp.org>
84437
84438         * m4/wait-process.m4: New file.
84439
84440 2003-10-20  Bruno Haible  <bruno@clisp.org>
84441
84442         * lib/wait-process.h: New file, from GNU gettext.
84443         * lib/wait-process.c: New file, from GNU gettext.
84444
84445 2003-10-19  Jim Meyering  <jim@meyering.net>
84446
84447         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84448         HPUX 10.20.
84449
84450 2003-10-18  Karl Berry  <karl@gnu.org>
84451
84452         * config/config.guess: update from config.
84453
84454 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84455
84456         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84457         (getgroups): First arg is int, not size_t.
84458         Don't let 'free' mangle errno.
84459
84460 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84461
84462         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84463
84464 2003-10-16  Karl Berry  <karl@gnu.org>
84465
84466         * config/config.{guess,sub}: update from config.
84467
84468 2003-10-16  Jim Meyering  <jim@meyering.net>
84469
84470         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84471         memcpy.
84472
84473 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84474
84475         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84476         (SIZE_MAX): Remove.
84477         (new_exclude, add_exclude_file): Initial size no longer needs to
84478         be a power of 2.
84479         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84480         our own address arithmetic overflow checking.
84481
84482         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84483         (fnmatch): Do not alloca more than 2000 wide characters;
84484         instead, use malloc for large buffers.
84485         Check for address arithmetic overflow, and return -1
84486         with errno set to ENOMEM in that case.
84487         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84488         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84489         instead, return -1.  Check for address arithmetic overflow.
84490
84491 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84492
84493         Handle invalid suffixes and overflow independently, so that
84494         callers can treat them independently as needed.  Fix some bugs in
84495         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84496         suffix for a human-readable blocksize.  The major caller-visible
84497         change is the addition of a new
84498         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84499         that both overflow and suffix chars were found.
84500
84501         * lib/human.c (humblock): Don't check separately for invalid suffix
84502         char; that is xstrtoumax's job (now that its bug is fixed).
84503         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84504         INTMAX_MAX]: New macros.
84505         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84506         TYPE_MAXIMUM): New macros.
84507         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84508         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84509         if overflow occurs, as it's what __strtol does and it's more useful
84510         in practice.
84511         (__xstrtol): If __strtol reports some error other than ERANGE,
84512         reflect it to the caller as LONGINT_INVALID.  If it reports
84513         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84514         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84515         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84516         value.
84517         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84518         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84519         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84520         [defined UINTMAX_MAX]: New macros.
84521
84522 2003-10-14  Bruno Haible  <bruno@clisp.org>
84523
84524         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84525
84526 2003-10-14  Bruno Haible  <bruno@clisp.org>
84527
84528         * m4/sig_atomic_t: New file, from GNU gettext.
84529         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84530
84531 2003-10-14  Bruno Haible  <bruno@clisp.org>
84532
84533         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84534         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84535         Also use volatile where needed.
84536
84537 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84538
84539         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84540         Change maintainer from Bruno Haible to 'all'.
84541
84542 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84543
84544         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84545
84546 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84547
84548         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84549         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84550         and define in terms of the other primitives.
84551         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84552         (SIZE_MAX): Define if not already defined.
84553         (array_size_overflow): New function.
84554         (xalloc_die): Abort instead of exiting if 'error' returns.
84555         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84556         (xmalloc, xrealloc): Use them.
84557         (xcalloc): Check for address arithmetic overflow.
84558         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84559         a bit faster than strcpy.
84560
84561 2003-10-10  Simon Josefsson  <jas@extundo.com>
84562
84563         * modules/argp (Depends-on): Add restrict and strcase.
84564
84565 2003-10-10  Simon Josefsson  <jas@extundo.com>
84566
84567         * m4/argp.m4: Add AC_C_INLINE.
84568
84569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84570
84571         Merge getpass from libc, plus a few fixes.
84572
84573         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84574         Include <stdbool.h>.
84575         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84576         __fsetlocking to empty.
84577         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84578         do include <bits/libc-lock.h>.
84579         Do not include <fcntl.h>; not needed.
84580         [_LIBC]: Include <wchar.h>.
84581         (NOTCANCEL_MODE): New macro.
84582         (flockfile, funlockfile) [_LIBC]: New macros.
84583         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84584         [!_LIBC]: New macros.
84585         (call_fclose): New function.
84586         (getpass): Use it.  Save tty stream separately; this simplifies the
84587         code and makes it more reliable if stdin happens to equal stdout.
84588         Invoke __fsetlocking on tty.
84589         Handle thread cancellation if needed.
84590         Namespace cleanup (use __tcgetattr, __getline).
84591         Use bool for Booleans.
84592         [USE_IN_LIBIO]: Handle wide streams.
84593         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84594         stream might go where.
84595
84596         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84597         doesn't have to include <stdio.h> before us.
84598         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84599         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84600         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84601         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84602         if not declared, so that we can use getpass.c code from libc without
84603         rewriting it.
84604         (flockfile, ftrylockfile, funlockfile): New macros.
84605
84606 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84607
84608         * modules/getpass: Depend on stdbool.
84609
84610 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84611
84612         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84613
84614 2003-10-07  Karl Berry  <karl@gnu.org>
84615
84616         * config/config.{guess,sub}: update from config.
84617
84618 2003-10-06  Jim Meyering  <jim@meyering.net>
84619             Bruno Haible  <bruno@clisp.org>
84620
84621         This lets translators provide better translations for the
84622         "Written by ..." part of --version output.
84623         * lib/version-etc.h: Include stdarg.h.
84624         (version_etc_copyright): Declare as readonly.
84625         (version_etc): Make this function variadic with a NULL-terminated list
84626         of author name strings.
84627         (version_etc_va): New declaration.
84628         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84629         (version_etc_copyright): Declare as readonly.
84630         (version_etc_va): New function. Provide a different translatable string
84631         for each possible number of authors < 10. Abbreviate when there are 10
84632         authors or more.
84633         (version_etc): Make this function variadic. Call version_etc_va.
84634         Suggestion from Gary V. Vaughan.
84635
84636         * lib/long-options.h (parse_long_options): Change prototype: the
84637         authors string is moved to the end and becomes variadic.
84638         * lib/long-options.c: Include stdarg.h.
84639         (parse_long_options): Make this function variadic, too.
84640         Call version_etc_va, not version_etc.
84641
84642 2003-10-06  Bruno Haible  <bruno@clisp.org>
84643
84644         * modules/version-etc-2: Remove file.
84645         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84646
84647 2003-10-06  Bruno Haible  <bruno@clisp.org>
84648
84649         * modules/fatal-signal: New file.
84650         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84651
84652 2003-10-06  Bruno Haible  <bruno@clisp.org>
84653
84654         * m4/fatal-signal.m4: New file.
84655         * m4/signalblocking.m4: New file, from GNU gettext.
84656
84657 2003-10-06  Bruno Haible  <bruno@clisp.org>
84658
84659         * lib/version-etc-2.h: Remove file.
84660         * lib/version-etc-2.c: Remove file.
84661
84662 2003-10-06  Bruno Haible  <bruno@clisp.org>
84663
84664         * lib/fatal-signal.h: New file, from GNU gettext.
84665         * lib/fatal-signal.c: New file, from GNU gettext.
84666
84667 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84668
84669         * README: Rework advice for preventing empty .o files.
84670         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84671         not <sys/types.h>.
84672
84673 2003-10-04  Karl Berry  <karl@gnu.org>
84674
84675         * lib/argp*: update from libc.
84676
84677 2003-10-04  Karl Berry  <karl@gnu.org>
84678
84679         * config/config.{guess,sub}: update from config.
84680
84681 2003-10-02  Bruno Haible  <bruno@clisp.org>
84682
84683         * modules/lchown (Include): Add lchown.h.
84684         * modules/time_r (Include): Use "..." syntax.
84685         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84686
84687 2003-10-01  Simon Josefsson  <jas@extundo.com>
84688
84689         * MODULES.html.sh (func_all_modules): Move gethostname from section
84690         'based on' to section 'lacking' POSIX:2001.
84691
84692 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84693
84694         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84695         to output mode on the same stream.
84696
84697 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84700         Fix arg typo in previous patch.
84701
84702 2003-09-28  Jim Meyering  <jim@meyering.net>
84703
84704         * lib/error.c: Correct cpp indentation.
84705
84706 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84707
84708         * modules/free: New file.
84709
84710 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84711
84712         * m4/free.m4: New file.
84713
84714 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84715
84716         * lib/minmax.h (MIN, MAX)
84717         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84718         Omit the special code that used __typeof__, since we worry that
84719         it could be more trouble than it's worth.  See:
84720         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84721         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84722
84723         * lib/free.c: New file.
84724
84725 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84726
84727         Trivial fixes to Makefile.am parts of module listings.
84728         * modules/strstr: Append strstr.h to lib_SOURCES.
84729         * modules/strcase: Likewise, for strcase.h.
84730
84731 2003-09-27  Karl Berry  <karl@gnu.org>
84732
84733         * config/mkinstalldirs: update from automake.
84734
84735 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84736
84737         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84738         (error_tail): Do not loop, reallocating temporary buffer, since
84739         the output cannot contain more wide characters than the input
84740         contains bytes, the size must be big enough already.  This avoids
84741         one potential size overflow calculation.  Check for size overflow
84742         when calculating temporary buffer size.  Free temporary buffer
84743         when done, if it was allocated with malloc; this plugs a memory
84744         leak.  Remove casts from void * to pointers, that are no longer
84745         needed now that we're assuming C89 or better.
84746
84747         Merge error changes from glibc.
84748
84749         * lib/error.c, error.h: Update copyright notice header to match glibc.
84750         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84751         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84752         Disable cancellation while printing error.
84753         * lib/error.h: Prepend __ to parameter names.
84754
84755 2003-09-26  Jim Meyering  <jim@meyering.net>
84756
84757         * lib/error.c (error_tail): Move some declarations
84758         into inner scope where the local variables are used.
84759
84760 2003-09-26  Bruno Haible  <bruno@clisp.org>
84761
84762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84763         stpncpy().
84764         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84765
84766 2003-09-26  Bruno Haible  <bruno@clisp.org>
84767
84768         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84769         (stpncpy): Define as alias for gnu_stpncpy.
84770         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84771
84772 2003-09-25  Simon Josefsson  <jas@extundo.com>
84773
84774         * lib/xgetdomainname.h: New file.
84775         * lib/xgetdomainname.c: New file.
84776
84777 2003-09-25  Simon Josefsson  <jas@extundo.com>
84778             Bruno Haible  <bruno@clisp.org>
84779
84780         * modules/getdomainname: New file.
84781         * modules/xgetdomainname: New file.
84782         * MODULES.html.sh (func_all_modules): Add getdomainname,
84783         xgetdomainname.
84784
84785 2003-09-25  Simon Josefsson  <jas@extundo.com>
84786             Bruno Haible  <bruno@clisp.org>
84787
84788         * m4/getdomainname.m4: New file.
84789
84790 2003-09-25  Simon Josefsson  <jas@extundo.com>
84791             Bruno Haible  <bruno@clisp.org>
84792
84793         * lib/getdomainname.h: New file.
84794         * lib/getdomainname.c: New file.
84795
84796 2003-09-25  Karl Berry  <karl@gnu.org>
84797
84798         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84799
84800 2003-09-25  Karl Berry  <karl@gnu.org>
84801
84802         * config/install-sh: update from automake.
84803
84804 2003-09-25  Bruno Haible  <bruno@clisp.org>
84805
84806         * modules/version-etc-2: New file, from modules/version-etc with
84807         modifications.
84808         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84809
84810 2003-09-25  Bruno Haible  <bruno@clisp.org>
84811
84812         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84813         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84814
84815 2003-09-24  Simon Josefsson  <jas@extundo.com>
84816
84817         * modules/xgethostname: Add xgethostname.h.
84818
84819 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84820
84821         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84822         the buffer associated with the argument.  Bug reported by
84823         Simon Josefsson.
84824
84825 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84826
84827         * README: Document assumptions that 'int' is at least 32 bits
84828         wide, that integer arithmetic is 2's complement without overflow,
84829         that there are no holes in integer values, that adding sizes of
84830         two nonoverlapping objects can't overflow, and that all-bits-zero
84831         yields scalar zero.  Fix spelling and capitalization typos.
84832
84833 2003-09-19  Karl Berry  <karl@gnu.org>
84834
84835         * lib/argp.h: update from libc.
84836
84837 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84838
84839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84840         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84841         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84842
84843 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84844
84845         * gnulib-tool: Use "test -h", not "test -L", for portability
84846         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84847         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84848         (sed_extract_prog): Issue s commands one-by-one, rather than
84849         using \| in one s command.
84850
84851 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84852
84853         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84854         input error, instead of returning NULL the next time we are called
84855         (and therefore losing track of errno).
84856
84857 2003-09-16  Bruno Haible  <bruno@clisp.org>
84858
84859         * gnulib-tool (func_create_testdir): Warn about duplicated
84860         dependencies.
84861
84862 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84863
84864         * modules/argmatch, modules/fatal, modules/obstack,
84865         modules/xalloc, modules/xgethostname: Sort dependencies by
84866         importance, not alphabetically.
84867
84868 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84869
84870         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84871         fails, so that the caller gets the proper errno.
84872
84873         * lib/readutmp.c (read_utmp): Likewise.
84874         Check for fstat error.  Close stream and free storage
84875         when failing.
84876
84877 2003-09-14  Karl Berry  <karl@gnu.org>
84878
84879         * config/srclist.txt (strdup.c): disable for c89 changes.
84880
84881 2003-09-14  Jim Meyering  <jim@meyering.net>
84882
84883         * lib/getloadavg.c: Correct cpp indentation.
84884         * lib/strdup.c: Likewise.
84885         * lib/vasnprintf.c: Likewise.
84886
84887 2003-09-14  Bruno Haible  <bruno@clisp.org>
84888
84889         * modules/fwriteerror: New file.
84890         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84891
84892 2003-09-14  Bruno Haible  <bruno@clisp.org>
84893
84894         * lib/fwriteerror.h: New file.
84895         * lib/fwriteerror.c: New file.
84896
84897 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84898
84899         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84900         modules/xgethostname, modules/xalloc: Depend on exit.
84901
84902 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84903
84904         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84905
84906         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84907         and AC_MINIX, too, so that their extensions are available.
84908
84909         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84910         This macro has been superseded by gl_BACKUPFILE.
84911
84912         More patches to assume C89 or better.
84913
84914         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84915
84916         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84917         unconditionally.
84918         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84919         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84920         Include <string.h>, <stdlib.h> unconditionally.
84921         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84922         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84923         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84924         headers or for string.h.
84925         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84926         or strtoul.
84927
84928         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84929         headers.
84930         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84931         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84932         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84933         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84934         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84935         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84936         memcpy, memset.
84937         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84938         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84939         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84940         strtol.
84941         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84942         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84943         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84944         strtoul.
84945
84946 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84947
84948         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84949         * lib/obstack.c [!defined _LIBC]: Likewise.
84950         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84951         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84952         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84953
84954         More changes to assume C89 or better.
84955
84956         * lib/error.c (error_tail): Assume vprintf.
84957
84958         * lib/argmatch.c (getenv): Remove decl.
84959         * lib/progreloc.c (get_full_program_name): Define via prototype.
84960         * lib/setenv.c (clearenv): Likewise.
84961         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84962         needed.
84963         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84964         (malloc, memcpy): Remove decls.
84965         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84966         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84967         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84968         (memcpy): Remove macro.
84969         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84970         (__P): Remove.  All uses removed.
84971         (PTR): Remove.  All uses changed to void *.
84972         (CHAR_BIT, NULL): Remove.
84973         (spaces, zeros, memset_space, memset_zero)
84974         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84975         Remove.
84976         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84977         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84978         Define with prototype.
84979         Remove now-unnecessary prototype decl.
84980         (extra_args_spec): Assume ANSI C.  All uses changed.
84981         (extra_args_spec_iso): Remove.
84982         (my_strftime, emacs_strftimeu): Define via prototype.
84983         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84984         unconditionally.
84985         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84986         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84987         (strtoul, strtol): Remove decls.
84988         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84989         LONG_MAX): Remove.
84990         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84991         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84992         (LOCALE_PARAM_PROTO): New macro.
84993         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84994         (INTERNAL (strtol), strtol): Define with a prototype.
84995         (PARAMS): Remove.  All uses removed.
84996         * lib/tempname.c: Include <string.h> unconditionally.
84997         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84998         * lib/xgethostname.c (main): Define with a prototype.
84999         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
85000         Include <stdlib.h> unconditionally.
85001         (calloc, malloc, realloc, free): Remove decls.
85002         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
85003         Include <stdlib.h> unconditionally.  Sort include file names.
85004         (strtod): Remove.
85005         (xstrtod): Define with a prototype.
85006         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
85007         (strtol, strtoul): Remove decls.
85008
85009 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85010
85011         More patches to assume C89 or better.
85012         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
85013         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
85014         string.h, memchr, STDC_HEADERS.
85015
85016 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85017
85018         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
85019         Include <stdlib.h>, <string.h> unconditionally.
85020         Remove now-unnecessary cast to char *.
85021         * lib/strnlen.c: Include <string.h> unconditionally.
85022         * lib/yesno.c (yesno): Define with a prototype.
85023
85024 2003-09-11  Bruno Haible  <bruno@clisp.org>
85025
85026         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
85027
85028 2003-09-10  Jim Meyering  <jim@meyering.net>
85029
85030         * lib/error.c: Correct indentation of cpp directives.
85031
85032 2003-09-10  Bruno Haible  <bruno@clisp.org>
85033
85034         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
85035         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
85036         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
85037         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
85038         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
85039         <stdlib.h> and <string.h> checks.
85040         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
85041         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
85042
85043 2003-09-10  Bruno Haible  <bruno@clisp.org>
85044
85045         * lib/strcspn.c: Include <string.h> unconditionally.
85046         * lib/strpbrk.c: Include <string.h> unconditionally.
85047         * lib/strstr.c: Include <string.h> unconditionally.
85048         * lib/unicodeio.c: Include <string.h> unconditionally.
85049         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
85050         * lib/unsetenv.c: Likewise.
85051         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
85052         * lib/yesno.c: Include <stdlib.h> unconditionally.
85053         (rpmatch): Add prototype.
85054
85055 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85056
85057         More patches to assume C89 or better.
85058         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
85059         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
85060         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
85061         or for string.h.
85062         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
85063         stdlib.h.
85064         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
85065         C headers.
85066         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
85067         string.h.
85068         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
85069         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
85070         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
85071         or for string.h.
85072         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
85073         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
85074         C headers.
85075         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
85076         memcpy.
85077         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
85078         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
85079         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
85080         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
85081         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
85082         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
85083         string.h, free.
85084         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
85085         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
85086         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
85087         C headers, or for string.h.
85088         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
85089         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
85090         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
85091         headers, memory.h, stdlib.h, string.h, strings.h.
85092         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
85093         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
85094         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
85095         strchr.
85096         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
85097         headers, memory.h, string.h.
85098         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
85099         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
85100         free.
85101         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
85102         headers.
85103         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
85104         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
85105         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
85106         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
85107         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
85108
85109 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85110
85111         More K&R removal.
85112
85113         * lib/acosl.c (main): Use a prototype.
85114         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
85115         tanl.c: Likewise.
85116
85117         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
85118
85119         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
85120         (getopt, etopt_long, getopt_long_only, _getopt_internal)
85121         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
85122         with a prototype.
85123         * lib/getopt.c (const): Remove macro.
85124         Include <string.h> unconditionally.
85125         (my_index): Remove; all uses changed to strchr.
85126         (strlen): Remove decl.
85127         (exchange): Remove forward decl; no longer needed.
85128         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
85129         Define with prototype.
85130         * lib/getopt1.c (const): Remove macro.
85131         (getopt_long, getopt_long_only, main): Define with prototype.
85132
85133         * lib/getugroups.c: Include <string.h> unconditionally.
85134
85135         * lib/getusershell.c: Include <stdlib.h> unconditionally.
85136         (getusershell, setusershell, endusershell, readname, main):
85137         Define with prototypes.
85138
85139         * lib/group-member.c: Include group-member.h first.
85140         Include <stdlib.h> unconditionally.
85141
85142         * lib/hard-locale.c: Include hard-locale.h first.
85143         Include <stdlib.h>, <string.h> unconditionally.
85144
85145         * lib/hash.c (free, malloc): Remove decls.
85146         Include <stdlib.h> unconditionally.
85147
85148         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
85149         (getenv): Do not declare.
85150
85151         * lib/idcache.c: Include <string.h> unconditionally.
85152
85153         * lib/long-options.c: Include long-options.h first, to test interface.
85154         Include <stdlib.h> unconditionally.
85155
85156         * lib/makepath.c: Include makepath.h first, to test interface.
85157         Include <stdlib.h> and <string.h> unconditionally.
85158
85159         * lib/linebuffer.c: Include <stdlib.h>.
85160         (free): Remove decl.
85161
85162         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
85163         stddef.h. rpl_malloc returns void *, not char *.
85164         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
85165         prototype.
85166
85167         * lib/md5.h: Include <limits.h> unconditionally.
85168         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
85169         (__P): Remove; all uses removed.
85170         * lib/md5.c: Include "md5.h" first.
85171         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
85172         md5_buffer, md5_process_bytes, md5_process_block):
85173         Define with prototypes.
85174         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
85175         * lib/sha.c: Include "sha.h" first.
85176         Include <stdlib.h>, <string.h> unconditionally.
85177
85178         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
85179         * lib/memcmp.c (__ptr_t): Likewise.
85180         * lib/memrchr.c (__ptr_t): Likewise.
85181         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
85182         Include <string.h> unconditionally.
85183         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
85184         * lib/memchr.c: Include <stdlib.h> unconditionally.
85185         * lib/memchr.c (LONG_MAX): Remove.
85186         * lib/memrchr.c (LONG_MAX): Likewise.
85187         * lib/memchr.c (__memchr): Define via a prototype.
85188         * lib/memrchr.c (__memrchr): Likewise.
85189         * lib/memcmp.c (__P): Remove, and remove all uses.
85190         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
85191         Remove forward decls; no longer needed.
85192         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
85193         Use types required by C89 in prototype.
85194
85195         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
85196         * lib/savedir.c: Likewise.
85197         * lib/mkdir.c (free): Remove decl.
85198         * lib/rmdir.c (rmdir): Define with a prototype.
85199         * lib/savedir.c: Include savedir.h first, to test interface.
85200
85201         * lib/mktime.c (STDC_HEADERS): Remove.
85202         Include <stdlib.h>, <string.h> unconditionally.
85203
85204         * lib/modechange.c: Include <stdlib.h> unconditionally.
85205         (malloc): Remove decl.
85206
85207         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
85208         (free): Remove decl.
85209
85210         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
85211         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
85212         (This type really should be intptr_t, but that's a C99ism.)
85213         (_obstack_memcpy): Remove: all uses changed to memcpy.
85214         Include <string.h> unconditionally.
85215         (struct obstack): Assume __STDC__ for types of members
85216         chunkfun, freefun, extra_arg.
85217         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
85218         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
85219         obstack_begin, obstack_specify_allocation,
85220         obstack_specify_allocation_with_arg, obstack_chunkfun,
85221         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85222         Remove unprototyped decls and the macros that use them.
85223         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85224         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85225         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85226         (defined __STDC__ && __STDC__)]:
85227         Remove nonprototyped code.
85228         Include <stdlib.h> unconditionally.
85229         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85230         _obstack_allocated_p, _obstack_free, obstack_free,
85231         _obstack_memory_used, print_and_abort):
85232         Define using prototypes.
85233         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85234         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85235         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85236         obstack_next_free, obstack_object_size, obstack_room) [0]:
85237         Remove unused, unprototyped code.
85238
85239         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85240
85241         * lib/physmem.c (physmem_total, physmem_available, main): Define
85242         with prototypes.
85243
85244         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85245         (main): Define with a prototype.
85246
85247         * lib/posixver.c (getenv): Remove decl.
85248
85249         * lib/putenv.c (malloc): Returns void *, not char *.
85250         Include <string.h> unconditionally.
85251         (strchr, memcpy, NULL): Do not define.
85252
85253         * lib/readtokens.c: Include readtokens.h first, to test interface.
85254         Include <stdlib.h>, <string.h> unconditionally.
85255         (init_tokenbuffer): Define with a prototype.
85256
85257         * lib/regex.c (PARAMS): Remove.  All uses removed.
85258         All uses of _RE_ARGS removed, too.
85259         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85260         unconditionally.
85261         (bzero): Assume memset exists.
85262         (memcmp, memcpy, NULL): Remove.
85263         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85264         char, or assignments to local vars of type signed char.
85265         (init_syntax_once, PREFIX(extract_number_and_incr),
85266         PREFIX(print_partial_compiled_pattern),
85267         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85268         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85269         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85270         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85271         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85272         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85273         wcs_compile_range, byte_compile_range, truncate_wchar,
85274         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85275         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85276         count_mbs_length, wcs_re_match_2_internal,
85277         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85278         PREFIX(alt_match_null_string_p),
85279         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85280         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85281         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85282         now-unnecessary declaration, if any.
85283         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85284         regcomp, regexec):
85285         Remove now-unnecessary casts among pointer types.
85286         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85287
85288         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85289         (free): Remove decl.
85290
85291         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85292
85293         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85294         (free): Remove decl.
85295
85296         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85297         * lib/xgetcwd.c: Likewise.
85298
85299         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85300         (free): Remove decl.
85301
85302         * lib/strchrnul.c (strchrnul): Define with a prototype.
85303         Fix bug: c_in was not converted to char before searching.
85304
85305         The following changes are not K&R related:
85306
85307         * lib/group-member.h: Include <sys/types.h>, so that this file is
85308         self-contained.
85309         * lib/makepath.h: Likewise.
85310
85311         * lib/getusershell.c (readname, default_index, line_size, readname):
85312         Use size_t, not int, for sizes.
85313         (readname): If the size overflows, report an error instead of
85314         looping forever.
85315
85316 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85317
85318         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85319         libc.
85320
85321 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85322
85323         * README: New section: portability guidelines.
85324
85325 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85326
85327         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85328         C89 spec.
85329
85330 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85331
85332         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85333
85334 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85335
85336         Assume C89 or better; remove K&R cruft.
85337         A few of these changes were first proposed by Derek Robert Price
85338         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85339
85340         * lib/addext.c: Include <string.h> unconditionally.
85341         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85342         Don't declare getenv or malloc.
85343
85344         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85345         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85346         (NULL): Remove.
85347         (find_stack_direction, alloca): Use prototypes.
85348
85349         * lib/atexit.c (atexit): Define using a prototype.
85350
85351         * lib/basename.c, dirname.c, stripslash.c:
85352         Include <string.h> unconditionally.
85353
85354         * lib/bcopy.c: Include <stddef.h>.
85355         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85356
85357         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85358
85359         * lib/error.h (error, error_at_line, error_print_progname)
85360         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85361         * lib/error.c: Include error.h first, to check interface.
85362         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85363         (VA_START): Remove; all uses changeed to va_start.
85364         (exit, strerror): Remove decls.
85365         (error_print_progname): Prototype uncondionally.
85366         Don't include <errno.h>; no longer needed.
85367         (private_strerror): Remove.
85368         (error_tail): Always define.
85369         (error, error_at_line): Assume C89 or better; always use prototypes.
85370         * lib/fatal.c: Include "fatal.h" first, to test interface.
85371         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85372         (VA_START): Remove; all uses changed to va_start.
85373         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85374         this case.
85375         (exit): Remove decl.
85376         (fatal): Prototype unconditionally.  Assume va_start works.
85377         Abort at end, to pacify gcc.
85378
85379         * lib/euidaccess.c (main): Define with a prototype.
85380
85381         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85382
85383         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85384
85385         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85386         prototypes.
85387         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85388         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85389         (getenv): Remove decl.
85390         (fnmatch): Define using a prototype.
85391         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85392         (FCT): Define using a prototype.
85393
85394         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85395
85396         * lib/gethostname.c: Include <stddef.h>.
85397         (gethostname): Define with prototype.  Length is size_t, not int.
85398
85399 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85400
85401         Assume C89 or better; remove K&R cruft.
85402         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85403         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85404         string.h, getenv, malloc.
85405         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85406         headers.
85407         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85408         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85409         do not check for strerror.
85410         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85411         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85412         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85413         do not check for doprnt or vprintf.
85414         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85415         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85416
85417 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85418
85419         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85420         getversion.c should have been removed then, but was accidentally
85421         preserved.
85422
85423         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85424         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85425
85426 2003-09-08  Karl Berry  <karl@gnu.org>
85427
85428         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85429                 config, forget about prep.
85430
85431         * config/depcomp, missing: update from automake.
85432
85433 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85434
85435         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85437
85438 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85439
85440         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85441         copy_tm_result.  Bug reported by Simon Josefsson in
85442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85443
85444 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85445
85446         * m4/time_r.m4: New file.
85447         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85448         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85449         is. Check for timegm declaration.
85450         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85451         Do not check for gmtime_r.
85452         Replace mktime if __mktime_internal does not exist and if mktime
85453         hasn't been replaced already.
85454
85455 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85456
85457         * lib/time_r.c, lib/time_r.h: New files.
85458
85459         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85460         __localtime_r.
85461         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85462         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85463
85464         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85465         __gmtime_r.
85466         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85467         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85468         Include <time_r.h>.
85469
85470         * lib/timegm.c: Switch to glibc implementation, with the following
85471         changes:
85472         [defined HAVE_CONFIG_H]: Include <config.h>.
85473         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85474         (__mktime_internal) [!defined _LIBC]: New decl.
85475         (__gmtime_r) [!defined _LIBC]: New macro and function.
85476         (timegm): Use a prototype, since gnulib assumes C89.
85477         Do not bother declaring tmp to be const, as it's not really usefu.
85478         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85479         (timegm): Declare only if HAVE_DECL_TIMEGM.
85480
85481 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85482
85483         * MODULES.html.sh (func_all_modules): Add time_r.
85484         * modules/time_r: New file.
85485         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85486         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85487
85488 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85489
85490         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85491         Bug reported by Lute Kamstra in
85492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85493
85494         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85495         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85496         course with correspondingly smaller numbers for tomorrow and
85497         yesterday.  From Tadayoshi Funaba.  Originally installed into
85498         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85499         coreutils merge?).
85500
85501 2003-08-31  Simon Josefsson  <jas@extundo.com>
85502
85503         * modules/timegm: New file.
85504         * MODULES.html.sh (func_all_modules): Add timegm.
85505
85506 2003-08-31  Simon Josefsson  <jas@extundo.com>
85507
85508         * m4/timegm.m4: New file.
85509
85510 2003-08-31  Simon Josefsson  <jas@extundo.com>
85511
85512         * lib/timegm.h: New file.
85513         * lib/timegm.c: New file.  Based on
85514         wget-1.8.2/src/http.c:mktime_from_utc.
85515
85516 2003-08-31  Karl Berry  <karl@gnu.org>
85517
85518         * lib/argp.h: update from libc.
85519
85520 2003-08-28  Bruno Haible  <bruno@clisp.org>
85521
85522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85523         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85524         followed by '#define fnmatch fnmatch_posix' gives an error.
85525
85526 2003-08-28  Bruno Haible  <bruno@clisp.org>
85527
85528         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85529         warning on QNX, which defines O_BINARY to 000000.
85530
85531 2003-08-27  Jim Meyering  <jim@meyering.net>
85532
85533         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85534         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85535         would fail after 32.  Reported by Danny Levinson.  Details here:
85536         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85537
85538 2003-08-24  Bruno Haible  <bruno@clisp.org>
85539
85540         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85541         MSVC7 <stdio.h> is included later.
85542
85543 2003-08-22  Simon Josefsson  <jas@extundo.com>
85544
85545         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85546
85547 2003-08-20  Karl Berry  <karl@gnu.org>
85548
85549         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85550
85551 2003-08-20  Bruno Haible  <bruno@clisp.org>
85552
85553         * modules/progname: New file.
85554         * MODULES.html.sh (func_all_modules): Add progname.
85555
85556 2003-08-20  Bruno Haible  <bruno@clisp.org>
85557
85558         * lib/progname.h: New file, from GNU gettext.
85559         * lib/progname.c: New file, from GNU gettext.
85560         * lib/progreloc.c: New file, from GNU gettext.
85561
85562 2003-08-19  Jim Meyering  <jim@meyering.net>
85563
85564         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85565         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85566
85567 2003-08-19  Bruno Haible  <bruno@clisp.org>
85568
85569         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85570         more.
85571
85572 2003-08-19  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/xstrdup.c: Assume <string.h> exists.
85575
85576 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85577
85578         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85579         in makefile rules.
85580
85581 2003-08-18  Jim Meyering  <jim@meyering.net>
85582
85583         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85584         * m4/lib-ld.m4: Likewise.
85585
85586 2003-08-18  Jim Meyering  <jim@meyering.net>
85587
85588         * lib/setenv.h: Indent nested cpp directive.
85589         * lib/vasnprintf.c: Remove trailing blanks.
85590
85591 2003-08-17  Simon Josefsson  <jas@extundo.com>
85592
85593         * modules/xstrndup: New file.
85594         * MODULES.html.sh (func_all_modules): Add xstrndup.
85595
85596 2003-08-17  Simon Josefsson  <jas@extundo.com>
85597
85598         * modules/argp: Fix autoconf macro name. Add more dependencies.
85599
85600 2003-08-17  Simon Josefsson  <jas@extundo.com>
85601
85602         * m4/xstrndup.m4: New file.
85603
85604 2003-08-17  Simon Josefsson  <jas@extundo.com>
85605
85606         * m4/argp.m4: New file.
85607
85608 2003-08-17  Simon Josefsson  <jas@extundo.com>
85609             Bruno Haible  <bruno@clisp.org>
85610
85611         * lib/xstrndup.h: New file.
85612         * lib/xstrndup.c: New file.
85613
85614 2003-08-17  Bruno Haible  <bruno@clisp.org>
85615
85616         * modules/strndup (Files, Include): Add lib/strndup.h.
85617
85618 2003-08-17  Bruno Haible  <bruno@clisp.org>
85619
85620         * modules/euidaccess (Files): Add lib/euidaccess.h.
85621
85622 2003-08-17  Bruno Haible  <bruno@clisp.org>
85623
85624         * lib/strndup.h: New file.
85625
85626 2003-08-17  Bruno Haible  <bruno@clisp.org>
85627
85628         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85629         like AC_GNU_SOURCE.
85630         * modules/extensions (configure.ac): Comment out the invocation of
85631         gl_USE_SYSTEM_EXTENSIONS.
85632
85633 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85634
85635         Merges from coreutils, etc.
85636         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85637         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85638         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85639         fixing a typo.
85640         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85641         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85642
85643 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85644
85645         Document merge from coreutils.
85646         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85647         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85648         * modules/utime: Add m4/utimes-null.m4.
85649
85650 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85651
85652         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85653         space, undoing this 2003-08-12 change:
85654         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85655
85656 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85657
85658         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85659         strtoul.c from libc, undoing this 2003-08-12 change:
85660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85661
85662 2003-08-16  Jim Meyering  <jim@meyering.net>
85663
85664         Merges from coreutils.
85665         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85666         prefix.  Adjust cache variables similarly.  Create 500 rather than
85667         just 300 files, to exercise bug on Darwin6.5, too.
85668         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85669         $missing_dir.
85670         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85671         AM_SYS_POSIX_TERMIOS.
85672         Reported by mkc@mathdogs.com.
85673         Also change use of $am_cv_sys_posix_termios
85674         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85675         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85676         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85677         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85678         in /proc/mounts until it finds one with matching device number.  This
85679         is unnecessary when the FILE argument *is* a mount point.  No stat call
85680         is necessary in that case.  So, disable the statvfs-testing code on
85681         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85682         as RedHat bug# 84846.
85683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85684         to 1MB, so as not to render systems with no stack size limit (e.g.,
85685         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85686         Include <unistd.h>.  On some systems,
85687         it is required for the definition of _SC_PAGESIZE.
85688
85689 2003-08-16  Jim Meyering  <jim@meyering.net>
85690
85691         Merge from coreutils.
85692         * lib/xstrtoimax.c: #else #if -> #elif.
85693         * lib/xstrtoumax.c: Likewise.
85694
85695 2003-08-16  Jim Meyering  <jim@meyering.net>
85696
85697         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85698         * m4/utimes.m4: Removed.
85699         * m4/utimes-null.m4: Renamed from utimes.m4.
85700
85701         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85702         to 1MB, so as not to render systems with no stack size limit (e.g.,
85703         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85704         Include <unistd.h>.  On some systems,
85705         it is required for the definition of _SC_PAGESIZE.
85706
85707 2003-08-16  Jim Meyering  <jim@meyering.net>
85708         and Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         Merges from coreutils, etc.
85711
85712         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85713         using the latest version from cvs.  This avoids problems with #line
85714         directives using a vendor (Sun) compiler.
85715         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85716         Don't set GETGROUPS_LIB here; now it's
85717         done via getgroups.m4's wrapper function.
85718         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85719         rather than just in sh-util/configure.in, so that the
85720         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85721         same.
85722         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85723         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85724         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85725         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85726         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85727         Remove code that is now done by the newly-required macros.
85728         Append $(EXEEXT) to DF_PROG.
85729         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85730         Do not invoke or require the following here,
85731         since prereq.m4 or some gnulib .m4 now does this for us:
85732         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85733         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85734         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85735         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85736         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85737         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85738         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85739         AC_FUNC_OBSTACK.
85740         Do not replace the following functions, as this is now the job
85741         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85742         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85743         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85744         atexit getpass, strdup, getpagesize.
85745         Replace 'raise'.
85746         Do not check for the following functions, as this is now the job
85747         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85748         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85749         setregid.
85750         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85751         Check for sys/sysctl.h.
85752         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85753         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85754         of checking for ssize_t ourselves.
85755
85756         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85757         Require every macro that gnulib/modules/* suggests for us.
85758         (jm_PREREQ_ADDEXT): New macro.
85759         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85760         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85761
85762         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85763         (gl_PHYSMEM): Use it.
85764         Also check for `table' function.
85765         Check for new headers and functions.
85766         Add check for sys/sysmp.h.
85767         With suggestions from Kaveh Ghazi.
85768         Ignore headers that are present but cannot be compiled.  This
85769         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85770         C 5.4.
85771
85772 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85773
85774         Document merge from coreutils.
85775         * modules/userspec: Depend on posixver.
85776         * modules/strftime: Depend on tzset.
85777
85778 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85779
85780         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85781         rather than tab, after '#' in shell-script copyright notices.
85782         Suggested by Bruno Haible.
85783
85784 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85785
85786         * config/srclist-update: Use three spaces, rather than tab, after '#'
85787         in shell-script copyright notices.  Suggested by Bruno Haible.
85788         Remove unnecessary parenthesization in regular expression.
85789
85790 2003-08-15  Jim Meyering  <jim@meyering.net>
85791
85792         Merge from coreutils.
85793         * lib/xgethostname.c: Include <stdlib.h>.
85794         (xghostname): Don't exit for anything other than memory-related
85795         failure; just return NULL.
85796         * lib/userspec.c: Include "posixver.h".
85797         (parse_user_spec): Accept `.' as a separator only
85798         in pre-POSIX-200112 mode.
85799         * lib/strtoimax.c: Use #elif rather than #else #if.
85800         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85801         Remove function, now that we can rely on a working tzset function.
85802         [!_LIBC]: Ensure that the required autoconf test has been run.
85803         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85804         Use underlying_strftime for %r.
85805         * lib/sha.c: Merge in some clean-up and optimization changes from
85806         glibc.
85807         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85808         Ensure that it is a multiple of 64.
85809         Rearrange loop exit tests so as to avoid performing an
85810         additional fread after encountering an error or EOF.
85811         * lib/realloc.c: Update copyright date.
85812
85813 2003-08-15  Jim Meyering  <jim@meyering.net>
85814         and Paul Eggert  <eggert@twinsun.com>
85815
85816         Merge from coreutils.
85817         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85818         member but strut utmpx does not.  Needed for AIX 4.3.3.
85819         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85820
85821 2003-08-15  Jim Meyering  <jim@meyering.net>
85822         and Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         Merges from coreutils, etc.
85825         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85826         Require gl_FUNC_TZSET_CLOBBER.
85827         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85828         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85829         members.
85830
85831 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85832
85833         Help the merge from coreutils.
85834         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85835         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85836         * m4/tzset.m4: Use it too.
85837
85838 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85839
85840         * modules/tzset: New file.
85841
85842 2003-08-14  Jim Meyering  <jim@meyering.net>
85843
85844         Merges from coreutils.
85845         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85846         variable names, rather than @FNMATCH_H@.
85847         * modules/alloca: Likewise for $(ALLOCA_H).
85848
85849         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85850         the three copies of the literal target, `fnmatch.h'.
85851         * modules/alloca (alloca.h): Likewise.
85852
85853 2003-08-14  Jim Meyering  <jim@meyering.net>
85854
85855         Merge from coreutils.
85856         * m4/tzset.m4: New file.
85857         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85858         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85859         otherwise, AIX 5.1 systems would end up using the latter.
85860         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85861         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85862         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85863         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85864
85865 2003-08-14  Jim Meyering  <jim@meyering.net>
85866
85867         Merge from coreutils.
85868         * lib/obstack.h: Whitespace changes.
85869         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85870         and xcalloc return values.
85871         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85872         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85873         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85874         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85875         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85876         error from mntctl.
85877         Use mntctl's return value to drive the entry-processing loop, since
85878         we can't rely on the value of the vmt_length member in the last
85879         entry.  On some systems doing so could result in exhausting
85880         virtual memory.  Based in part on a patch from Mike Jetzer.
85881
85882 2003-08-14  Jim Meyering  <jim@meyering.net>
85883         and Paul Eggert  <eggert@twinsun.com>
85884
85885         Merges from coreutils, plus other fixes.
85886         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85887         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85888         for credits and details.  Thanks to Kaveh Ghazi for helping
85889         to keep these files in sync.
85890         (ARRAY_SIZE): Define it.
85891         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85892         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85893         (memcasecmp): Don't assume size_t fits in unsigned int.
85894         Remove casts and duplicate code.
85895         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85896         (memcpy): Remove definition.
85897         Merge in some clean-up and optimization changes from glibc.
85898         [BLOCKSIZE]: Move definition to top of file.
85899         Ensure that it is a multiple of 64.
85900         Rearrange loop exit tests so as to avoid performing an
85901         additional fread after encountering an error or EOF.
85902         * lib/md5.h (md5_uintptr): Define.
85903         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85904         return to the initial working directory.  Preserve errno
85905         for caller.
85906         * lib/idcache.c: Include "xalloc.h".
85907         (xmalloc, xrealloc): Remove decls.
85908         (getuser): Remove casts no longer required in C89.
85909         * lib/human.c: Include stdio.h, for sprintf.
85910         * lib/group-member.c: Include "xalloc.h".
85911         (xmalloc, xrealloc): Remove decls.
85912         (get_group_info): Remove casts no longer required in C89.
85913         * lib/getusershell.c (readname): Remove casts no longer required in
85914         C89.
85915         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85916         * lib/getline.c: Whitespace fix, from coreutils.
85917
85918 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85919
85920         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85921         Check for isascii.
85922
85923         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85924         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85925         Undo previous (whitespace-only) change.
85926
85927 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85928
85929         * lib/exclude.c: Include <ctype.h>
85930         (IN_CTYPE_DOMAIN): New macro.
85931         (is_space): New fn.
85932         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85933         and empty lines.
85934
85935         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85936         Undo previous (whitespace-only) change.
85937
85938 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85939
85940         * config/srclist-update: Change update back to the old behavior,
85941         leaving whitespace alone.  Use one 'sed' command rather than a
85942         pipeline.
85943         (fixlicense): Now a variable, not a function.
85944         (remove_trailing_blanks): Remove.
85945         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85946         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85947         Undo previous (whitespace-only) change.
85948
85949 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85950
85951         Merge from coreutils.
85952         * modules/euidaccess: Add lib_SOURCES, include for new
85953         file euidaccess.h
85954
85955 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85956
85957         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85958         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85959         Normalize leading white space and remove trailing white space.
85960
85961         Merge from coreutils
85962         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85963
85964         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85965         0.12.1.  These files are now being upgraded automatically by
85966         ../config/srclist-update.
85967
85968 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85969
85970         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85971         Normalize leading white space and remove trailing white space.
85972         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85973         notice, as per ../config/srclist-update.
85974
85975         Merge from coreutils.
85976         * lib/euidaccess.h: New file.
85977         * lib/euidaccess.c: Include it.
85978         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85979         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85980         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85981
85982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85983
85984         * config/srclist-update: Add copyright notice.
85985         (remove_id_lines, remove_trailing_blanks): New constants.
85986         (fixfile): Use them to normalize spacing a bit in copied files.
85987         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85988         Normalize leading white space and remove trailing white space.
85989
85990         * config/texinfo.tex: Sync with texinfo.
85991
85992         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85993         strtoul.c from libc, to merge coreutils whitespace changes.
85994
85995         * config/srclist.txt: Get the following m4 files from gettext:
85996         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85997         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85998         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85999         wint_t.m4.
86000
86001 2003-08-12  Karl Berry  <karl@gnu.org>
86002
86003         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
86004         been made.
86005
86006 2003-08-11  Paul Eggert  <eggert@twinsun.com>
86007
86008         * modules/gnu-source, m4/gnu-source.m4:
86009         Remove; we're assuming Autoconf 2.54 or later now.
86010         Suggested by Bruno Haible.
86011         * MODULES.html.sh (func_all_modules): Remove gnu-source.
86012
86013 2003-08-11  Bruno Haible  <bruno@clisp.org>
86014
86015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
86016
86017 2003-08-11  Bruno Haible  <bruno@clisp.org>
86018
86019         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
86020         (vasnprintf): Use it instead of wcslen.
86021
86022 2003-08-11  Bruno Haible  <bruno@clisp.org>
86023
86024         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
86025         value to ensure that _Bool promotes to int. Use #define for _Bool when
86026         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
86027
86028 2003-08-10  Karl Berry  <karl@gnu.org>
86029
86030         * lib/regex.h: update from libc (whitespace fix).
86031
86032 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86033
86034         Merge some files from coreutils.  These changes were
86035         originally made by Jim Meyering.
86036         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
86037         many older Unixes require this.
86038         * lib/alloca.c (alloca): Remove cast to argument of free;
86039         no longer needed in C89.
86040         * lib/alloca_.h, regex.h: Fix white space to match
86041         what GNU indent does.
86042
86043 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86044
86045         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
86046         apparently Emacs's Unicode mode got confused before my 2003-08-05
86047         checkin.
86048
86049 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86050
86051         * m4/extensions.m4: New file.
86052         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
86053         Require gl_USE_SYSTEM_EXTENSIONS.
86054         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
86055         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
86056
86057 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86058
86059         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
86060         * modules/extensions, modules/gnu-source: New files.
86061         * modules/timespec, modules/unlocked-io: Depend on extensions.
86062
86063 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86064
86065         * modules/restrict: New file.
86066         * MODULES.html.sh (func_all_modules): Add restrict.
86067         * modules/regex: Depend on restrict.
86068
86069 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86070
86071         * m4/restrict.m4: New file.
86072         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
86073
86074 2003-08-07  Bruno Haible  <bruno@clisp.org>
86075
86076         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
86077         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
86078
86079 2003-08-07  Bruno Haible  <bruno@clisp.org>
86080
86081         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
86082         makes the module 'getndelim2' compatible with the module 'getline'.
86083
86084 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86085
86086         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
86087         byte with "\201" to avoid glitches when editing that source file
86088         with multi-gnome-terminal.
86089
86090 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86091
86092         * lib/bumpalloc.h: Remove.
86093
86094 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86095
86096         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
86097         * modules/bumpalloc: Remove.
86098
86099 2003-08-04  Paul Eggert  <eggert@twinsun.com>
86100
86101         * lib/getloadavg.c: Change copyright notice and spacing to conform to
86102         GNU coding style.
86103
86104         Merge from coreutils.
86105         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
86106         1. From glibc.
86107         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
86108         from Karl Berry, implemented by Jim Meyering.
86109         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
86110         from Dmitry V. Levin.
86111         Remove anachronistic cast of xrealloc.
86112         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
86113         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
86114         type. Otherwise, it wouldn't compile with at least /bin/cc on
86115         ymp-cray-unicos9.0.2.X.
86116         Combine two mostly-identical uses of alloca into one.
86117         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
86118
86119 2003-08-04  Dave Love  <d.love@dl.ac.uk>
86120
86121         [From Emacs.]
86122
86123         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
86124         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
86125         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
86126         obsolete NLIST_NAME_UNION.
86127         [__GNU__]: Undef BSD and FSCALE.
86128         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
86129
86130 2003-08-03  Paul Eggert  <eggert@twinsun.com>
86131
86132         * lib/stdbool_.h (_Bool): Make it signed char, instead of
86133         an enum type, so that it's guaranteed to promote to int.  See:
86134         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
86135
86136 2003-08-03  Karl Berry  <karl@gnu.org>
86137
86138         * config/depcomp: update from automake.
86139
86140 2003-07-31  Paul Eggert  <eggert@twinsun.com>
86141
86142         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
86143         (strerror): Don't assume that a printable int fits in 14 bytes.
86144
86145 2003-07-31  Bruno Haible  <bruno@clisp.org>
86146
86147         * modules/getpass-gnu: New file.
86148         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
86149
86150 2003-07-31  Bruno Haible  <bruno@clisp.org>
86151
86152         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
86153
86154 2003-07-24  Karl Berry  <karl@gnu.org>
86155
86156         * config/missing: update from automake.
86157
86158 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
86159             Bruno Haible  <bruno@clisp.org>
86160
86161         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
86162         * lib/getline.c (getline, getdelim): Likewise.
86163         Remove _GNU_SOURCE define; now it's defined in config.h through
86164         m4/getline.m4.
86165
86166 2003-07-23  Karl Berry  <karl@gnu.org>
86167
86168         * config/config.sub: update from prep.
86169
86170 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86171
86172         * modules/xalloc (Depends-on): Add exitfail.
86173         * modules/xmemcoll: Likewise.
86174
86175 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86176
86177         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
86178         over-parenthesization in macros.
86179
86180         Sync with coreutils.
86181
86182         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
86183         required by C99.
86184
86185         Use `exit_failure' for xalloc and xmemcoll instead of their own
86186         private exit-failure variables.
86187         * lib/xalloc.h (xalloc_exit_failure): Remove.
86188         * lib/xmalloc.c: Likewise.  Include exitfail.h.
86189         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
86190         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
86191         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
86192         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
86193
86194 2003-07-20  Jim Meyering  <jim@meyering.net>
86195
86196         * modules/closeout (Depends-on): Add exitfail.
86197         Suggestion from Bruno Haible.
86198
86199 2003-07-19  Karl Berry  <karl@gnu.org>
86200
86201         * config/config.sub: update from prep.
86202
86203 2003-07-18  Paul Eggert  <eggert@twinsun.com>
86204
86205         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
86206         Remove.
86207         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
86208         to test that it can stand by itself.  Include "exitfail.h".
86209         Clients should set exit_failure instead.
86210         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
86211
86212 2003-07-18  Bruno Haible  <bruno@clisp.org>
86213
86214         * modules/getndelim2: New file.
86215         * modules/getline: Share files with module getndelim2.
86216         * modules/getnline: Depend on getndelim2 instead of sharing files with
86217         it. Add getnline.c to lib_SOURCES.
86218         * MODULES.html.sh (func_all_modules): Add getndelim2.
86219
86220 2003-07-18  Bruno Haible  <bruno@clisp.org>
86221
86222         * m4/getndelim2.m4: New file.
86223         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86224         invoke gl_PREREQ_GETNDELIM2.
86225         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86226         gl_PREREQ_GETNDELIM2.
86227         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86228         gl_GETNDELIM2.
86229
86230 2003-07-18  Bruno Haible  <bruno@clisp.org>
86231
86232         * lib/getndelim2.h: New file.
86233         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86234         getndelim2.h.
86235         (getndelim2): Make non-static. Change return type to ssize_t.
86236         * lib/getline.h: Change argument names.
86237         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86238         * lib/getnline.c: Include getndelim2.h.
86239
86240 2003-07-18  Andreas Schwab  <schwab@suse.de>
86241
86242         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86243
86244 2003-07-17  Karl Berry  <karl@gnu.org>
86245
86246         * config/config.sub: update from prep.
86247
86248 2003-07-17  Bruno Haible  <bruno@clisp.org>
86249
86250         * modules/getnline: New file.
86251         * modules/getline: Add lib/getndelim2.c to source file list.
86252         * MODULES.html.sh (func_all_modules): Add getnline.
86253
86254 2003-07-17  Bruno Haible  <bruno@clisp.org>
86255
86256         * m4/getnline.m4: New file.
86257
86258 2003-07-17  Bruno Haible  <bruno@clisp.org>
86259
86260         * m4/Makefile.am.in: Remove file.
86261         * m4/Makefile.am: Remove file.
86262         * m4/Makefile.in: Remove file.
86263
86264 2003-07-17  Bruno Haible  <bruno@clisp.org>
86265
86266         * lib/getnline.h: New file.
86267         * lib/getnline.c: New file.
86268         * lib/getndelim2.c: New file, extracted from getline.c.
86269         (getndelim2): Renamed from getdelim2, with added nmax argument.
86270         * lib/getline.c: Include getndelim2.c.
86271         (getdelim2): Moved out to getndelim2.c.
86272         (getline, getdelim): Update.
86273
86274 2003-07-17  Bruno Haible  <bruno@clisp.org>
86275
86276         * lib/Makefile.am: Remove file.
86277         * lib/Makefile.in: Remove file.
86278
86279 2003-07-17  Bruno Haible  <bruno@clisp.org>
86280
86281         * configure.in: Remove file.
86282         * Makefile.in: Remove file.
86283
86284 2003-07-17  Bruno Haible  <bruno@clisp.org>
86285
86286         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86287
86288 2003-07-16  Karl Berry  <karl@gnu.org>
86289
86290         * config/srclist-update: was running fixlicense twice, which caused
86291                 texinfo.tex to be nullified for some reason.  Simplify,
86292                 $gplsrc is no longer needed as far as I can see?
86293
86294 2003-07-16  Jim Meyering  <jim@meyering.net>
86295
86296         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86297
86298 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86299
86300         * config/srclist.txt: Get the following files from gettext-runtime/intl
86301         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86302         ref-del.sin.  From Bruno Haible.
86303         * config/srclist-update (fixfile): Change grep pattern again, since the
86304         previous fix didn't work (there was another trailing $).  Use
86305         '[$]' to escape the $s.
86306
86307 2003-07-15  Karl Berry  <karl@gnu.org>
86308
86309         * lib/vasnprintf.c: update from gettext.
86310
86311 2003-07-15  Karl Berry  <karl@gnu.org>
86312
86313         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86314         gets expanded when surrounded by '$'.
86315
86316 2003-07-15  Jim Meyering  <jim@meyering.net>
86317
86318         * modules/save-cwd: Don't depend on error.  From Derek Price.
86319
86320 2003-07-15  Jim Meyering  <jim@meyering.net>
86321
86322         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86323
86324 2003-07-14  Simon Josefsson  <jas@extundo.com>
86325
86326         * modules/mempcpy: New file.
86327         * MODULES.html.sh (func_all_modules): Add mempcpy.
86328
86329 2003-07-14  Simon Josefsson  <jas@extundo.com>
86330
86331         * m4/mempcpy.m4: New file.
86332
86333 2003-07-14  Simon Josefsson  <jas@extundo.com>
86334
86335         * lib/mempcpy.h: New file.
86336         * lib/mempcpy.c: New file.
86337
86338 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86339
86340         * modules/getdate, modules/posixtm: Depend on mktime.
86341
86342 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86343
86344         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86345         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86346         unicodeio.c, unicodeio.h, unlocked-io.h:
86347         Switch from LGPL to GPL.
86348
86349 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86350
86351         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86352         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86353         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86354         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86355         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86356         updated automatically by ../config/srclist-update.  This changes
86357         their license from LPGL to GPL.
86358
86359 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86360
86361         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86362         assumed to refer to the root of the most recent stable gettext version.
86363         * config/srclistvars.sh: Add defaults for eggert.
86364         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86365         Match "This program" as well as "The program".  This is needed
86366         for gettext.
86367
86368 2003-07-14  Jim Meyering  <jim@meyering.net>
86369
86370         Don't emit diagnostics.  Let callers do that.
86371         * lib/save-cwd.c: Don't include "error.h".
86372         (save_cwd): Don't call error.  Ensure that errno is valid
86373         when returning nonzero.
86374
86375         * lib/save-cwd.h (restore_cwd): Update prototype.
86376         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86377         Simplify.  Don't call error upon failure.  Let callers do that.
86378         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86379         when auditing is enabled.  But don't bother updating the #if.
86380
86381 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86382
86383         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86384         it breaks C++ compilation.
86385         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86386
86387 2003-07-10  Simon Josefsson  <jas@extundo.com>
86388
86389         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86390
86391 2003-07-10  Jim Meyering  <jim@meyering.net>
86392
86393         * m4/clock_time.m4: Remove trailing blank.
86394         * m4/intmax_t.m4: Likewise.
86395
86396 2003-07-10  Jim Meyering  <jim@meyering.net>
86397
86398         * lib/vasnprintf.c: Remove trailing blanks.
86399         Make cpp indentation consistent.
86400
86401 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86402
86403         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86404         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86405         Switch from LGPL to GPL.
86406
86407 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86408
86409         * config/srclist.txt: Sort sublists.  Add
86410         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86411         that differ from gnulib for one reason or another; we'd like this list
86412         to be smaller but for now let's document what we have.
86413
86414 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86415
86416         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86417         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86418         and sweeter "eval x=$x".
86419         * config/srclist.txt: Get lib/argp* from glibc.
86420
86421 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/mktime.c: Fix some boundary cases and remove need for floating
86424         point.
86425
86426         Issue a compile-time diagnostic if time_t is floating point, or if
86427         two's complement arithmetic is not in effect, or if arithmetic
86428         right shift does not propagate the sign.  These assumptions were
86429         all in the original code but they weren't checked.
86430
86431         (TIME_T_MIDPOINT, verify): New macros.
86432         (__isleap): Remove; it has integer overflow problems.
86433         (leapyear): New function, without those problems.
86434         (ydhms_tm_diff): Remove; splitting into two parts.
86435         (ydhms_diff): New function, containing the arithmetic part of
86436         the old ydhms_tm_diff function.  Issue a compile-time
86437         diagnostic if we are not using C99 integer division.
86438         Avoid casts when possible.
86439         (guess_time_tm): New function, containing the checking part of
86440         the old ydhms_tm_diff function.  Return the new value, rather than
86441         the difference between it and the old.  Accept a new argument T
86442         so that *T specifies the old value.  Check for overflow in the result.
86443
86444         (__mktime_internal): Use a time_t offset, not a long int offset.
86445         This undoes the 2003-06-04 change, which is no longer needed now
86446         that we have better overflow checking.
86447         (localtime_offset): Likewise.
86448
86449         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86450         and long are 64-bit but int is only 32-bit.
86451         (ydhms_diff): Use long int to store year1 and yday1.
86452         Issue a compile-time diagnostic if long int is not wide enough.
86453
86454         (__mktime_internal): Use long int to store adjusted year and yday.
86455         Use plain C rather than preprocessor commands, if that doesn't
86456         affect efficiency.
86457         Check for overflow (and try to repair) after each probe
86458         rather than checking only at the very end.  This avoids some bugs
86459         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86460         does not equal GMT offset at maximum time).
86461         Use integer to check for overflow rather than floating point; this
86462         is more portable to non-IEEE hosts, and is a tad faster.
86463         When we detect that we are oscillating between two values,
86464         don't check whether tm_isdst has the requested value, since
86465         we already know the answer.  When tm_isdst has the wrong value,
86466         use a different heuristic to find the right one, based on the
86467         extreme values actually observed in practice in tz2003a,
86468         rather than the (overly optimistic) "previous 3 calendar quarters".
86469
86470         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86471         "T const" to accommodate glibc style.
86472         (check_result): Use less-confusing report format.  "long" -> "long int.
86473         (main): Likewise.
86474         Don't loop if the iteration overflows time_t.
86475         Allow a negative step in the iteration.
86476
86477 2003-07-06  Karl Berry  <karl@gnu.org>
86478
86479         * config/depcomp: update from automake.
86480         * config/config.sub: update from prep.
86481
86482 2003-07-03  Karl Berry  <karl@gnu.org>
86483
86484         * config/config.guess: update from prep.
86485
86486 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86487
86488         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86489         xreadlink.c now includes it unconditionally.
86490
86491 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86492
86493         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86494         having it depend on HAVE_SYS_TYPES_H.
86495
86496 2003-07-01  Bruno Haible  <bruno@clisp.org>
86497
86498         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86499         <sys/types.h> should be sufficient.
86500         Reported by Paul Eggert.
86501
86502 2003-06-26  Karl Berry  <karl@gnu.org>
86503
86504         * config/depcomp: update from automake.
86505
86506 2003-06-26  Bruno Haible  <bruno@clisp.org>
86507
86508         * modules/human: Depend on module stdbool.
86509
86510 2003-06-25  Bruno Haible  <bruno@clisp.org>
86511
86512         * modules/readlink: New file.
86513         * modules/xreadlink: Depend on it.
86514         * MODULES.html.sh (func_all_modules): Add readlink.
86515
86516 2003-06-25  Bruno Haible  <bruno@clisp.org>
86517
86518         * m4/readlink.m4: New file.
86519
86520 2003-06-25  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/readlink.c: New file.
86523
86524 2003-06-22  Karl Berry  <karl@gnu.org>
86525
86526         * config/srclist.txt: update mkinstalldirs from automake.
86527         * config/mkinstalldirs: update.
86528
86529 2003-06-22  Bruno Haible  <bruno@clisp.org>
86530
86531         Portability to mingw32.
86532         * m4/ssize_t.m4: New file, from GNU gettext.
86533         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86534         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86535
86536 2003-06-22  Bruno Haible  <bruno@clisp.org>
86537
86538         * modules/safe-read: Add m4/ssize_t.m4.
86539         * modules/xreadlink: Add m4/ssize_t.m4.
86540
86541 2003-06-20  Bruno Haible  <bruno@clisp.org>
86542
86543         Assume C89, so PARAMS isn't needed.
86544         * lib/unicodeio.h (PARAMS): Remove.
86545         * lib/unicodeio.c: Don't use PARAMS.
86546
86547 2003-06-18  Karl Berry  <karl@gnu.org>
86548
86549         * config/config.{guess,sub}: update from prep.
86550
86551 2003-06-18  Jim Meyering  <jim@meyering.net>
86552
86553         Merge changes from coreutils.
86554         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86555         Remove explicit declarations of xmalloc and realloc.
86556         Include xalloc.h.
86557         (read_utmp): Remove anachronistic cast of xmalloc.
86558
86559 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86560
86561         Assume C89, so PARAMS isn't needed.
86562         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86563         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86564         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86565         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86566         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86567         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86568         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86569         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86570         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86571         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86572         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86573         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86574         no longer needed. Anyway, config.h should always be included before any
86575         other file.
86576
86577 2003-06-11  Simon Josefsson  <jas@extundo.com>
86578
86579         * modules/sysexits: New file.
86580         * MODULES.html.sh (func_all_modules): Add sysexits.
86581
86582 2003-06-11  Simon Josefsson  <jas@extundo.com>
86583
86584         * lib/sysexit_.h: New file.
86585
86586 2003-06-11  Derek Price  <derek@ximbiot.com>
86587
86588         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86589         necessary.
86590
86591 2003-06-11  Bruno Haible  <bruno@clisp.org>
86592
86593         * m4/sysexits.m4: New file.
86594
86595 2003-06-10  Simon Josefsson  <jas@extundo.com>
86596
86597         * lib/argp.h: New file, from glibc.
86598         * lib/argp-ba.c: New file, from glibc.
86599         * lib/argp-eexst.c: New file, from glibc.
86600         * lib/argp-fmtstream.c: New file, from glibc.
86601         * lib/argp-fmtstream.h: New file, from glibc.
86602         * lib/argp-fs-xinl.c: New file, from glibc.
86603         * lib/argp-help.c: New file, from glibc.
86604         * lib/argp-namefrob.h: New file, from glibc.
86605         * lib/argp-parse.c: New file, from glibc.
86606         * lib/argp-pv.c: New file, from glibc.
86607         * lib/argp-pvh.c: New file, from glibc.
86608         * lib/argp-xinl.c: New file, from glibc.
86609
86610 2003-06-10  Simon Josefsson  <jas@extundo.com>
86611
86612         * modules/strchrnul: New file.
86613
86614 2003-06-10  Simon Josefsson  <jas@extundo.com>
86615
86616         * modules/argp: New file.
86617
86618 2003-06-10  Simon Josefsson  <jas@extundo.com>
86619
86620         * m4/strchrnul.m4: New file.
86621
86622 2003-06-10  Simon Josefsson  <jas@extundo.com>
86623
86624         * lib/strchrnul.h: New file.
86625         * lib/strchrnul.c: New file.
86626
86627 2003-06-10  Bruno Haible  <bruno@clisp.org>
86628
86629         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86630
86631 2003-06-07  Karl Berry  <karl@gnu.org>
86632
86633         * config/config.{guess,sub}: update from prep.
86634
86635 2003-06-07  Jim Meyering  <jim@meyering.net>
86636
86637         * modules/strtod: Use $(...) notation, not @...@ for
86638         AC_REPLACE'd variables.
86639         * modules/localcharset: Likewise.
86640
86641 2003-06-07  Jim Meyering  <jim@meyering.net>
86642
86643         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86644         in place of my name in the copyright comment.
86645         Remove definition and uses of __P.
86646
86647         From coreutils.
86648         * lib/stat.c: Don't declare xmalloc explicitly.
86649         Instead, include "xalloc.h".
86650         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86651         xrealloc, and xcalloc return values.
86652         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86653         Improve comment.
86654         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86655
86656 2003-06-07  Bruno Haible  <bruno@clisp.org>
86657
86658         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86659         avoid AC_CONFIG_LINKS.
86660         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86661         fnmatch.h, to avoid AC_CONFIG_LINKS.
86662         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86663
86664 2003-06-07  Bruno Haible  <bruno@clisp.org>
86665
86666         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86667         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86668         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86669         directory.
86670         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86671         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86672         directory.
86673
86674 2003-06-06  Jim Meyering  <jim@meyering.net>
86675
86676         Merge from coreutils.
86677         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86678         Consolidate declarations and initializations of *_base* locals.
86679
86680         Merge from coreutils.
86681         This avoids a core dump on systems without GNU putenv,
86682         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86683         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86684         (unsetenv): New static function, from GNU libc.
86685         (rpl_putenv): Use it.
86686
86687         * lib/modechange.c: Remove trailing blanks.
86688
86689         Merge from coreutils.
86690         * lib/fsusage.c: Remove declaration of statfs.
86691         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86692
86693         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86694
86695 2003-06-06  Jim Meyering  <jim@meyering.net>
86696
86697         * lib/stdbool_.h: Renamed from stdbool.h.in.
86698
86699 2003-06-06  Jim Meyering  <jim@meyering.net>
86700             Bruno Haible  <bruno@clisp.org>
86701
86702         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86703         Adjust Makefile.am snippet not to redirect directly to target.
86704         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86705
86706 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86707
86708         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86709         mismatch, look in future quarters as well as past.  This fixes a
86710         bug when processing fall-backwards gaps immediately after a long
86711         period of daylight-saving time.
86712
86713         * lib/mktime.c: Assume freestanding C89 or better.
86714         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86715         (__P): Remove; not used.
86716         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86717         (mktime, not_equal_tm, print_tm, check_result,
86718         main): Use prototypes.  Use const * where appropriate.
86719         (main): Fix typo in testing code that uncovered by above changes.
86720         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86721
86722 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86723
86724         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86725         locale.h, localeconv.  This merges changes from coreutils.
86726
86727         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86728         It can be removed after the next Autoconf is released.
86729         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86730         needed.
86731
86732 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86733
86734         * lib/mktime.c: Fix Debian bug 177940
86735         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86736         (localtime_offset): Now long int, not time_t, because we want it
86737         to be guaranteed to be signed.  All uses changed.
86738         (__mktime_internal): If overflow would occur when adding offset,
86739         don't add it.
86740
86741         Merge 'human' changes from coreutils.  Rewrite to support
86742         locale-specific notations like thousands separators.
86743         * lib/human.c: Simplify authorship notice.
86744         Include human.h immediately after config.h.
86745         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86746         <limits.h>: Do not include, since human.h does.
86747         (SIZE_MAX, UINTMAX_MAX): New macros.
86748         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86749         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86750         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86751         (power_letter): Renamed from suffixes.
86752         (generate_suffix_backwards): Remove.
86753         (adjust_value): Now takes int style (because of human.h changes)
86754         and long double value (for greater precision on some platforms).
86755         (group_number): New function.
86756         (human_readable): Use it.  Use integer options, not enum.
86757         Put the options before the sizes in the arg list.
86758         Support all the new options.
86759         The old human_readable function has been removed;
86760         use inttostr.h instead.
86761         (human_readable, default_block_size, humblock):
86762         Use uintmax_t, not int, for block sizes.
86763         (human_readable_inexact, block_size_types): Remove.
86764         (block_size_opts): New constant.
86765         (human_options): Renamed from human_block_size, with new signature
86766         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86767         * lib/human.h: Add copyright and authorship notice.
86768         Include <limits.h> and <stdbool.h> unconditionally.
86769         (PARAMS): Remove.  All uses removed.
86770         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86771         (enum human_inexact_style): Remove tag; now a nameless enum.
86772         (human_floor, human_ceiling, human_round_to_even): Now have
86773         values 2, 0, 1 rather than -1, 1, 0.
86774         (human_group_digits, human_suppress_point_zero, human_autoscale,
86775         human_base_1024, human_SI, human_B): New constants.
86776         (human_readable_inexact, human_block_size): Remove.
86777         (human_readable): Size args are now uintmax_t, not int.
86778         (human_options): New decl.
86779
86780         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86781         unnecessary now that we assume C89 or better.  This change
86782         imported from coreutils.
86783
86784         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86785         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86786         in the 2003-05-30 sync from glibc.
86787
86788         .h files should stand alone, but we shouldn't include <sys/types.h>
86789         if we can get away with just <stddef.h>.
86790
86791         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86792         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86793         rather than <sys/types.h>, as we merely need size_t.
86794         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86795         to get size_t.
86796         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86797         Include <stdio.h>, to get FILE.
86798         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86799         memcasecmp.h has included <stddef.h> and all we need is size_t.
86800         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86801         our interface, instead of including <sys/types.h>
86802
86803 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86804
86805         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86806         now, as glibc mktime is buggy on non-glibc systems.
86807
86808 2003-06-03  Karl Berry  <karl@gnu.org>
86809
86810         * config/config.sub: update from prep.
86811
86812 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86813
86814         [from coreutils]
86815         Fix some minor time-related bugs with POSIX time arguments.
86816         Some valid time stamps were being rejected (notably -1, and
86817         time stamps before 1900 on 64-bit hosts).  And some invalid
86818         time stamps were being accepted, e.g. September 31.
86819
86820         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86821         that we can return (time_t) -1 successfully.
86822         * lib/posixtm.c: Likewise.
86823         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86824         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86825         (t): Remove static var.
86826         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86827         of static var.  All uses changed.
86828         (year): Do not reject years before 1900; they can occur with
86829         64-bit time_t.
86830         (posix_time_parse): Do not check for out-of-range components;
86831         that is now the caller's responsibility, since our checks were
86832         only approximations.
86833         (posixtime): Use mktime to check for out-of-range components,
86834         since it knows them exactly.
86835         If mktime returns (time_t) -1, check whether an error actually occurred
86836         by invoking localtime on -1.
86837         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86838         posixtime failures better.
86839         Improve the test data (in comments only).
86840
86841 2003-06-02  Karl Berry  <karl@gnu.org>
86842
86843         * config/mkinstalldirs (version): new variable.
86844         (--version): new option.
86845         (usage): improve message.
86846
86847 2003-05-30  Karl Berry  <karl@gnu.org>
86848
86849         * lib/mktime.c: update from libc.
86850
86851 2003-05-30  Bruno Haible  <bruno@clisp.org>
86852
86853         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86854         * config/config.rpath: Upgrade to gettext-0.12.1.
86855
86856 2003-05-30  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86859         * m4/nls.m4: New file, from gettext-0.12.1.
86860         * m4/po.m4: New file, from gettext-0.12.1.
86861         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86862
86863 2003-05-30  Bruno Haible  <bruno@clisp.org>
86864
86865         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86866         * lib/localcharset.h: Likewise.
86867         * lib/localcharset.c: Likewise.
86868
86869 2003-05-29  Karl Berry  <karl@gnu.org>
86870
86871         * config/config.rpath: update from gettext.
86872
86873 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86874
86875         Assume the headers required for C89 freestanding compilers.
86876         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86877         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86878         * m4/human.m4 (gl_HUMAN): Likewise.
86879         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86880         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86881         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86882         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86883         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86884         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86885
86886 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86887
86888         Assume the headers required for C89 freestanding compilers.
86889         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86890         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86891         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86892         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86893         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86894         define, since <limits.h> is guaranteed to do that.
86895         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86896         * lib/exclude.c: Include <stdbool.h> unconditionally.
86897         * lib/tempname.c: Include <stddef.h> unconditionally.
86898         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86899         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86900         <stddef.h> does that.
86901         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86902         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86903         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86904         needed.
86905         * lib/xstrtol.c: Likewise.
86906         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86907         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86908
86909         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86910         warnings on some platforms.
86911
86912         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86913         arbitrarily.
86914
86915 2003-05-26  Jim Meyering  <jim@meyering.net>
86916
86917         Merge in a change from coreutils:
86918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86919         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86920         that condition, rather than `-1' which is slightly misleading.
86921         Change the name of the cache variable to have the gl_ prefix.
86922         Prompted by a patch from Richard Dawe for DJGPP.
86923
86924 2003-05-24  Karl Berry  <karl@gnu.org>
86925
86926         * config/config.guess: update from prep.
86927
86928 2003-05-22  Karl Berry  <karl@gnu.org>
86929
86930         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86931
86932 2003-05-20  Karl Berry  <karl@gnu.org>
86933
86934         * config/config.guess: update from prep.
86935
86936 2003-05-18  Karl Berry  <karl@gnu.org>
86937
86938         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86939         might actually be set by the user.
86940
86941         * config/depcomp, install-sh, mdate-sh: update from automake.
86942
86943 2003-05-17  Bruno Haible  <bruno@clisp.org>
86944
86945         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86946         invalid expansion for AC_EGREP_CPP.
86947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86948         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86949         Suggested by Akim Demaille <akim@epita.fr> in
86950         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86951
86952 2003-05-12  Jim Meyering  <jim@meyering.net>
86953
86954         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86955         the space-padded-by-default conversion specifiers, %e, %k, %l.
86956
86957 2003-05-12  Bruno Haible  <bruno@clisp.org>
86958
86959         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86960         the string is longer than 4 KB.
86961
86962 2003-05-11  Karl Berry  <karl@gnu.org>
86963
86964         * config/config.{guess,sub}: update from prep.
86965
86966 2003-05-09  Bruno Haible  <bruno@clisp.org>
86967
86968         * modules/error: Add m4/strerror_r.m4 to file list.
86969
86970 2003-05-03  Bruno Haible  <bruno@clisp.org>
86971
86972         Upgrade to Unicode-4.0.
86973         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86974         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86975         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86976         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86977         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86978         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86979         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86980         Change width of U+E0100..U+E01EF from 1 to 0.
86981
86982 2003-04-25  Jim Meyering  <jim@meyering.net>
86983
86984         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86985         of type size_t, not int.
86986
86987 2003-04-25  Bruno Haible  <bruno@clisp.org>
86988
86989         * lib/copy-file.c: Include <stddef.h>, for size_t.
86990
86991 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86992
86993         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86994         code which expansion is under static control.  Patch imported from
86995         Akim Demaille's patch to Bison; see
86996         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86997
86998 2003-04-14  Bruno Haible  <bruno@clisp.org>
86999
87000         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
87001
87002 2003-04-11  Jim Meyering  <jim@meyering.net>
87003
87004         Merge changes from Coreutils.
87005
87006         2003-03-22  Jim Meyering  <jim@meyering.net>
87007
87008         * lib/strftime.c (widen): Cast alloca return value to proper type.
87009
87010         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
87011
87012         From GNU libc.
87013         * lib/strftime.c (my_strftime): Handle very large width
87014         specifications for numeric values correctly.  Improve checks for
87015         overflow.
87016
87017         2003-01-19  Jim Meyering  <jim@meyering.net>
87018
87019         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
87020         definitions.
87021         (nl_get_alt_digit) [! defined my_strftime]: Define.
87022         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
87023         _nl_get_alt_digit and _nl_get_walt_digit.
87024
87025         * lib/strftime.c (my_strftime): Merge in locale-related changes from
87026         libc. These changes have no effect outside of _LIBC.
87027
87028 2003-04-10  Bruno Haible  <bruno@clisp.org>
87029
87030         * modules/findprog: New file.
87031         * MODULES.html.sh (func_all_modules): Add it.
87032
87033 2003-04-10  Bruno Haible  <bruno@clisp.org>
87034
87035         * m4/findprog.m4: New file.
87036         * m4/eaccess.m4: New file.
87037
87038 2003-04-10  Bruno Haible  <bruno@clisp.org>
87039
87040         * lib/findprog.h: New file, from GNU gettext.
87041         * lib/findprog.c: New file, from GNU gettext.
87042
87043 2003-04-05  Jim Meyering  <jim@meyering.net>
87044
87045         Merge changes from Coreutils.
87046
87047         * lib/exclude.h (PARAMS): Remove definition and uses.
87048         * lib/exclude.c: Remove uses of `PARAMS'.
87049
87050         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
87051         Add test-cases for DOS filenames. Declare program_name.
87052         (main): Set up program_name.  Patch by Rich Dawe.
87053
87054         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87055         error from mntctl.
87056         Use mntctl's return value to drive the entry-processing loop, since
87057         we can't rely on the value of the vmt_length member in the last
87058         entry.  On some systems doing so could result in exhausting
87059         virtual memory.  Based in part on a patch from Mike Jetzer.
87060
87061 2003-04-04  Bruno Haible  <bruno@clisp.org>
87062
87063         * modules/linebreak: New file.
87064         * MODULES.html.sh (func_all_modules): Add it.
87065
87066 2003-04-04  Bruno Haible  <bruno@clisp.org>
87067
87068         * m4/linebreak.m4: New file.
87069
87070 2003-04-04  Bruno Haible  <bruno@clisp.org>
87071
87072         * lib/linebreak.h: New file, from GNU gettext.
87073         * lib/linebreak.c: New file, from GNU gettext with slight
87074         modifications.
87075         * lib/lbrkprop.h: New file, from GNU gettext.
87076
87077 2003-04-03  Bruno Haible  <bruno@clisp.org>
87078
87079         * modules/utf8-ucs4: New file.
87080         * modules/utf16-ucs4: New file.
87081         * modules/ucs4-utf8: New file.
87082         * modules/ucs4-utf16: New file.
87083         * MODULES.html.sh (func_all_modules): Add them.
87084
87085 2003-04-03  Bruno Haible  <bruno@clisp.org>
87086
87087         * m4/utf-ucs4.m4: New file.
87088         * m4/ucs4-utf.m4: New file.
87089
87090 2003-04-03  Bruno Haible  <bruno@clisp.org>
87091
87092         * lib/utf8-ucs4.h: New file, from GNU gettext.
87093         * lib/utf16-ucs4.h: New file, from GNU gettext.
87094         * lib/ucs4-utf8.h: New file, from GNU gettext.
87095         * lib/ucs4-utf16.h: New file, from GNU gettext.
87096
87097 2003-04-02  Bruno Haible  <bruno@clisp.org>
87098
87099         * modules/binary-io: New file.
87100         * MODULES.html.sh (func_all_modules): Add it.
87101
87102 2003-04-02  Bruno Haible  <bruno@clisp.org>
87103
87104         * lib/binary-io.h: New file, from GNU gettext.
87105
87106 2003-04-01  Bruno Haible  <bruno@clisp.org>
87107
87108         * modules/pathname: New file.
87109         * MODULES.html.sh (func_all_modules): Add it.
87110
87111 2003-04-01  Bruno Haible  <bruno@clisp.org>
87112
87113         * lib/pathname.h: New file, from GNU gettext.
87114         * lib/concatpath.c: New file, from GNU gettext.
87115
87116 2003-03-30  Bruno Haible  <bruno@clisp.org>
87117
87118         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
87119
87120 2003-03-30  Bruno Haible  <bruno@clisp.org>
87121
87122         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
87123         function chown() doesn't exist.
87124
87125 2003-03-28  Bruno Haible  <bruno@clisp.org>
87126
87127         * modules/copy-file: New file.
87128         * MODULES.html.sh (func_all_modules): Add it.
87129
87130 2003-03-28  Bruno Haible  <bruno@clisp.org>
87131
87132         * m4/copy-file.m4: New file.
87133
87134 2003-03-28  Bruno Haible  <bruno@clisp.org>
87135
87136         * lib/copy-file.h: New file, from GNU gettext.
87137         * lib/copy-file.c: New file, from GNU gettext.
87138
87139 2003-03-18  Jim Meyering  <jim@meyering.net>
87140
87141         * lib/quote.c (quote_n): Fix typo in comment.
87142
87143 2003-03-18  Bruno Haible  <bruno@clisp.org>
87144
87145         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
87146         checking.
87147         * m4/onceonly_2_57.m4: Likewise.
87148
87149 2003-03-17  Bruno Haible  <bruno@clisp.org>
87150
87151         * m4/onceonly.m4: Require autoconf 2.54 or newer.
87152         (m4_quote): Remove macro.
87153         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
87154
87155 2003-03-14  Jim Meyering  <jim@meyering.net>
87156
87157         Merge changes from Coreutils.
87158         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
87159         to be const, in order to avoid warnings.
87160         (obstack_room): Likewise.
87161         (obstack_empty_p): Likewise.
87162
87163 2003-03-14  Bruno Haible  <bruno@clisp.org>
87164
87165         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
87166         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
87167
87168 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87169
87170         Merge changes from Bison.
87171         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
87172         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
87173         when compiling Bison 1.875's `bitset bset = obstack_alloc
87174         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
87175         * lib/hash.c: Include <stdbool.h> unconditionally.
87176
87177 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87178
87179         * m4/onceonly.m4 (m4_quote): New macro.
87180         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
87181         Quote AC_FOREACH variable-expansions properly.
87182
87183 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87184
87185         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
87186
87187 2003-03-09  Paul Eggert  <eggert@twinsun.com>
87188
87189         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
87190         Reported by Bruce Becker; see:
87191         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
87192
87193 2003-03-03  Paul Eggert  <eggert@twinsun.com>
87194             Bruno Haible  <bruno@clisp.org>
87195
87196         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
87197         Reported by John Hughes, see
87198         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
87199
87200 2003-02-20  Bruno Haible  <bruno@clisp.org>
87201
87202         * MODULES.html.sh (func_all_modules): Add poll.
87203
87204 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87205
87206         * modules/poll: New file.
87207
87208 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87209
87210         * lib/poll_.h: New file.
87211         * lib/poll.c: New file.
87212
87213 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87214
87215         * m4/poll.m4: New file.
87216
87217 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87218
87219         * modules/mathl: New file.
87220
87221 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87222
87223         * lib/mathl.h: New file.
87224         * lib/acosl.c: New file.
87225         * lib/asinl.c: New file.
87226         * lib/atanl.c: New file.
87227         * lib/ceill.c: New file.
87228         * lib/cosl.c: New file.
87229         * lib/expl.c: New file.
87230         * lib/floorl.c: New file.
87231         * lib/frexpl.c: New file.
87232         * lib/ldexpl.c: New file.
87233         * lib/logl.c: New file.
87234         * lib/sincosl.c: New file.
87235         * lib/sinl.c: New file.
87236         * lib/sqrtl.c: New file.
87237         * lib/tanl.c: New file.
87238         * lib/trigl.c: New file.
87239         * lib/trigl.h: New file.
87240
87241 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87242
87243         * m4/mathl.m4: New file.
87244
87245 2003-02-18  Bruno Haible  <bruno@clisp.org>
87246
87247         * MODULES.html.sh (func_all_modules): Add mathl.
87248
87249 2003-02-17  Bruno Haible  <bruno@clisp.org>
87250
87251         * modules/mkdtemp: New module.
87252         * MODULES.html.sh (func_all_modules): Add it.
87253
87254 2003-02-17  Bruno Haible  <bruno@clisp.org>
87255
87256         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87257
87258 2003-02-17  Bruno Haible  <bruno@clisp.org>
87259
87260         * lib/mkdtemp.h: New file, from GNU gettext.
87261         * lib/mkdtemp.c: New file, from GNU gettext.
87262
87263 2003-02-02  Jim Meyering  <jim@meyering.net>
87264
87265         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87266         e.g. glibc-2.2.93.
87267
87268 2003-01-31  Bruno Haible  <bruno@clisp.org>
87269
87270         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87271         'rpl_rename'.
87272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87273         'rpl_strnlen'.
87274         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87275         'rpl_strtod'.
87276         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87277         'rpl_utime'.
87278
87279 2003-01-31  Bruno Haible  <bruno@clisp.org>
87280
87281         * lib/rename.c: #undef rename before defining rpl_rename.
87282         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87283
87284 2003-01-30  Bruno Haible  <bruno@clisp.org>
87285
87286         * modules/vasnprintf, modules/vasprintf: New modules.
87287         * MODULES.html.sh (func_all_modules): Add them.
87288
87289 2003-01-30  Bruno Haible  <bruno@clisp.org>
87290
87291         * m4/signed.m4: New file, from GNU gettext.
87292         * m4/longdouble.m4: New file, from GNU gettext.
87293         * m4/wchar_t.m4: New file, from GNU gettext.
87294         * m4/wint_t.m4: New file, from GNU gettext.
87295         * m4/vasnprintf.m4: New file.
87296         * m4/vasprintf.m4: New file.
87297
87298 2003-01-30  Bruno Haible  <bruno@clisp.org>
87299
87300         * lib/printf-args.h: New file, from GNU gettext.
87301         * lib/printf-args.c: New file, from GNU gettext.
87302         * lib/printf-parse.h: New file, from GNU gettext.
87303         * lib/printf-parse.c: New file, from GNU gettext.
87304         * lib/vasnprintf.h: New file, from GNU gettext.
87305         * lib/vasnprintf.c: New file, from GNU gettext.
87306         * lib/asnprintf.c: New file, from GNU gettext.
87307         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87308         * lib/vasprintf.c: New file, from GNU gettext.
87309         * lib/asprintf.c: New file, from GNU gettext.
87310
87311 2003-01-29  Bruno Haible  <bruno@clisp.org>
87312
87313         * modules/stpncpy: New module.
87314         * MODULES.html.sh (func_all_modules): Add it.
87315
87316 2003-01-29  Bruno Haible  <bruno@clisp.org>
87317
87318         * m4/stpncpy.m4: New file.
87319
87320 2003-01-29  Bruno Haible  <bruno@clisp.org>
87321
87322         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87323         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87324
87325 2003-01-28  Bruno Haible  <bruno@clisp.org>
87326
87327         * modules/c-ctype: New module.
87328         * MODULES.html.sh (func_all_modules): Add it.
87329
87330 2003-01-28  Bruno Haible  <bruno@clisp.org>
87331
87332         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87333         Paul Eggert.
87334         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87335         Paul Eggert.
87336
87337 2003-01-27  Bruno Haible  <bruno@clisp.org>
87338
87339         * modules/xsetenv: New module.
87340         * MODULES.html.sh (func_all_modules): Add it.
87341
87342 2003-01-27  Bruno Haible  <bruno@clisp.org>
87343
87344         * lib/xsetenv.h: New file, from GNU gettext.
87345         * lib/xsetenv.c: New file, from GNU gettext.
87346
87347 2003-01-23  Jim Meyering  <jim@meyering.net>
87348
87349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87350         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87351
87352 2003-01-23  Bruno Haible  <bruno@clisp.org>
87353
87354         * modules/minmax: New module.
87355         * MODULES.html.sh (func_all_modules): Add it.
87356
87357 2003-01-23  Bruno Haible  <bruno@clisp.org>
87358
87359         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87360         Eggert.
87361
87362 2003-01-22  Bruno Haible  <bruno@clisp.org>
87363
87364         * modules/exit: New module.
87365         * MODULES.html.sh (func_all_modules): Add it.
87366
87367 2003-01-22  Bruno Haible  <bruno@clisp.org>
87368
87369         * lib/exit.h: New file, from GNU gettext.
87370
87371 2003-01-19  Bruno Haible  <bruno@clisp.org>
87372
87373         * gnulib-tool: Recognize option --extract-maintainer.
87374         (func_get_maintainer): New function.
87375         * modules/*: Add Maintainer entry.
87376
87377 2003-01-16  Jim Meyering  <jim@meyering.net>
87378
87379         * m4/regex.m4: The `regex' struct is both input and output.
87380         Initialize it before each use.  Patch by Tim Waugh.
87381
87382 2003-01-16  Bruno Haible  <bruno@clisp.org>
87383
87384         * MODULES.html.sh: Add a table of contents. Add the module name as
87385         leftmost column. Add hyperlinks.
87386
87387 2003-01-15  Bruno Haible  <bruno@clisp.org>
87388
87389         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87390
87391 2003-01-15  Bruno Haible  <bruno@clisp.org>
87392
87393         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87394         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87395         suffix.
87396
87397 2003-01-15  Bruno Haible  <bruno@clisp.org>
87398
87399         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87400
87401 2003-01-15  Bruno Haible  <bruno@clisp.org>
87402
87403         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87404         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87405
87406 2003-01-14  Jim Meyering  <jim@meyering.net>
87407
87408         * lib/same.c (same_name): Tweak a comment.
87409
87410 2003-01-14  Bruno Haible  <bruno@clisp.org>
87411
87412         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87413         when a string comparison is sufficient.
87414
87415 2003-01-14  Bruno Haible  <bruno@clisp.org>
87416
87417         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87418         'unsigned int'.
87419
87420 2003-01-14  Bruno Haible  <bruno@clisp.org>
87421
87422         * lib/hash-pjw.c: Add comment about low quality of this function.
87423
87424 2003-01-13  Bruno Haible  <bruno@clisp.org>
87425
87426         * modules/stpcpy: Distribute lib/stpcpy.h.
87427         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87428
87429 2003-01-13  Bruno Haible  <bruno@clisp.org>
87430
87431         * modules/*: Add a description.
87432         * modules/strpbrk: Fix Makefile.am snippet.
87433         * modules/strtoimax: Fix dependencies.
87434         * modules/strtoumax: Likewise.
87435
87436 2003-01-13  Bruno Haible  <bruno@clisp.org>
87437
87438         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87439         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87440         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87441
87442 2003-01-13  Bruno Haible  <bruno@clisp.org>
87443
87444         * gnulib-tool (func_create_testdir): Store config/* files in the main
87445         directory.
87446         * config.rpath: Move to ...
87447         * config/config.rpath: ... here.
87448         * modules/gettext: Contains config/config.rpath, not config.rpath.
87449         * modules/iconv: Likewise.
87450
87451 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87452
87453         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87454         to avoid collisions with libcurses and libreadline.
87455
87456         * m4/getstr.m4: Remove.
87457         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87458
87459 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87460
87461         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87462         to avoid collisions with libcurses and libreadline.
87463
87464         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87465         * lib/getstr.h, getstr.c: Remove.
87466         * lib/getline.c: Include "getline.h", to check interface.
87467         Move body of old getstr.c here: this defines MIN_CHUNK and
87468         declares getdelim2, which is renamed from getstr.
87469         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87470
87471         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87472         All uses changed.
87473         * lib/linebuffer.h: Likewise.
87474         (readline): Remove backward-compatibility macro.
87475
87476 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87477
87478         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87479         to avoid collisions with libcurses and libreadline.
87480         * getstr: Remove.
87481         * MODULES.html.sh: Remove getstr.
87482         * modules/getline: Depend on unlocked-io, not getstr.
87483
87484 2003-01-12  Jim Meyering  <jim@meyering.net>
87485
87486         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87487
87488 2003-01-10  Bruno Haible  <bruno@clisp.org>
87489
87490         * modules/alloca: Change Makefile.am requirements. Simplify Include
87491         requirements. Add lib/alloca_.h to file list.
87492
87493 2003-01-10  Bruno Haible  <bruno@clisp.org>
87494
87495         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87496
87497 2003-01-10  Bruno Haible  <bruno@clisp.org>
87498
87499         * lib/alloca_.h: New file.
87500         * lib/getdate.y: Unconditionally include alloca.h.
87501         * lib/makepath.c: Likewise.
87502         * lib/setenv.c: Likewise.
87503         * lib/userspec.c: Likewise.
87504
87505 2003-01-09  Karl Berry  <karl@gnu.org>
87506
87507         * MODULES.html.sh: include `dirname $0` in PATH, to find
87508         gnulib-tool.
87509
87510 2003-01-09  Bruno Haible  <bruno@clisp.org>
87511
87512         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87513         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87514
87515 2003-01-09  Bruno Haible  <bruno@clisp.org>
87516
87517         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87518
87519 2003-01-09  Bruno Haible  <bruno@clisp.org>
87520
87521         * lib/stdbool.h.in: New file.
87522
87523 2003-01-09  Bruno Haible  <bruno@clisp.org>
87524
87525         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87526         * MODULES.html.sh: Likewise.
87527
87528 2003-01-08  Jim Meyering  <jim@meyering.net>
87529
87530         * lib/full-write.c: Undefine and define-away `const' after inclusion
87531         of errno.h, not before.  Suggestion from Bruno Haible.
87532
87533 2003-01-08  Bruno Haible  <bruno@clisp.org>
87534
87535         * modules/full-read: Depend on full-write.
87536
87537 2003-01-08  Bruno Haible  <bruno@clisp.org>
87538
87539         * lib/safe-read.c: Include specification header first, to ensure its
87540         selfcontainedness.
87541         * lib/full-write.c: Likewise.
87542
87543 2003-01-07  Jim Meyering  <jim@meyering.net>
87544
87545         * lib/full-write.c: Rework so that it may serve to define full_read,
87546         too.
87547         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87548
87549 2003-01-07  Bruno Haible  <bruno@clisp.org>
87550
87551         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87552         <inttypes.h>.
87553         * lib/xstrtol.h: Likewise.
87554         * lib/xstrtoimax.c: Likewise.
87555         * lib/xstrtoumax.c: Likewise.
87556         * lib/human.h: Likewise.
87557
87558         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87559         on systems that have <inttypes.h> but not <stdint.h>.
87560
87561 2003-01-07  Bruno Haible  <bruno@clisp.org>
87562
87563         * MODULES.html.sh: Add copyright notice.
87564         (missed_files): Omit CVS directory entries.
87565         (func_module): Make it work with sed-3.02.
87566         * MODULES.txt: Remove file.
87567
87568 2003-01-06  Jim Meyering  <jim@meyering.net>
87569
87570         * lib/version-etc.c: Update year in translatable copyright string.
87571
87572 2003-01-03  Karl Berry  <karl@gnu.org>
87573
87574         * config/config.{guess,sub}: update from prep.
87575
87576 2003-01-02  Karl Berry  <karl@gnu.org>
87577
87578         * doc/COPYING.DOC: belatedly updated to 1.2.
87579
87580 2003-01-01  Karl Berry  <karl@gnu.org>
87581
87582         * gnulib-tool (func_verify_module): report module name $module in
87583         error message, not $1.
87584         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87585         be created, only if it doesn't exist.
87586         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87587
87588 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87589
87590         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87591
87592 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87593
87594         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87595         memcmp if strcoll doesn't work.
87596
87597 2002-12-31  Bruno Haible  <bruno@clisp.org>
87598
87599         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87600         nonempty.
87601
87602 2002-12-31  Bruno Haible  <bruno@clisp.org>
87603
87604         * lib/memcoll.c (STRCOLL): New macro.
87605         (memcoll): Use it.
87606
87607 2002-12-31  Bruno Haible  <bruno@clisp.org>
87608
87609         * lib/localcharset.h: New file.
87610         * lib/localcharset.c: Include it.
87611         * lib/unicodeio.c: Likewise.
87612
87613 2002-12-31  Bruno Haible  <bruno@clisp.org>
87614
87615         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87616         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87617
87618 2002-12-31  Bruno Haible  <bruno@clisp.org>
87619
87620         * lib/getline.h: Include <stddef.h>, for size_t.
87621
87622         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87623         * lib/unicodeio.c: Don't include <stddef.h>.
87624
87625 2002-12-31  Bruno Haible  <bruno@clisp.org>
87626
87627         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87628         HAVE_TM_ZONE.
87629
87630 2002-12-24  Karl Berry  <karl@gnu.org>
87631
87632         * config/config.guess: update from prep.
87633
87634 2002-12-24  Bruno Haible  <bruno@clisp.org>
87635
87636         General infrasructure.
87637         * m4/README: Rewritten.
87638         * m4/onceonly.m4: New file.
87639         * m4/onceonly_2_57.m4: New file.
87640
87641         Module atexit.
87642         * m4/atexit.m4: New file.
87643
87644         Module strtod.
87645         * m4/strtod.m4: New file.
87646
87647         Module strtol.
87648         * m4/strtol.m4: New file.
87649
87650         Module strtoul.
87651         * m4/strtoul.m4: New file.
87652
87653         Module memchr.
87654         * m4/memchr.m4: New file.
87655
87656         Module memcmp.
87657         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87658         (jm_FUNC_MEMCMP): Invoke it.
87659
87660         Module memcpy.
87661         * m4/memcpy.m4: New file.
87662
87663         Module memmove.
87664         * m4/memmove.m4: New file.
87665
87666         Module memset.
87667         * m4/memset.m4: New file.
87668
87669         Module strcspn.
87670         * m4/strcspn.m4: New file.
87671
87672         Module strpbrk.
87673         * m4/strpbrk.m4: New file.
87674
87675         Module strstr.
87676         * m4/strstr.m4: New file.
87677
87678         Module strerror.
87679         * m4/strerror.m4: New file.
87680
87681         Module mktime.
87682         * m4/mktime.m4: Renamed from jm-mktime.m4.
87683         (gl_PREREQ_MKTIME): New macro.
87684         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87685
87686         Module malloc.
87687         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87688         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87689         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87690
87691         Module realloc.
87692         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87693         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87694         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87695
87696         Module strftime.
87697         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87698         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87699         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87700         gl_TM_GMTOFF.
87701         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87702
87703         Module xalloc.
87704         * m4/xalloc.m4: New file.
87705
87706         Module alloca.
87707         * m4/alloca.m4: New file.
87708
87709         Module putenv.
87710         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87711         (jm_FUNC_PUTENV): Invoke it.
87712
87713         Module setenv.
87714         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87715         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87716         when invoked twice.
87717         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87718         gt_FUNC_SETENV.
87719
87720         Module memrchr.
87721         * m4/memrchr.m4: New file.
87722
87723         Module stpcpy.
87724         * m4/stpcpy.m4: New file.
87725
87726         Module strcase.
87727         * m4/strcase.m4: New file.
87728
87729         Module strdup.
87730         * m4/strdup.m4: New file.
87731
87732         Module strnlen.
87733         * m4/strnlen.m4: New file.
87734
87735         Module strndup.
87736         * m4/strndup.m4: New file.
87737
87738         Module xstrtod.
87739         * m4/xstrtod.m4: New file.
87740
87741         Module xstrtol.
87742         * m4/xstrtol.m4: New file.
87743
87744         Module getdate.
87745         * m4/getdate.m4: New file.
87746
87747         Module unlocked-io.
87748         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87749         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87750         * m4/jm-glibc-io.m4n: Remove file.
87751
87752         Module long-options.
87753         * m4/long-options.m4: New file.
87754
87755         Module md5.
87756         * m4/md5.m4: New file.
87757
87758         Module sha.
87759         * m4/sha.m4: New file.
87760
87761         Module getstr.
87762         * m4/getstr.m4: New file.
87763
87764         Module getline.
87765         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87766         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87767         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87768         simply getline. Infoke gl_PREREQ_GETLINE.
87769
87770         Module obstack.
87771         * m4/obstack.m4: New file.
87772
87773         Module hash.
87774         * m4/hash.m4: New file.
87775
87776         Module readtokens.
87777         * m4/readtokens.m4: New file.
87778
87779         Module strverscmp.
87780         * m4/strverscmp.m4: New file.
87781
87782         Module stdbool.
87783         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87784         OSF/1.
87785
87786         Module strtoll.
87787         * m4/strtoll.m4: New file.
87788
87789         Module strtoull.
87790         * m4/strtoull.m4: New file.
87791
87792         Module strtoimax.
87793         * m4/strtoimax.m4: New file.
87794
87795         Module strtoumax.
87796         * m4/strtoumax.m4: New file.
87797
87798         Module xstrtoimax.
87799         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87800         jm_AC_PREREQ_XSTRTOIMAX.
87801         Moved the strtol prerequisites to strtol.m4.
87802         Moved the strtoll prerequisites to strtoll.m4.
87803         Moved the strtoimax prerequisites to strtoimax.m4.
87804
87805         Module xstrtoumax.
87806         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87807         jm_AC_PREREQ_XSTRTOUMAX.
87808         Moved the strtoul prerequisites to strtoul.m4.
87809         Moved the strtoull prerequisites to strtoull.m4.
87810         Moved the strtoumax prerequisites to strtoumax.m4.
87811
87812         Module chown.
87813         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87814         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87815
87816         Module dup2.
87817         * m4/dup2.m4: New file.
87818
87819         Module ftruncate.
87820         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87821         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87822
87823         Module getgroups.
87824         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87825         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87826
87827         Module gettimeofday.
87828         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87829         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87830         gl_PREREQ_GETTIMEOFDAY.
87831
87832         Module mkdir.
87833         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87834         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87835
87836         Module mkstemp.
87837         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87838         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87839         jm_AC_TYPE_UINTMAX_T.
87840         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87841
87842         Module stat.
87843         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87844         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87845
87846         Module lstat.
87847         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87848         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87849
87850         Module timespec.
87851         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87852         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87853         * m4/st_mtim.m4: Indentation.
87854
87855         Module nanosleep.
87856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87857         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87858         gl_PREREQ_NANOSLEEP.
87859
87860         Module regex.
87861         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87862         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87863         (gl_REGEX): New macro.
87864
87865         Module rename.
87866         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87867         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87868
87869         Module rmdir.
87870         * m4/rmdir.m4: New file.
87871
87872         Module utime.
87873         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87874         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87875         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87876
87877         Module dirname.
87878         * m4/dirname.m4: New file.
87879
87880         Module getopt.
87881         * m4/getopt.m4: New file.
87882
87883         Module unistd-safer.
87884         * m4/unistd-safer.m4: New file.
87885
87886         Module fnmatch.
87887         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87888         declaration.
87889         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87890         (gl_FUNC_FNMATCH_POSIX): New macro.
87891         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87892         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87893         simply fnmatch.
87894
87895         Module exclude.
87896         * m4/exclude.m4: New file.
87897
87898         Module human.
87899         * m4/human.m4: New file.
87900
87901         Module acl.
87902         * m4/acl.m4: Nop.
87903
87904         Module backupfile.
87905         * m4/backupfile.m4: New file.
87906         * m4/d-ino.m4: Indentation.
87907
87908         Module fsusage.
87909         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87910         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87911         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87912
87913         Module dirfd.
87914         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87915         requirements.
87916
87917         Module euidaccess.
87918         * m4/euidaccess.m4: New file.
87919
87920         Module file-type.
87921         * m4/file-type.m4: New file.
87922
87923         Module fileblocks.
87924         * m4/fileblocks.m4: New file.
87925
87926         Module filemode.
87927         * m4/filemode.m4: New file.
87928
87929         Module isdir.
87930         * m4/isdir.m4: New file.
87931
87932         Module lchown.
87933         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87934         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87935
87936         Module makepath.
87937         * m4/makepath.m4: New file.
87938
87939         Module modechange.
87940         * m4/modechange.m4: New file.
87941
87942         Module mountlist.
87943         * m4/mountlist.m4: New file.
87944         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87945         Indentation.
87946
87947         Module path-concat.
87948         * m4/path-concat.m4: New file.
87949
87950         Module pathmax.
87951         * m4/pathmax.m4: New file.
87952
87953         Module same.
87954         * m4/same.m4: New file.
87955
87956         Module save-cwd.
87957         * m4/save-cwd.m4: New file.
87958
87959         Module savedir.
87960         * m4/savedir.m4: New file.
87961
87962         Module xgetcwd.
87963         * m4/xgetcwd.m4: New file.
87964         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87965
87966         Module xreadlink.
87967         * m4/xreadlink.m4: New file.
87968
87969         Module safe-read.
87970         * m4/safe-read.m4: New file.
87971
87972         Module safe-write.
87973         * m4/safe-write.m4: New file.
87974
87975         Module closeout.
87976         * m4/closeout.m4: New file.
87977
87978         Module stdio-safer.
87979         * m4/stdio-safer.m4: New file.
87980
87981         Module getpass.
87982         * m4/getpass.m4: New file.
87983
87984         Module getugroups.
87985         * m4/getugroups.m4: New file.
87986
87987         Module group-member.
87988         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87989         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87990
87991         Module idcache.
87992         * m4/idcache.m4: New file.
87993
87994         Module userspec.
87995         * m4/userspec.m4: New file.
87996
87997         Module gettime.
87998         * m4/clock_time.m4: New file.
87999         * m4/gettime.m4: New file.
88000
88001         Module settime.
88002         * m4/settime.m4: New file.
88003
88004         Module posixtm.
88005         * m4/posixtm.m4: New file.
88006
88007         Module gethostname.
88008         * m4/gethostname.m4: New file.
88009
88010         Module canon-host.
88011         * m4/canon-host.m4: New file.
88012
88013         Module gettext.
88014         * m4/codeset.m4: New file, from gettext-0.11.5.
88015         * m4/gettext.m4: New file, from gettext-0.11.5.
88016         * m4/glibc21.m4: New file, from gettext-0.11.5.
88017         * m4/iconv.m4: New file, from gettext-0.11.5.
88018         * m4/intdiv0.m4: New file, from gettext-0.11.5.
88019         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
88020         * m4/inttypes.m4: New file, from gettext-0.11.5.
88021         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
88022         * m4/isc-posix.m4: New file, from gettext-0.11.5.
88023         * m4/lcmessage.m4: New file, from gettext-0.11.5.
88024         * m4/lib-ld.m4: New file, from gettext-0.11.5.
88025         * m4/lib-link.m4: New file, from gettext-0.11.5.
88026         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
88027         * m4/progtest.m4: New file, from gettext-0.11.5.
88028         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
88029         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
88030         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
88031
88032         Module localcharset.
88033         * m4/localcharset.m4: New file.
88034
88035         Module hard-locale.
88036         * m4/hard-locale.m4: New file.
88037
88038         Module mbswidth.
88039         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
88040         onceonly macros.
88041         * m4/mbrtowc.m4: Add comment.
88042
88043         Module memcasecmp.
88044         * m4/memcasecmp.m4: New file.
88045
88046         Module memcoll.
88047         * m4/memcoll.m4: New file.
88048
88049         Module unicodeio.
88050         * m4/unicodeio.m4: New file.
88051
88052         Module rpmatch.
88053         * m4/rpmatch.m4: New file.
88054
88055         Module yesno.
88056         * m4/yesno.m4: New file.
88057
88058         Module exitfail.
88059         * m4/exitfail.m4: New file.
88060
88061         Module c-stack.
88062         * m4/c-stack.m4 (gl_C_STACK): New macro.
88063         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
88064
88065         Module error.
88066         * m4/error.m4 (gl_ERROR): New macro.
88067         (jm_PREREQ_ERROR): Use onceonly macros.
88068
88069         Module fatal.
88070         * m4/fatal.m4: New file.
88071
88072         Module getloadavg.
88073         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
88074         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
88075
88076         Module getpagesize.
88077         * m4/getpagesize.m4: New file.
88078
88079         Module getusershell.
88080         * m4/getusershell.m4: New file.
88081
88082         Module physmem.
88083         * m4/physmem.m4: New file.
88084
88085         Module posixver.
88086         * m4/posixver.m4: New file.
88087
88088         Module quotearg.
88089         * m4/quotearg.m4: New file.
88090
88091         Module quote.
88092         * m4/quote.m4: New file.
88093
88094         Module readutmp.
88095         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
88096
88097         Module sig2str.
88098         * m4/sig2str.m4: New file.
88099
88100         Other.
88101         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
88102         ulonglong.m4.
88103         * m4/intmax_t.m4: New file.
88104         * m4/d-type.m4: Indentation.
88105         * m4/jm-macros.m4: Update.
88106         * m4/prereq.m4 (jm_PREREQ): Update.
88107         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
88108         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
88109         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
88110         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
88111         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
88112         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
88113         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
88114         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
88115         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
88116         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
88117         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
88118         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
88119         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
88120         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
88121         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
88122         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
88123         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
88124         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
88125         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
88126
88127 2002-12-24  Bruno Haible  <bruno@clisp.org>
88128
88129         * MODULES.txt: Update according to m4/ changes.
88130
88131         Module gettext.
88132         * config.rpath: New file, from gettext-0.11.5.
88133
88134         * modules/*: New module descriptions.
88135         * gnulib-tool: New file.
88136         * MODULES.html.sh: New file.
88137
88138 2002-12-21  Karl Berry  <karl@gnu.org>
88139
88140         * doc/fdl.texi: update to version 1.2.
88141
88142 2002-12-19  Karl Berry  <karl@gnu.org>
88143
88144         * config/config.guess: update from prep.
88145
88146 2002-12-18  Bruno Haible  <bruno@clisp.org>
88147
88148         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
88149         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
88150
88151 2002-12-17  Bruno Haible  <bruno@clisp.org>
88152
88153         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
88154         stdlib.h, string.h.
88155
88156 2002-12-17  Bruno Haible  <bruno@clisp.org>
88157
88158         * lib/canon-host.c (strdup): Remove unused declaration.
88159
88160         * lib/fsusage.c: Include full_read.h.
88161         (get_fs_usage): Use full_read instead of safe_read.
88162
88163         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
88164
88165 2002-12-12  Karl Berry  <karl@gnu.org>
88166
88167         * config/config.guess: update from prep.
88168
88169 2002-12-11  Bruno Haible  <bruno@clisp.org>
88170
88171         * m4/setenv.m4: New file, from gettext-0.11.5.
88172
88173 2002-12-11  Bruno Haible  <bruno@clisp.org>
88174
88175         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
88176         not unsetenv().
88177         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
88178         modifications:
88179
88180         2002-12-11  Bruno Haible  <bruno@clisp.org>
88181
88182                 * setenv.c (alloca): Fall back to malloc.
88183                 (freea): New macro.
88184                 (setenv): Use freea() to free memory allocated with alloca().
88185
88186         2002-11-13  Bruno Haible  <bruno@clisp.org>
88187
88188                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
88189                 function declarations.
88190                 * unsetenv.c (unsetenv): Likewise.
88191
88192         2002-03-04  Bruno Haible  <bruno@clisp.org>
88193
88194                 Portability to AIX 4.3.3.
88195                 * unsetenv.c: New file, extracted from setenv.c.
88196                 * setenv.c: Move the unsetenv() function to unsetenv.c.
88197
88198         2001-12-20  Bruno Haible  <bruno@clisp.org>
88199
88200                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
88201                 use malloc instead. For SunOS 4.
88202
88203         2001-12-11  Bruno Haible  <bruno@clisp.org>
88204
88205                 * setenv.c: Declare alloca.
88206                 (compar_fn_t): New typedef.
88207                 (KNOWN_VALUE, STORE_VALUE): Use it.
88208
88209         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
88210         setenv.h.
88211
88212 2002-12-10  Paul Eggert  <eggert@twinsun.com>
88213
88214         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
88215         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
88216         Choose values that are less likely to collide with system fnmatch
88217         options.
88218         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88219         defined (e.g., a pure POSIX system).
88220         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
88221         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88222
88223 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88224
88225         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88226         a pain in practice to deal with generated m4 files.  This change
88227         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88228
88229         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88230         and jm-glibc-io.m4, as they are no longer a special case.
88231         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88232         kludge and the auto-generation stuff.  Check only whether the
88233         functions are declared, not whether they exist, since older hosts
88234         that don't declare the functions can't use the optimization anyway.
88235
88236 2002-12-06  Jim Meyering  <jim@meyering.net>
88237
88238         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88239
88240         Merge in changes from libc's misc/error.c, in preparation
88241         for the merge of gnulib's changes back into libc.
88242
88243         * lib/error.c (_): Define only if not already defined.
88244         Move definition to follow all #include directives.
88245         Include unlocked-io.h only if !_LIBC.
88246         [_LIBC]: Include <libio/libioP.h>.
88247         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88248         (fflush): Tweak definition to use INTUSE.
88249         (putc): Define.
88250
88251 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88252
88253         * lib/alloca.c [defined emacs]: Include "lisp.h".
88254         (xalloc_die) [defined emacs]: New macro.
88255         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88256         [! defined emacs]: Include <xalloc.h>.
88257         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88258         (pointer): Typedef to POINTER_TYPE *.
88259         (malloc): Remove decl; we now always use xmalloc.
88260         (alloca): Use old-style definition, since Emacs needs this.
88261         Check for arithmetic overflow when computing combined size.
88262
88263 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88264
88265         Do not generate unlocked-io.h automatically, since it's easier to
88266         maintain it by hand.
88267
88268         * lib/unlocked-io.h: New file, from GNU diffutils,
88269         but with proper copyright notice and attribution.
88270         * lib/gen-uio: Remove.
88271         * lib/Makefile.am: Add copyright notice.
88272         (libfetish_a_SOURCES): Add unlocked-io.h.
88273         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88274         (DISTCLEANFILES, io_functions): Remove macros.
88275         (EXTRA_DIST): Remove gen_uio.
88276         (unlocked-io.h): Remove rule.
88277
88278 2002-12-04  Jim Meyering  <jim@meyering.net>
88279
88280         Reflect the fact that stat.c and lstat.c are no longer generated.
88281         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88282         (DISTCLEANFILES): Likewise.
88283         (EXTRA_DIST): Likewise.
88284         (all_local): Don't depend on stat.c or lstat.c.
88285         (stat.c, lstat.c): Remove rules.
88286         (EXTRA_DIST): Remove xstat.in.
88287
88288         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88289         * lib/stat.c: New file.  Contents mostly from xstat.in.
88290         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88291         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88292
88293         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88294         too.
88295         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88296
88297 2002-12-03  Jim Meyering  <jim@meyering.net>
88298
88299         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88300         but not semantics, to minimize the differences between these two files.
88301         (safe_read): Change comment to mention SAFE_READ_ERROR.
88302
88303         * lib/safe-read.c (IS_EINTR): Define.
88304         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88305
88306 2002-12-02  Jim Meyering  <jim@meyering.net>
88307
88308         * lib/safe-read.c (EINTR): Define.
88309         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88310         (INT_MAX): Provide fallback.
88311         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88312
88313         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88314
88315 2002-12-02  Bruno Haible  <bruno@clisp.org>
88316
88317         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88318         Define, taken from safe-read.c.
88319         (INT_MAX): Provide fallback.
88320         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88321         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88322
88323         * lib/safe-read.c (EINTR): Remove definition.
88324         (safe_read): Don't use EINTR if it is absent.
88325
88326 2002-12-01  Jim Meyering  <jim@meyering.net>
88327
88328         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88329         zero.
88330         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88331
88332 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88333
88334         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88335         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88336         with `if (! (value < limit)) abort ();', for readability.
88337
88338 2002-11-26  Karl Berry  <karl@gnu.org>
88339
88340         * lib/strdup.c: copy from libc again, with jim's ok.
88341         * lib/.cppi-disable: re-add strdup.c
88342
88343 2002-11-25  Karl Berry  <karl@gnu.org>
88344
88345         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88346         instead of "strtol.c".
88347
88348 2002-11-25  Karl Berry  <karl@gnu.org>
88349
88350         * config/install-sh: update from automake for variable quoting, $0 in
88351         error msgs, etc.
88352
88353         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88354         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88355         entry.
88356
88357 2002-11-25  Jim Meyering  <jim@meyering.net>
88358
88359         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88360
88361 2002-11-24  Karl Berry  <karl@gnu.org>
88362
88363         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88364         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88365
88366 2002-11-24  Jim Meyering  <jim@meyering.net>
88367
88368         Update from coreutils:
88369
88370         * lib/mktime.c: Merge in changes from libc.
88371
88372         Avoid a link-time failure on some Linux systems.
88373         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88374         (otherwise).
88375         (__mon_yday): Declare with the STATIC attribute.
88376         (__mktime_internal): Likewise.
88377         Based on a report from Greg Schafer.
88378
88379 2002-11-23  Jim Meyering  <jim@meyering.net>
88380
88381         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88382         Use `unsigned', not `int', as type of index.
88383
88384         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88385
88386         * lib/fsusage.c: Remove unneeded parentheses around operands of
88387         `defined'.
88388
88389 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88390
88391         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88392         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88393         so that we can be included first.
88394         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88395         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88396         No need to include stddef.h or sys/types.h any more.
88397         Surround local include files with "", not "<>".
88398         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88399         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88400         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88401         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88402         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88403         (ISPRINT): Remove; no longer needed now that we assume C89.
88404
88405         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88406         Preserve errno.
88407
88408         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88409         quotearg_char): Use SIZE_MAX rather than
88410         (size_t) -1 when we are talking about "infinity".
88411
88412         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88413
88414 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88417         hint that one should use `if (! x) abort ();' rather than `assert
88418         (x);', and anyway it's one less thing to worry about configuring.
88419         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88420         hash_rehash, hash_insert): Use abort rather than assert.
88421
88422 2002-11-22  Bruno Haible  <bruno@clisp.org>
88423
88424         * lib/safe-read.h: Assume C89. Add comments.
88425         (safe_read): Change return type to size_t.
88426         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88427         byte counts > SSIZE_MAX correctly.
88428         * lib/safe-write.h: New file.
88429         * lib/safe-write.c: New file.
88430         * lib/full-read.h: New file.
88431         * lib/full-read.c: New file.
88432         * lib/full-write.h: Assume C89. Add comments.
88433         * lib/full-write.c: Include safe-write.h.
88434         (full_write): Rewritten to use safe_write.
88435         Suggested by Jim Meyering and Paul Eggert.
88436
88437 2002-11-21  Jim Meyering  <jim@meyering.net>
88438
88439         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88440
88441         Merge in changes from the coreutils.
88442
88443         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88444         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88445         <stdint.h>.
88446         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88447         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88448         int.  Work more efficiently if X is the same width as uintmax_t.
88449         Do not compare X to -1, to avoid bogus compiler warning.
88450         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88451         Don't assume that f_frsize and f_bsize are the same type.
88452
88453         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88454         warning on FreeBSD.
88455
88456         * lib/makepath.c (make_path): Restore umask *before* creating the final
88457         component.
88458         (make_path): Minor reformatting.
88459
88460         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88461         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88462         HAVE_MALLOC/HAVE_REALLOC.
88463
88464         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88465         dummy ones.  At least on GNU/Linux systems, `auto' means something
88466         else.
88467         From Michael Stone.
88468
88469 2002-11-21  Bruno Haible  <bruno@clisp.org>
88470
88471         Remove case insensitive option matching.
88472         * lib/argmatch.h (argcasematch): Remove declaration.
88473         (ARGCASEMATCH): Remove macro.
88474         (__xargmatch_internal): Remove case_sensitive argument.
88475         (XARGMATCH): Update.
88476         (XARGCASEMATCH): Remove macro.
88477         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88478         case_sensitive argument.
88479         (argcasematch): Remove function.
88480         (__xargmatch_internal): Remove case_sensitive argument.
88481         (main): Use XARGMATCH instead of XARGCASEMATCH.
88482
88483         * lib/xmalloc.c: Change compile-time error message. Add comment about
88484         required autoconf version.
88485
88486 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88487
88488         Merge argmatch cleanups from Bison.  Assume C89.
88489
88490         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88491         Include stdlib.h, for EXIT_FAILURE.
88492         Always include <string.h>, since we assume C89.
88493         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88494         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88495         Include <stddef.h> instead, since it's all we need for size_t.
88496         (PARAMS): Remove.  All uses removed.
88497         (ARRAY_CARDINALITY): Do not bother to #undef.
88498         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88499         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88500         Remove unnecessary parentheses.
88501         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88502         Insert necessary parentheses.
88503         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88504         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88505
88506 2002-11-19  Bruno Haible  <bruno@clisp.org>
88507
88508         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88509         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88510
88511         * lib/mbswidth.h (PARAMS): Remove macro.
88512         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88513         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88514
88515         * lib/gcd.h (PARAMS): Remove macro.
88516         (gcd): Use ANSI C function declarations.
88517         * lib/gcd.c (gcd): Likewise.
88518
88519 2002-11-15  Bruno Haible  <bruno@clisp.org>
88520
88521         * lib/strcspn.c: Include <stddef.h>.
88522         (strcspn): Use ANSI C function declaration. Change return type to
88523         size_t. Use NULL.
88524         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88525         (strpbrk): Use NULL.
88526         * lib/strpbrk.h (PARAMS): Remove macro.
88527         (strpbrk): Use ANSI C function declaration.
88528         * lib/strstr.c: Don't include <sys/types.h>.
88529         * lib/strstr.h (PARAMS): Remove macro.
88530         (strstr): Use ANSI C function declarations.
88531
88532 2002-11-14  Karl Berry  <karl@gnu.org>
88533
88534         * config/mkinstalldirs: `do' on separate line, instead of
88535         `for var; do'.
88536
88537 2002-11-06  Bruno Haible  <bruno@clisp.org>
88538
88539         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88540         * lib/gcd.c (gcd): Likewise.
88541
88542 2002-11-05  Bruno Haible  <bruno@clisp.org>
88543
88544         * lib/gcd.h: New file, from gettext-0.11.5.
88545         * lib/gcd.c: New file, from gettext-0.11.5.
88546
88547 2002-11-05  Bruno Haible  <bruno@clisp.org>
88548
88549         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88550         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88551         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88552         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88553
88554         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88555         <libintl.h>.
88556         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88557         <libintl.h>.
88558
88559         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88560         * lib/human.c: Include gettext.h instead of <libintl.h>.
88561         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88562         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88563         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88564         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88565         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88566         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88567         (textdomain): Remove definition.
88568         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88569
88570         * lib/long-options.c: Remove include of <libintl.h> and definition of
88571         _.
88572         * lib/same.c: Remove include of <libintl.h> and definition of _.
88573
88574 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88575
88576         * lib/config.charset: A few additions for Solaris.
88577
88578 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88579
88580         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88581         * lib/localcharset.c (locale_charset): Declare as extern "C".
88582
88583 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88584
88585         * lib/config.charset: msdos in uk_UA uses CP1125.
88586
88587 2002-11-04  Bruno Haible  <bruno@clisp.org>
88588
88589         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88590         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88591         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88592         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88593         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88594
88595 2002-11-04  Bruno Haible  <bruno@clisp.org>
88596
88597         * lib/localcharset.c (locale_charset): Don't return an empty string.
88598
88599 2002-11-04  Bruno Haible  <bruno@clisp.org>
88600
88601         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88602         aliases.
88603
88604 2002-11-04  Bruno Haible  <bruno@clisp.org>
88605
88606         * lib/config.charset: Update for newest glibc. Add canonical names
88607         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88608
88609 2002-11-04  Bruno Haible  <bruno@clisp.org>
88610
88611         * lib/config.charset: Add support for NetBSD.
88612
88613 2002-11-04  Bruno Haible  <bruno@clisp.org>
88614
88615         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88616
88617 2002-11-01  Bruno Haible  <bruno@clisp.org>
88618
88619         * configure.in: Add AC_CONFIG_AUX_DIR call.
88620         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88621         test/Makefile.
88622         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88623
88624 2002-09-28  Karl Berry  <karl@gnu.org>
88625
88626         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88627         installed automake until the next release, since changes have been
88628         made.
88629
88630 2002-09-25  Karl Berry  <karl@gnu.org>
88631
88632         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88633         * lib/getopt*: copy from libc/posix.
88634         * lib/gettext.h: copy from gettext.
88635         * lib/.cppi-disable: add strdup.c, gettext.h.
88636
88637 2002-09-25  Karl Berry  <karl@gnu.org>
88638
88639         * config/srclist.txt: enable gettext.h check.
88640         * config/config.{guess,sub}: update from prep.
88641         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88642                 from automake 1.6.3.
88643         See srclist*.
88644
88645 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88646
88647         * regex.c (PATFETCH): Remove the translating fetch.
88648         (PATFETCH_RAW): Rename to PATFETCH.
88649         (set_image_of_range): New fun.
88650         (SET_RANGE_TABLE_WORK_AREA): Use it.
88651         (regex_compile): Don't translate the pattern chars so eagerly.
88652         Only do it when inserting an `exactn' bytecode or when handling
88653         a char-range.
88654         (mutually_exclusive_p): Avoid empty statement.
88655
88656 2002-07-06  Jim Meyering  <meyering@lucent.com>
88657
88658         * m4/README: Don't mention Makefile.am.in.
88659         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88660
88661 2002-07-01  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/c-stack.c: Include sys/time.h.
88664         From Volker Borchert.
88665
88666 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88667
88668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88669
88670 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88671
88672         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88673         New macro.  Use it uniformly instead of
88674         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88675         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88676         reported by Vin Shelton.
88677
88678 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88679
88680         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88681         Do not assume SA_SIGINFO behavior.
88682         Bug reported by Jim Meyering on NetBSD 1.5.2.
88683
88684 2002-06-22  Jim Meyering  <meyering@lucent.com>
88685
88686         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88688
88689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88690         now that configure.ac uses AC_GNU_SOURCE.
88691         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88692         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88693
88694         Update to latest tools.  Suggestions from Paul Eggert.
88695         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88696         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88697         * m4/fnmatch.m4: Likewise.
88698         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88699         to AC_HEADER_STDBOOL
88700
88701 2002-06-22  Jim Meyering  <meyering@lucent.com>
88702
88703         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88704         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88705
88706 2002-06-22  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88709
88710         * lib/exitfail.c, exitfail.h: Likewise.
88711         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88712
88713         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88714         of fnmatch.h.
88715         (EXTRA_DIST): Add fnmatch_loop.c.
88716         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88717
88718         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88719         * lib/fnmatch.c: Update from diffutils-2.8.2.
88720         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88721         * lib/fnmatch.h: Remove file.
88722
88723 2002-06-21  Jim Meyering  <meyering@lucent.com>
88724
88725         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88726         * m4/mbrtowc.m4: Likewise.
88727
88728         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88729         * m4/mbswidth.m4: Reflect name change:
88730         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88731         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88732
88733         * m4/lib-link.m4: Update from gettext-0.11.2.
88734         * m4/gettext.m4: Likewise.
88735
88736         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88737         From Alfred M. Szmidt.
88738
88739 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88740
88741         * lib/file-type.h: Report an error if neither S_ISREG nor
88742         S_IFREG is defined, instead of using a test specific to glibc
88743         2.2.  This should be safe, since POSIX requires S_ISREG and
88744         Unix Version 7 had S_IFREG.  We don't need to check for
88745         <sys/types.h> since we don't use any symbols that it defines.
88746
88747 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88748
88749         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88750         $@-t, so that each temporary file name is unique and valid in the first
88751         8 characters, for operation under DOS.
88752
88753 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88754
88755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88756
88757 2002-06-15  Jim Meyering  <meyering@lucent.com>
88758
88759         Work even with DJGPP 2.03, which lacks support for symlinks.
88760         From Richard Dawe.
88761         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88762         is defined.
88763         * lib/lchown.c (S_ISLNK): Likewise.
88764
88765 2002-06-15  Jim Meyering  <meyering@lucent.com>
88766
88767         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88768         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88769         have been included before this file.
88770
88771 2002-06-14  Jim Meyering  <meyering@lucent.com>
88772
88773         * lib/file-type.h: Use the version from diffutils-2.8.2.
88774         * lib/file-type.c: Likewise.
88775
88776 2002-06-07  Jim Meyering  <meyering@lucent.com>
88777
88778         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88779         They're needed at least for NetBSD 1.5.2.
88780         ($statxfs_includes): Include those same headers.
88781         ($statxfs_includes): Include sys/vfs.h if available.
88782         ($statxfs_includes): Likewise for sys/statvfs.h.
88783         Check for the following members in both structs statfs and statvfs:
88784         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88785
88786 2002-06-01  Jim Meyering  <meyering@lucent.com>
88787
88788         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88789         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88790
88791 2002-05-28  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88794         Reported by Volker Borchert.
88795
88796 2002-05-27  Jim Meyering  <meyering@lucent.com>
88797
88798         Fix a problem seen only on nonconforming systems whereby ls.c's
88799         use of localtime, and then of gettimeofday would cause trouble:
88800         the localtime call used to initialize rpl_gettimeofday's save
88801         mechanism would clobber ls's current local time information so
88802         that in any long listing the first file would always be listed
88803         with date 1970-01-01.  Analysis by Volker Borchert.
88804
88805         * lib/gettimeofday.c (localtime): Undefine.
88806         (rpl_localtime): New function.
88807
88808 2002-05-27  Jim Meyering  <meyering@lucent.com>
88809
88810         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88811         localtime.
88812
88813         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88814         use the replacement function; it wouldn't resolve at link time.
88815         Reported by Volker Borchert.
88816
88817 2002-05-22  Jim Meyering  <meyering@lucent.com>
88818
88819         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88820         file-type.h.
88821         * lib/file-type.h: New file.
88822         * lib/file-type.c (file_type): New file/function.  Extracted from
88823         diffutils.
88824
88825 2002-04-30  Jim Meyering  <meyering@lucent.com>
88826
88827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88828
88829 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88830
88831         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88832
88833 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88834
88835         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88836         Do not check for alloca.h (no longer used) or stdbool.h (was never
88837         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88838
88839 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88840
88841         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88842
88843 2002-04-29  Jim Meyering  <meyering@lucent.com>
88844
88845         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88846         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88847         Use AC_FUNC_STRNLEN here instead.
88848
88849         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88850         With autoconf-2.53a, it's part of AC_PROG_CC.
88851
88852 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88853
88854         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88855         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88856
88857 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88858
88859         * lib/sig2str.h, lib/sig2str.c: New files.
88860         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88861
88862 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88863
88864         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88865         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88866         of 127, since 64 is the largest conceivable number for ancient
88867         nonstandard hosts.
88868         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88869
88870 2002-04-28  Jim Meyering  <meyering@lucent.com>
88871
88872         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88873
88874 2002-04-24  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88877         (jm_PREREQ): Use it.
88878
88879         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88880         mach/mach.h fcntl.h.
88881         Check for this function: setlocale.
88882
88883 2002-04-24  Jim Meyering  <meyering@lucent.com>
88884
88885         * lib/gettext.h: New file, from Gettext.
88886         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88887         (libfetish_a_SOURCES): Add gettext.h.
88888
88889 2002-04-16  Jim Meyering  <meyering@lucent.com>
88890
88891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88892         ut_pid, ut_id, ut_exit.
88893
88894 2002-04-16  Jim Meyering  <meyering@lucent.com>
88895
88896         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88897         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88898         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88899
88900 2002-04-12  Jim Meyering  <meyering@lucent.com>
88901
88902         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88903         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88904         existence of the getmntinfo function.  Needed for Darwin 5.3.
88905
88906         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88907         This is necessary at least on Darwin 5.3.
88908
88909         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88910         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88911         strnlen.o in the library, and that makes some versions of ranlib
88912         object.
88913
88914 2002-04-12  Jim Meyering  <meyering@lucent.com>
88915
88916         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88917
88918 2002-04-09  Jim Meyering  <meyering@lucent.com>
88919
88920         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88921         to be more precise.  Rather than saying we're checking whether the
88922         function `works', say what we're testing.
88923         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88924         Reported by Bruno Haible.
88925
88926 2002-03-10  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88929         Suggestion from Santiago Vila.
88930
88931 2002-03-08  Jim Meyering  <meyering@lucent.com>
88932
88933         * lib/rename.c: Mention that this wrapper is needed also on
88934         mips-dec-ultrix4.4 systems.
88935
88936 2002-03-02  Jim Meyering  <meyering@lucent.com>
88937
88938         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88939         not HAVE_CLOCK_SETTIME.
88940
88941 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88942
88943         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88944         Check for clock_settime.
88945
88946 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88947
88948         * lib/nanosleep.h: Rename to....
88949         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88950
88951         * lib/gettime.c: New file.
88952         * lib/settime.c: New file.
88953         * lib/stime.c: Remove.
88954
88955         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88956         timespec.h.  Remove nanosleep.h.
88957
88958 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88959
88960         * m4/acl.m4: New file.
88961         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88962         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88963
88964 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88965
88966         * lib/acl.c, lib/acl.h: New files.
88967         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88968
88969 2002-02-24  Jim Meyering  <meyering@lucent.com>
88970
88971         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88972         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88973         cause trouble.  Reported by Nelson Beebe.
88974
88975 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88976
88977         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88978         compilers that don't know that xalloc_die never returns.
88979
88980 2002-02-20  Jim Meyering  <meyering@lucent.com>
88981
88982         * lib/getdate.c: Regenerate using bison-1.33.
88983
88984 2002-02-17  Jim Meyering  <meyering@lucent.com>
88985
88986         * config/config.guess (main): Don't use `head -1'; it's no longer
88987         portable. Use `sed 1q' instead.
88988
88989 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88990
88991         * m4/codeset.m4: Upgrade to gettext-0.11.
88992         * m4/gettext.m4: Upgrade to gettext-0.11.
88993         * m4/glibc21.m4: Upgrade to gettext-0.11.
88994         * m4/iconv.m4: Upgrade to gettext-0.11.
88995         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88996         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88997         * m4/lib-ld.m4: New file, from gettext-0.11.
88998         * m4/lib-link.m4: New file, from gettext-0.11.
88999         * m4/lib-prefix.m4: New file, from gettext-0.11.
89000         * m4/progtest.m4: Upgrade to gettext-0.11.
89001
89002 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89003
89004         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
89005         (jm_PREREQ): Use it.
89006
89007 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89008
89009         * lib/posixver.c, lib/posixver.h: New files.
89010         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89011
89012 2002-02-02  Paul Eggert  <eggert@twinsun.com>
89013             Bruno Haible  <bruno@clisp.org>
89014
89015         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
89016         (fwrite_success_callback): New declaration.
89017         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
89018         print_unicode_char. Call failure callback instead of error.
89019         (fwrite_success_callback): New function.
89020         (exit_failure_callback): New function.
89021         (fallback_failure_callback): New function.
89022         (print_unicode_char): Call unicode_to_mb.
89023
89024 2002-01-26  Jim Meyering  <meyering@lucent.com>
89025
89026         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
89027         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
89028
89029 2002-01-26  Jim Meyering  <meyering@lucent.com>
89030
89031         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
89032
89033 2002-01-22  Paul Eggert  <eggert@twinsun.com>
89034
89035         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
89036
89037 2002-01-22  Jim Meyering  <meyering@lucent.com>
89038
89039         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
89040         Otherwise, some versions of automake would omit the rule that makes
89041         Makefile from Makefile.in.
89042
89043 2002-01-21  Paul Eggert  <eggert@twinsun.com>
89044
89045         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
89046         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89047         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
89048         (memcoll): Set errno to zero if there is no error.
89049
89050         * lib/quotearg.c (quotearg_buffer_restyled):
89051         Fix bug with quoting buffers containing NUL when backslashing escapes.
89052         This bug was exposed by the other changes in this patch.
89053         (quotearg_n_options): New arg ARGSIZE.
89054         All callers changed.
89055         (quoting_options_from_style): New function.
89056         (quotearg_n_style): Use it.
89057         (quotearg_n_style_mem): New function.
89058
89059         * lib/quotearg.h (quotearg_n_style_mem): New function.
89060
89061 2002-01-19  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
89064         Remove useless quotes: DF_PROG="df".
89065         * m4/strnlen.m4: New file.
89066
89067 2002-01-16  Paul Eggert  <eggert@twinsun.com>
89068
89069         * lib/backupfile.c (ISDIGIT): Comment fix.
89070         * lib/getdate.y (ISDIGIT): Likewise.
89071         * lib/posixtm.c (ISDIGIT, year): Likewise.
89072         * lib/strverscmp.c (ISDIGIT): Likewise.
89073         * lib/userspec.c (ISDIGIT): Likewise.
89074
89075 2002-01-16  Jim Meyering  <meyering@lucent.com>
89076
89077         * lib/getdate.y: Add three semicolons, each just before a closing
89078         brace. Bison (as of version 1.31) no longer papers over that mistake.
89079
89080 2002-01-05  Jim Meyering  <meyering@lucent.com>
89081
89082         * lib/version-etc.c (version_etc_copyright): Update copyright year.
89083
89084 2001-12-19  Paul Eggert  <eggert@twinsun.com>
89085
89086         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
89087         not silently exit merely because the output buffer happens to
89088         have nothing pending.
89089
89090 2001-12-18  Paul Eggert  <eggert@twinsun.com>
89091
89092         See the big note in ../ChangeLog.
89093         * lib/human.c (suffixes): Prefer K to k for 1024.
89094         (generate_suffix_backwards): New function.
89095         (human_readable_inexact): Use it.
89096         * lib/xstrtol.c (__xstrtol): If there is no number but there
89097         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
89098         Accept 'K' as well as 'k'.
89099
89100 2001-12-15  Jim Meyering  <meyering@lucent.com>
89101
89102         * lib/regex.h (__restrict_arr): Update from libc.
89103
89104         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
89105         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
89106         (STREQ): Define.
89107
89108 2001-12-14  Jim Meyering  <meyering@lucent.com>
89109
89110         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
89111         Suggestion from Bruno Haible.
89112
89113 2001-12-10  Jim Meyering  <meyering@lucent.com>
89114
89115         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
89116         xrealloc, Instead, include "xalloc.h".
89117         (initbuffer): Don't cast xmalloc return value to char*.
89118         (readline): Reword comment.
89119         Don't cast xrealloc return value to char*
89120         Return NULL, not 0.
89121
89122 2001-12-09  Jim Meyering  <meyering@lucent.com>
89123
89124         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
89125         about `signed and unsigned type in conditional expression'.
89126         * lib/posixtm.c (posix_time_parse): Likewise.
89127
89128         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
89129
89130         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
89131         to avoid a pedantic warning.
89132
89133         * lib/getstr.c: Don't include assert.h.
89134         (getstr): Remove warning-evoking assertions.
89135         Return -1 if offset parameter is out of bounds.
89136         Change the type of a local from int to size_t.
89137
89138         * lib/strftime.c (my_strftime_localtime_r): Include this function
89139         definition in the `#if ! HAVE_TM_GMTOFF' block.
89140
89141         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
89142         Include xalloc.h instead.
89143
89144 2001-12-02  Jim Meyering  <meyering@lucent.com>
89145
89146         * lib/tempname.c: Don't declare getenv, thus reverting the change of
89147         2001-11-18.  It's no longer necessary, now that stdlib.h is always
89148         included.
89149
89150         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
89151         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
89152
89153 2001-11-30  Akim Demaille  <akim@epita.fr>
89154
89155         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
89156         before being defined.
89157
89158 2001-11-27  Paul Eggert  <eggert@twinsun.com>
89159
89160         * lib/quotearg.h (quotearg_n, quotearg_n_style):
89161         First arg is int, not unsigned.
89162         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
89163         (SIZE_MAX, UINT_MAX): New macros.
89164         (quotearg_n_options): Abort if N is negative.
89165         Avoid overflow check on hosts where size_t is 64 bits and int
89166         is 32 bits, as overflow is impossible there.
89167         Fix off-by-one typo that caused unnecessary reallocation.
89168
89169 2001-11-27  Jim Meyering  <meyering@lucent.com>
89170
89171         * lib/tempname.c: Merge with version from libc.
89172         * lib/regex.c: Likewise.
89173
89174         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
89175         systems for which STDC_HEADERS is 0, it was not included, resulting in
89176         a warning about an integer-to-pointer conversion problem with getenv.
89177         Reported by Volker Borchert.
89178
89179 2001-11-26  Jim Meyering  <meyering@lucent.com>
89180
89181         * lib/gtod.h: Remove file.
89182         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
89183         * lib/gettimeofday.c: Don't include gtod.h.
89184         (GTOD_init): Remove function.
89185         (rpl_gettimeofday): Do its job here instead, rather than aborting.
89186         Suggestion from Volker Borchert.
89187
89188 2001-11-23  Jim Meyering  <meyering@lucent.com>
89189
89190         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
89191         it.
89192         * lib/hash.c (struct hash_table): Define it here instead.
89193
89194 2001-11-22  Jim Meyering  <meyering@lucent.com>
89195
89196         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
89197
89198 2001-11-20  Jim Meyering  <meyering@lucent.com>
89199
89200         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
89201         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
89202
89203 2001-11-19  Jim Meyering  <meyering@lucent.com>
89204
89205         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
89206         directory.  Use "conftestXXXXXX" as the template.
89207         Suggestion from Paul Eggert.
89208
89209         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
89210         immediately, so the test doesn't mistakenly hit the max-open-files
89211         limit.
89212
89213 2001-11-18  Paul Eggert  <eggert@twinsun.com>
89214
89215         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
89216         (TEMPORARIES): New macro.
89217         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
89218         removes an artificial limitation (e.g. HP-UX 10.20, where
89219         TMP_MAX is 17576).
89220
89221 2001-11-18  Jim Meyering  <meyering@lucent.com>
89222
89223         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89224
89225 2001-11-18  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89228         on SunOS 4.
89229
89230         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89231         files will be created before anything else.
89232
89233 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89234
89235         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89236         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89237
89238 2001-11-17  Jim Meyering  <meyering@lucent.com>
89239
89240         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89241         Prompted by a report from Bob Proulx.
89242
89243         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89244         Instead, require UTILS_FUNC_MKSTEMP.
89245
89246 2001-11-17  Jim Meyering  <meyering@lucent.com>
89247
89248         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89249         Now, that's done as part of AC_FUNC_STRTOD.
89250
89251 2001-11-17  Jim Meyering  <meyering@lucent.com>
89252
89253         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89254         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89255         rather than group writable.  Patch by Juan F. Codagnone.
89256
89257         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89258         xrealloc, Instead, include "xalloc.h".
89259
89260         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89261         Remove explicit declarations of xmalloc, xrealloc,
89262         and xstrdup.  Instead, include "xalloc.h".
89263
89264         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89265         unlocked-io.h.
89266         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89267         Likewise.
89268         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89269
89270         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89271         Reported by Padraig Brady.
89272
89273         * lib/mkstemp.c: #undef mkstemp.
89274         Include config.h.
89275         (rpl_mkstemp): Rename from mkstemp.
89276         Protoize.
89277
89278 2001-11-16  Jim Meyering  <meyering@lucent.com>
89279
89280         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89281         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89282         determine the amount of total physical memory, use pstat_getstatic.
89283         HPUX-11 doesn't define _SC_PHYS_PAGES.
89284         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89285         If sysconf couldn't be used to determine the amount of available
89286         physical memory, use both pstat_getstatic and pstat_getdynamic.
89287         Based on a patch from Bob Proulx.
89288
89289 2001-11-10  Jim Meyering  <meyering@lucent.com>
89290
89291         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89292         (jm_PREREQ): Use it.
89293
89294 2001-11-09  Jim Meyering  <meyering@lucent.com>
89295
89296         * m4/jm-macros.m4: Require autoconf-2.52f.
89297         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89298         Use these AC_-prefixed names, not the AM_-prefixed ones.
89299
89300         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89301
89302 2001-11-05  Jim Meyering  <meyering@lucent.com>
89303
89304         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89305
89306 2001-11-04  Jim Meyering  <meyering@lucent.com>
89307
89308         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89309         $DEFS.
89310
89311 2001-11-03  Jim Meyering  <meyering@lucent.com>
89312
89313         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89314         of AC_DEFUN.
89315
89316         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89317         know the name of the variable in the macro definition.
89318
89319 2001-11-03  Jim Meyering  <meyering@lucent.com>
89320
89321         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89322         in argmatch_to_argument call.
89323
89324         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89325         argument.
89326
89327         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89328         e.g., a fault due to an attempt to free a NULL pointer.
89329
89330 2001-11-01  Jim Meyering  <meyering@lucent.com>
89331
89332         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89333         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89334
89335 2001-11-01  Jim Meyering  <meyering@lucent.com>
89336
89337         * lib/dirfd.c, lib/dirfd.h: New files.
89338         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89339
89340         * lib/hash.c (hash_print) [TESTING]: Clean up.
89341
89342 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89343
89344         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89345         to avoid a warning if -Wall.
89346
89347 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89348
89349         * README: New file
89350         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89351         (per RMS's instructions, this is now the canonical source)
89352         * lgpl/, gpl/: New directories.
89353
89354 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89355
89356         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89357
89358 2001-10-21  Jim Meyering  <meyering@lucent.com>
89359
89360         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89361         this code would end up calling gettext even in packages built
89362         with --disable-nls.
89363         * lib/getopt.c (_): Likewise.
89364         * lib/regex.c (_): Likewise.
89365
89366 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89367
89368         * m4/error.m4 (jm_PREREQ_ERROR):
89369         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89370         AC_FUNC_STRERROR_R does that.
89371         Check for strerror declaration.
89372
89373         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89374         are supposed to have them these days.
89375         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89376         Merge changes from latest Autoconf CVS.
89377         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89378         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89379         POSIX decided to standardize on the int flavor of strerror_r.
89380
89381 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89382
89383         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89384         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89385         Use strerror_r that is only a macro, even if it is not a function.
89386         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89387         (private_strerror): Use prototypes, not old-style function definition.
89388         (print_errno_message): New function.
89389         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89390         char*-flavored one.
89391         (error_tail, error, error_at_line): Use it.
89392
89393 2001-10-11  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89396         and quote_n (1, ... to avoid clobbering a buffer.
89397
89398 2001-10-05  Jim Meyering  <meyering@lucent.com>
89399
89400         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89401         hash-pjw.h.
89402         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89403         * lib/hash-pjw.h: New file.
89404
89405 2001-09-30  Jim Meyering  <meyering@lucent.com>
89406
89407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89408         `struct fsstat' has the `f_fstypename' member.
89409         Use that to define FS_TYPE, which is now used to make
89410         the getfsstat link test tighter.
89411
89412 2001-09-30  Jim Meyering  <meyering@lucent.com>
89413
89414         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89415         Include <sys/ucred.h>, for Apple Darwin.
89416         Include sys/mount.h and sys/fs_types.h only if available.
89417         (FS_TYPE): Define.
89418         (read_filesystem_list): Use FS_TYPE.
89419
89420 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89421
89422         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89423         a boolean context.
89424
89425 2001-09-29  Jim Meyering  <meyering@lucent.com>
89426
89427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89428         [one-argument getmntent function]): Include stdio.h before mntent.h.
89429         SunOS 4.1.x needs it for the declaration of `FILE'.
89430         Patch by Volker Borchert.
89431
89432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89433         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89434         sys/fs_types.h, and make the link-test for getfsstat guard #include
89435         directives with appropriate #if HAVE_*_H tests so that we can
89436         detect getfsstat on Apple Darwin1.3.7 systems.
89437         Reported by Nelson Beebe.
89438         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89439
89440 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89441
89442         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89443         #defines strtoimax.  Also treat the other strto* functions
89444         like strtoimax.
89445
89446         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89447         Check for strtoul and strtoumax,
89448         as those declarations are made even in the signed case.
89449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89450         Likewise, for strtol and strtoimax.
89451
89452 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89453
89454         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89455         #defines strtoimax.  Also treat the other strto* functions
89456         like strtoimax.
89457
89458         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89459         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89460         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89461
89462 2001-09-26  Jim Meyering  <meyering@lucent.com>
89463
89464         Most macros in unlocked-io.h had the wrong number of arguments.
89465         * lib/gen-uio: New script.
89466         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89467         * lib/unlocked-io.hin: Remove file.
89468         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89469         rather than trying to embed it here.
89470         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89471         Reported by Padraig Brady.
89472
89473 2001-09-25  Volker Borchert  <bt@teknon.de>
89474
89475         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89476         `result'.
89477
89478 2001-09-24  Jim Meyering  <meyering@lucent.com>
89479
89480         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89481
89482 2001-09-23  Jim Meyering  <meyering@lucent.com>
89483
89484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89485         instead of the mere test for existence of mntent.h.  The latter
89486         would get a false-positive on AIX 3.4 systems.
89487         In the outer getmntent if-block, don't die if neither of the getmntent
89488         tests succeeds.  Instead, just fall through and continue with the
89489         remaining tests.
89490
89491 2001-09-23  Jim Meyering  <meyering@lucent.com>
89492
89493         * lib/mountlist.c: Remove useless parentheses in #if directives.
89494         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89495         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89496
89497 2001-09-22  Jim Meyering  <meyering@lucent.com>
89498
89499         * m4/gettext.m4: New file.  From gettext.
89500         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89501         * m4/progtest.m4: Likewise
89502         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89503         * m4/glibc21.m4: Likewise.
89504
89505         * m4/libintl.m4: Remove.  No longer used.
89506
89507 2001-09-22  Jim Meyering  <meyering@lucent.com>
89508
89509         * lib/localcharset.c: Update from latest gettext.
89510         * lib/config.charset: Likewise.
89511
89512 2001-09-20  Jim Meyering  <meyering@lucent.com>
89513
89514         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89515         strtoimax.
89516         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89517         strtoumax.
89518
89519 2001-09-20  Jim Meyering  <meyering@lucent.com>
89520
89521         * lib/xstrtol.c (strtoimax): Guard declaration with
89522         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89523         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89524         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89525         (strtoumax): Likewise, for completeness (it wasn't necessary).
89526
89527 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89528
89529         * lib/strtoimax.c (HAVE_LONG_LONG):
89530         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89531         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89532         to work around bug in IBM C compiler.
89533
89534 2001-09-17  Jim Meyering  <meyering@lucent.com>
89535
89536         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89537         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89538         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89539         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89540         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89541         whenever the right hand side need not be expanded by the shell.
89542
89543 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89544
89545         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89546         library.  It's not correct, as some older glibcs are buggy.
89547         fnmatch wasn't fixed until glibc 2.2.
89548
89549         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89550         special shell magic here.
89551
89552 2001-09-16  Jim Meyering  <meyering@lucent.com>
89553
89554         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89555         * m4/jm-macros.m4: Require it.
89556
89557 2001-09-16  Jim Meyering  <meyering@lucent.com>
89558
89559         * lib/mkdir.c: New file.
89560
89561 2001-09-15  Jim Meyering  <meyering@lucent.com>
89562
89563         * m4/jm-macros.m4: Check for help2man.
89564
89565 2001-09-11  Jim Meyering  <meyering@lucent.com>
89566
89567         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89568         The body, by Paul Eggert, was moved here from configure.in.
89569         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89570
89571 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89572
89573         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89574         (jm_PREREQ): Use it.
89575
89576 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89577
89578         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89579         Use ssize_t, not int, to store result of readlink.
89580         Check for ssize_t overflow as well as size_t overflow,
89581         as POSIX says the result of readlink is implementation-defined
89582         when ssize_t overflows.
89583         Remove unnecessary cast to char*.
89584         Use free+malloc instead of realloc, as the storage doesn't need
89585         to be preserved and it's clearer and can be more efficient that way.
89586         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89587         * lib/xreadlink.h (xreadlink): Update prototype.
89588
89589 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89590
89591         * lib/xgetcwd.c: Revert some of the previous change; intead,
89592         fix the HAVE_GETCWD_NULL code to behave more like the
89593         !HAVE_GETCWD_NULL code used to.
89594
89595         Include "xalloc.h".
89596         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89597         invoke xalloc_die.
89598
89599 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89600
89601         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89602         sys/param.h, as pathmax.h includes them.
89603
89604 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89605
89606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89607         (jm_PREREQ_XGETCWD): New macro.
89608
89609         * m4/getcwd.m4: New file.
89610
89611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89612
89613         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89614         like the HAVE_GETCWD_NULL code.
89615         Include pathmax.h if not HAVE_GETCWD.
89616         Do not include xalloc.h.
89617         (INITIAL_BUFFER_SIZE): New symbol.
89618         Do not use xmalloc / xrealloc, since the caller is responsible for
89619         handling errors.  Preserve errno around `free' during failure.
89620         Do not overrun buffer when using getwd.
89621
89622 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89623
89624         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89625         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89626         getcwd (NULL, 0).
89627
89628 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89629
89630         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89631         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89632         spotted by Jim Meyering.
89633
89634 2001-09-03  Jim Meyering  <meyering@lucent.com>
89635
89636         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89637         failure.
89638
89639 2001-09-02  Jim Meyering  <meyering@lucent.com>
89640
89641         * lib/error.c: Update from GNU libc.
89642
89643 2001-09-01  Jim Meyering  <meyering@lucent.com>
89644
89645         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89646         Used by df.
89647
89648 2001-09-01  Jim Meyering  <meyering@lucent.com>
89649
89650         * lib/xreadlink.c: New file.
89651         * lib/xreadlink.h: New file.
89652         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89653         xreadlink.h.
89654
89655         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89656         doesn't conflict with sparc Solaris 7's definition in
89657         /usr/include/sys/int_types.h.
89658
89659         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89660         files.
89661         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89662         and strncasecmp as r-values.  Unixware didn't have declarations.
89663
89664 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89665
89666         * lib/xstrtol.h: Add copyright notice.
89667         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89668         LONGINT_INVALID_SUFFIX_CHAR.
89669
89670 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89671
89672         * lib/xstrtol.c (strtoimax): New decl.
89673
89674 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89675
89676         * lib/xgetcwd.c: Don't include pathmax.h.
89677         Include stdlib.h and unistd.h if available.
89678         Include xalloc.h.
89679         (xmalloc, xstrdup, free): Remove decls.
89680         (xgetcwd): Don't assume sizes fit in unsigned.
89681         Check for overflow when computing sizes.
89682         Simplify reallocation code.
89683
89684 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89685
89686         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89687         a directory's st_size can have an arbitrary value, so the old
89688         usage could waste an arbitrary amount of memory.  All uses
89689         changed.
89690         * lib/savedir.h: Update prototype.
89691
89692 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89693
89694         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89695
89696         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89697         old strtoimax.c.
89698
89699         Also, make the following further changes to make this file's
89700         configuration more similar to that of strtol.c:
89701         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89702         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89703         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89704         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89705         changed to signed values.
89706
89707         And make the following changes as well:
89708         Fix copyright notice, as 1999 was missing.
89709         (verify): New macro.
89710         (strtoimax): Check sizes at compile-time, not run-time.
89711         Prefer strtol to strtoll if both work.
89712         (main): Remove; it was not that useful and was a pain to maintain.
89713
89714         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89715
89716 2001-08-31  Jim Meyering  <meyering@lucent.com>
89717
89718         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89719         Use an initial, malloc'd, buffer of length 128 rather than
89720         a statically allocated one of length 1024.
89721
89722 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89723
89724         Simplify code, partly by assuming autoconf 2.52 semantics.
89725
89726         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89727
89728         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89729         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89730         All uses removed.
89731         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89732         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89733         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89734         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89735         jm_AC_HEADER_INTTYPES_H.
89736         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89737
89738         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89739
89740         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89741         Quote first arg of AC_DEFUN.
89742         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89743         since they are needed to parse the include file even if we need
89744         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89745         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89746         but with opposite signedness.
89747
89748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89749
89750         Merge 'exclude' changes from tar 1.13.22.
89751         This fixes one or two unlikely storage allocation overflow bugs,
89752         but doesn't change user-visible behavior otherwise.
89753
89754 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89755
89756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89757         (jm_PREREQ_EXCLUDE): New macro.
89758
89759 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89760
89761         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89762         tm to be declared.
89763
89764 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89765
89766         * lib/hash.c: Remove '2001' from copyright notice.
89767
89768 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89769
89770         * lib/full-write.h: New file.
89771         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89772         * lib/full-write.c: Correct credits, as cccp.c no longer
89773         exists and anyway it was so heavily changed from the old cccp
89774         code as to be unrecognizable.  Include full-write.h.
89775         (full_write): Return size_t, with short writes meaning failure.
89776         All callers changed.  This fixes a bug with large buffers
89777         on 64-bit hosts.
89778         * lib/utime.c: Include full-write.h.
89779
89780 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89781
89782         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89783         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89784         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89785         Include if available.
89786         (<xalloc.h>): Include
89787         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89788         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89789         collide with FNM macros.
89790         (struct patopts): New struct.
89791         (struct exclude): Use it, as exclude patterns now come with options.
89792         (new_exclude): Support above changes.
89793         (new_exclude, add_exclude_file):
89794         Initial size must now be a power of two to simplify overflow checking.
89795         (free_exclude, fnmatch_no_wildcards): New function.
89796         (excluded_filename): No longer requires options arg, as the options
89797         are determined by add_exclude.  Now returns bool, not int.
89798         (excluded_filename, add_exclude):
89799         Add support for the fancy new exclusion options.
89800         (add_exclude, add_exclude_file): Now takes int options arg.
89801         Check for arithmetic overflow when computing sizes.
89802         (add_exclude_file): xrealloc might modify errno, so don't
89803         realloc until after errno might be used.
89804
89805         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89806         New macros.
89807         (free_exclude): New decl.
89808         (add_exclude, add_exclude_file): Now takes int options arg.
89809         (excluded_filename): No longer requires options arg, as the options
89810         are determined by add_exclude.  Now returns bool, not int.
89811
89812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89813
89814         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89815
89816 2001-08-27  Jim Meyering  <meyering@lucent.com>
89817
89818         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89819
89820         * lib/version-etc.c (N_): Remove definition.
89821         Revert most of last change.
89822         Instead, simply don't mark the `Copyright...' string for translation.
89823         Based on advice from Paul Eggert.
89824
89825         * lib/strtoxmax.c: Tweak comment.
89826
89827 2001-08-26  Jim Meyering  <meyering@lucent.com>
89828
89829         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89830
89831         * m4/xstrtoimax.m4: New file.
89832         * m4/xstrtoumax.m4: Add comments explaining why we
89833         AC_REPLACE_FUNCS(strtol).
89834
89835 2001-08-26  Jim Meyering  <meyering@lucent.com>
89836
89837         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89838         of copyright with `%s' so translators don't get an untranslated
89839         message in 2002.
89840         (COPYRIGHT_YEAR): Define.
89841         (version_etc): Use fprintf rather than fputs.
89842         Suggestion from Ulrich Drepper.
89843
89844         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89845
89846         * lib/strtoll.c: New file, from GNU libc.
89847         * lib/xstrtoimax.c: New file.
89848
89849         * lib/xstrtol.h: Add xstrtoimax.
89850         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89851         * lib/strtoimax.c: New file.  Likewise, but first define
89852         STRTOUXMAX_SIGNED.
89853
89854         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89855         ...
89856         * lib/strtoxmax.c: ... then renamed to this.
89857
89858 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89859
89860         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89861         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89862         (jm_AC_TYPE_INTMAX_T): New macro.
89863         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89864
89865         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89866
89867         * m4/longlong.m4: Renamed from ulonglong.m4.
89868         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89869         * m4/uintmax_t.m4: Removed.
89870
89871 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89872
89873         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89874         Port to Solaris 8, where 'sed' requires a space after the 'r'
89875         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89876         Redirect output to $tmp just once.
89877
89878 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89879
89880         * lib/addext.c (<errno.h>): Include.
89881         (errno): Declare if not defined.
89882         (addext): Work correctly when pathconf returns -1 and leaves
89883         errno alone because there is no limit.  Also, work even if
89884         pathconf returns a value greater than SIZE_MAX.
89885
89886 2001-08-12  Jim Meyering  <meyering@lucent.com>
89887
89888         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89889         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89890         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89891         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89892         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89893         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89894         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89895         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89896         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89897         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89898         utime.m4, utimes.m4, xstrtoumax.m4:
89899         Quote the first argument in each use of AC_DEFUN.
89900
89901 2001-08-12  Jim Meyering  <meyering@lucent.com>
89902
89903         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89904         Simply `return getcwd (NULL, 0);'.
89905         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89906         Use 1300 as initial value for length, not PATH_MAX.
89907
89908         * lib/pathmax.h: Clean up cpp syntax.
89909
89910 2001-08-12  Jim Meyering  <meyering@lucent.com>
89911
89912         * lib/gettimeofday.c: New file.
89913         * lib/gtod.h: New file.
89914         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89915
89916 2001-08-05  Jim Meyering  <meyering@lucent.com>
89917
89918         * m4/jm-macros.m4: Require autoconf-2.52.
89919
89920 2001-08-04  Jim Meyering  <meyering@lucent.com>
89921
89922         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89923         stmt, to get in sync with glibc.
89924
89925 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89926
89927         The following changes are from gettext 0.10.39 as maintained by
89928         Bruno Haible.
89929
89930         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89931         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89932         with inverted sense.  All uses changed.
89933
89934         * lib/mbswidth.c: Don't include <limits.h>.
89935         Include <stdlib.h> and <string.h> unconditionally.
89936         (iswcntrl, mbsinit, ISCNTRL): New macros.
89937         (mbsnwidth): Use K&R style function declarations.
89938         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89939         can optimize it when MB_CUR_MAX == 1.
89940         The width of control characters is zero, not 1.
89941
89942 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89943
89944         The following changes are from gettext 0.10.39 as maintained by
89945         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89946
89947         * m4/codeset.m4: Upgrade to serial AM1.
89948         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89949         all uses changed.  Quote first arg of AC_DEFUN.
89950         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89951
89952         * m4/iconv.m4: Upgrade to serial AM2.
89953         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89954         Add --with-libconv-prefix.
89955         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89956         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89957         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89958         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89959         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89960
89961         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89962         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89963         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89964         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89965         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89966         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89967         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89968         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89969         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89970
89971         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89972         string.h any more.
89973
89974         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89975         not the default value.
89976
89977         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89978         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89979         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89980         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89981         Also check for iswcntrl, used for wcwidth fallback.
89982         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89983         to Autoconf 2.13.
89984
89985 2001-08-03  Jim Meyering  <meyering@lucent.com>
89986
89987         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89988         as it was in the original.  Reported by Paul Eggert.
89989
89990 2001-07-16  Jim Meyering  <meyering@lucent.com>
89991
89992         * m4/gettimeofday.m4: New file.
89993         Prompted by a report from Bernhard Baehr.
89994
89995 2001-07-15  Jim Meyering  <meyering@lucent.com>
89996
89997         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89998         stuff. Now it's in ../Makefile.cfg.
89999
90000 2001-07-15  Jim Meyering  <meyering@lucent.com>
90001
90002         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
90003         (BUILT_SOURCES): Add unlocked-io.h.
90004         (io_functions): Define.
90005         (unlocked-io.h): New rule.
90006         (DISTCLEANFILES): Add unlocked-io.h.
90007         (all-local): Depend on unlocked-io.h, to ensure it is created.
90008
90009         * lib/unlocked-io.hin: New file
90010
90011         * lib/regex.c: Update from glibc.
90012
90013 2001-07-05  Jim Meyering  <meyering@lucent.com>
90014
90015         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
90016         recommendation.
90017         (libfetish_a_SOURCES): Put all .h files here instead.
90018         Remove a thus-exposed (better checks in automake) duplicate and
90019         two unnecessary .h files.
90020
90021 2001-07-04  Jim Meyering  <meyering@lucent.com>
90022
90023         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
90024         that generates jm-glibc-io.m4 so that it doesn't trigger any make
90025         distcheck failure.
90026
90027 2001-07-02  Jim Meyering  <meyering@lucent.com>
90028
90029         The following changes were prompted by suggestions from Bruno Haible.
90030
90031         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
90032         is now generated.
90033         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
90034         definition of EXTRA_DIST.
90035         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
90036         ensure that the generated file is created/updated whenever the list
90037         of $(unlocked_functions) is changed.
90038         (jm-glibc-io.m4): New rule.
90039         (unlocked-io.h): New rule -- currently unused.
90040
90041 2001-06-24  Jim Meyering  <meyering@lucent.com>
90042
90043         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
90044         unmatched right bracket, rather than kludging it with an extra,
90045         falsely-matching quote in a comment.  Patch by Akim Demaille.
90046
90047 2001-06-11  Jim Meyering  <meyering@lucent.com>
90048
90049         * lib/regex.c: Update from GNU libc.
90050
90051 2001-05-27  Jim Meyering  <meyering@lucent.com>
90052
90053         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
90054         Check for ut_type in struct utmp.
90055
90056 2001-05-27  Jim Meyering  <meyering@lucent.com>
90057
90058         * lib/readutmp.h (UT_TYPE): Define.
90059
90060 2001-05-24  Jim Meyering  <meyering@lucent.com>
90061
90062         * lib/argmatch.c: Include "quote.h".
90063         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
90064         quote function.  Reported by Göran Uddeborg.
90065
90066 2001-05-22  Jim Meyering  <meyering@lucent.com>
90067
90068         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
90069         now that we use the package-supplied version unconditionally.
90070         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
90071
90072 2001-05-21  Jim Meyering  <meyering@lucent.com>
90073
90074         * m4/regex.m4: Change a couple backticks to single quotes to avoid
90075         shell syntax errors.
90076
90077 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90078
90079         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
90080
90081 2001-05-20  Paul Eggert  <eggert@twinsun.com>
90082
90083         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
90084         Don't bother to check library strftime, since
90085         we'll be using our own my_strftime function anyway.
90086         Define my_strftime instead of strftime.
90087
90088 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
90089
90090         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
90091         which is not yet declared.
90092
90093 2001-05-15  Jim Meyering  <meyering@lucent.com>
90094
90095         * m4/regex.m4: Use proper quoting so brackets appear in the test
90096         program.
90097         Reported by, and with help from, Bruno Haible.
90098
90099 2001-05-13  Jim Meyering  <meyering@lucent.com>
90100
90101         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
90102         undefined.
90103
90104 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90105
90106         dirname code cleanup.  base_name now behaves more compatibly
90107         with POSIX basename when given file names that have trailing
90108         slashes, and similarly for dir_name.  Add new primitives
90109         base_len and dir_len.  Put the directory-name-related decls
90110         into dirname.h.
90111
90112         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
90113         * lib/backupfile.c (base_name): Likewise.
90114         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
90115         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
90116         * lib/makepath.c (strip_trailing_slashes): Likewise.
90117         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
90118         ISSLASH): Likewise.
90119         * lib/rename.c (strip_trailing_slashes): Likewise.
90120         * lib/same.c (base_name): Likewise.
90121         * lib/stripslash.c (ISSLASH): Likewise.
90122
90123         * lib/addext.c: Include <dirname.h> after size_t is defined.
90124         * lib/backupfile.c: Likewise.
90125
90126         * lib/addext.c (addext): Use base_len to trim redundant
90127         trailing slashes instead of doing it ourselves.
90128         But do not trim the last slash if it is not redundant.
90129
90130         * lib/backupfile.c (find_backup_file_name,
90131         max_backup_version): Use base_len instead of rolling it ourselves.
90132         Handle the case of "" and (on DOS) "C:" correctly.
90133
90134         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
90135         needed. Include <string.h>, <dirname.h>.
90136         (base_name): Allow file names ending in slashes, other than names
90137         that are all slashes.  In this case, return the basename followed
90138         by the slashes.  This is more general, and can be used in places
90139         where the original base_name purposely had an assertion failure.
90140         (base_len): New function.
90141
90142         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
90143         Do not include <assert.h>; no longer needed.
90144         Include xalloc.h.
90145         (memrchr): Remove decl.
90146         (dir_name_r): Remove.
90147         (dir_len): Renamed from dirlen.  All callers changed.
90148         Rewrite in terms of base_name, for simplicity and consistency.
90149         (dir_name): Never return NULL.  All callers changed.
90150         Do not include <stdlib.h> in test program; no longer needed.
90151         return 0; is fine for test program.
90152
90153         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
90154         New macros.
90155         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
90156
90157         * lib/path-concat.c (path_concat): Use base_len to compute
90158         base length, not strlen; this means we cannot rely on memcpy
90159         to null-terminate.
90160
90161         * lib/same.c (STREQ): Remove.
90162         (same_name): Handle the case where the basename ends in trailing '/'.
90163
90164         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
90165         a slash was stripped.  Do not strip the last slash after a
90166         file system prefix.
90167
90168 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90169
90170         * lib/Makefile.am (libfetish_a_SOURCES):
90171         Add strftime.c, since we now compile it on all hosts.
90172
90173         * lib/strftime.c (my_strftime):
90174         Define to nstrftime if emacs, but only if my_strftime is not defined.
90175         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
90176         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
90177         Add one more extra argument: a nanoseconds value.
90178         All uses changed.
90179         (ns): New macro.
90180         (my_strftime function): Add %N format.
90181         (emacs_strftimeu): Renamed from emacs_strftime,
90182         with extra ut argument.
90183
90184 2001-05-09  Paul Eggert  <eggert@twinsun.com>
90185
90186         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
90187
90188 2001-04-21  Jim Meyering  <meyering@lucent.com>
90189
90190         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
90191         doesn't interfere.
90192
90193 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90194
90195         * m4/ftruncate.m4: Check for chsize.
90196         Link with ftruncate.o unconditionally if ftruncate is missing.
90197         This was required when cross-compiling to i586-mingw32msvc.
90198
90199 2001-04-08  Jim Meyering  <meyering@lucent.com>
90200
90201         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
90202         recomputed; that's necessary when the offset spans a DST transition.
90203         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
90204
90205 2001-04-02  Jim Meyering  <meyering@lucent.com>
90206
90207         * lib/regex.h, regex.c: Update from GNU libc.
90208
90209 2001-03-24  Jim Meyering  <meyering@lucent.com>
90210
90211         * m4/jm-macros.m4: Require autoconf-2.49d.
90212
90213 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
90214
90215         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
90216
90217 2001-03-19  Paul Eggert  <eggert@twinsun.com>
90218
90219         * lib/version-etc.c (version_etc_copyright): Update to 2001.
90220
90221 2001-03-17  Jim Meyering  <meyering@lucent.com>
90222
90223         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90224         now that the version in autoconf is equivalent.
90225         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90226
90227         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90228         Suggestion from Akim Demaille.
90229
90230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90231         (jm_PREREQ_TEMPNAME): New function.
90232
90233 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90234
90235         * lib/tempname.c (uint64_t): Define to uintmax_t if
90236         not defined, and if UINT64_MAX is not defined.
90237         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90238         Reported by John David Anglin.
90239
90240 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90241
90242         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90243         resolve alias if codeset is empty.
90244         * lib/config.charset (BeOS): Use wildcard syntax.
90245
90246 2001-03-13  Jim Meyering  <meyering@lucent.com>
90247
90248         * lib/path-concat.c (path_concat)
90249         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90250         concatenating e.g., `C:' and `foo'.
90251         From Bruno Haible.
90252
90253 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90254
90255         * lib/localcharset.c (locale_charset): Don't use
90256         setlocale(LC_CTYPE,NULL). Don't return NULL.
90257         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90258
90259 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90260
90261         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90262         support for DOS/DJGPP.
90263
90264 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90265
90266         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90267         lacks mkstemp.  Compile our own tempname.c if we compile our own
90268         mkstemp.c, as mkstemp relies on tempname.
90269
90270 2001-03-01  Jim Meyering  <meyering@lucent.com>
90271
90272         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90273         AH_VERBATIM really does output its argument verbatim.
90274
90275 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90276
90277         * lib/Makefile.am (libfetish_a_SOURCES):
90278         Add dup-safer.c, fopen-safer.c.
90279         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90280
90281         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90282         * lib/unistd-safer.h: New files.
90283
90284 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90285
90286         The mkstemp replacement is taken from glibc 2.2.2, with some
90287         portability fixes for use outside glibc, as follows:
90288
90289         * lib/tempname.c (struct_stat64): New macro.
90290         (direxists, __gen_tempname): Use it.
90291         This avoids a portability problem with Solaris 8.
90292
90293         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90294         (<stddef.h>, <stdint.h>, <string.h>):
90295         Include only if STDC_HEADERS || _LIBC.
90296         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90297         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90298         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90299         (__set_errno): Define this macro if <errno.h> doesn't.
90300         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90301         Define these macros if <stdio.h> doesn't.
90302         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90303         Define these macros if <sys/stat.h>
90304         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90305         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90306         __xstat64): Define if not _LIBC.
90307         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90308         (__gen_tempname): Invoke gettimeofday only if
90309         HAVE_GETTIMEOFDAY || _LIBC;
90310         otherwise, fall back on plain "time".
90311         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90312
90313         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90314
90315         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90316
90317 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90318
90319         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90320
90321 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90322
90323         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90324         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90325         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90327
90328 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90329
90330         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90331         Remove workaround macros for hosts that have mbrtowc but not
90332         mbstate_t, as we now insist on proper declarations for both
90333         before using mbrtowc.
90334
90335 2001-02-17  Jim Meyering  <meyering@lucent.com>
90336
90337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90338         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90339         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90340         UnixWare 7.1.1.
90341
90342         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90343         rather than AC_CACHE_VAL.
90344
90345 2001-02-17  Jim Meyering  <meyering@lucent.com>
90346
90347         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90348         around included file name.
90349
90350         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90351
90352         * lib/strftime.c: Update from GNU libc (the only changes were to
90353         comments).
90354
90355 2001-02-17  Jim Meyering  <meyering@lucent.com>
90356
90357         * lib/regex.c: Update from libc.
90358
90359 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90360
90361         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90362         clash.
90363
90364 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90365
90366         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90367         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90368         Reported by Mark Hounschell via Paul Eggert.
90369
90370 2001-02-07  Jim Meyering  <meyering@lucent.com>
90371
90372         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90373
90374 2001-02-05  Jim Meyering  <meyering@lucent.com>
90375
90376         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90377         it includes the patch required for `large file' support with at least
90378         HP-UX's 10.20 /bin/cc.
90379
90380 2001-02-03  Jim Meyering  <meyering@lucent.com>
90381
90382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90383         AS_IF, now that it works once again (mysteriously).
90384         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90385
90386 2001-01-30  Jim Meyering  <meyering@lucent.com>
90387
90388         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90389         * m4/chown.m4: Rename conftestchown to conftest.chown.
90390         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90391         s/conftestdir2/conftest.d2/.
90392         * m4/utimes.m4: s/conftestdata/conftest.data/
90393         Inspired by Pavel Roskin's change in autoconf.
90394
90395 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90396
90397         * lib/config.charset: Update for FreeBSD 4.2.
90398
90399 2001-01-27  Jim Meyering  <meyering@lucent.com>
90400
90401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90402         a use of AS_IF.
90403         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90404
90405 2001-01-26  Jim Meyering  <meyering@lucent.com>
90406
90407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90408         quotearg.c includes it.
90409
90410 2001-01-26  Jim Meyering  <meyering@lucent.com>
90411
90412         * lib/quotearg.c: Include stddef.h.
90413         * lib/quote.c: Include stddef.h.
90414         Reported by Axel Kittenberger.
90415
90416         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90417         line in double quotes so that it evokes a better diagnostic.
90418         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90419         Reported by Axel Kittenberger.
90420
90421 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90422
90423         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90424         as if it was a `charset'.
90425
90426 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90427
90428         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90429         has const.
90430
90431 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90432
90433         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90434         to avoid a warning.  Add back 'const' to inptr.
90435
90436 2001-01-20  Jim Meyering  <meyering@lucent.com>
90437
90438         Be sure that headers are checked before used in code compiled
90439         for the type checks.
90440         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90441         In place of that, invoke jm_CHECK_ALL_TYPES.
90442         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90443         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90444         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90445         The check for ssize_t was mistakenly run before the test for unistd.h.
90446
90447         The configure-time check for stdbool.h was missing.
90448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90449         (jm_PREREQ_HASH): New function.
90450
90451 2001-01-17  Jim Meyering  <meyering@lucent.com>
90452
90453         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90454         for autoconf-2.49c.
90455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90456
90457 2001-01-16  Jim Meyering  <meyering@lucent.com>
90458
90459         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90460         From Bruno Haible.
90461
90462 2001-01-14  Jim Meyering  <meyering@lucent.com>
90463
90464         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90465         foo and bar.  Create conftestdir/ in the script, not in the C code.
90466         Remove directories in the script, not in the C code.
90467         Remove conftestdir{,2} before trying to create the directory.
90468         Make the entire configure script fail if the mkdir fails.
90469
90470 2001-01-14  Jim Meyering  <meyering@lucent.com>
90471
90472         * lib/rename.c: New file.  From Volker Borchert.
90473         Include stdlib.h, string.h or strings.h, and xalloc.h.
90474         Use strip_trailing_slashes rather than open-coding it.
90475
90476 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90477
90478         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90479
90480 2001-01-03  Jim Meyering  <meyering@lucent.com>
90481
90482         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90483         of local `inptr' to avoid warning with some system declarations of
90484         iconv.
90485
90486 2001-01-02  Volker Borchert  <bt@teknon.de>
90487
90488         * m4/rename.m4: New file.
90489         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90490
90491 2001-01-01  Jim Meyering  <meyering@lucent.com>
90492
90493         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90494         even on systems with utmpx.h.  It's necessary for the declaration of
90495         utmp's ut_user member.  Reported by Andreas Jaeger.
90496
90497         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90498         available. They are required for the declarations of getgrgid and
90499         getpwuid resp.
90500         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90501         Reported by Andreas Jaeger.
90502
90503 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90504
90505         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90506         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90507         so `make install' also works in VPATH builds.
90508
90509 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90510
90511         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90512         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90513         can be used in subdirectories.
90514
90515 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90516
90517         * lib/modechange.c: Do not assume that mode_t uses the
90518         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90519         the other-execute bit of FOO even if S_IXOTH != 1.
90520
90521         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90522         WOTH, XOTH, ALLM): New macros.
90523         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90524          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90525         Use them.
90526         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90527         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90528         (mode_compile):
90529         No need to use uintmax_t; unsigned long is long enough.
90530         Don't bother to get suffix since we don't use it.
90531
90532 2000-12-26  Jim Meyering  <meyering@lucent.com>
90533
90534         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90535         better with autoheader.
90536
90537 2000-12-24  Jim Meyering  <meyering@lucent.com>
90538
90539         * lib/hash.c (is_prime): Return explicit boolean values.
90540         (hash_get_first): Return NULL to appease Irix5.6's 89.
90541         Reported by Nelson Beebe.
90542
90543 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90544
90545         * lib/localcharset.c (locale_charset): Add support for Win32.
90546
90547 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90548
90549         * lib/physmem.h, lib/physmem.c: New files.
90550
90551         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90552         (noinst_HEADERS): Add physmem.h.
90553
90554         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90555         't' for compatibility with Solaris 8 sort.
90556
90557 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90558
90559         * lib/config.charset: Add support for BeOS.
90560
90561 2000-12-17  Jim Meyering  <meyering@lucent.com>
90562
90563         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90564         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90565
90566 2000-12-16  Jim Meyering  <meyering@lucent.com>
90567
90568         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90569         N and M) would have treated it like `chown N:N FILE'.
90570
90571         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90572
90573 2000-12-16  Jim Meyering  <meyering@lucent.com>
90574
90575         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90576         SHELLS_FILE to a file name that's useful on djgpp systems.
90577         Include stdlib.h.
90578         (ADDITIONAL_DEFAULT_SHELLS): Define.
90579         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90580         Based mostly on a patch from Prashant TR.
90581
90582 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90583
90584         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90585         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90586         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90587
90588 2000-12-08  Andreas Schwab  <schwab@suse.de>
90589
90590         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90591         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90592
90593 2000-12-07  Jim Meyering  <meyering@lucent.com>
90594
90595         * lib/stripslash.c (ISSLASH): Define.
90596         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90597         `/'.
90598         From Prashant TR.
90599
90600         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90601         (dir_name_r): Declare this function as static.
90602         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90603         manifest itself on a name containing a mix of slashes and
90604         backslashes.
90605         Make this function work with names starting with a DOS-style
90606         drive letter and colon prefix.
90607         (dir_name): Append `.' if necessary.
90608         Based mostly on patches from Prashant TR and Eli Zaretskii.
90609
90610         * lib/dirname.h (dir_name_r): Remove prototype.
90611
90612 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90613
90614         * m4/off_t-format.m4: Remove this file.
90615         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90616
90617 2000-12-06  Jim Meyering  <meyering@lucent.com>
90618
90619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90620         replacement strtoull, we may well need the replacement strtoul, too.
90621         Check for declarations of strtoul and strtoull.
90622         Check for strtol.  Mainly as a cue to cause automake to include
90623         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90624         Check for limits.h -- strtol.c needs it.
90625
90626 2000-12-05  Jim Meyering  <meyering@lucent.com>
90627
90628         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90629
90630 2000-12-04  Jim Meyering  <meyering@lucent.com>
90631
90632         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90633         Also include memory.h, stdlib.h, unistd.h if appropriate.
90634         Reported by Andreas Jaeger (conflicting declaration of malloc).
90635
90636 2000-12-02  Jim Meyering  <meyering@lucent.com>
90637
90638         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90639         * m4/jm-macros.m4 (jm_MACROS): require it.
90640
90641 2000-12-02  Jim Meyering  <meyering@lucent.com>
90642
90643         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90644
90645 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90646
90647         * lib/memrchr.c: Include <config.h> before any system include file.
90648
90649 2000-11-30  Jim Meyering  <meyering@lucent.com>
90650
90651         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90652
90653 2000-11-30  Jim Meyering  <meyering@lucent.com>
90654
90655         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90656
90657 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90658
90659         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90660
90661 2000-11-26  Jim Meyering  <meyering@lucent.com>
90662
90663         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90664
90665 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90666
90667         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90668         size of (size_t) -1; it's not portable.
90669
90670 2000-11-17  Jim Meyering  <meyering@lucent.com>
90671
90672         * lib/strstr.c: Update from GNU libc.
90673
90674 2000-11-17  Akim Demaille  <akim@epita.fr>
90675
90676         * lib/obstack.h: Formatting changes.
90677         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90678         prevent type checking.
90679         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90680         cast the value to (void *): assigning a `foo *' to a `void *'
90681         variable is valid.
90682         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90683
90684 2000-11-16  Jim Meyering  <meyering@lucent.com>
90685
90686         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90687
90688 2000-11-11  Jim Meyering  <meyering@lucent.com>
90689
90690         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90691
90692 2000-11-10  Jim Meyering  <meyering@lucent.com>
90693
90694         * lib/obstack.h: Update from GNU libc.
90695         * lib/obstack.c: Likewise.
90696
90697 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90698
90699         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90700
90701 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90702
90703         * lib/getusershell.c (setusershell): Use rewind rather than
90704         fseek/fseeko, to avoid configuration hassles with fseeko.
90705         Don't bother opening SHELLS_FILE if shellstream is NULL;
90706         it's not necessary.
90707
90708 2000-11-05  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/makepath.h (make_dir): Declare.
90711         * lib/makepath.c (make_dir): Remove `static' attribute.
90712         Tweak a comment.
90713
90714 2000-11-04  Jim Meyering  <meyering@lucent.com>
90715
90716         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90717
90718 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90719
90720         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90721         last one in a bucket, advance to the next bucket.
90722
90723 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90724
90725         * lib/fnmatch.c: Do not comment out all the code if we are using
90726         the GNU C library, because in some cases we are replacing buggy
90727         code in the GNU C library itself.
90728
90729 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90730
90731         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90732         (regex_compile): Catch bogus \(\1\).
90733
90734 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90735
90736         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90737         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90738         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90739
90740 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90741
90742         * lib/error.h, getline.h, modechange.h:
90743         Remove "2000" from Copyright line, as the file hasn't been
90744         changed this year other than in the copyright notice.
90745
90746         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90747         was changed this year.
90748
90749 2000-10-29  Jim Meyering  <meyering@lucent.com>
90750
90751         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90752         renaming.
90753         * m4/ls-mntd-fs.m4: Likewise
90754
90755 2000-10-29  Jim Meyering  <meyering@lucent.com>
90756
90757         * lib/xstat.in: Fix grammar in comment.
90758
90759 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90760
90761         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90762         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90763         doesn't define __restrict_arr.
90764
90765 2000-10-28  Jim Meyering  <meyering@lucent.com>
90766
90767         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90768         (jm_PREREQ_MEMCHR): New function.
90769
90770 2000-10-28  Jim Meyering  <meyering@lucent.com>
90771
90772         * lib/memchr.c: Update from libc.
90773         Adjust for portability:
90774         [HAVE_STDLIB_H]: Include stdlib.h.
90775         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90776         Undef __memchr, too.
90777         [!weak_alias]: Define __memchr to memchr.
90778
90779         * lib/regex.c: Update from libc.
90780         * lib/regex.h: Likewise.
90781         * lib/getopt1.c: Likewise.
90782         * lib/memcmp.c: Likewise.
90783
90784         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90785         Avoid using fseek, when possible -- it's broken by design.
90786         Patch by Ulrich Drepper.
90787
90788 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90789
90790         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90791         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90792         Giving in to popular pressure to shut up the compiler with casts.
90793
90794 2000-10-26  Jim Meyering  <meyering@lucent.com>
90795
90796         * lib/strftime.c: Update from libc.
90797
90798 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90799
90800         * regex.c: More `unsigned char' -> `re_char' changes.
90801         Also change several `int' into `re_wchar_t'.
90802         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90803         (PUSH_FAILURE_POINTER): Don't cast any more.
90804         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90805         We want GCC to complain, since this piece of code makes
90806         re_match non-reentrant, which *should* be fixed.
90807         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90808         (EXTEND_BUFFER): Use RETALLOC.
90809         (SET_LIST_BIT): Don't cast.
90810         (re_wchar_t): New type.
90811         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90812         that those two functions will always properly return.
90813         (IMMEDIATE_QUIT_CHECK): Cast to void.
90814         (analyse_first): Use recursion rather than an explicit stack.
90815         (re_compile_fastmap): Can't fail anymore.
90816         (re_search_2): Don't check re_compile_fastmap for failure.
90817         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90818         Now also sets the new value (passed in a new argument).
90819         (re_match_2_internal): Use it.
90820         Also, use a new var `reg' of type size_t when looping through regs
90821         rather than reuse the inappropriate `mcnt'.
90822
90823 2000-10-25  Jim Meyering  <meyering@lucent.com>
90824
90825         * lib/obstack.c: Update from libc.
90826
90827 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90828
90829         * regex.c (regex_compile): Change the way of handling a range from
90830         a char less than 256 to a char not less than 256.
90831
90832 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90833
90834         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90835         NT-Emacs only.
90836         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90837         so that re_search functions only quit when callers expect them to.
90838
90839 2000-10-23  Jim Meyering  <meyering@lucent.com>
90840
90841         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90842         wrong.  That set_locale call must not have any side effects.
90843         From Paul Eggert.
90844
90845 2000-10-22  Jim Meyering  <meyering@lucent.com>
90846
90847         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90848         [CYCLIC]: Remove now-unused definition.
90849
90850         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90851         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90852         Suggestion from Ulrich Drepper.
90853
90854 2000-10-21  Jim Meyering  <meyering@lucent.com>
90855
90856         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90857         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90859
90860 2000-10-21  Jim Meyering  <meyering@lucent.com>
90861
90862         * lib/dirname.c (memrchr): Declare if necessary.
90863         (dir_name): Remove the restriction that there be no
90864         trailing slashes.  Now, this code skips past them, effectively
90865         ignoring them.
90866         [TEST_DIRNAME] (main): New unit tests.
90867
90868         * lib/memrchr.c: New file from GNU libc.
90869         Undef __memrchr, too.
90870         [!weak_alias]: Define __memrchr to memrchr.
90871         Guard weak_alias use with `#ifdef weak_alias'.
90872
90873 2000-10-21  Jim Meyering  <meyering@lucent.com>
90874
90875         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90876         (dir_name): Use dir_name_r.
90877         * lib/dirname.h (dir_name_r): Declare it.
90878
90879 2000-10-17  Jim Meyering  <meyering@lucent.com>
90880
90881         * lib/quote.h (PARAMS): Define and use.
90882         Reported by Akim Demaille.
90883
90884         * lib/getopt.c: Update from libc.
90885
90886 2000-10-16  Jim Meyering  <meyering@lucent.com>
90887
90888         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90889         setlocale.
90890         From Jan Fedak.
90891
90892 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90893
90894         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90895
90896 2000-09-25  Jim Meyering  <meyering@lucent.com>
90897
90898         * lib/md5.h (rol): Define (from GnuPG).
90899
90900         * lib/sha.c: Give credit (GnuPG) where due.
90901         (M): Use rol rather than open-coding it.
90902         Add a FIXME comment.
90903
90904 2000-09-21  Jim Meyering  <meyering@lucent.com>
90905
90906         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90907         Reported by Michael Stone.
90908
90909 2000-09-20  Jim Meyering  <meyering@lucent.com>
90910
90911         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90912         (noinst_HEADERS): Add sha.h.
90913         Based on code from Scott G. Miller and from GnuPG.
90914
90915 2000-09-18  Jim Meyering  <meyering@lucent.com>
90916
90917         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90918         LIBS. Otherwise, everyone ends up linking with -lelf for some
90919         configurations.
90920         Reported by Mike Stone.
90921
90922 2000-09-15  Jim Meyering  <meyering@lucent.com>
90923
90924         * lib/regex.c: Update from libc.
90925
90926 2000-09-10  Jim Meyering  <meyering@lucent.com>
90927
90928         * lib/getopt.c (_getopt_internal): Update from glibc.
90929
90930 2000-09-09  Jim Meyering  <meyering@lucent.com>
90931
90932         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90933         think it should be used as a general replacement for isascii.
90934         * lib/fnmatch.c: Likewise.
90935         * lib/mbswidth.c: Likewise
90936         * lib/regex.c: Likewise.
90937
90938         Don't use atoi.
90939         * lib/userspec.c: Include sys/param.h and limits.h.
90940         Include xstrtol.h.
90941         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90942         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90943         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90944         UID, GID.  Check range.
90945
90946 2000-09-06  Jim Meyering  <meyering@lucent.com>
90947
90948         * lib/getopt.c (_getopt_internal): Update from glibc.
90949
90950 2000-08-30  Jim Meyering  <meyering@lucent.com>
90951
90952         * lib/strftime.c: Merge in changes from GNU libc.
90953
90954 2000-08-26  Jim Meyering  <meyering@lucent.com>
90955
90956         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90957         * m4/fpending.m4: New file.
90958
90959 2000-08-26  Jim Meyering  <meyering@lucent.com>
90960
90961         * lib/closeout.c: Include "__fpending.h".
90962         (close_stdout_status): Return right away if there's nothing to flush.
90963
90964         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90965         * lib/__fpending.c: New file.
90966         * lib/__fpending.h: New file.
90967
90968 2000-08-20  Jim Meyering  <meyering@lucent.com>
90969
90970         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90971         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90972         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90973
90974 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90975
90976         Improve fileutils installation on systems where running
90977         programs (like install) can't be unlinked.
90978         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90979         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90980
90981 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90982
90983         Standardize on "memory exhausted" instead of "Memory exhausted"
90984         or "virtual memory exhausted".
90985         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90986         "virtual memory exhausted".
90987         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90988         our own message.
90989         * lib/userspec.c (parse_user_spec): Likewise.
90990         * lib/bumpalloc.h: comment fix
90991         * lib/same.c, userspec.c: Include xalloc.h.
90992
90993         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90994         not char *const and pointing to a constant array.
90995         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90996         (xrealloc): Comment fix.
90997
90998         * lib/userspec.c (parse_user_spec):
90999         Don't translate a message until just before returning,
91000         to avoid unnecessary translation.
91001
91002 2000-08-07  Jim Meyering  <meyering@lucent.com>
91003
91004         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
91005         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
91006         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
91007         getgroups.c, gethostname.c, getopt.h, group-member.c,
91008         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
91009         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
91010         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
91011         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
91012         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
91013         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
91014         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
91015         yesno.c: Back out Copyright date changes for each file with no change
91016         this year.  This eases coordination with other programs using the same
91017         source code modules.  From Paul Eggert.
91018
91019 2000-08-06  Paul Eggert  <eggert@twinsun.com>
91020
91021         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
91022         not char, for compatibility with glibc 2.1.3 strftime.c.
91023
91024 2000-08-03  Greg McGary  <greg@mcgary.org>
91025
91026         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
91027         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
91028         (EXTEND_BUFFER): Use them.
91029
91030 2000-08-01  Jim Meyering  <meyering@lucent.com>
91031
91032         * lib/dirname.c (ISSLASH): Define.
91033         (BACKSLASH_IS_PATH_SEPARATOR): Define.
91034         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
91035         both `\' and `/' may be use as path separators.
91036         Based on a patch from Prashant TR.
91037
91038 2000-07-31  Paul Eggert  <eggert@twinsun.com>
91039
91040         * lib/quotearg.c (quotearg_n_options): Don't make the initial
91041         slot vector a constant, since it might get modified.
91042
91043 2000-07-31  Jim Meyering  <meyering@lucent.com>
91044
91045         * lib/xmalloc.c: Use `virtual memory exhausted', not
91046         `Memory exhausted'.
91047         * lib/obstack.c (print_and_abort): Likewise.
91048
91049 2000-07-30  Paul Eggert  <eggert@twinsun.com>
91050
91051         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
91052         buffer, so that the caller can always quote one small
91053         component of a "memory exhausted" message in slot 0.
91054         From a suggestion by Jim Meyering.
91055
91056 2000-07-30  Jim Meyering  <meyering@lucent.com>
91057
91058         * lib/makepath.c (make_path): Quote the other instance, too.
91059
91060         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
91061         (STATIC_BUF_SIZE): Define.
91062         (quotearg_n_options): Use only statically allocated storage when
91063         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
91064         than STATIC_BUF_SIZE.
91065
91066 2000-07-29  Jim Meyering  <meyering@lucent.com>
91067
91068         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
91069         * lib/dirname.c (dir_name): Likewise.
91070
91071         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
91072         `/'.
91073
91074         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
91075         (dir_name): Assert that there are no trailing slashes.
91076
91077 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
91078
91079         * lib/mbswidth.h (mbswidth): Add a flags argument.
91080         (mbswidth): New declaration.
91081         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
91082         * lib/mbswidth.c (mbswidth): Add a flags argument.
91083         (mbsnwidth): New function.
91084
91085 2000-07-24  Jim Meyering  <meyering@lucent.com>
91086
91087         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
91088
91089 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91090
91091         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
91092
91093 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91094
91095         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
91096         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
91097         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
91098         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
91099         invoke multibyte primitives.
91100
91101 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91102
91103         * lib/quotearg.c:
91104         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
91105         so that mbstate_t is always defined.
91106
91107         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
91108         be 1 in at least one GCC installation, and this configuration
91109         error is likely to be common.  Ignoring MB_LEN_MAX hurts
91110         performance on hosts that have mbrtowc but have only unibyte
91111         locales, but I assume these hosts are rare.
91112
91113 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91114
91115         * lib/mbswidth.c (_XOPEN_SOURCE):
91116         Don't define; this causes problems on Solaris 7.
91117         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
91118
91119 2000-07-23  Jim Meyering  <meyering@lucent.com>
91120
91121         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
91122         too: getgrgid, getpwuid, getuid.
91123
91124 2000-07-23  Jim Meyering  <meyering@lucent.com>
91125
91126         * lib/basename.c (base_name): Add an assertion.
91127
91128 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
91129
91130         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
91131         shadow its mbsinit function.
91132
91133 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91134
91135         * lib/mbswidth.h: New file.
91136         * lib/mbswidth.c: New file.
91137         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
91138         (noinst_HEADERS): Add mbswidth.h.
91139
91140 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91141
91142         * lib/config.charset: Add support for FreeBSD. Improve support for
91143         HP-UX and IRIX 6.
91144
91145 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
91146
91147         * m4/mbswidth.m4: New file.
91148         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
91149
91150 2000-07-15  Jim Meyering  <meyering@lucent.com>
91151
91152         * lib/makepath.c: Include quote.h.
91153         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
91154         corresponding argument in a `quote (...)' call.
91155         Give better diagnostics.
91156
91157         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
91158         (noinst_HEADERS): Add quote.h.
91159
91160         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
91161         from tar's src/misc.c.
91162         * lib/quote.h: New file.  Prototypes for same.
91163
91164 2000-07-14  Paul Eggert  <eggert@twinsun.com>
91165
91166         From a suggestion by Bruno Haible.
91167         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
91168         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
91169         to decide whether to define the BeOS workaround macro;
91170         this adjusts to the change to AC_MBSTATE_T.
91171
91172 2000-07-14  Jim Meyering  <meyering@lucent.com>
91173
91174         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
91175         jm_AC_TYPE_UINTMAX_T.
91176
91177 2000-07-13  Paul Eggert  <eggert@twinsun.com>
91178
91179         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
91180
91181         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
91182         quotearg_buffer_restyled): Add support for
91183         clocale_quoting_style.  Undo previous change to
91184         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
91185         and "{RIGHT QUOTATION MARK}" msgids.
91186
91187 2000-07-10  Paul Eggert  <eggert@twinsun.com>
91188
91189         From a suggestion by Bruno Haible.
91190         * m4/mbstate_t.m4 (AC_MBSTATE_T):
91191         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
91192         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
91193         and mbstate_t, to a single-part test that simply defines mbstate_t.
91194         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
91195         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
91196
91197 2000-07-10  Jim Meyering  <meyering@lucent.com>
91198
91199         * m4/strerror_r.m4: Mirror the correction made in autoconf.
91200
91201         * m4/gnu-source.m4: Output to confdefs.h directly.
91202         Suggestion from Akim Demaille.
91203
91204 2000-07-09  Paul Eggert  <eggert@twinsun.com>
91205
91206         The old behavior of quoting `like this' doesn't look good with
91207         newer, ISO-style fonts.  See:
91208         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
91209
91210         Instead, quote "like this" by default.  Let the translator
91211         tailor the locale-specific quoting behavior by providing
91212         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
91213
91214         * lib/quotearg.c (N_): New macro.
91215         (gettext_default): New function.
91216         (quotearg_buffer_restyled): Use
91217         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
91218         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
91219
91220 2000-07-09  Jim Meyering  <meyering@lucent.com>
91221
91222         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91223         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91224
91225         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91227
91228 2000-07-09  Jim Meyering  <meyering@lucent.com>
91229
91230         * lib/Most files: Update copyright dates to include 2000.
91231
91232 2000-07-08  Jim Meyering  <meyering@lucent.com>
91233
91234         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91235         if not defined.
91236         (xgethostname): Remove now-unnecessary #ifdef.
91237         Move declaration of `err' into loop where it's used.
91238
91239 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91240         and Bruno Haible  <haible@clisp.cons.org>
91241
91242         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91243         only if the test for an object-type mbstate_t fails.  This
91244         prevents us from mistakenly reporting that mbstate_t is a
91245         system object type after we "#define mbstate_t int" to work
91246         around its lack.
91247
91248 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91249         and Bruno Haible  <haible@clisp.cons.org>
91250
91251         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91252
91253 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91254
91255         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91256         to strerror_r.
91257         Include <ctype.h> for use of isalpha.
91258
91259 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91260
91261         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91262         by allocating a larger buffer. Test the gethostname return value for
91263         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91264         returns an error and ENAMETOOLONG isn't defined.
91265
91266 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91267
91268         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91269         dimension.
91270
91271 2000-07-04  Jim Meyering  <meyering@lucent.com>
91272
91273         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91274         of the deprecated AC_CHECKING.
91275
91276 2000-07-04  Jim Meyering  <meyering@lucent.com>
91277
91278         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91279         Reported by Bruno Haible.
91280
91281 2000-07-04  Jim Meyering  <meyering@lucent.com>
91282
91283         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91284         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91285         lacks mbrtowc.
91286
91287 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91288
91289         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91290         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91291
91292 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91293         and Bruno Haible  <haible@clisp.cons.org>
91294
91295         * lib/quotearg.c (mbrtowc):
91296         Assign to *pwc, and return 1 only if result is nonzero.
91297         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91298
91299 2000-07-03  Jim Meyering  <meyering@lucent.com>
91300
91301         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91302
91303 2000-07-03  Jim Meyering  <meyering@lucent.com>
91304
91305         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91306         This is necessary to get a definition of e.g., UTMP_FILE on
91307         HP-UX 10.20.
91308         From Bob Proulx.
91309
91310 2000-07-02  Jim Meyering  <meyering@lucent.com>
91311
91312         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91313
91314         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91315         AC_LIBOBJ(function_name).
91316         * m4/chown.m4: Likewise.
91317         * m4/fnmatch.m4: Likewise.
91318         * m4/ftruncate.m4: Likewise.
91319         * m4/getgroups.m4: Likewise.
91320         * m4/getline.m4: Likewise.
91321         * m4/group-member.m4: Likewise.
91322         * m4/jm-macros.m4: Likewise.
91323         * m4/lstat.m4: Likewise.
91324         * m4/malloc.m4: Likewise.
91325         * m4/memcmp.m4: Likewise.
91326         * m4/nanosleep.m4: Likewise.
91327         * m4/putenv.m4: Likewise.
91328         * m4/realloc.m4: Likewise.
91329         * m4/regex.m4: Likewise.
91330         * m4/stat.m4: Likewise.
91331         * m4/strftime.m4: Likewise.
91332
91333 2000-07-02  Jim Meyering  <meyering@lucent.com>
91334
91335         * lib/quotearg.c (mbstate_t): Don't define here.
91336
91337 2000-07-02  Jim Meyering  <meyering@lucent.com>
91338
91339         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91340
91341 2000-07-01  Jim Meyering  <meyering@lucent.com>
91342
91343         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91344
91345 2000-07-01  Jim Meyering  <meyering@lucent.com>
91346
91347         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91348         problem.
91349
91350 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91351
91352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91353         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91354
91355 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91356
91357         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91358         per change in ../m4/ls-mntd-fs.m4.
91359         (read_filesystem_list): Ignore symbolic links.
91360
91361 2000-06-29  Jim Meyering  <meyering@lucent.com>
91362
91363         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91364         for declaration of strcmp.
91365
91366         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91367
91368         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91369         Avoid warning by casting result to `char *' to remove `const'.
91370
91371 2000-06-28  Jim Meyering  <meyering@lucent.com>
91372
91373         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91374         included by quotearg.c, for which we perform this test.  From
91375         Bruno Haible.
91376
91377 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91378
91379         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91380         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91381         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91382
91383 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91384
91385         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91386
91387 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91388
91389         savedir now sets errno on failure and invokes xmalloc to get memory.
91390         Fix a couple of other minor bugs while we're at it.
91391
91392         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91393         (NAMLEN): Remove macro.
91394         (malloc, realloc): Remove decls.
91395         (stpcpy): Likewise.
91396         ("xalloc.h"): Include.
91397         (NAME_SIZE_DEFAULT): New macro.
91398         (savedir): Use xmalloc / xrealloc to allocate memory.
91399         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91400         Skip "" directory entries.
91401         Use strlen to calculate directory entry length, since the old method
91402         is rarely used these days and isn't worth supporting.
91403         Don't use a pointer after freeing it.
91404         Check for integer overflow when calculating allocation size.
91405         Use memcpy to copy entries, instead of stpcpy.
91406         Set errno properly when returning NULL.
91407         Check for readdir error.
91408
91409 2000-06-26  Jim Meyering  <meyering@lucent.com>
91410
91411         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91412
91413 2000-06-25  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91416         Linux header bug when _XOPEN_SOURCE is defined to 500.
91417
91418 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91419
91420         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91421         deficiency.
91422
91423 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91424
91425         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91426         Include xalloc.h.
91427         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91428
91429 2000-06-24  Jim Meyering  <meyering@lucent.com>
91430
91431         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91432         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91433         for which strerror does return char*, but which lacks a conveniently
91434         accessible declaration of the function.  If the compile-test says
91435         strerror_r doesn't work, then resort to a `run'-test that works on
91436         BeOS and segfaults on DEC Unix.
91437
91438 2000-06-24  Jim Meyering  <meyering@lucent.com>
91439
91440         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91441
91442 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91443
91444         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91445         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91446
91447 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91448
91449         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91450         (mbrtowc, mbstate_t): Define substitutes if
91451         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91452         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91453         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91454
91455 2000-06-23  Jim Meyering  <meyering@lucent.com>
91456
91457         * m4/afs.m4: Add missing AC_MSG_RESULT.
91458         Reported by Bruno Haible.
91459
91460         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91461         Suggestion from Bruno Haible.
91462
91463 2000-06-23  Jim Meyering  <meyering@lucent.com>
91464
91465         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91466
91467 2000-06-21  Jim Meyering  <meyering@lucent.com>
91468
91469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91470
91471 2000-06-21  Jim Meyering  <meyering@lucent.com>
91472
91473         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91474         (noinst_HEADERS): Add getstr.h.
91475
91476         * lib/getline.c (getstr): Move into a separate file.
91477         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91478         the following changes: new parameter, delim2; both delim[12]
91479         parameters have type `int', not `char'.  The latter would lose
91480         with 8-bit delimiters.
91481         * lib/getstr.h: New file.
91482
91483 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91484
91485         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91486         than 1024, return a memory chunk of least possible size, instead
91487         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91488         Use free/xmalloc instead of xrealloc to avoid copying for very long
91489         paths.
91490
91491 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91492
91493         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91494         the empty string.
91495
91496 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91497
91498         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91499         address, not strdup.  Include <stdlib.h> and don't declare free().
91500
91501 2000-06-19  Jim Meyering  <meyering@lucent.com>
91502
91503         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91504
91505 2000-06-18  Jim Meyering  <meyering@lucent.com>
91506
91507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91508
91509         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91510         `checking whether...' message to be consistent with that of the
91511         lstat test.
91512
91513 2000-06-18  Jim Meyering  <meyering@lucent.com>
91514
91515         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91516         Besides, these days every porting target provides a mkdir function.
91517
91518         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91519         needed. (this snippet comes from src/system.h).
91520
91521 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91522
91523         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91524
91525 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91526
91527         * lib/human.c (adjust_value): New function.
91528         (human_readable_inexact): Apply rounding style even when
91529         printing approximate values.
91530
91531 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91532
91533         * lib/human.c (human_readable_inexact): Allow an input block
91534         size that is not a multiple of the output block size, and vice versa.
91535         Reported by Piergiorgio Sartor.
91536
91537 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91538
91539         * lib/getdate.y (get_date): Apply relative times after time
91540         zone indicator, not before.  Reported by Todd A. Jacobs.
91541
91542 2000-06-13  Jim Meyering  <meyering@lucent.com>
91543
91544         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91545
91546         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91547
91548 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91549
91550         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91551
91552 2000-06-12  Jim Meyering  <meyering@lucent.com>
91553
91554         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91555         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91556         optional argument.
91557         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91558         the optional argument, `lib'.
91559
91560 2000-06-08  Jim Meyering  <meyering@lucent.com>
91561
91562         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91563
91564 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91565
91566         Rewrite largefile configuration so that we don't need to run
91567         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91568         AC_CANONICAL_HOST in configure.in -- jmm]
91569
91570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91571         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91572         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91573         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91574         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91575         All uses changed.
91576         Instead of inspecting the output of getconf, try to compile the
91577         test program without and with the macro definition.
91578         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91579         for getconf.  Instead, check for the needed flags by compiling
91580         test programs.
91581
91582 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91583
91584         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91585
91586 2000-06-04  Jim Meyering  <meyering@lucent.com>
91587
91588         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91589         SunOS 4.1.4 for which gid_t is an unsigned type.
91590
91591 2000-06-03  Jim Meyering  <meyering@lucent.com>
91592
91593         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91594         now that autoconf requires that.
91595
91596         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91597         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91598         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91599
91600 2000-06-03  Jim Meyering  <meyering@lucent.com>
91601
91602         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91603
91604 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91605
91606         * m4/glibc21.m4: New file.
91607         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91608
91609 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91610
91611         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91612         newer, don't install charset.alias.
91613         * lib/config.charset: Change the Linux/glibc rules so they become empty
91614         on glibc-2.1 or newer.
91615
91616 2000-06-02  Jim Meyering  <meyering@lucent.com>
91617
91618         * lib/mountlist.c: Back out last change.  Instead, do this...
91619         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91620         me_dummy member using the same `ignore'-testing code.
91621         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91622         fs_type strings.
91623         From Mark D. Roth.
91624
91625 2000-05-29  Jim Meyering  <meyering@lucent.com>
91626
91627         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91628         mounts with the `ignore' attribute.  Based on a patch from
91629         Mark D. Roth.
91630
91631 2000-05-28  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91634         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91635         * m4/stat.m4: Likewise.
91636         * m4/lstat.m4: Likewise.
91637         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91638
91639         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91640         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91641
91642 2000-05-26  Jim Meyering  <meyering@lucent.com>
91643
91644         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91645
91646 2000-05-24  Jim Meyering  <meyering@lucent.com>
91647
91648         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91649         autoconf requires that.
91650         * m4/lib-check.m4: Likewise.
91651         * m4/jm-macros.m4: Likewise.
91652         * m4/strftime.m4: Likewise.
91653
91654         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91655         AC_CHECK_DECLS, now that autoconf requires that.
91656
91657 2000-05-22  Jim Meyering  <meyering@lucent.com>
91658
91659         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91660         * m4/lstat.m4: Likewise.
91661
91662 2000-05-22  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91665
91666 2000-05-20  Jim Meyering  <meyering@lucent.com>
91667
91668         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91669         (jm_PREREQ): Use it.
91670
91671 2000-05-18  Jim Meyering  <meyering@lucent.com>
91672
91673         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91674         back, too, since it may have been modified by allocate_entry.
91675         (hash_delete): Rewrite to use neither the assignment operator
91676         nor the comma operator in an if-expression.
91677
91678 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91679
91680         * lib/closeout.c:
91681         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91682         Remove; no longer needed.
91683         "quotearg.h": Add include.
91684         (file_name): Do not bother to explicitly initialize to NULL; it's less
91685         efficient on some hosts.
91686         (close_stdout_status): Remove test as to whether stdout was already
91687         closed; it breaks for the case "echo x | sort >&-".
91688         Quote file name colons.
91689         Do not assume that _("write error") lacks format strings.
91690
91691 2000-05-15  Jim Meyering  <meyering@lucent.com>
91692
91693         * lib/version-etc.c (version_etc_copyright): Update the copyright
91694         string used in all --version output.
91695
91696 2000-05-14  Jim Meyering  <meyering@lucent.com>
91697
91698         * lib/closeout.c (close_stdout_set_file_name): New function.
91699         (close_stdout_status): Use new file-scoped global.
91700         Return right away if fstat says the stdout file descriptor is invalid.
91701         * lib/closeout.h (close_stdout_set_file_name): Declare.
91702
91703 2000-05-10  Jim Meyering  <meyering@lucent.com>
91704
91705         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91706         (close_stdout_set_status): New function.
91707         * lib/closeout.h (close_stdout_set_status): Declare.
91708
91709 2000-05-09  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/gettext.m4: Rename this...
91712         * m4/libintl.m4: ...to this.
91713
91714 2000-05-08  Jim Meyering  <meyering@lucent.com>
91715
91716         * lib/long-options.c: Don't include closeout.h.
91717         (parse_long_options): Don't call close_stdout for --version.
91718
91719 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91720
91721         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91722         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91723         2.1.3 bug.  This avoids a clash when files like regex.c define
91724         _GNU_SOURCE.
91725
91726 2000-05-06  Jim Meyering  <meyering@lucent.com>
91727
91728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91729         (AC_REPLACE_FUNCS): Add strnlen.
91730
91731         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91732         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91733
91734         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91735         AC_SEARCH_LIBS call for nanosleep.
91736         (LIB_NANOSLEEP): Set and AC_SUBST.
91737
91738 2000-05-06  Jim Meyering  <meyering@lucent.com>
91739
91740         * lib/strnlen.c: Undefine __strnlen and strnlen.
91741         [!weak_alias]: Define __strnlen to strnlen.
91742
91743         * lib/atexit.c: New file, from libiberty.
91744
91745 2000-05-06  Jim Meyering  <meyering@lucent.com>
91746
91747         * lib/closeout.c (close_stdout_status): Also check for errors on the
91748         stderr stream.
91749
91750 2000-05-05  Jim Meyering  <meyering@lucent.com>
91751
91752         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91753         AC_SEARCH_LIBS call for clock_gettime.
91754         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91755
91756         * m4/search-libs.m4: Update from autoconf.
91757
91758         su doesn't work on Solaris 2.6.
91759         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91760         <shadow.h>.  Reported by Dragos Harabor.
91761
91762 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91763
91764         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91765         memcpy instead of xmalloc, xrealloc, path_concat.
91766         (locale_charset): Treat empty environment variables as absent.
91767         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91768
91769 2000-05-04  Jim Meyering  <meyering@lucent.com>
91770
91771         * lib/getopt.c: Update from glibc.
91772         * lib/obstack.c: Likewise.
91773         * lib/obstack.h: Likewise.
91774         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91775         file
91776
91777         * lib/regex.h: Likewise.
91778         * lib/strndup.c: Likewise.
91779         * lib/strnlen.c: New file, from glibc.
91780
91781 2000-05-03  Jim Meyering  <meyering@lucent.com>
91782
91783         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91784
91785 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91786
91787         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91788         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91789         compile-time test, rather than inspecting host and OS, to
91790         decide whether to define _LARGEFILE_SOURCE.
91791
91792 2000-05-01  Jim Meyering  <meyering@lucent.com>
91793
91794         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91795
91796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91797         Based on a patch from Bruno Haible.
91798
91799 2000-05-01  Jim Meyering  <meyering@lucent.com>
91800
91801         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91802
91803 2000-04-29  Jim Meyering  <meyering@lucent.com>
91804
91805         * lib/path-concat.c: Declare strdup only if it's not defined.
91806         * lib/canon-host.c: Likewise.
91807
91808 2000-04-28  Jim Meyering  <meyering@lucent.com>
91809
91810         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91811         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91812         is included first, then limits.h is included by locale.h by libintl.h.
91813         From John David Anglin.
91814
91815 2000-04-25  Jim Meyering  <meyering@lucent.com>
91816
91817         * lib/makepath.c (S_IRWXUGO): Define.
91818         (make_path): Always perform explicit chmod if MODE specifies any
91819         of the `special' permission bits.  Prompted by a bug report against
91820         install from Mate Wierdl and Joost van Baal.
91821
91822 2000-04-18  Jim Meyering  <meyering@lucent.com>
91823
91824         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91825         (jm_PREREQ): Use it.
91826
91827 2000-04-18  Jim Meyering  <meyering@lucent.com>
91828
91829         * lib/README: New file.
91830
91831         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91832         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91833
91834 2000-04-17  Jim Meyering  <meyering@lucent.com>
91835
91836         Get it right :-)
91837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91838         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91839         Suggestion from Akim Demaille.
91840
91841 2000-04-17  Jim Meyering  <meyering@lucent.com>
91842
91843         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91844         the definition of it to rpl_strftime also defined-away the system's
91845         declaration.
91846
91847 2000-04-15  Jim Meyering  <meyering@lucent.com>
91848
91849         Use `C' to denote so-called `contiguous' files, the same way
91850         that tar does.
91851         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91852         (ftypelet): Use S_ISCTG.
91853         From Michael Deutschmann.
91854
91855 2000-04-14  Jim Meyering  <meyering@lucent.com>
91856
91857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91858         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91859         clobbered.
91860
91861 2000-04-14  Jim Meyering  <meyering@lucent.com>
91862
91863         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91864
91865 2000-04-13  Jim Meyering  <meyering@lucent.com>
91866
91867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91868         AH_VERBATIM to insert required #ifndef into config.h.in.
91869         Suggestion from Akim Demaille.
91870
91871 2000-04-12  Jim Meyering  <meyering@lucent.com>
91872
91873         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91874         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91875         Christian Krackowizer.
91876
91877         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91878         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91879         (AC_SYS_LARGEFILE): Require.
91880         (AM_C_PROTOTYPES): Require.
91881
91882 2000-04-08  Jim Meyering  <meyering@lucent.com>
91883
91884         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91885         names don't conflict.  Reported by Eli Zaretskii.
91886
91887 2000-04-07  Jim Meyering  <meyering@lucent.com>
91888
91889         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91890         sys/types.h, to work around system header problems on AIX 3.2.5.
91891         From Bruno Haible.
91892
91893 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91894
91895         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91896         bug.  Deal with the different error behavior of Irix iconv.
91897
91898 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91899
91900         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91901         IRIX if the installer said otherwise.
91902
91903 2000-04-05  Jim Meyering  <meyering@lucent.com>
91904
91905         Portability tweaks required for ultrix4.3.
91906         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91907         (jm_CHECK_DECLS): Add getutent to the list of functions.
91908         (_jm_DECL_HEADERS): Add utmpx.h.
91909         From John David Anglin.
91910
91911         * m4/strftime.m4: Back out the 2000-04-02 change.
91912         Instead of that change, simply undefine putenv in the test program.
91913
91914 2000-04-05  Jim Meyering  <meyering@lucent.com>
91915
91916         Portability tweaks required for ultrix4.3.
91917         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91918         getutent.
91919         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91920         * lib/canon-host.c: Declare strdup.
91921         * lib/path-concat.c: Likewise.
91922         From John David Anglin.
91923
91924 2000-04-04  Jim Meyering  <meyering@lucent.com>
91925
91926         Be more DOS 8.3-friendly.
91927         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91928         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91929         * lib/Makefile.am: Reflect renaming.
91930         Reported by Eli Zaretskii.
91931
91932         Use a temporary file name that won't clash with `charset.alias'
91933         in the DOS 8.3 name space.
91934         * lib/Makefile.am (charset_tmp): Define.
91935         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91936         (uninstall-local): Likewise.
91937         Reported by Eli Zaretskii.
91938
91939 2000-04-03  Jim Meyering  <meyering@lucent.com>
91940
91941         * m4/gettext.m4: Fix typo in comment.
91942
91943         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91944         textutils/configure.in).  Suggestion from Paul Eggert.
91945         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91946
91947 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91948
91949         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91950         variable in the shell rather than using putenv, which isn't
91951         portable.  This avoids the configure-time inter-test dependency
91952         on the potentially-renamed putenv function.
91953
91954 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91955
91956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91957         before checking struct stat.st_blksize, so that
91958         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91959
91960 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91963         since strftime.c uses HAVE_STRFTIME to decide whether to use
91964         the underlying strftime.
91965
91966 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91967
91968         * lib/time/strftime.c (my_strftime): Make sure we call the system
91969         strftime, not ourselves, when invoking the underlying strftime.
91970
91971 2000-03-24  Jim Meyering  <meyering@lucent.com>
91972
91973         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91974         (charset_alias): Define.
91975         (install-exec-local): Factor out common code.
91976         (uninstall-local): Split lines longer than 80.
91977         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91978         (SUFFIXES): Define.
91979         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91980         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91981
91982 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91983
91984         * lib/config.charset: Output a line containing "Packages using this
91985         file".
91986         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91987         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91988         ref-del.sed): New rules.
91989
91990 2000-03-17  Jim Meyering  <meyering@lucent.com>
91991
91992         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91993         Otherwise, include <strings.h>
91994
91995 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91996
91997         * lib/unicodeio.c (utf8_wctomb): New function.
91998         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91999         format instead of in UCS-4 with platform dependent endianness.
92000
92001 2000-03-10  Jim Meyering  <meyering@lucent.com>
92002
92003         * m4/lib-check.m4: Look for getspnam in -lgen, too.
92004         From Marco Franzen.
92005
92006 2000-03-07  Paul Eggert  <eggert@twinsun.com>
92007
92008         * lib/savedir.c (savedir): Work even if directory size is
92009         negative; this can happen with some screwy NFS configurations.
92010
92011 2000-03-06  Jim Meyering  <meyering@lucent.com>
92012
92013         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
92014         if it's NULL (because we ran out of memory).  From Bruno Haible.
92015
92016 2000-03-05  Jim Meyering  <meyering@lucent.com>
92017
92018         * lib/localcharset.c ("path-concat.h"): Include.
92019         (get_charset_aliases): Use path_concat instead of ANSI string
92020         concatenation.
92021
92022         * lib/unicodeio.h (PARAMS): Define.
92023         Use it to guard prototype.
92024
92025 2000-03-04  Jim Meyering  <meyering@lucent.com>
92026
92027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
92028         for lib/localcharset.c.
92029
92030 2000-03-04  Jim Meyering  <meyering@lucent.com>
92031
92032         * lib/Makefile.am (install-exec-local): Create $(libdir) before
92033         installing into it.
92034         (uninstall-local): Uncomment this rule so `make distcheck' works
92035         once again.
92036
92037         * lib/unicodeio.c (<errno.h>): Include it.
92038         (errno): Declare if not defined.
92039
92040         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
92041
92042         * lib/config.charset: New version, incorporating remarks from a linux
92043         i18n mailing list.  From Bruno Haible.
92044
92045 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
92046
92047         * m4/codeset.m4: New file.
92048         * m4/iconv.m4: New file.
92049         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
92050
92051 2000-03-03  Jim Meyering  <meyering@lucent.com>
92052
92053         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
92054
92055 2000-03-02  Jim Meyering  <meyering@lucent.com>
92056
92057         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
92058         the messages come out on separate lines.
92059
92060         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
92061         rather than jm_CHECK_DECLARATIONS.
92062         * m4/decl.m4: Remove now-unused file.
92063
92064         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
92065         geteuid.
92066
92067 2000-03-02  Jim Meyering  <meyering@lucent.com>
92068
92069         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
92070
92071 2000-03-01  Jim Meyering  <meyering@lucent.com>
92072
92073         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
92074         * lib/unicodeio.c: Likewise.
92075
92076 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
92077
92078         * lib/config.charset: New file.
92079         * lib/localcharset.c: New file.
92080         * lib/unicodeio.h, lib/unicodeio.c: New files.
92081         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
92082         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
92083         (noinst_HEADERS): Add unicodeio.h.
92084         (all-local, install-exec-local, charset.alias): New targets.
92085
92086 2000-02-28  Paul Eggert  <eggert@twinsun.com>
92087
92088         * lib/quotearg.c (ALERT_CHAR): New macro.
92089         (quotearg_buffer_restyled): Use it.
92090
92091 2000-02-27  Jim Meyering  <meyering@lucent.com>
92092
92093         * m4/check-decl.m4: Add getenv to the list.
92094
92095 2000-02-27  Jim Meyering  <meyering@lucent.com>
92096
92097         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
92098         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
92099
92100         * lib/backupfile.c: Guard inclusion of stdlib.h with
92101         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
92102         Declare malloc if needed.
92103
92104         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
92105         `#ifndef HAVE_DECL..'
92106         now that autoconf always defines the HAVE_DECL_ symbols.
92107         * lib/human.c: Likewise.
92108         * lib/same.c: Likewise.
92109         * lib/strtoumax.c: Likewise.
92110
92111         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
92112         declaration check was not run.
92113         * lib/hash.c: Likewise.
92114         * lib/human.c: Likewise.
92115         * lib/same.c: Likewise.
92116         * lib/strtoumax.c: Likewise.
92117
92118         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
92119         `.', then first look up the entire `.'-containing string as a login
92120         name.
92121
92122 2000-02-23  Jim Meyering  <meyering@lucent.com>
92123
92124         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
92125         in place of my hack.
92126
92127 2000-02-18  Paul Eggert  <eggert@twinsun.com>
92128
92129         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
92130         (textint): New typedef.
92131         (parser_control): Member year changed from int to textint.
92132         All uses changed.
92133         (YYSTYPE): Removed; replaced by %union with int and textint members.
92134         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92135         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
92136         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
92137         (tSNUMBER, tUNUMBER): Now of type <textintval>.
92138         (date, number, to_year): Use width of number in digits, not its value,
92139         to determine whether it's a 2-digit year, or a 2-digit time.
92140         (yylex): Store number of digits of numeric tokens.
92141         Reported by John Kendall.
92142
92143         (parser_control): Changed from struct parser_control to typedef (for
92144         consistency).  All uses changed.
92145
92146         (tID): Removed; not used.
92147         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
92148
92149 2000-02-14  Paul Eggert  <eggert@twinsun.com>
92150
92151         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
92152         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
92153
92154 2000-02-12  Jim Meyering  <meyering@lucent.com>
92155
92156         * lib/userspec.c (ISDIGIT): Define it.
92157         (isdigit): Remove definition.
92158         (is_number): Use ISDIGIT, not isdigit.
92159         <libintl.h>: Include.
92160         (_ and N_): Define.
92161         (parse_user_spec): Mark translatable strings.
92162
92163 2000-02-10  Jim Meyering  <meyering@lucent.com>
92164
92165         With these changes, nanosleep.[ch] are finally enough like the other
92166         lib/* replacement files to compile on a few more losing systems.
92167
92168         * lib/nanosleep.h: Don't include config.h.
92169         Remove prototype from declaration of nanosleep.
92170         (PARAMS): Remove now-unneeded definition.
92171         * lib/nanosleep.c: #undef nanosleep.
92172         (rpl_nanosleep): Rename from nanosleep.
92173
92174 2000-02-10  Jim Meyering  <meyering@lucent.com>
92175
92176         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
92177         gnu_nanosleep to rpl_nanosleep.
92178
92179 2000-02-09  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
92182         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
92183
92184 2000-02-08  Akim Demaille  <akim@epita.fr>
92185
92186         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
92187         `[' and `]' and remove uses of `changequote'.
92188         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
92189         (AC_SYS_LARGEFILE): Likewise.
92190         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
92191         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
92192         of changequote.
92193         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
92194         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
92195         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
92196         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
92197
92198 2000-02-05  Jim Meyering  <meyering@lucent.com>
92199
92200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
92201         Remove explicit use of AC_HEADER_TIME.  It is required by
92202         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
92203         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
92204         in autoconf whereby the expansion of the latter ended up preceding
92205         the expansion of its prerequisite, AC_HEADER_TIME.
92206         Reported by Volker Borchert.
92207
92208 2000-02-03  Jim Meyering  <meyering@lucent.com>
92209
92210         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
92211
92212 2000-02-03  Jim Meyering  <meyering@lucent.com>
92213
92214         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
92215         rather than with `#if HAVE_UTMPNAME'.
92216
92217 2000-02-02  Jim Meyering  <meyering@lucent.com>
92218
92219         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
92220         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
92221         Reported by Eli Zaretskii.
92222
92223 2000-02-01  Jim Meyering  <meyering@lucent.com>
92224
92225         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92226
92227 2000-01-31  Jim Meyering  <meyering@lucent.com>
92228
92229         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92230         functions.  Add the time.h and sys/time.h headers along with the
92231         AC_REQUIRE'ment of AC_HEADER_TIME.
92232
92233 2000-01-31  Jim Meyering  <meyering@lucent.com>
92234
92235         * lib/nanosleep.h (nanosleep): Guard declaration with
92236         `#if ! HAVE_DECL_NANOSLEEP'.
92237         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92238         the declaration in that vendor's sys/timers.h.
92239         Reported by Christian Krackowizer.
92240
92241         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92242         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92243         (ISPRINT): Likewise.
92244         Reported by Tom Tromey.
92245
92246 2000-01-30  Jim Meyering  <meyering@lucent.com>
92247
92248         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92249
92250         * m4/prereq.m4 (utmp_includes): Define.
92251         Check for ut_user and ut_name members in both struct utmpx
92252         and struct utmp.
92253
92254 2000-01-30  Jim Meyering  <meyering@lucent.com>
92255
92256         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92257         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92258         header files where only utmpx.ut_user is declared.
92259
92260         * lib/readutmp.h (UT_USER): Define.
92261
92262 2000-01-29  Jim Meyering  <meyering@lucent.com>
92263
92264         * m4/lib-check.m4: New file containing library-related checks from
92265         fileutils and sh-utils (textutils had none).
92266
92267 2000-01-28  Jim Meyering  <meyering@lucent.com>
92268
92269         * m4/perl.m4: Change format of warning message to look more like that
92270         from the missing script.  Suggestion from François Pinard.
92271
92272 2000-01-25  Jim Meyering  <meyering@lucent.com>
92273
92274         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92275         well as time.h in the compile check.
92276         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92277         Fix typo in cross-compiling case: s/yes/no/.
92278
92279 2000-01-23  Jim Meyering  <meyering@lucent.com>
92280
92281         * m4/jm-macros.m4: Move df-related tests here from
92282         fileutils/configure.in
92283
92284         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92285         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92286
92287         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92288         s/space/ac_fsusage_space/.
92289         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92290
92291         * m4/ftruncate.m4: New file (derived from part of
92292         fileutils/configure.in).
92293         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92294         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92295
92296         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92297         AC_SUBST these here, rather than just in sh-util/configure.in, so
92298         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92299         all the same.
92300         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92301         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92302         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92303         (AC_SUBST(POW_LIBM)): Likewise.
92304         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92305
92306 2000-01-23  Jim Meyering  <meyering@lucent.com>
92307
92308         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92309         obstack.c.
92310
92311 2000-01-22  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92314
92315         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92316
92317         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92318         configure.in
92319         (AC_CHECK_HEADERS): Likewise for sh-utils.
92320         (AC_CHECK_HEADERS): Likewise for textutils.
92321         Merge the three lists of headers.
92322
92323         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92324         from fileutils' configure.in.
92325
92326         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92327         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92328         check-decl.m4.
92329
92330         * m4/check-decl.m4: Use #if rather than #ifdef.
92331         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92332         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92333         (_jm_DECL_HEADERS): Define new function.
92334         (jm_CHECK_DECLARATIONS): Require it.
92335
92336 2000-01-22  Jim Meyering  <meyering@lucent.com>
92337
92338         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92339         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92340         Required for some AIX systems.  Reported by Christian Krackowizer.
92341         [TESTING] (main): New function.
92342
92343         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92344         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92345         letters.
92346
92347         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92348         iswprint.
92349
92350         * lib/strverscmp.c (ISDIGIT): Define.
92351         (strverscmp): Use ISDIGIT, not isdigit.
92352
92353 2000-01-19  Jim Meyering  <meyering@lucent.com>
92354
92355         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92356         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92357         defines `struct timespec' in <sys/time.h>
92358
92359         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92360         Thanks to Akim for explaining.
92361
92362 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92363
92364         * lib/nanosleep.c (nanosleep):
92365         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92366         POSIX.1 doesn't require SA_INTERRUPT and some systems
92367         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92368         it's been part of POSIX.1 since day 1 (in 1988).
92369
92370 2000-01-17  Jim Meyering  <meyering@lucent.com>
92371
92372         * lib/interlock: Remove unused file.  Reported by François Pinard.
92373
92374 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92375
92376         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92377         alert, backslash, formfeed, and vertical tab unnecessarily in
92378         shell quoting style.
92379
92380 2000-01-16  Jim Meyering  <meyering@lucent.com>
92381
92382         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92383         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92384         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92385         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92386
92387 2000-01-16  Jim Meyering  <meyering@lucent.com>
92388
92389         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92390         because the latter didn't work.
92391
92392 2000-01-15  Jim Meyering  <meyering@lucent.com>
92393
92394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92395         (AC_REPLACE_FUNCS): Add memcpy and memset.
92396         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92397         Add strpbrk.
92398         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92399
92400 2000-01-12  Jim Meyering  <meyering@lucent.com>
92401
92402         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92403         (jm_PREREQ): Use it.
92404         (jm_PREREQ_READUTMP): New macro.
92405         (jm_PREREQ): Use it.
92406
92407 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92408
92409         Quote multibyte characters correctly.
92410         * m4/c-bs-a.m4: New file.
92411         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92412         (jm_PREREQ): Use it.
92413
92414 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92415
92416         * m4/uintmax_t.m4: Port to autoconf 2.13.
92417
92418 2000-01-08  Jim Meyering  <meyering@ascend.com>
92419
92420         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92421         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92422
92423 2000-01-04  Jim Meyering  <meyering@ascend.com>
92424
92425         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92426         jm_STRUCT_DIRENT_D_TYPE.
92427         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92428         jm_STRUCT_DIRENT_D_INO.
92429         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92430         jm_STRUCT_UTIMBUF.
92431         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92432         renamings.
92433         * m4/utime.m4: Likewise.
92434
92435         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92436         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92437
92438 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92439
92440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92441         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92442
92443 2000-01-02  Jim Meyering  <meyering@ascend.com>
92444
92445         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92446         remember if this is necessary.
92447
92448 1999-12-26  Jim Meyering  <meyering@ascend.com>
92449
92450         * m4/jm-macros.m4: Use it here.
92451         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92452
92453 1999-12-23  Jim Meyering  <meyering@ascend.com>
92454
92455         * m4/jm-macros.m4: Check for clock_gettime (moved from
92456         fileutils/configure.in)
92457         Check for gettimeofday.
92458
92459 1999-12-20  Jim Meyering  <meyering@ascend.com>
92460
92461         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92462         autoconf-2.14a-1999-12-20.
92463
92464 1999-12-19  Jim Meyering  <meyering@ascend.com>
92465
92466         * m4/lstat-slash.m4: New file.
92467         * m4/jm-macros.m4: Use the new macro:
92468         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92469
92470 1999-12-07  Jim Meyering  <meyering@ascend.com>
92471
92472         * m4/perl.m4: Require that File::Compare be available, too.
92473         Too many systems seem to lack it.
92474
92475         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92476         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92477
92478 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92479
92480         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92481         problem with the QNX 4.25 shell, which doesn't propagate exit
92482         status of failed commands inside shell assignments.
92483
92484 1999-11-17  Jim Meyering  <meyering@ascend.com>
92485
92486         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92487
92488 1999-11-07  Jim Meyering  <meyering@ascend.com>
92489
92490         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92491
92492 1999-11-06  Jim Meyering  <meyering@ascend.com>
92493
92494         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92495         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92496
92497 1999-11-05  Jim Meyering  <meyering@ascend.com>
92498
92499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92500         configure.in of textutils, fileutils, and sh-utils into this one
92501         (shared between those packages) file.
92502         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92503         AC_STRUCT_ST_BLKSIZE.
92504
92505 1999-11-03  Jim Meyering  <meyering@ascend.com>
92506
92507         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92508         of AC_CHECK_TYPE checks includes unistd.h.
92509         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92510         Suggestion from Akim Demaille.
92511
92512 1999-10-30  Jim Meyering  <meyering@ascend.com>
92513
92514         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92515         m4-quoted string.
92516         * m4/ls-mntd-fs.m4: Likewise.
92517         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92518         * m4/jm-winsz1.m4: Likewise.
92519
92520         * m4/const.m4: Remove file, since the fix made it into the experimental
92521         version of autoconf.
92522         * m4/mktime.m4: Likewise.
92523
92524         * m4/check-type.m4: Remove file, now that the latest version of
92525         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92526
92527         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92528         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92529         AC_CHECK_TYPE.
92530
92531 1999-10-04  Jim Meyering  <meyering@ascend.com>
92532
92533         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92534
92535 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92536
92537         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92538         2.95.1 bug with HP-UX 10.20.
92539
92540 1999-09-17  Jim Meyering  <meyering@ascend.com>
92541
92542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92543         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92544         due to missing strdup (against sh-utils-2.0).
92545
92546 1999-08-29  Jim Meyering  <meyering@ascend.com>
92547
92548         * m4/jm-macros.m4: Require jm_BISON.
92549         * m4/bison.m4: New file.
92550
92551 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92552
92553         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92554         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92555
92556 1999-08-05  Jim Meyering  <meyering@ascend.com>
92557
92558         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92559         to avoid conflicts with `conftest' on 8+3 filesystems.
92560         Suggestion from Eli Zaretskii.
92561
92562 1999-08-04  Jim Meyering  <meyering@ascend.com>
92563
92564         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92565         fileutils and sh-utils (textutils's getline test was inadequate).
92566         (AM_FUNC_GETLINE): Run this test.
92567         (AC_CHECK_FUNCS): Check for getdelim.
92568         Reported by Bob Proulx.
92569
92570 1999-08-02  Jim Meyering  <meyering@ascend.com>
92571
92572         * m4/jm-macros.m4: Add a comment.
92573
92574 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92575
92576         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92577         <inttypes.h> defines strtoumax as a macro (and not as a
92578         function).
92579
92580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92581
92582         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92583         that we can shift, multiply and divide unsigned long long
92584         values; Ultrix cc can't do it.
92585
92586 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92587
92588         * m4/mktime.m4: New file, which is a preview of what should appear
92589         in the next public autoconf release.
92590
92591 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92592
92593         * m4/lfs.m4: Remove this file.
92594         * m4/largefile.m4: New file.  It contains the old contents of
92595         lfs.m4, except that all names with prefix AC_LFS have been
92596         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92597         compatible with future autoconf versions.  Also, some minor m4
92598         quoting problems have been fixed.
92599
92600 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92601
92602         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92603         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92604         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92605         and simplify the shell code.
92606
92607 1999-08-01  Jim Meyering  <meyering@ascend.com>
92608
92609         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92610         m4.
92611
92612 1999-07-20  Jim Meyering  <meyering@ascend.com>
92613
92614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92615
92616 1999-07-15  Jim Meyering  <meyering@ascend.com>
92617
92618         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92619
92620 1999-05-22  Jim Meyering  <meyering@ascend.com>
92621
92622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92623
92624 1999-05-20  Jim Meyering  <meyering@ascend.com>
92625
92626         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92627         Add a colon after each `then' in case $4 is empty.
92628
92629 1999-05-16  Jim Meyering  <meyering@ascend.com>
92630
92631         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92632
92633 1999-05-10  Jim Meyering  <meyering@ascend.com>
92634
92635         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92636
92637         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92638         AC_FUNC_MKTIME.
92639
92640 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92641
92642         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92643
92644 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92645
92646         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92647         not CPPFLAGS, so that linking works correctly in IRIX.
92648
92649 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92650
92651         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92652
92653 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92654
92655         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92656         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92657         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92658         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92659         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92660
92661         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92662
92663 1999-04-20  Jim Meyering  <meyering@ascend.com>
92664
92665         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92666         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92667         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92668
92669 1999-04-18  Jim Meyering  <meyering@ascend.com>
92670
92671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92672         * m4/jm-macros.m4: Use it.
92673
92674 1999-04-06  Jim Meyering  <meyering@ascend.com>
92675
92676         * m4/strftime.m4: Remove test for %f.
92677
92678 1999-03-29  Jim Meyering  <meyering@ascend.com>
92679
92680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92681         superset of the AC_TYPE_* checks in the textutils, fileutils,
92682         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92683         AC_TYPE_PID_T.
92684
92685 1999-03-28  Jim Meyering  <meyering@ascend.com>
92686
92687         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92688         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92689         replaced e.g., in the *.sh files of the sh-utils.
92690
92691 1999-03-20  Jim Meyering  <meyering@ascend.com>
92692
92693         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92694         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92695         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92696
92697 1999-03-19  Jim Meyering  <meyering@ascend.com>
92698
92699         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92700
92701 1999-03-12  Jim Meyering  <meyering@ascend.com>
92702
92703         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92704
92705 1999-03-07  Jim Meyering  <meyering@ascend.com>
92706
92707         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92708         declared.
92709
92710 1999-02-17  Jim Meyering  <meyering@ascend.com>
92711
92712         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92713         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92714
92715 1999-02-07  Jim Meyering  <meyering@ascend.com>
92716
92717         * m4/group-member.m4: New file -- extracted from sh-utils'
92718         configure.in.
92719
92720         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92721         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92722
92723 1999-02-06  Jim Meyering  <meyering@ascend.com>
92724
92725         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92726         * m4/fnmatch.m4: Likewise.
92727         * m4/getgroups.m4: Likewise.
92728         * m4/lstat.m4: Likewise.
92729         * m4/malloc.m4: Likewise.
92730         * m4/putenv.m4: Likewise.
92731         * m4/realloc.m4: Likewise.
92732         * m4/regex.m4: Likewise.
92733         * m4/stat.m4: Likewise.
92734         * m4/strftime.m4: Likewise.
92735         Suggestion from Alain Magloire.
92736
92737         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92738         * m4/fnmatch.m4: Likewise.
92739         * m4/getgroups.m4: Likewise.
92740         * m4/getline.m4: Likewise.
92741         * m4/lstat.m4: Likewise.
92742         * m4/malloc.m4: Likewise.
92743         * m4/memcmp.m4: Likewise.
92744         * m4/putenv.m4: Likewise.
92745         * m4/realloc.m4: Likewise.
92746         * m4/regex.m4: Likewise.
92747         * m4/stat.m4: Likewise.
92748         * m4/strftime.m4: Likewise.
92749         Suggestion from Alain Magloire.
92750
92751         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92752         an argument.
92753
92754         * m4/regex.m4: Add a run-time Test for proper operation of
92755         re_compile_pattern.
92756
92757 1999-01-31  Jim Meyering  <meyering@ascend.com>
92758
92759         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92760
92761 1999-01-30  Jim Meyering  <meyering@ascend.com>
92762
92763         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92764
92765         * m4/jm-mktime.m4: Make this a wrapper around the official
92766         AM_FUNC_MKTIME rather than my private copy, now that the official one
92767         is up to date.
92768         * m4/mktime.m4: Remove file.
92769
92770         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92771         * m4/uptime.m4: Likewise.
92772         * m4/uintmax_t.m4: Likewise.
92773
92774 1999-01-28  Jim Meyering  <meyering@ascend.com>
92775
92776         * m4/jm-macros.m4: Use jm_AFS.
92777         * m4/afs.m4: New file (from fileutils' configure.in).
92778
92779         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92780         * m4/chown.m4: Likewise.
92781         * m4/d-ino.m4: Likewise.
92782         * m4/d-type.m4: Likewise.
92783         * m4/fnmatch.m4: Likewise.
92784         * m4/getgroups.m4: Likewise.
92785         * m4/gettext.m4: Likewise.
92786         * m4/jm-mktime.m4: Likewise.
92787         * m4/jm-winsz2.m4: Likewise.
92788         * m4/lcmessage.m4: Likewise.
92789         * m4/ls-mntd-fs.m4: Likewise.
92790         * m4/malloc.m4: Likewise.
92791         * m4/memcmp.m4: Likewise.
92792         * m4/putenv.m4: Likewise.
92793         * m4/realloc.m4: Likewise.
92794         * m4/st_mtim.m4: Likewise.
92795         * m4/strftime.m4: Likewise.
92796
92797 1999-01-16  Jim Meyering  <meyering@ascend.com>
92798
92799         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92800         (ARGMATCH_DIE_DECL): Define.
92801
92802 1999-01-12  Jim Meyering  <meyering@ascend.com>
92803
92804         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92805         Reported by Lars Hecking.
92806
92807 1999-01-10  Jim Meyering  <meyering@ascend.com>
92808
92809         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92810         gross kludge.
92811         * m4/inttypes_h.m4: Likewise.
92812         * m4/lstat.m4: Likewise.
92813         * m4/malloc.m4: Likewise.
92814         * m4/readdir.m4: Likewise.
92815         * m4/realloc.m4: Likewise.
92816         * m4/st_dm_mode.m4: Likewise.
92817         * m4/stat.m4: Likewise.
92818         * m4/utimbuf.m4: Likewise.
92819         * m4/utimes.m4: Likewise.
92820
92821         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92822         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92823         comments in config.h.in are meaningful.
92824
92825         * m4/jm-macros.m4: Require autoconf-2.13 here.
92826
92827         * m4/regex.m4: By default, don't use the included regex.c on systems
92828         with glibc 2.  Suggestion from Uli Drepper.
92829
92830 1999-01-02  Jim Meyering  <meyering@ascend.com>
92831
92832         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92833
92834 1998-12-18  Jim Meyering  <meyering@ascend.com>
92835
92836         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92837         Based on a suggestion from Lars Hecking.
92838
92839 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92840
92841         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92842
92843 1998-11-16  Jim Meyering  <meyering@ascend.com>
92844
92845         * m4/lfs.m4: Double-quote the `uname...` expression.
92846
92847 1998-11-14  Jim Meyering  <meyering@ascend.com>
92848
92849         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92850         * m4/stat.m4: Likewise.
92851
92852 1998-11-03  Jim Meyering  <meyering@ascend.com>
92853
92854         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92855         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92856
92857 1998-10-18  Jim Meyering  <meyering@ascend.com>
92858
92859         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92860
92861 1998-10-17  Jim Meyering  <meyering@ascend.com>
92862
92863         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92864         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92865         calls for those previously hard-coded headers.  Instead, take a new
92866         parameter.
92867         (jm_CHECK_DECLARATIONS): Reflect interface change.
92868         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92869         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92870
92871         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92872
92873 1998-10-14  Jim Meyering  <meyering@ascend.com>
92874
92875         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92876         instead of "TZ=America/Vancouver".  From Paul Eggert.
92877
92878 1998-10-11  Jim Meyering  <meyering@ascend.com>
92879
92880         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92881         This adds a test for a recently added compatibility fix for mktime.c.
92882         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92883
92884 1998-09-27  Jim Meyering  <meyering@ascend.com>
92885
92886         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92887
92888         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92889         ../configure.in, including a change from Gordon Matzigkeit to allow
92890         cross-compiling for the Hurd.
92891
92892         * m4/glibc.m4: New file/macro to test for the GNU C Library
92893         versions 1 and 2.  From Gordon Matzigkeit.
92894         Indent.
92895
92896 1998-09-21  Jim Meyering  <meyering@ascend.com>
92897
92898         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92899
92900 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92901
92902         Port nanosecond-resolution times to UnixWare 2.1.2 and
92903         pedantic Solaris 2.6.
92904
92905         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92906         AC_STRUCT_ST_MTIM.
92907         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92908         Generate name of ns member, instead of just 1 or undef.
92909         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92910
92911 1998-08-15  Jim Meyering  <meyering@ascend.com>
92912
92913         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92914         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92915         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92916         instead of jm_TYPE_SSIZE_T.
92917
92918 1998-08-12  Jim Meyering  <meyering@ascend.com>
92919
92920         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92921
92922 1998-08-02  Jim Meyering  <meyering@ascend.com>
92923
92924         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92925         in acconfig.h manually.
92926
92927 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92928
92929         * m4/st_mtim.m4: New file.
92930
92931 1998-07-28  Jim Meyering  <meyering@ascend.com>
92932
92933         * m4/utimes.m4: Undef stat.
92934
92935 1998-07-25  Jim Meyering  <meyering@ascend.com>
92936
92937         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92938         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92939
92940 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92941
92942         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92943         uid and gid actually remain unchanged.
92944
92945 1998-07-07  Jim Meyering  <meyering@ascend.com>
92946
92947         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92948
92949 1998-07-04  Jim Meyering  <meyering@ascend.com>
92950
92951         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92952         to prove that this macro can be used in packages without regex.c.
92953
92954 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92955
92956         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92957         is to be used.
92958
92959 1998-07-03  Jim Meyering  <meyering@ascend.com>
92960
92961         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92962
92963         * m4/gettext.m4: New file -- from gettext-0.10.35.
92964         * m4/lcmessage.m4: Likewise.
92965         * m4/progtest.m4: Likewise.
92966
92967         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92968         * m4/jm-macros.m4: Require the new macro.
92969
92970 1998-06-29  Jim Meyering  <meyering@ascend.com>
92971
92972         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92973         for the definition of NGROUPS (used in a system header included
92974         by sys/mount.h).
92975
92976 1998-06-28  Jim Meyering  <meyering@ascend.com>
92977
92978         * m4/ls-mntd-fs.m4: New file.
92979         * m4/fstypename.m4: New file.
92980
92981         * m4/jm-macros.m4: Require the new macro.
92982         * m4/jm-glibc-io.m4: New file.
92983
92984 1998-05-19  Jim Meyering  <meyering@ascend.com>
92985
92986         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92987         * m4/lchown.m4: New file.
92988
92989         * m4/Makefile.am.in: New file.
92990         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92991
92992 1998-05-14  Jim Meyering  <meyering@ascend.com>
92993
92994         * m4/Makefile.am (EXTRA_DIST): Add them.
92995         * m4/jm-macros.m4: New file.
92996         * m4/utimbuf.m4: New file.
92997
92998 1998-05-12  Jim Meyering  <meyering@ascend.com>
92999
93000         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
93001
93002 1998-05-11  Jim Meyering  <meyering@ascend.com>
93003
93004         * m4/isc-posix.m4: New file.
93005
93006 1998-05-10  Jim Meyering  <meyering@ascend.com>
93007
93008         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
93009
93010 1998-05-09  Jim Meyering  <meyering@ascend.com>
93011
93012         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
93013         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
93014         with automake.
93015
93016         * m4/ssize_t.m4: New file.
93017         * m4/mktime.m4: Remove file -- the new automake has this now.
93018
93019 1998-04-26  Jim Meyering  <meyering@ascend.com>
93020
93021         * m4/assert.m4: New file.
93022         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
93023
93024 1998-04-05  Jim Meyering  <meyering@ascend.com>
93025
93026         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
93027         (jm_PREREQ): Use it here.
93028
93029 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
93030
93031         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
93032         in acconfig.h.
93033
93034 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
93035
93036         * m4/prereq.m4: New file.
93037         * m4/error.m4: New file.
93038         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
93039
93040 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
93041
93042         * m4/getline.m4: Don't set am_cv_func_working_getline before the
93043         cache-check for the same variable -- that defeated the purpose of
93044         the test; the test program was never run.  This was a problem only
93045         on systems with losing getline functions -- HP-UX 10.20 is one.
93046         Reported by Bjorn Helgaas.
93047
93048 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
93049
93050         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
93051
93052 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
93053
93054         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
93055
93056         * m4/const.m4: New file.  Use an initializer in this declaration
93057         typedef int charset[2]; const charset x;
93058         Reported by Bob Glickstein.
93059
93060 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
93061
93062         * m4/chown.m4: Fix reversed types on -1 args to chown.
93063         From Kaveh Ghazi.
93064
93065 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
93066
93067         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
93068         Add lseek and memchr.
93069
93070         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
93071         T.E.Dickey <dickey@clark.net> said that some older preprocessors
93072         have a 20-character limit on names.
93073
93074 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
93075
93076         * m4/inttypes_h.m4: New file.
93077         * m4/uintmax_t.m4: New file.
93078         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
93079
93080
93081         -----
93082
93083         Local Variables:
93084         coding: utf-8
93085         End:
93086
93087         Copyright (C) 1997-2012 Free Software Foundation, Inc.
93088
93089         Copying and distribution of this file, with or without
93090         modification, are permitted provided the copyright notice
93091         and this notice are preserved.